html.theme-light,
html.theme-light body {
    background: var(--color-bg-primary) !important;
    color: var(--color-text-primary) !important;
}

html.theme-light .page-container,
html.theme-light .modern-card,
html.theme-light .card,
html.theme-light .section-card,
html.theme-light .modal-content,
html.theme-light .dropdown-menu,
html.theme-light .navbar-modern,
html.theme-light .navbar-menu-sidebar,
html.theme-light .way-card,
html.theme-light .wa-card,
html.theme-light .ct-wrap,
html.theme-light .ct-card,
html.theme-light .ct-modal,
html.theme-light .ctp-panel,
html.theme-light .mp-card,
html.theme-light .crm-task-card,
html.theme-light .crm-inline-task-card,
html.theme-light .lead-card-mobile,
html.theme-light .object-card,
html.theme-light .object-detail-card,
html.theme-light .foreman-object-card,
html.theme-light .foreman-stage-card,
html.theme-light .worker-card {
    background: #ffffff !important;
    color: var(--color-text-primary) !important;
    border-color: var(--color-border-subtle) !important;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08) !important;
}

html.theme-light .modal-header,
html.theme-light .modal-footer,
html.theme-light .card-header,
html.theme-light .modern-card-header,
html.theme-light .section-header,
html.theme-light .navbar-menu-header {
    background: #ffffff !important;
    color: var(--color-text-primary) !important;
    border-color: var(--color-border-subtle) !important;
}

/* Bootstrap .dropdown-menu-dark + глобальное белое меню в светлой теме → тёмный текст и иконки (иначе «Выход» не виден) */
html.theme-light .dropdown-menu-dark {
    --bs-dropdown-color: #0f172a !important;
    --bs-dropdown-bg: #ffffff !important;
    --bs-dropdown-border-color: rgba(15, 23, 42, 0.12) !important;
    --bs-dropdown-link-color: #1e293b !important;
    --bs-dropdown-link-hover-color: #0f172a !important;
    --bs-dropdown-link-hover-bg: rgba(15, 23, 42, 0.06) !important;
    --bs-dropdown-link-active-color: #ffffff !important;
    --bs-dropdown-link-active-bg: var(--brand-primary, #6366f1) !important;
    --bs-dropdown-link-disabled-color: #94a3b8 !important;
    --bs-dropdown-header-color: #64748b !important;
    --bs-dropdown-divider-bg: rgba(15, 23, 42, 0.1) !important;
}
html.theme-light .dropdown-menu-dark .dropdown-item-text {
    color: #64748b !important;
}
html.theme-light .dropdown-menu-dark .dropdown-item i,
html.theme-light .dropdown-menu-dark .dropdown-item .bi {
    color: #334155 !important;
}
html.theme-light .dropdown-menu-dark .dropdown-item:hover i,
html.theme-light .dropdown-menu-dark .dropdown-item:focus i,
html.theme-light .dropdown-menu-dark .dropdown-item:active i {
    color: inherit !important;
}

/* Шапка: иконки уведомлений / темы / профиля — явный контраст */
html.theme-light .navbar-user-section .theme-toggle-btn,
html.theme-light .navbar-user-section .notification-toggle,
html.theme-light .navbar-user-section .nav-link.dropdown-toggle {
    color: #1e293b !important;
}
html.theme-light .navbar-user-section .theme-toggle-btn:hover,
html.theme-light .navbar-user-section .notification-toggle:hover {
    color: #0f172a !important;
}
html.theme-light .navbar-user-section .navbar-avatar {
    color: #475569 !important;
    border-color: rgba(15, 23, 42, 0.14) !important;
}
html.theme-dark .navbar-user-section .theme-toggle-btn,
html.theme-dark .navbar-user-section .notification-toggle,
html.theme-dark .navbar-user-section .nav-link.dropdown-toggle {
    color: rgba(255, 255, 255, 0.9) !important;
}
html.theme-dark .navbar-user-section .theme-toggle-btn:hover,
html.theme-dark .navbar-user-section .notification-toggle:hover {
    color: #ffffff !important;
}
html.theme-dark .navbar-user-section .navbar-avatar {
    color: rgba(255, 255, 255, 0.75) !important;
    border-color: rgba(255, 255, 255, 0.18) !important;
}

html.theme-light h1,
html.theme-light h2,
html.theme-light h3,
html.theme-light h4,
html.theme-light h5,
html.theme-light h6,
html.theme-light label,
html.theme-light .modal-title,
html.theme-light .modern-card-title,
html.theme-light .section-title,
html.theme-light .object-title,
html.theme-light .foreman-title,
html.theme-light .crm-task-card-title,
html.theme-light .crm-itc-title,
html.theme-light .lead-card-mobile-name,
html.theme-light .ct-title,
html.theme-light .ct-name,
html.theme-light .ct-stat-val,
html.theme-light .ctp-info-value,
html.theme-light .mp-name,
html.theme-light .cl-title,
html.theme-light .cl-stat-val,
html.theme-light .cl-lead-name,
html.theme-light .ca-card-name,
html.theme-light .ca-cat-name,
html.theme-light .ca-hero-title,
html.theme-light .product-name,
html.theme-light .product-title,
html.theme-light .item-name,
html.theme-light .item-total {
    color: var(--color-text-primary) !important;
}

html.theme-light p,
html.theme-light span,
html.theme-light div,
html.theme-light td,
html.theme-light th,
html.theme-light .card-body,
html.theme-light .modern-card-body,
html.theme-light .modal-body,
html.theme-light .object-address,
html.theme-light .crm-task-card-phone,
html.theme-light .crm-task-card-manager,
html.theme-light .crm-itc-info-row,
html.theme-light .lead-card-mobile-info-item,
html.theme-light .ct-subtitle,
html.theme-light .ct-meta,
html.theme-light .cl-subtitle,
html.theme-light .cl-lead-meta,
html.theme-light .text-muted {
    color: var(--color-text-secondary) !important;
}

html.theme-light a:not(.btn):not(.btn-modern):not(.navbar-btn):not(.topbar-v2-btn):not(.cd-onboarding-action),
html.theme-light .nav-link,
html.theme-light .navbar-menu-item,
html.theme-light .footer-v2-link {
    color: var(--brand-primary) !important;
}

html.theme-light input,
html.theme-light textarea,
html.theme-light select,
html.theme-light .form-control,
html.theme-light .form-select,
html.theme-light .form-input,
html.theme-light .form-textarea,
html.theme-light .form-modern-input,
html.theme-light .form-modern-select,
html.theme-light .neon-input,
html.theme-light .way-filter-select,
html.theme-light .way-filter-search {
    background: #ffffff !important;
    color: var(--color-text-primary) !important;
    border-color: var(--color-border-default) !important;
}

html.theme-light input::placeholder,
html.theme-light textarea::placeholder,
html.theme-light .form-control::placeholder,
html.theme-light .form-input::placeholder {
    color: var(--color-text-disabled) !important;
}

html.theme-light select option,
html.theme-light .form-select option,
html.theme-light .form-modern-select option {
    background: #ffffff !important;
    color: var(--color-text-primary) !important;
}

html.theme-light .table,
html.theme-light .table td,
html.theme-light .table th,
html.theme-light .list-group-item {
    background: #ffffff !important;
    color: var(--color-text-primary) !important;
    border-color: var(--color-border-subtle) !important;
}

html.theme-light .btn-modern-secondary,
html.theme-light .btn-outline-secondary,
html.theme-light .btn-outline-light,
html.theme-light .way-filter-pill,
html.theme-light .way-view-toggle,
html.theme-light .way-view-btn,
html.theme-light .ct-action-btn,
html.theme-light .crm-itc-btn-edit {
    background: #f8fafc !important;
    color: var(--color-text-primary) !important;
    border-color: var(--color-border-default) !important;
}

html.theme-light .way-filter-pill.active,
html.theme-light .way-view-btn.active,
html.theme-light .navbar-menu-item.active,
html.theme-light .nav-link.active {
    background: rgba(91, 110, 232, 0.12) !important;
    color: var(--brand-primary) !important;
    border-color: rgba(91, 110, 232, 0.28) !important;
}

html.theme-light .btn-modern-primary,
html.theme-light .btn-primary,
html.theme-light .btn-glow,
html.theme-light .navbar-btn,
html.theme-light .topbar-v2-btn,
html.theme-light .ct-btn-add,
html.theme-light .ct-btn-submit,
html.theme-light .modal-btn-save {
    color: #ffffff !important;
}

html.theme-light .badge,
html.theme-light .status-badge,
html.theme-light .badge-status,
html.theme-light .crm-itc-tag,
html.theme-light .crm-itc-priority,
html.theme-light .worker-role-badge {
    color: inherit;
}

html.theme-light .modal .btn-close,
html.theme-light .modal .btn-close-white {
    filter: none !important;
    opacity: 0.82 !important;
}
html.theme-light .modal .btn-close:hover,
html.theme-light .modal .btn-close-white:hover {
    opacity: 1 !important;
}

html.theme-light .glass-card,
html.theme-light .stat-card,
html.theme-light .crm-stats-card,
html.theme-light .finance-summary-card,
html.theme-light .foreman-stat-card {
    background: #ffffff !important;
    border-color: var(--color-border-subtle) !important;
}

html.theme-light .chat-message-own .chat-message-bubble,
html.theme-light .btn-success,
html.theme-light .btn-danger,
html.theme-light .btn-warning,
html.theme-light .btn-info,
html.theme-light .btn-primary,
html.theme-light .badge.bg-primary,
html.theme-light .badge.bg-success,
html.theme-light .badge.bg-danger,
html.theme-light .badge.bg-warning,
html.theme-light .badge.bg-info {
    color: #ffffff !important;
}

/* =========================================================
   ACCOUNT LIGHT THEME — полноценная белая версия кабинетов
   Тёмная тема остаётся без изменений, эти правила работают
   только при html.theme-light.
   ========================================================= */

html.theme-light {
    --account-page-bg: #f4f6fb;
    --account-surface: #ffffff;
    --account-surface-soft: #f8fafc;
    --account-surface-tint: #eef2ff;
    --account-border: #e2e8f0;
    --account-border-strong: #cbd5e1;
    --account-text: #0f172a;
    --account-text-soft: #475569;
    --account-text-muted: #64748b;
    --account-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
    --account-shadow-hover: 0 24px 70px rgba(91, 110, 232, 0.14);
}

html.theme-light body {
    background:
        radial-gradient(circle at 12% 0%, rgba(91, 110, 232, 0.10), transparent 28%),
        radial-gradient(circle at 88% 8%, rgba(16, 185, 129, 0.08), transparent 28%),
        var(--account-page-bg) !important;
}

html.theme-light .owner-app,
html.theme-light .wd-app,
html.theme-light .foreman-page,
html.theme-light .dashboard-container,
html.theme-light .cd-wrap {
    background: transparent !important;
    color: var(--account-text) !important;
}

/* Приветствие и верхние зоны */
html.theme-light .wd-greeting-card,
html.theme-light .foreman-greeting-card,
html.theme-light .cd-greeting-card,
html.theme-light .greeting-card,
html.theme-light .owner-hero,
html.theme-light .project-card-3d {
    background:
        radial-gradient(circle at 90% 0%, rgba(91,110,232,0.14), transparent 34%),
        linear-gradient(145deg, #ffffff, #f8fafc) !important;
    border: 1px solid rgba(91, 110, 232, 0.18) !important;
    box-shadow: var(--account-shadow) !important;
    color: var(--account-text) !important;
}

html.theme-light .wd-greeting-card::before,
html.theme-light .foreman-greeting-card::before,
html.theme-light .cd-greeting-card::before,
html.theme-light .greeting-card::before {
    background: linear-gradient(90deg, #5b6ee8, #8b5cf6, #10b981) !important;
}

html.theme-light .wd-greeting,
html.theme-light .foreman-title,
html.theme-light .cd-greeting-title,
html.theme-light .greeting-title,
html.theme-light .greeting-name,
html.theme-light .project-title {
    background: linear-gradient(135deg, #0f172a 0%, #4338ca 58%, #5b6ee8 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

html.theme-light .wd-subtitle,
html.theme-light .wd-welcome-meta,
html.theme-light .foreman-subtitle,
html.theme-light .foreman-welcome-meta,
html.theme-light .cd-greeting-sub,
html.theme-light .greeting-subtitle,
html.theme-light .greeting-meta,
html.theme-light .project-address,
html.theme-light .metric-label {
    color: var(--account-text-muted) !important;
}

html.theme-light .wd-company-badge,
html.theme-light .foreman-company-badge,
html.theme-light .project-status-badge,
html.theme-light .topbar-v2-avatar {
    background: #eef2ff !important;
    border-color: #dbe4ff !important;
    color: #4338ca !important;
}

/* Карточки кабинетов */
html.theme-light .wd-qs-card,
html.theme-light .wd-earn-banner,
html.theme-light .wd-obj-card,
html.theme-light .wd-task-card,
html.theme-light .wd-report-card,
html.theme-light .wd-photo-card,
html.theme-light .foreman-stat-card,
html.theme-light .foreman-panel-header,
html.theme-light .foreman-object-card,
html.theme-light .foreman-stage-card,
html.theme-light .foreman-operation-item,
html.theme-light .foreman-report-card,
html.theme-light .foreman-worker-card,
html.theme-light .foreman-empty,
html.theme-light .foreman-loading,
html.theme-light .cd-stat-card,
html.theme-light .cd-card,
html.theme-light .cd-profile-card,
html.theme-light .cd-action-card,
html.theme-light .cd-expense-row,
html.theme-light .cd-obj-row,
html.theme-light .co-member,
html.theme-light .briefing-detail,
html.theme-light .briefing-ok,
html.theme-light .pending-card,
html.theme-light .stat-card,
html.theme-light .action-card,
html.theme-light .task-card,
html.theme-light .lead-card,
html.theme-light .dashboard-card,
html.theme-light .owner-card,
html.theme-light .project-card-3d,
html.theme-light .hero-metric,
html.theme-light .stage-dot-circle,
html.theme-light .owner-section,
html.theme-light .owner-widget,
html.theme-light .finance-card,
html.theme-light .object-card,
html.theme-light .object-detail-card {
    background: var(--account-surface) !important;
    border-color: var(--account-border) !important;
    box-shadow: var(--account-shadow) !important;
    color: var(--account-text) !important;
}

html.theme-light .wd-qs-card:hover,
html.theme-light .wd-earn-banner:hover,
html.theme-light .wd-obj-card:hover,
html.theme-light .foreman-stat-card:hover,
html.theme-light .foreman-object-card:hover,
html.theme-light .foreman-stage-card:hover,
html.theme-light .cd-stat-card:hover,
html.theme-light .cd-action-card:hover,
html.theme-light .cd-obj-row:hover,
html.theme-light .stat-card:hover,
html.theme-light .action-card:hover,
html.theme-light .task-card:hover,
html.theme-light .lead-card:hover,
html.theme-light .project-card-3d:hover {
    border-color: rgba(91, 110, 232, 0.32) !important;
    box-shadow: var(--account-shadow-hover) !important;
}

/* Заголовки и основной текст внутри аккаунтов */
html.theme-light .wd-section-title,
html.theme-light .wd-qs-val,
html.theme-light .wd-earn-banner-title,
html.theme-light .wd-earn-banner-amount,
html.theme-light .wd-obj-title,
html.theme-light .wd-obj-info-value,
html.theme-light .foreman-section-title,
html.theme-light .foreman-stat-value,
html.theme-light .foreman-object-title,
html.theme-light .foreman-stage-title,
html.theme-light .foreman-operation-desc,
html.theme-light .cd-screen-divider-title,
html.theme-light .cd-stat-value,
html.theme-light .cd-profile-name,
html.theme-light .cd-card-title,
html.theme-light .cd-action-label,
html.theme-light .cd-expense-desc,
html.theme-light .cd-obj-row-title,
html.theme-light .co-member-name,
html.theme-light .pending-card-name,
html.theme-light .briefing-detail-title,
html.theme-light .stat-value,
html.theme-light .stat-label,
html.theme-light .action-title,
html.theme-light .task-title,
html.theme-light .lead-title,
html.theme-light .dashboard-title,
html.theme-light .metric-ring .ring-value,
html.theme-light .stage-dot-label {
    color: var(--account-text) !important;
}

html.theme-light .wd-qs-lbl,
html.theme-light .wd-earn-banner-sub,
html.theme-light .wd-earn-mini-lbl,
html.theme-light .wd-obj-address,
html.theme-light .wd-obj-meta,
html.theme-light .wd-obj-budget-text,
html.theme-light .foreman-stat-label,
html.theme-light .foreman-object-address,
html.theme-light .foreman-object-meta-item,
html.theme-light .foreman-budget-text,
html.theme-light .foreman-operation-meta,
html.theme-light .cd-screen-divider-sub,
html.theme-light .cd-stat-label,
html.theme-light .cd-profile-meta,
html.theme-light .cd-expense-meta,
html.theme-light .cd-obj-row-sub,
html.theme-light .co-member-role,
html.theme-light .briefing-detail-meta,
html.theme-light .task-meta,
html.theme-light .lead-meta,
html.theme-light .dashboard-subtitle {
    color: var(--account-text-muted) !important;
}

/* Руководитель: виджет «Ваш прогресс» (светлая тема) */
html.theme-light .cd-onboarding-pct {
    color: #4338ca !important;
}
html.theme-light .cd-onboarding-track {
    background: #e2e8f0 !important;
    border-color: #cbd5e1 !important;
}
html.theme-light .cd-onboarding-step {
    background: #f8fafc !important;
    border-color: rgba(99, 102, 241, 0.24) !important;
}
html.theme-light .cd-onboarding-title {
    color: #0f172a !important;
}
html.theme-light .cd-onboarding-desc {
    color: #64748b !important;
}
html.theme-light a.cd-onboarding-action {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}
html.theme-light .cd-onboarding-link-all {
    color: #4338ca !important;
}
html.theme-light .cd-onboarding-dismiss {
    color: #64748b !important;
}

/* Вкладки, фильтры, поля */
html.theme-light .foreman-tabs,
html.theme-light .foreman-tab,
html.theme-light .wd-hero-actions,
html.theme-light .wd-quick-btn,
html.theme-light .wd-hero-chat-select,
html.theme-light .foreman-select,
html.theme-light .foreman-input,
html.theme-light .cd-actions-grid,
html.theme-light .obj-filter,
html.theme-light .way-filter-pill,
html.theme-light .filter-pill,
html.theme-light .search-input,
html.theme-light .dashboard-filter,
html.theme-light .form-control,
html.theme-light .form-select,
html.theme-light .neon-input {
    background: var(--account-surface-soft) !important;
    color: var(--account-text) !important;
    border-color: var(--account-border) !important;
}

html.theme-light .foreman-tab:hover,
html.theme-light .wd-quick-btn:hover,
html.theme-light .obj-filter:hover,
html.theme-light .way-filter-pill:hover,
html.theme-light .filter-pill:hover {
    background: #eef2ff !important;
    color: #4338ca !important;
    border-color: rgba(91, 110, 232, 0.28) !important;
}

html.theme-light .foreman-tab.active,
html.theme-light .obj-filter.active,
html.theme-light .way-filter-pill.active,
html.theme-light .filter-pill.active {
    background: linear-gradient(135deg, #5b6ee8, #7c5bb8) !important;
    color: #ffffff !important;
    border-color: transparent !important;
    box-shadow: 0 10px 26px rgba(91, 110, 232, 0.22) !important;
}

/* Прогресс и служебные линии */
html.theme-light .wd-obj-progress,
html.theme-light .foreman-budget-bar,
html.theme-light .cd-obj-row-progress,
html.theme-light .stages-track,
html.theme-light .stage-dot-circle,
html.theme-light .progress,
html.theme-light .progress-track {
    background: #e2e8f0 !important;
    border-color: #dbe4f0 !important;
}

html.theme-light .cd-screen-divider-line,
html.theme-light .briefing-detail,
html.theme-light .modal-header,
html.theme-light .modal-footer,
html.theme-light .review-author,
html.theme-light .card-header {
    border-color: var(--account-border) !important;
}

/* Модалки аккаунтов */
html.theme-light .modal-content,
html.theme-light .foreman-modal,
html.theme-light .occ-modal,
html.theme-light .crm-task-modal {
    background: #ffffff !important;
    color: var(--account-text) !important;
    border-color: var(--account-border) !important;
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.18) !important;
}

/* OCC / modal-dark: в design-system у .modal-body фон #141418 — поднимаем для светлой темы */
html.theme-light .occ-modal .modal-content,
html.theme-light .modal-dark .modal-content {
    background: #ffffff !important;
    color: #0f172a !important;
    border-color: var(--account-border) !important;
}

html.theme-light .occ-modal .modal-header,
html.theme-light .modal-dark .modal-header {
    background: linear-gradient(180deg, #ffffff, #f8fafc) !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

html.theme-light .occ-modal .modal-title,
html.theme-light .modal-dark .modal-title {
    color: #0f172a !important;
}

html.theme-light .occ-modal .modal-title i,
html.theme-light .modal-dark .modal-title i {
    color: #4f46e5 !important;
}

html.theme-light .occ-modal .modal-body,
html.theme-light .modal-dark .modal-body {
    background: #ffffff !important;
    color: #0f172a !important;
}

html.theme-light .occ-modal .modal-footer,
html.theme-light .modal-dark .modal-footer {
    background: #ffffff !important;
    border-top: 1px solid #e2e8f0 !important;
}

html.theme-light .occ-modal .form-group label,
html.theme-light .modal-dark .form-group label,
html.theme-light .occ-modal .form-label,
html.theme-light .modal-dark .form-label {
    color: #475569 !important;
}

html.theme-light .occ-modal .form-input,
html.theme-light .occ-modal input[type="number"],
html.theme-light .occ-modal input[type="text"],
html.theme-light .occ-modal input[type="date"],
html.theme-light .occ-modal .form-select,
html.theme-light .occ-modal select,
html.theme-light .occ-modal .form-textarea,
html.theme-light .occ-modal textarea,
html.theme-light .modal-dark .form-input,
html.theme-light .modal-dark input[type="date"],
html.theme-light .modal-dark .form-select,
html.theme-light .modal-dark textarea {
    background: #ffffff !important;
    color: #0f172a !important;
    border-color: #e2e8f0 !important;
    color-scheme: light !important;
}

html.theme-light .occ-modal .form-select option,
html.theme-light .occ-modal select option,
html.theme-light .modal-dark .form-select option,
html.theme-light .modal-dark select option {
    background: #ffffff !important;
    color: #0f172a !important;
}

html.theme-light .occ-modal .form-input::placeholder,
html.theme-light .occ-modal input::placeholder,
html.theme-light .occ-modal textarea::placeholder,
html.theme-light .modal-dark .form-input::placeholder,
html.theme-light .modal-dark textarea::placeholder {
    color: #94a3b8 !important;
}

html.theme-light .occ-modal .modal-body::-webkit-scrollbar-thumb,
html.theme-light .modal-dark .modal-body::-webkit-scrollbar-thumb {
    background: #cbd5e1 !important;
}

html.theme-light .modal-body,
html.theme-light .modal-title,
html.theme-light .modal label {
    color: var(--account-text) !important;
}

/* Сохраняем читаемость цветных CTA */
html.theme-light .wd-hero-chat,
html.theme-light .btn-modern-primary,
html.theme-light .btn-modern-accent,
html.theme-light .cd-new-lead-btn,
html.theme-light .pending-btn.accept,
html.theme-light .foreman-request-btn.approve,
html.theme-light .foreman-request-btn.reject,
html.theme-light .navbar-btn,
html.theme-light .topbar-v2-btn {
    color: #ffffff !important;
}

/* Inline dark onboarding blocks внутри шаблонов */
html.theme-light #workerOnboarding,
html.theme-light #foremanOnboarding {
    background: linear-gradient(145deg, #ffffff, #f8fafc) !important;
    border-color: rgba(16, 185, 129, 0.24) !important;
    box-shadow: var(--account-shadow) !important;
}

html.theme-light #workerOnboarding [style*="color:#fff"],
html.theme-light #workerOnboarding [style*="color:#e0e0e0"],
html.theme-light #foremanOnboarding [style*="color:#fff"],
html.theme-light #foremanOnboarding [style*="color:#e0e0e0"] {
    color: var(--account-text) !important;
}

html.theme-light #workerOnboarding [style*="color:#666"],
html.theme-light #foremanOnboarding [style*="color:#666"],
html.theme-light #foremanOnboarding [style*="color:#888"] {
    color: var(--account-text-muted) !important;
}

/* Final light theme polish across account product surfaces */
html.theme-light .owner-app,
html.theme-light .owner-dashboard,
html.theme-light .owner-dashboard-v2,
html.theme-light .project-detail,
html.theme-light .object-page,
html.theme-light .dream-constructor,
html.theme-light .dc2-page,
html.theme-light .company-crm,
html.theme-light .cc-page,
html.theme-light .university-page,
html.theme-light .course-page,
html.theme-light .academy-page {
    background: #f7f9fc !important;
    color: #0f172a !important;
}

html.theme-light .service-card,
html.theme-light .services-card,
html.theme-light .academy-card,
html.theme-light .academy-hero,
html.theme-light .course-card,
html.theme-light .course-stat-card,
html.theme-light .course-progress-section,
html.theme-light .progress-hero,
html.theme-light .dream-constructor-card,
html.theme-light .dream-card-v2,
html.theme-light .dream-constructor-standalone,
html.theme-light .dc2-card,
html.theme-light .dc2-option,
html.theme-light .dc2-budget-card,
html.theme-light .dc2-budget-single,
html.theme-light .cc-card,
html.theme-light .cc-lead-card,
html.theme-light .cc-column,
html.theme-light .project-card-3d,
html.theme-light .finance-hero-card,
html.theme-light .hero-card,
html.theme-light .budget-progress-card,
html.theme-light .status-card,
html.theme-light .section-card,
html.theme-light .team-member,
html.theme-light .team-member-card,
html.theme-light .member-card,
html.theme-light .course-list-item,
html.theme-light .lesson-card,
html.theme-light .stat-card,
html.theme-light .action-card,
html.theme-light .action-card-large,
html.theme-light .team-card-v2,
html.theme-light .contractor-rating-card,
html.theme-light .task-card,
html.theme-light .lead-card {
    background: linear-gradient(145deg, #ffffff, #f8fafc) !important;
    border-color: #dbe4f0 !important;
    color: #0f172a !important;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08) !important;
}

/* Дашборд заказчика v2: подписи на карточках (в тёмной теме label/hint заданы явно) */
html.theme-light .owner-app .action-card-large .action-label {
    color: #0f172a !important;
}
html.theme-light .owner-app .action-card-large .action-hint {
    color: #64748b !important;
}
html.theme-light .owner-app .team-card-v2 .team-name-v2 {
    color: #0f172a !important;
}
html.theme-light .owner-app .team-card-v2 .team-role-v2 {
    color: #5b21b6 !important;
}
html.theme-light .owner-app .contractor-rating-card .rating-count,
html.theme-light .owner-app .contractor-rating-card .foreman-label {
    color: #64748b !important;
}
html.theme-light .owner-app .contractor-rating-card .foreman-name {
    color: #0f172a !important;
}
html.theme-light .owner-app .contractor-rating-card .rating-foreman {
    border-left-color: #e2e8f0 !important;
}
html.theme-light .owner-app .contractor-rating-section .section-header-v2 h3 {
    color: #0f172a !important;
}

/* --- Дашборд заказчика: отзыв (neon-review), удовлетворённость, конструктор v2, академия --- */
html.theme-light .owner-app .review-prompt-card.neon-review {
    background: linear-gradient(145deg, #ffffff, #f8fafc) !important;
    border-color: rgba(139, 92, 246, 0.28) !important;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08) !important;
}
html.theme-light .owner-app .neon-review-glow {
    opacity: 0.06 !important;
}
html.theme-light .owner-app .neon-review .review-prompt-header h4 {
    color: #0f172a !important;
}
html.theme-light .owner-app .neon-review .review-prompt-header p {
    color: #64748b !important;
}
html.theme-light .owner-app .neon-review .review-star {
    color: rgba(139, 92, 246, 0.35) !important;
}
html.theme-light .owner-app .neon-review .review-star.active,
html.theme-light .owner-app .neon-review .review-star:hover {
    color: #d97706 !important;
}
html.theme-light .owner-app #reviewComment {
    background: #ffffff !important;
    border-color: rgba(139, 92, 246, 0.35) !important;
    color: #0f172a !important;
}
html.theme-light .owner-app .btn-submit-review.neon-submit {
    background: linear-gradient(135deg, #7c3aed, #6366f1) !important;
    color: #ffffff !important;
    border-color: rgba(99, 102, 241, 0.45) !important;
}

html.theme-light .owner-app .satisfaction-card.neon-satisfaction {
    background: linear-gradient(145deg, #fffbeb, #ffffff) !important;
    border-color: rgba(245, 158, 11, 0.35) !important;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.06) !important;
}
html.theme-light .owner-app .neon-satisfaction-glow {
    opacity: 0.08 !important;
}
html.theme-light .owner-app .neon-satisfaction .satisfaction-header h3 {
    color: #0f172a !important;
}
html.theme-light .owner-app .neon-satisfaction .star-btn {
    color: rgba(245, 158, 11, 0.35) !important;
}
html.theme-light .owner-app .neon-satisfaction .star-btn.active,
html.theme-light .owner-app .neon-satisfaction .star-btn:hover {
    color: #d97706 !important;
}
html.theme-light .owner-app .neon-satisfaction .satisfaction-hint {
    color: #64748b !important;
}

html.theme-light .owner-app .dream-card-v2 {
    border-color: rgba(139, 92, 246, 0.22) !important;
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.08) !important;
}
html.theme-light .owner-app .dream-card-v2-bg {
    background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 42%, #faf5ff 100%) !important;
}
html.theme-light .owner-app .dream-card-v2-bg::before,
html.theme-light .owner-app .dream-card-v2-bg::after {
    opacity: 0.45 !important;
}
html.theme-light .owner-app .dream-card-v2-title {
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a !important;
}
html.theme-light .owner-app .dream-card-v2-desc {
    color: #475569 !important;
}
html.theme-light .owner-app .dream-feat {
    color: #334155 !important;
}
html.theme-light .owner-app .dream-feat i {
    color: #7c3aed !important;
}
html.theme-light .owner-app .dream-card-v2-btn,
html.theme-light .owner-app .dream-card-v2-btn i {
    color: #ffffff !important;
}

html.theme-light .owner-app .academy-promo-banner {
    background: linear-gradient(135deg, #eef2ff 0%, #f5f3ff 45%, #fdf2f8 100%) !important;
    border-color: rgba(139, 92, 246, 0.22) !important;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.06) !important;
}
html.theme-light .owner-app .academy-promo-title {
    color: #0f172a !important;
}
html.theme-light .owner-app .academy-promo-desc {
    color: #475569 !important;
}
html.theme-light .owner-app .academy-promo-badge {
    background: rgba(16, 185, 129, 0.12) !important;
    border-color: rgba(16, 185, 129, 0.35) !important;
    color: #047857 !important;
}
html.theme-light .owner-app .aps-value {
    color: #0f172a !important;
}
html.theme-light .owner-app .aps-label {
    color: #64748b !important;
}
html.theme-light .owner-app .academy-course-chip {
    background: linear-gradient(145deg, #ffffff, #f8fafc) !important;
    border-color: #e2e8f0 !important;
}
html.theme-light .owner-app .acc-title {
    color: #0f172a !important;
}
html.theme-light .owner-app .acc-meta {
    color: #64748b !important;
}
html.theme-light .owner-app .acc-arrow {
    color: #94a3b8 !important;
}
html.theme-light .owner-app .academy-cta-btn {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(99, 102, 241, 0.08)) !important;
    border-color: rgba(139, 92, 246, 0.28) !important;
    color: #5b21b6 !important;
}
html.theme-light .owner-app .academy-cta-btn:hover {
    color: #4c1d95 !important;
}

html.theme-light .owner-app .platform-actions .action-card-large {
    background: linear-gradient(145deg, #ffffff, #f8fafc) !important;
    border-color: #dbe4f0 !important;
    color: #0f172a !important;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08) !important;
}
html.theme-light .owner-app .platform-actions .action-card-large .action-label {
    color: #0f172a !important;
}
html.theme-light .owner-app .platform-actions .action-card-large .action-hint {
    color: #64748b !important;
}

/* --- Академия WAY: страницы /owner/university и курс --- */
html.theme-light .academy-page .back-btn,
html.theme-light .course-page .back-btn {
    background: rgba(15, 23, 42, 0.05) !important;
    border-color: rgba(15, 23, 42, 0.1) !important;
    color: #475569 !important;
}
html.theme-light .academy-page .back-btn:hover,
html.theme-light .course-page .back-btn:hover {
    color: #0f172a !important;
    background: rgba(99, 102, 241, 0.08) !important;
}
html.theme-light .academy-page .academy-hero,
html.theme-light .course-page .course-header {
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 38%, #fae8ff 100%) !important;
}
html.theme-light .academy-page .hero-badge,
html.theme-light .course-page .hero-badge {
    background: rgba(139, 92, 246, 0.12) !important;
    border-color: rgba(139, 92, 246, 0.25) !important;
    color: #5b21b6 !important;
}
html.theme-light .academy-page .hero-title,
html.theme-light .course-page .course-title {
    color: #0f172a !important;
}
html.theme-light .academy-page .hero-title-accent {
    background: linear-gradient(135deg, #4f46e5, #7c3aed, #a855f7) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: transparent !important;
}
html.theme-light .academy-page .hero-subtitle,
html.theme-light .course-page .course-desc {
    color: #475569 !important;
}
html.theme-light .academy-page .gami-panel,
html.theme-light .course-page .progress-card {
    background: linear-gradient(145deg, #ffffff, #f8fafc) !important;
    border-color: #e2e8f0 !important;
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.08) !important;
}
html.theme-light .academy-page .gami-stat:hover,
html.theme-light .course-page .gami-stat:hover {
    background: rgba(99, 102, 241, 0.06) !important;
}
html.theme-light .academy-page .gami-stat-val,
html.theme-light .course-page .gami-stat-val {
    color: #0f172a !important;
}
html.theme-light .academy-page .gami-xp-val,
html.theme-light .course-page .progress-value {
    color: #5b21b6 !important;
}
html.theme-light .academy-page .gami-stat-label,
html.theme-light .course-page .gami-stat-label,
html.theme-light .course-page .progress-label {
    color: #64748b !important;
}
html.theme-light .academy-page .gami-xp-label {
    color: #64748b !important;
}
html.theme-light .academy-page .gami-xp-track,
html.theme-light .course-page .progress-bar {
    background: #e2e8f0 !important;
}
html.theme-light .academy-page .ach-card,
html.theme-light .academy-page .path-card,
html.theme-light .academy-page .tip-card,
html.theme-light .course-page .lesson-card {
    background: linear-gradient(145deg, #ffffff, #f8fafc) !important;
    border-color: #e2e8f0 !important;
}
html.theme-light .academy-page .path-card-bottom {
    background: rgba(248, 250, 252, 0.95) !important;
    border-top-color: #e2e8f0 !important;
}
html.theme-light .academy-page .ach-title,
html.theme-light .academy-page .path-title,
html.theme-light .academy-page .tip-title,
html.theme-light .course-page .lesson-title {
    color: #0f172a !important;
}
html.theme-light .academy-page .ach-desc,
html.theme-light .academy-page .path-desc,
html.theme-light .academy-page .path-meta-item,
html.theme-light .academy-page .tip-text,
html.theme-light .course-page .lesson-meta {
    color: #64748b !important;
}
html.theme-light .academy-page .path-progress-track {
    background: #e2e8f0 !important;
}
html.theme-light .academy-page .path-arrow {
    color: #94a3b8 !important;
}
html.theme-light .academy-page .section-subtitle {
    color: #64748b !important;
}
html.theme-light .course-page .section-title {
    color: #0f172a !important;
}
html.theme-light .course-page .progress-stat-item {
    color: #64748b !important;
}
html.theme-light .course-page .lesson-card:hover {
    background: #ffffff !important;
    border-color: rgba(139, 92, 246, 0.35) !important;
}
html.theme-light .course-page .lesson-card.active {
    background: #f5f3ff !important;
}
html.theme-light .course-page .lesson-card:not(.completed) .lesson-status {
    color: #94a3b8 !important;
}

html.theme-light .course-page .lesson-modal-overlay {
    background: rgba(15, 23, 42, 0.45) !important;
}
html.theme-light .course-page .lesson-modal-close {
    background: #f1f5f9 !important;
    border-color: #e2e8f0 !important;
    color: #0f172a !important;
}
html.theme-light .course-page .lesson-modal-title {
    color: #0f172a !important;
}
html.theme-light .course-page .lesson-modal-duration {
    color: #64748b !important;
}
html.theme-light .course-page .lesson-modal-content {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
}
html.theme-light .course-page .lesson-modal-content p,
html.theme-light .course-page .lesson-modal-content ul,
html.theme-light .course-page .lesson-modal-content ol,
html.theme-light .course-page .lesson-modal-content li {
    color: #334155 !important;
}
html.theme-light .course-page .lesson-modal-content h3 {
    color: #5b21b6 !important;
}
html.theme-light .course-page .lesson-modal-content strong {
    color: #0f172a !important;
}
html.theme-light .course-page .lesson-modal-content .lead {
    color: #475569 !important;
}
html.theme-light .course-page .lesson-modal-content .way-quote {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08), rgba(99, 102, 241, 0.06)) !important;
    border-color: rgba(139, 92, 246, 0.25) !important;
    color: #5b21b6 !important;
}

html.theme-light .course-page .quiz-section {
    background: linear-gradient(145deg, #ffffff, #f8fafc) !important;
    border-color: #e2e8f0 !important;
}
html.theme-light .course-page .quiz-header-title {
    color: #0f172a !important;
}
html.theme-light .course-page .quiz-header-sub {
    color: #64748b !important;
}
html.theme-light .course-page .quiz-dot {
    background: #e2e8f0 !important;
}
html.theme-light .course-page .quiz-q-text {
    color: #0f172a !important;
}
html.theme-light .course-page .quiz-answer {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
    color: #334155 !important;
}
html.theme-light .course-page .quiz-answer:hover:not(.disabled) {
    background: #f5f3ff !important;
    border-color: rgba(139, 92, 246, 0.45) !important;
}
html.theme-light .course-page .quiz-answer.selected {
    background: rgba(139, 92, 246, 0.1) !important;
    border-color: #8b5cf6 !important;
    color: #0f172a !important;
}
html.theme-light .course-page .quiz-answer.correct {
    background: rgba(16, 185, 129, 0.12) !important;
    border-color: #10b981 !important;
    color: #047857 !important;
}
html.theme-light .course-page .quiz-answer.wrong {
    background: rgba(239, 68, 68, 0.1) !important;
    border-color: #ef4444 !important;
    color: #b91c1c !important;
}
html.theme-light .course-page .quiz-answer-letter {
    background: #e2e8f0 !important;
    color: #475569 !important;
}
html.theme-light .course-page .quiz-explanation {
    background: rgba(139, 92, 246, 0.08) !important;
    border-color: rgba(139, 92, 246, 0.25) !important;
    color: #5b21b6 !important;
}
html.theme-light .course-page .quiz-results-title {
    color: #0f172a !important;
}
html.theme-light .course-page .quiz-results-score {
    color: #5b21b6 !important;
}
html.theme-light .course-page .quiz-results-xp {
    color: #b45309 !important;
}
html.theme-light .course-page .quiz-results-bar {
    background: #e2e8f0 !important;
}
html.theme-light #achPopup.ach-popup,
html.theme-light .ach-popup#achPopup {
    background: linear-gradient(145deg, #ffffff, #f8fafc) !important;
    border-color: rgba(139, 92, 246, 0.3) !important;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18) !important;
}
html.theme-light #achPopup .ach-popup-title {
    color: #0f172a !important;
}
html.theme-light #achPopup .ach-popup-desc {
    color: #64748b !important;
}
html.theme-light #achPopup .ach-popup-close {
    background: rgba(139, 92, 246, 0.1) !important;
    border-color: rgba(139, 92, 246, 0.28) !important;
    color: #5b21b6 !important;
}
html.theme-light .course-page .btn-next-lesson {
    background: #f1f5f9 !important;
    border-color: #e2e8f0 !important;
    color: #0f172a !important;
}

/* --- Карточка объекта заказчика: табы, метрики, галерея, of-* (финансы в табе) --- */
html.theme-light .project-detail {
    background: #f7f9fc !important;
    color: #0f172a !important;
}
html.theme-light .project-detail .project-header {
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 45%, #faf5ff 100%) !important;
}
html.theme-light .project-detail .back-link {
    background: rgba(15, 23, 42, 0.05) !important;
    border-color: rgba(15, 23, 42, 0.1) !important;
    color: #475569 !important;
}
html.theme-light .project-detail .back-link:hover {
    color: #0f172a !important;
    background: rgba(99, 102, 241, 0.08) !important;
}
html.theme-light .project-detail .project-name,
html.theme-light .project-detail .project-name i {
    color: #0f172a !important;
}
html.theme-light .project-detail .project-address {
    color: #64748b !important;
}
html.theme-light .project-detail .status-card {
    background: linear-gradient(145deg, #ffffff, #f8fafc) !important;
    border-color: #e2e8f0 !important;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08) !important;
}
html.theme-light .project-detail .stat-box {
    background: linear-gradient(145deg, #ffffff, #f8fafc) !important;
    border-color: #e2e8f0 !important;
}
html.theme-light .project-detail .stat-value {
    color: #0f172a !important;
}
html.theme-light .project-detail .stat-label {
    color: #64748b !important;
}
html.theme-light .project-detail .tabs-container {
    background: linear-gradient(to bottom, #f7f9fc 70%, rgba(247, 249, 252, 0)) !important;
}
html.theme-light .project-detail .tab-btn {
    color: #475569 !important;
}
html.theme-light .project-detail .tab-btn.active {
    color: #ffffff !important;
}
html.theme-light .project-detail .section-title {
    color: #0f172a !important;
}
html.theme-light .project-detail .gallery-view-switcher {
    background: rgba(15, 23, 42, 0.04) !important;
    border-color: #e2e8f0 !important;
}
html.theme-light .project-detail .gallery-view-tab.active {
    color: #5b21b6 !important;
}
html.theme-light .project-detail .gallery-view-tab:not(.active) {
    color: #64748b !important;
}
html.theme-light .project-detail .team-member,
html.theme-light .project-detail .stage-item,
html.theme-light .project-detail .stage-card,
html.theme-light .project-detail .task-item,
html.theme-light .project-detail .finance-hero-card {
    background: linear-gradient(145deg, #ffffff, #f8fafc) !important;
    border-color: #e2e8f0 !important;
}
html.theme-light .project-detail .member-name,
html.theme-light .project-detail .stage-name,
html.theme-light .project-detail .stage-card-name,
html.theme-light .project-detail .task-title,
html.theme-light .project-detail .finance-hero-value {
    color: #0f172a !important;
}
html.theme-light .project-detail .member-role,
html.theme-light .project-detail .stage-card-meta,
html.theme-light .project-detail .task-meta,
html.theme-light .project-detail .finance-hero-label,
html.theme-light .project-detail .stage-dates {
    color: #64748b !important;
}
html.theme-light .project-detail .budget-progress-title {
    color: #0f172a !important;
}
html.theme-light .project-detail .budget-progress-labels {
    color: #64748b !important;
}
html.theme-light .project-detail .of-section {
    background: linear-gradient(145deg, #ffffff, #f8fafc) !important;
    border-color: #e2e8f0 !important;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06) !important;
}
html.theme-light .project-detail .of-section-title {
    color: #0f172a !important;
}
html.theme-light .project-detail .of-hero-val {
    color: #0f172a !important;
}
html.theme-light .project-detail .of-hero--purple .of-hero-val {
    color: #4338ca !important;
}
html.theme-light .project-detail .of-hero--green .of-hero-val {
    color: #047857 !important;
}
html.theme-light .project-detail .of-hero--amber .of-hero-val {
    color: #b45309 !important;
}
html.theme-light .project-detail .of-hero-lbl {
    color: #64748b !important;
}
html.theme-light .project-detail .of-progress-wrap {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
}
html.theme-light .project-detail .of-progress-title {
    color: #334155 !important;
}
html.theme-light .project-detail .of-progress-labels {
    color: #64748b !important;
}
html.theme-light .project-detail .of-progress-track {
    background: #e2e8f0 !important;
}
html.theme-light .project-detail .of-section-badge--red {
    color: #b91c1c !important;
}
html.theme-light .project-detail .task-checkbox {
    border-color: #cbd5e1 !important;
}

/* --- WAY Life V3 (дашборд заказчика, dashboard-bottom-v3) --- */
html.theme-light .owner-app .waylife-v3 .wl3-hero {
    border-color: rgba(236, 72, 153, 0.22) !important;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06) !important;
}
html.theme-light .owner-app .waylife-v3 .wl3-hero-content {
    background: linear-gradient(180deg, #fafafa 0%, #f1f5f9 100%) !important;
    border-top: 1px solid #e2e8f0;
}
html.theme-light .owner-app .waylife-v3 .wl3-hero-title {
    color: #0f172a !important;
}
html.theme-light .owner-app .waylife-v3 .wl3-hero-desc {
    color: #475569 !important;
}
html.theme-light .owner-app .waylife-v3 .wl3-hero-meta {
    color: #64748b !important;
}
html.theme-light .owner-app .waylife-v3 .wl3-hero-badge {
    background: rgba(236, 72, 153, 0.12) !important;
    color: #be185d !important;
}
html.theme-light .owner-app .waylife-v3 .wl3-read-link {
    color: #db2777 !important;
}

html.theme-light .owner-app .waylife-v3 .wl3-card {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06) !important;
}
html.theme-light .owner-app .waylife-v3 .wl3-card:hover {
    border-color: rgba(236, 72, 153, 0.35) !important;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1) !important;
}
html.theme-light .owner-app .waylife-v3 .wl3-card-title {
    color: #0f172a !important;
}
html.theme-light .owner-app .waylife-v3 .wl3-card-footer {
    color: #64748b !important;
}
html.theme-light .owner-app .waylife-v3 .wl3-card-footer .wl3-read-link {
    color: #db2777 !important;
}

html.theme-light .service-card *,
html.theme-light .academy-card *,
html.theme-light .course-card *,
html.theme-light .course-stat-card *,
html.theme-light .dream-constructor-card *,
html.theme-light .dream-card-v2 *,
html.theme-light .dc2-card *,
html.theme-light .dc2-option *,
html.theme-light .cc-card *,
html.theme-light .cc-lead-card *,
html.theme-light .project-card-3d *,
html.theme-light .status-card *,
html.theme-light .section-card *,
html.theme-light .team-member *,
html.theme-light .member-card * {
    color: inherit;
}

html.theme-light .service-card h3,
html.theme-light .academy-card h3,
html.theme-light .course-title,
html.theme-light .course-header h1,
html.theme-light .dream-info h3,
html.theme-light .dc2-title,
html.theme-light .dc2-budget-name,
html.theme-light .cc-lead-title,
html.theme-light .project-name,
html.theme-light .team-member-name,
html.theme-light .member-name {
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a !important;
}

html.theme-light .service-card p,
html.theme-light .academy-card p,
html.theme-light .course-description,
html.theme-light .course-meta,
html.theme-light .dream-info p,
html.theme-light .dc2-desc,
html.theme-light .dc2-budget-desc,
html.theme-light .cc-lead-meta,
html.theme-light .project-address,
html.theme-light .team-member-role,
html.theme-light .member-role {
    color: #64748b !important;
}

html.theme-light .project-card-3d,
html.theme-light .object-card,
html.theme-light .owner-object-card,
html.theme-light .repair-card,
html.theme-light .dream-constructor-card,
html.theme-light .service-card {
    transform: none !important;
    rotate: none !important;
    perspective: none !important;
}

html.theme-light .project-card-3d:hover,
html.theme-light .object-card:hover,
html.theme-light .owner-object-card:hover,
html.theme-light .repair-card:hover,
html.theme-light .dream-constructor-card:hover,
html.theme-light .service-card:hover {
    transform: translateY(-2px) !important;
}

html.theme-light .progress-fill,
html.theme-light .budget-progress-fill,
html.theme-light .course-progress-fill,
html.theme-light .dc-progress-fill,
html.theme-light .dc2-progress-fill,
html.theme-light .stage-progress-fill,
html.theme-light .project-card-3d *,
html.theme-light .finance-hero-card::before,
html.theme-light .hero-card::before,
html.theme-light .budget-progress-card::before {
    animation: none !important;
    transition-duration: 0.01ms !important;
}

html.theme-light .hero-stat,
html.theme-light .project-stat,
html.theme-light .status-pill,
html.theme-light .progress-status,
html.theme-light .budget-status,
html.theme-light .course-status-badge,
html.theme-light .stage-status,
html.theme-light .status-badge {
    background: #eef2ff !important;
    border-color: #c7d2fe !important;
    color: #3730a3 !important;
    box-shadow: none !important;
}

html.theme-light [style*="background:#111"],
html.theme-light [style*="background: #111"],
html.theme-light [style*="background:#1a1a2e"],
html.theme-light [style*="background: #1a1a2e"],
html.theme-light [style*="background:linear-gradient(145deg,rgba(30,30,35"],
html.theme-light [style*="background: linear-gradient(145deg,rgba(30,30,35"],
html.theme-light [style*="background:linear-gradient(145deg, rgba(30,30,35"],
html.theme-light [style*="background:rgba(0,0,0"],
html.theme-light [style*="background: rgba(0,0,0"] {
    background: #ffffff !important;
    border-color: #dbe4f0 !important;
    color: #0f172a !important;
}

html.theme-light [style*="color:#fff"],
html.theme-light [style*="color: #fff"],
html.theme-light [style*="color:#e0e0e0"],
html.theme-light [style*="color:#ccc"],
html.theme-light [style*="color:#888"],
html.theme-light [style*="color:#666"],
html.theme-light [style*="color:rgba(255,255,255"] {
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a !important;
}

@media (max-width: 768px) {
    html.theme-light .services-grid,
    html.theme-light .courses-grid,
    html.theme-light .dc2-grid,
    html.theme-light .cc-grid {
        grid-template-columns: 1fr !important;
    }
    html.theme-light .service-card,
    html.theme-light .academy-card,
    html.theme-light .course-card,
    html.theme-light .dream-constructor-card,
    html.theme-light .project-card-3d {
        min-height: auto !important;
    }
}

html.theme-light .btn-modern-primary,
html.theme-light .btn-modern-accent,
html.theme-light .cd-new-lead-btn,
html.theme-light .pending-btn.accept,
html.theme-light .foreman-request-btn.approve,
html.theme-light .foreman-request-btn.reject,
html.theme-light .navbar-btn,
html.theme-light .topbar-v2-btn,
html.theme-light .btn-course-start,
html.theme-light .btn-course-continue,
html.theme-light .dc2-next,
html.theme-light .dc2-submit,
html.theme-light .cc-primary-btn {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

/* ========== WAY личный кабинет: светлая тема — шапка как светлая карточка (без тёмного градиента на белом фоне) ========== */
html.theme-light .wa-wrap .wa-hero {
    background: linear-gradient(165deg, #ffffff 0%, #f8fafc 38%, #eef2ff 100%) !important;
    border: 1px solid rgba(91, 110, 232, 0.2) !important;
    box-shadow: 0 10px 36px rgba(15, 23, 42, 0.07) !important;
    border-radius: 0 0 28px 28px !important;
}
html.theme-light .wa-wrap .wa-hero-glow {
    opacity: 0.22 !important;
}
html.theme-light .wa-wrap .wa-hero::before,
html.theme-light .wa-wrap .wa-hero::after {
    opacity: 0.12 !important;
}
html.theme-light .wa-wrap .wa-hero h1.wa-hero-title,
html.theme-light .wa-wrap .wa-hero .wa-hero-title {
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a !important;
    text-shadow: none !important;
    background: none !important;
    -webkit-background-clip: border-box !important;
    background-clip: border-box !important;
}
html.theme-light .wa-wrap .wa-hero .wa-hero-title i,
html.theme-light .wa-wrap .wa-hero .wa-hero-title .bi {
    color: #5b6ee8 !important;
    -webkit-text-fill-color: #5b6ee8 !important;
}
html.theme-light .wa-wrap .wa-hero p.wa-hero-sub,
html.theme-light .wa-wrap .wa-hero .wa-hero-sub {
    color: #475569 !important;
    -webkit-text-fill-color: #475569 !important;
}
html.theme-light .wa-wrap .wa-hero .wa-breadcrumbs {
    background: rgba(91, 110, 232, 0.09) !important;
    border: 1px solid rgba(91, 110, 232, 0.14) !important;
}
html.theme-light .wa-wrap .wa-hero .wa-breadcrumb {
    color: #5b6ee8 !important;
    -webkit-text-fill-color: #5b6ee8 !important;
}
html.theme-light .wa-wrap .wa-hero .wa-breadcrumb.active,
html.theme-light .wa-wrap .wa-hero span.wa-breadcrumb.active {
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a !important;
}
html.theme-light .wa-wrap .wa-hero .wa-breadcrumb-sep {
    color: #94a3b8 !important;
    -webkit-text-fill-color: #94a3b8 !important;
}
html.theme-light .wa-wrap .wa-hero .wa-breadcrumb i {
    color: #64748b !important;
    -webkit-text-fill-color: #64748b !important;
}
html.theme-light .wa-wrap .wa-hero .wa-hero-stat {
    background: rgba(255, 255, 255, 0.82) !important;
    border: 1px solid rgba(91, 110, 232, 0.16) !important;
    backdrop-filter: blur(8px);
}
html.theme-light .wa-wrap .wa-hero .wa-hero-stat-val {
    color: #1e293b !important;
    -webkit-text-fill-color: #1e293b !important;
}
html.theme-light .wa-wrap .wa-hero .wa-hero-stat-lbl {
    color: #64748b !important;
    -webkit-text-fill-color: #64748b !important;
}
html.theme-light .wa-wrap .wa-hero .wa-hero-stat-icon,
html.theme-light .wa-wrap .wa-hero .wa-hero-stat-icon i {
    color: #5b6ee8 !important;
    -webkit-text-fill-color: #5b6ee8 !important;
}
html.theme-light .wa-wrap .wa-hero .wa-hero-btn {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    background: linear-gradient(135deg, #5b6ee8, #7c3aed) !important;
    border-color: rgba(124, 58, 237, 0.35) !important;
    box-shadow: 0 4px 16px rgba(91, 110, 232, 0.28) !important;
}

/* Карточки WAY: не обрезать заголовки и длинные строки на мобиле */
html.theme-light .wa-wrap .wa-card {
    overflow: visible !important;
}
html.theme-light .wa-wrap .wa-card .wa-card-header {
    min-width: 0 !important;
}
html.theme-light .wa-wrap .wa-card .wa-card-title {
    min-width: 0 !important;
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
}

/* ========== Дашборд менеджера / ст. менеджер: быстрые действия + «Мои действия» в светлой теме ==========
   Стили в manager.html заточены под тёмный фон (серые плитки, тёмная карточка). */
html.theme-light .dashboard-container .quick-action-item {
    background: #ffffff !important;
    border: 1px solid rgba(15, 23, 42, 0.1) !important;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05) !important;
}
html.theme-light .dashboard-container .quick-action-item:hover {
    background: #f8fafc !important;
    border-color: rgba(91, 110, 232, 0.28) !important;
    transform: translateY(-2px);
}
html.theme-light .dashboard-container .quick-action-label {
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a !important;
}
html.theme-light .dashboard-container .quick-action-desc {
    color: #64748b !important;
    -webkit-text-fill-color: #64748b !important;
}
html.theme-light .dashboard-container .quick-action-item:nth-child(5) .quick-action-icon {
    background: rgba(100, 116, 139, 0.14) !important;
    color: #64748b !important;
}
html.theme-light .dashboard-container .quick-action-item:nth-child(6) .quick-action-icon {
    background: rgba(99, 102, 241, 0.12) !important;
    color: #6366f1 !important;
}

html.theme-light .dashboard-container .actions-card {
    background: linear-gradient(165deg, #ffffff 0%, #f8fafc 45%, #f1f5f9 100%) !important;
    border: 1px solid rgba(15, 23, 42, 0.1) !important;
    box-shadow: 0 10px 32px rgba(15, 23, 42, 0.08) !important;
}
html.theme-light .dashboard-container .actions-card::before {
    background: linear-gradient(90deg, transparent, rgba(91, 110, 232, 0.35), rgba(139, 92, 246, 0.3), transparent) !important;
}
html.theme-light .dashboard-container .actions-title {
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a !important;
}
html.theme-light .dashboard-container .actions-subtitle {
    color: #64748b !important;
    -webkit-text-fill-color: #64748b !important;
}
html.theme-light .dashboard-container .actions-icon-wrap {
    background: linear-gradient(135deg, rgba(91, 110, 232, 0.12), rgba(91, 110, 232, 0.04)) !important;
    border-color: rgba(91, 110, 232, 0.2) !important;
    color: #5b6ee8 !important;
}
html.theme-light .dashboard-container .actions-link {
    background: rgba(91, 110, 232, 0.08) !important;
    border-color: rgba(91, 110, 232, 0.2) !important;
    color: #4f46e5 !important;
}
html.theme-light .dashboard-container .actions-link:hover {
    background: rgba(91, 110, 232, 0.14) !important;
    border-color: rgba(91, 110, 232, 0.35) !important;
    color: #4338ca !important;
}
html.theme-light .dashboard-container .actions-tabs {
    border-bottom-color: rgba(15, 23, 42, 0.08) !important;
}
html.theme-light .dashboard-container .actions-tab {
    color: #64748b !important;
}
html.theme-light .dashboard-container .actions-tab:hover {
    color: #4f46e5 !important;
}
html.theme-light .dashboard-container .actions-tab.active {
    color: #4f46e5 !important;
    border-bottom-color: #6366f1 !important;
}
html.theme-light .dashboard-container .actions-tab-badge {
    background: rgba(15, 23, 42, 0.06) !important;
    color: #475569 !important;
}
html.theme-light .dashboard-container .actions-tab.active .actions-tab-badge {
    background: rgba(99, 102, 241, 0.15) !important;
    color: #4338ca !important;
}

html.theme-light .dashboard-container .action-item {
    background: #ffffff !important;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
}
html.theme-light .dashboard-container .action-item:hover {
    background: #f8fafc !important;
    border-color: rgba(91, 110, 232, 0.22) !important;
}
html.theme-light .dashboard-container .action-item-title {
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a !important;
}
html.theme-light .dashboard-container .action-item-desc {
    color: #64748b !important;
}
html.theme-light .dashboard-container .action-item-meta {
    color: #64748b !important;
}
html.theme-light .dashboard-container .action-item-meta .lead-name {
    color: #4f46e5 !important;
}
html.theme-light .dashboard-container .action-item-time {
    color: #64748b !important;
}
html.theme-light .dashboard-container .action-item.completed .action-item-title {
    color: #94a3b8 !important;
}
html.theme-light .dashboard-container .actions-empty {
    color: #64748b !important;
}
html.theme-light .dashboard-container .actions-empty i {
    color: #94a3b8 !important;
    opacity: 0.65 !important;
}
html.theme-light .dashboard-container .actions-empty p {
    color: #64748b !important;
}

/* Мои объекты — строки списка (тёмные «серые окна» → светлые карточки) */
html.theme-light .dashboard-container .object-item {
    background: #ffffff !important;
    border: 1px solid rgba(15, 23, 42, 0.1) !important;
    box-shadow: 0 1px 6px rgba(15, 23, 42, 0.04) !important;
}
html.theme-light .dashboard-container .object-item:hover {
    background: #f8fafc !important;
    border-color: rgba(91, 110, 232, 0.22) !important;
}
html.theme-light .dashboard-container .object-item[style*="justify-content: center"] {
    background: #f8fafc !important;
    color: #64748b !important;
    box-shadow: none !important;
}
html.theme-light .dashboard-container .object-address {
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a !important;
}
html.theme-light .dashboard-container .object-meta {
    color: #64748b !important;
}
html.theme-light .dashboard-container .object-icon {
    background: rgba(59, 130, 246, 0.1) !important;
    color: #2563eb !important;
}
html.theme-light .dashboard-container .empty-state {
    color: #64748b !important;
}
html.theme-light .dashboard-container .empty-state p {
    color: #64748b !important;
}

/* ========== CRM (/crm, crm_new.html + crm-focus.css) — светлая тема ========== */
html.theme-light .crm-page {
    background: #f4f6fb !important;
    color: #0f172a !important;
}

html.theme-light .crm-page .crm-hero {
    background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 42%, #f5f3ff 100%) !important;
}
html.theme-light .crm-page .crm-hero::before,
html.theme-light .crm-page .crm-hero::after {
    opacity: 0.35 !important;
}
html.theme-light .crm-page .crm-hero-grid {
    opacity: 0.45 !important;
}
html.theme-light .crm-page .crm-hero-decor-icon {
    color: #6366f1 !important;
    opacity: 0.12 !important;
}
html.theme-light .crm-page .crm-hero-badge {
    background: rgba(99, 102, 241, 0.1) !important;
    border-color: rgba(99, 102, 241, 0.22) !important;
    color: #4f46e5 !important;
}
html.theme-light .crm-page .crm-hero-title {
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a !important;
}
html.theme-light .crm-page .crm-hero-accent {
    background: linear-gradient(135deg, #4338ca, #6366f1, #2563eb) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}
html.theme-light .crm-page .crm-hero-subtitle {
    color: #64748b !important;
}
html.theme-light .crm-page .crm-hero-btn-ghost {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    color: #475569 !important;
}
html.theme-light .crm-page .crm-hero-btn-ghost:hover {
    background: #f8fafc !important;
    border-color: rgba(99, 102, 241, 0.35) !important;
    color: #4338ca !important;
}
html.theme-light .crm-page .crm-hero-actions .dropdown-menu {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12) !important;
}
html.theme-light .crm-page .crm-hero-actions .dropdown-item {
    color: #0f172a !important;
}
html.theme-light .crm-page .crm-hero-actions .dropdown-item:hover {
    background: #f1f5f9 !important;
    color: #4338ca !important;
}

html.theme-light .crm-page .crm-stats-card {
    background: #ffffff !important;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08) !important;
}
html.theme-light .crm-page .crm-stats-card::before {
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.35), rgba(59, 130, 246, 0.3), transparent) !important;
}
html.theme-light .crm-page .crm-stat-value {
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a !important;
}
html.theme-light .crm-page .crm-stat-label {
    color: #64748b !important;
}
html.theme-light .crm-page .crm-stat-item:hover {
    background: rgba(99, 102, 241, 0.06) !important;
}
html.theme-light .crm-page .crm-stat-item:not(:last-child)::after {
    background: linear-gradient(to bottom, transparent, rgba(148, 163, 184, 0.45), transparent) !important;
}
html.theme-light .crm-page .crm-stat-item:nth-child(1),
html.theme-light .crm-page .crm-stat-item:nth-child(2) {
    border-bottom-color: rgba(15, 23, 42, 0.06) !important;
}

html.theme-light .crm-page .crm-tabs-nav {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 14px !important;
    padding: 4px 8px !important;
    margin-bottom: 16px !important;
    border-bottom: 1px solid #e2e8f0 !important;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04) !important;
}
html.theme-light .crm-page .crm-tab {
    color: #64748b !important;
    border-radius: 10px !important;
}
html.theme-light .crm-page .crm-tab:hover {
    color: #4338ca !important;
    background: rgba(99, 102, 241, 0.08) !important;
}
html.theme-light .crm-page .crm-tab.active {
    color: #4338ca !important;
    background: rgba(99, 102, 241, 0.1) !important;
    border-bottom-color: transparent !important;
    box-shadow: inset 0 -2px 0 #6366f1 !important;
}
html.theme-light .crm-page .tab-count {
    background: rgba(15, 23, 42, 0.06) !important;
    color: #475569 !important;
}
html.theme-light .crm-page .crm-tab.active .tab-count {
    background: linear-gradient(135deg, #6366f1, #7c3aed) !important;
    color: #ffffff !important;
}

html.theme-light .crm-page .crm-filters-panel {
    background: linear-gradient(165deg, #ffffff 0%, #f8fafc 55%, #f1f5f9 100%) !important;
    border: 1px solid rgba(15, 23, 42, 0.1) !important;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.07) !important;
}
html.theme-light .crm-page .filter-search .input-group-text {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
    color: #64748b !important;
}
html.theme-light .crm-page .filter-search .form-control {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
    color: #0f172a !important;
}
html.theme-light .crm-page .filter-search .form-control::placeholder {
    color: #94a3b8 !important;
}
html.theme-light .crm-page .filter-search .form-control:focus {
    background: #ffffff !important;
    border-color: rgba(99, 102, 241, 0.45) !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15) !important;
    color: #0f172a !important;
}

html.theme-light .crm-page .filter-status .btn {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
    color: #334155 !important;
}
html.theme-light .crm-page .filter-status .btn:hover {
    background: #eef2ff !important;
    border-color: rgba(99, 102, 241, 0.35) !important;
    color: #4338ca !important;
}
html.theme-light .crm-page .filter-status .btn-check:checked + .btn {
    background: linear-gradient(135deg, #6366f1, #7c3aed) !important;
    border-color: transparent !important;
    color: #ffffff !important;
    box-shadow: 0 6px 18px rgba(99, 102, 241, 0.25) !important;
}

html.theme-light .crm-page .filter-more .btn,
html.theme-light .crm-page .filter-view .btn {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
    color: #475569 !important;
}
html.theme-light .crm-page .filter-more .btn:hover,
html.theme-light .crm-page .filter-view .btn:hover {
    background: #f8fafc !important;
    border-color: rgba(99, 102, 241, 0.35) !important;
    color: #4338ca !important;
}
html.theme-light .crm-page .filter-view .btn.active {
    background: linear-gradient(135deg, #6366f1, #7c3aed) !important;
    border-color: transparent !important;
    color: #ffffff !important;
}

html.theme-light .crm-page #search-autocomplete {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-top: none !important;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12) !important;
}

html.theme-light .crm-page #extended-filters {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06) !important;
}
html.theme-light .crm-page #extended-filters .ef-label {
    color: #64748b !important;
}
html.theme-light .crm-page #extended-filters .ef-title {
    color: #4338ca !important;
}
html.theme-light .crm-page #extended-filters .ef-section {
    color: #6366f1 !important;
}
html.theme-light .crm-page #extended-filters .ef-input,
html.theme-light .crm-page #extended-filters .ef-select {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
    color: #0f172a !important;
}
html.theme-light .crm-page #extended-filters .ef-input::placeholder {
    color: #94a3b8 !important;
}
html.theme-light .crm-page #extended-filters .ef-select option {
    background: #ffffff !important;
    color: #0f172a !important;
}
html.theme-light .crm-page #extended-filters .ef-divider {
    background: #e2e8f0 !important;
}
html.theme-light .crm-page #extended-filters .ef-reset {
    background: rgba(239, 68, 68, 0.08) !important;
    border-color: rgba(239, 68, 68, 0.25) !important;
    color: #dc2626 !important;
}

    background: #ffffff !important;
    border: 1px solid rgba(15, 23, 42, 0.1) !important;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.07) !important;
}
html.theme-light .crm-page .leads-header {
    background: #f8fafc !important;
    border-bottom-color: #e2e8f0 !important;
}
html.theme-light .crm-page .leads-title h5 {
    color: #0f172a !important;
}
html.theme-light .crm-page .leads-title span {
    color: #64748b !important;
}
html.theme-light .crm-page .leads-actions .btn {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
    color: #475569 !important;
}
html.theme-light .crm-page .leads-actions .btn:hover {
    background: #6366f1 !important;
    border-color: #6366f1 !important;
    color: #ffffff !important;
}

html.theme-light .crm-page .leads-table thead th {
    background: #f1f5f9 !important;
    color: #64748b !important;
    border-bottom-color: #e2e8f0 !important;
}
html.theme-light .crm-page .leads-table tbody td {
    color: #334155 !important;
    border-bottom-color: #f1f5f9 !important;
}
html.theme-light .crm-page .leads-table tbody tr:hover {
    background: rgba(99, 102, 241, 0.06) !important;
    box-shadow: none !important;
}
html.theme-light .crm-page .lead-name {
    color: #0f172a !important;
}
html.theme-light .crm-page .lead-phone {
    color: #64748b !important;
}

html.theme-light .crm-page .lead-card {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
}
html.theme-light .crm-page .lead-card-header {
    border-bottom-color: #e2e8f0 !important;
}
html.theme-light .crm-page .lead-card-name {
    color: #0f172a !important;
}
html.theme-light .crm-page .lead-card-phone {
    color: #64748b !important;
}
html.theme-light .crm-page .lead-card-label {
    color: #64748b !important;
}
html.theme-light .crm-page .lead-card-footer {
    border-top-color: #e2e8f0 !important;
}

html.theme-light .crm-page .leads-pagination {
    background: #f8fafc !important;
    border-top-color: #e2e8f0 !important;
}
html.theme-light .crm-page .pagination-info {
    color: #64748b !important;
}
html.theme-light .crm-page .pagination .page-link {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
    color: #475569 !important;
}
html.theme-light .crm-page .pagination .page-link:hover {
    background: #eef2ff !important;
    border-color: rgba(99, 102, 241, 0.35) !important;
    color: #4338ca !important;
}
html.theme-light .crm-page .pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #6366f1, #7c3aed) !important;
    border-color: transparent !important;
    color: #ffffff !important;
}
html.theme-light .crm-page .pagination .page-item.disabled .page-link {
    background: #f1f5f9 !important;
    border-color: #e2e8f0 !important;
    color: #94a3b8 !important;
}

html.theme-light .crm-page .crm-sidebar {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: -8px 0 40px rgba(15, 23, 42, 0.1) !important;
}
html.theme-light .crm-page .sidebar-header {
    background: #f8fafc !important;
    border-bottom-color: #e2e8f0 !important;
}
html.theme-light .crm-page .sidebar-header h6 {
    color: #0f172a !important;
}
html.theme-light .crm-page .sidebar-header .btn-link {
    color: #64748b !important;
}
html.theme-light .crm-page .sidebar-header .btn-link:hover {
    color: #4338ca !important;
}
html.theme-light .crm-page .sidebar-body {
    background: #ffffff !important;
}
html.theme-light .crm-page .crm-sidebar .sidebar-lead-name,
html.theme-light .crm-page .crm-sidebar .sidebar-info-value {
    color: #0f172a !important;
}
html.theme-light .crm-page .crm-sidebar .sidebar-lead-id,
html.theme-light .crm-page .crm-sidebar .sidebar-section-title,
html.theme-light .crm-page .crm-sidebar .sidebar-info-label {
    color: #64748b !important;
}
html.theme-light .crm-page .crm-sidebar .sidebar-info-item {
    border-bottom-color: #e2e8f0 !important;
}

html.theme-light .crm-page .empty-state-icon {
    color: #cbd5e1 !important;
}
html.theme-light .crm-page .empty-state-title {
    color: #0f172a !important;
}
html.theme-light .crm-page .empty-state-text {
    color: #64748b !important;
}

html.theme-light .crm-page .form-check-input {
    background-color: #ffffff !important;
    border-color: #cbd5e1 !important;
}
html.theme-light .crm-page .form-check-input:checked {
    background-color: #6366f1 !important;
    border-color: #6366f1 !important;
}

/* ========== /crm-tasks — страница CRM-задач (crm_tasks.html) ========== */
html.theme-light .crm-tasks-page {
    color: #0f172a;
}

html.theme-light .crm-tasks-page .crm-tasks-hero {
    background: linear-gradient(165deg, #ffffff 0%, #f8fafc 45%, #eef2ff 100%) !important;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08) !important;
}
html.theme-light .crm-tasks-page .crm-tasks-hero::before,
html.theme-light .crm-tasks-page .crm-tasks-hero::after {
    opacity: 0.22 !important;
}
html.theme-light .crm-tasks-page .hero-title {
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a !important;
}
html.theme-light .crm-tasks-page .hero-title i {
    color: #6366f1 !important;
}
html.theme-light .crm-tasks-page .hero-subtitle {
    color: #64748b !important;
}
html.theme-light .crm-tasks-page .hero-btn-ghost {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    color: #475569 !important;
}
html.theme-light .crm-tasks-page .hero-btn-ghost:hover {
    background: #f8fafc !important;
    border-color: rgba(99, 102, 241, 0.35) !important;
    color: #4338ca !important;
}
html.theme-light .crm-tasks-page .hero-btn-icon {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    color: #475569 !important;
}
html.theme-light .crm-tasks-page .hero-btn-icon:hover {
    background: #eef2ff !important;
    color: #4338ca !important;
}

html.theme-light .crm-tasks-page .view-toggle {
    background: #f1f5f9 !important;
    border: 1px solid #e2e8f0 !important;
}
html.theme-light .crm-tasks-page .view-toggle-btn {
    color: #64748b !important;
}
html.theme-light .crm-tasks-page .view-toggle-btn:hover {
    color: #4338ca !important;
    background: rgba(99, 102, 241, 0.08) !important;
}
html.theme-light .crm-tasks-page .view-toggle-btn.active {
    color: #ffffff !important;
}

html.theme-light .crm-tasks-page .tasks-filters {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04) !important;
}
html.theme-light .crm-tasks-page .filter-tab {
    color: #64748b !important;
}
html.theme-light .crm-tasks-page .filter-tab:hover {
    color: #4338ca !important;
    background: rgba(99, 102, 241, 0.08) !important;
}
html.theme-light .crm-tasks-page .filter-tab.active {
    color: #ffffff !important;
}

html.theme-light .crm-tasks-page .task-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06) !important;
}
html.theme-light .crm-tasks-page .task-card:hover {
    border-color: rgba(99, 102, 241, 0.35) !important;
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.1) !important;
}
html.theme-light .crm-tasks-page .task-card.priority-urgent {
    background: linear-gradient(145deg, #fff1f2 0%, #ffffff 58%) !important;
    border-color: rgba(239, 68, 68, 0.35) !important;
    animation: none !important;
}
html.theme-light .crm-tasks-page .task-card.priority-high {
    background: linear-gradient(145deg, #fffbeb 0%, #ffffff 58%) !important;
    border-color: rgba(245, 158, 11, 0.4) !important;
}
html.theme-light .crm-tasks-page .task-card.completed-card {
    opacity: 1 !important;
}
html.theme-light .crm-tasks-page .task-card.completed-card .tc-title {
    color: #94a3b8 !important;
}

html.theme-light .crm-tasks-page .tc-title {
    color: #0f172a !important;
}
html.theme-light .crm-tasks-page .tc-priority-badge.medium {
    background: rgba(99, 102, 241, 0.12) !important;
    color: #4338ca !important;
}
html.theme-light .crm-tasks-page .tc-priority-badge.high {
    background: rgba(245, 158, 11, 0.15) !important;
    color: #b45309 !important;
}
html.theme-light .crm-tasks-page .tc-priority-badge.urgent {
    background: rgba(239, 68, 68, 0.12) !important;
    color: #b91c1c !important;
}
html.theme-light .crm-tasks-page .tc-priority-badge.low {
    background: rgba(100, 116, 139, 0.12) !important;
    color: #475569 !important;
}
html.theme-light .crm-tasks-page .tc-description {
    background: #f8fafc !important;
    border-left-color: rgba(99, 102, 241, 0.35) !important;
    color: #475569 !important;
}
html.theme-light .crm-tasks-page .tc-info-row {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04) !important;
}
html.theme-light .crm-tasks-page .tc-info-label {
    color: #64748b !important;
}
html.theme-light .crm-tasks-page .tc-info-value {
    color: #0f172a !important;
}
html.theme-light .crm-tasks-page .tc-info-value a {
    color: #4f46e5 !important;
}
html.theme-light .crm-tasks-page .tc-info-value a:hover {
    color: #4338ca !important;
}

html.theme-light .crm-tasks-page .tc-actions {
    border-top-color: #e2e8f0 !important;
}
html.theme-light .crm-tasks-page .tc-comment-box {
    border-top-color: #e2e8f0 !important;
}
html.theme-light .crm-tasks-page .tc-comment-input {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
    color: #0f172a !important;
}
html.theme-light .crm-tasks-page .tc-comment-input:focus {
    background: #ffffff !important;
    border-color: rgba(99, 102, 241, 0.45) !important;
    color: #0f172a !important;
}
html.theme-light .crm-tasks-page .tc-comment-input::placeholder {
    color: #94a3b8 !important;
}
html.theme-light .crm-tasks-page .tc-comment-send {
    background: rgba(99, 102, 241, 0.1) !important;
    border-color: rgba(99, 102, 241, 0.22) !important;
    color: #4338ca !important;
}
html.theme-light .crm-tasks-page .tc-comment-send:hover {
    background: rgba(99, 102, 241, 0.18) !important;
    color: #312e81 !important;
}

html.theme-light .crm-tasks-page .tc-tag-type {
    background: rgba(139, 92, 246, 0.12) !important;
    color: #5b21b6 !important;
}
html.theme-light .crm-tasks-page .tc-tag-status-pending {
    background: rgba(245, 158, 11, 0.12) !important;
    color: #b45309 !important;
}
html.theme-light .crm-tasks-page .tc-tag-status-in-progress {
    background: rgba(59, 130, 246, 0.12) !important;
    color: #1d4ed8 !important;
}
html.theme-light .crm-tasks-page .tc-tag-status-completed {
    background: rgba(16, 185, 129, 0.12) !important;
    color: #047857 !important;
}
html.theme-light .crm-tasks-page .tc-tag-status-cancelled {
    background: rgba(100, 116, 139, 0.12) !important;
    color: #475569 !important;
}
html.theme-light .crm-tasks-page .tc-tag-overdue {
    background: rgba(239, 68, 68, 0.1) !important;
    color: #b91c1c !important;
}

html.theme-light .crm-tasks-page .tc-reminders-panel {
    background: #fffbeb !important;
    border-color: rgba(245, 158, 11, 0.28) !important;
}
html.theme-light .crm-tasks-page .tc-reminder-item {
    background: #ffffff !important;
    border-color: #fde68a !important;
    color: #334155 !important;
}
html.theme-light .crm-tasks-page .tc-reminder-item .ri-label {
    color: #64748b !important;
}
html.theme-light .crm-tasks-page .tc-reminder-add input {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
    color: #0f172a !important;
}
html.theme-light .crm-tasks-page .tc-reminder-empty {
    color: #64748b !important;
}
html.theme-light .crm-tasks-page .tc-priority-suggestion {
    background: #eef2ff !important;
    border-color: rgba(99, 102, 241, 0.22) !important;
    color: #4338ca !important;
}

html.theme-light .crm-tasks-page .tc-btn-complete {
    background: rgba(16, 185, 129, 0.12) !important;
    color: #047857 !important;
    border-color: rgba(16, 185, 129, 0.28) !important;
}
html.theme-light .crm-tasks-page .tc-btn-edit {
    background: rgba(99, 102, 241, 0.1) !important;
    color: #4338ca !important;
    border-color: rgba(99, 102, 241, 0.22) !important;
}
html.theme-light .crm-tasks-page .tc-btn-delete {
    background: rgba(239, 68, 68, 0.08) !important;
    color: #b91c1c !important;
    border-color: rgba(239, 68, 68, 0.22) !important;
}
html.theme-light .crm-tasks-page .tc-btn-reminder {
    background: rgba(245, 158, 11, 0.12) !important;
    color: #b45309 !important;
    border-color: rgba(245, 158, 11, 0.28) !important;
}
html.theme-light .crm-tasks-page .tc-btn-reminder.active {
    background: rgba(245, 158, 11, 0.22) !important;
    color: #78350f !important;
}
html.theme-light .crm-tasks-page .tc-btn-restore {
    background: rgba(99, 102, 241, 0.1) !important;
    color: #4338ca !important;
    border-color: rgba(99, 102, 241, 0.22) !important;
}

html.theme-light .crm-tasks-page .tasks-empty {
    color: #64748b !important;
}
html.theme-light .crm-tasks-page .tasks-empty p {
    color: #475569 !important;
}
html.theme-light .crm-tasks-page .tasks-empty i {
    color: #94a3b8 !important;
    opacity: 0.5 !important;
}

html.theme-light .crm-tasks-page .tasks-table-wrap {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06) !important;
}
html.theme-light .crm-tasks-page .tasks-table thead th {
    background: #f1f5f9 !important;
    color: #64748b !important;
    border-bottom-color: #e2e8f0 !important;
}
html.theme-light .crm-tasks-page .tasks-table tbody tr {
    border-bottom-color: #f1f5f9 !important;
}
html.theme-light .crm-tasks-page .tasks-table tbody tr:hover {
    background: rgba(99, 102, 241, 0.05) !important;
}
html.theme-light .crm-tasks-page .tasks-table td {
    color: #334155 !important;
}
html.theme-light .crm-tasks-page .tasks-table .td-title {
    color: #0f172a !important;
}
html.theme-light .crm-tasks-page .tasks-table .td-lead a {
    color: #4f46e5 !important;
}

/* Модалки .modal-way (создание / редактирование задач, CRM, лиды) */
html.theme-light .modal-way .modal-content {
    background: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.16) !important;
}
html.theme-light .modal-way .modal-header,
html.theme-light .modal-way .modal-footer {
    border-color: #e2e8f0 !important;
    background: #ffffff !important;
}
html.theme-light .modal-way .modal-title {
    color: #0f172a !important;
}
html.theme-light .modal-way .modal-title i {
    color: #6366f1 !important;
}
html.theme-light .modal-way .btn-close {
    filter: none !important;
    opacity: 0.75 !important;
}
html.theme-light .modal-way .form-label {
    color: #475569 !important;
}
html.theme-light .modal-way .form-control,
html.theme-light .modal-way .form-select {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
    color: #0f172a !important;
}
html.theme-light .modal-way .form-control:focus,
html.theme-light .modal-way .form-select:focus {
    background: #ffffff !important;
    border-color: rgba(99, 102, 241, 0.45) !important;
    color: #0f172a !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12) !important;
}
html.theme-light .modal-way .form-select option {
    background: #ffffff !important;
    color: #0f172a !important;
}
html.theme-light .modal-way .modal-btn-cancel {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    color: #475569 !important;
}
html.theme-light .modal-way .modal-btn-cancel:hover {
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}
html.theme-light .modal-way .nav-tabs {
    border-bottom-color: #e2e8f0 !important;
}
html.theme-light .modal-way .nav-tabs .nav-link {
    color: #64748b !important;
}
html.theme-light .modal-way .nav-tabs .nav-link:hover {
    color: #4338ca !important;
    background: rgba(99, 102, 241, 0.06) !important;
}
html.theme-light .modal-way .nav-tabs .nav-link.active {
    color: #4338ca !important;
    background: #ffffff !important;
    border-color: #e2e8f0 #e2e8f0 #ffffff !important;
}

/* ========== Воронка /pipeline (pipeline.html) — светлая тема ========== */
html.theme-light .pipeline-page {
    color: #0f172a;
}

html.theme-light .pipeline-page .pipeline-page-title {
    color: #0f172a !important;
}
html.theme-light .pipeline-page .pipeline-page-subtitle {
    color: #64748b !important;
}

html.theme-light .pipeline-page .pipeline-section-header {
    border-bottom-color: #e2e8f0 !important;
}
html.theme-light .pipeline-page .pipeline-section-header h3 {
    color: #0f172a !important;
}
html.theme-light .pipeline-page .pipeline-section-lost .pipeline-section-header h3 {
    color: #b91c1c !important;
}

html.theme-light .pipeline-page .pipeline-stats .stat-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06) !important;
}
html.theme-light .pipeline-page .pipeline-stats .stat-card-label {
    color: #64748b !important;
}

html.theme-light .pipeline-page .pipeline-column {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06) !important;
}
html.theme-light .pipeline-page .pipeline-column-header {
    background: #f8fafc !important;
    border-bottom-color: #e2e8f0 !important;
}
html.theme-light .pipeline-page .pipeline-column-title {
    color: #0f172a !important;
}
html.theme-light .pipeline-page .pipeline-column-count {
    background: rgba(99, 102, 241, 0.12) !important;
    color: #4338ca !important;
}
html.theme-light .pipeline-page .pipeline-column-body {
    background: #ffffff !important;
}
html.theme-light .pipeline-page .pipeline-column-body.drag-over {
    background: rgba(16, 185, 129, 0.08) !important;
}
html.theme-light .pipeline-page .pipeline-column-body.drag-invalid {
    background: rgba(239, 68, 68, 0.06) !important;
}

html.theme-light .pipeline-page .pipeline-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04) !important;
}
html.theme-light .pipeline-page .pipeline-card:hover {
    border-color: rgba(99, 102, 241, 0.35) !important;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.1) !important;
}
html.theme-light .pipeline-page .pipeline-card.stale {
    border-color: rgba(245, 158, 11, 0.45) !important;
}

html.theme-light .pipeline-page .plc-name {
    color: #0f172a !important;
}
html.theme-light .pipeline-page .plc-row {
    color: #475569 !important;
}
html.theme-light .pipeline-page .plc-row i {
    color: #94a3b8 !important;
}
html.theme-light .pipeline-page .plc-phone {
    color: #1d4ed8 !important;
}
html.theme-light .pipeline-page .plc-phone:hover {
    color: #1e40af !important;
}
html.theme-light .pipeline-page .plc-footer {
    border-top-color: #e2e8f0 !important;
}
html.theme-light .pipeline-page .plc-meta {
    color: #64748b !important;
}
html.theme-light .pipeline-page .plc-score {
    color: #5b21b6 !important;
    background: rgba(139, 92, 246, 0.1) !important;
}
html.theme-light .pipeline-page .plc-row-budget {
    color: #047857 !important;
}
html.theme-light .pipeline-page .plc-row-budget i {
    color: #059669 !important;
}
html.theme-light .pipeline-page .plc-row-object {
    color: #0f766e !important;
}
html.theme-light .pipeline-page .plc-row-object i {
    color: #0d9488 !important;
}
html.theme-light .pipeline-page .plc-warning {
    background: #fffbeb !important;
    border-color: rgba(245, 158, 11, 0.35) !important;
    color: #b45309 !important;
}

html.theme-light .pipeline-page .pipeline-show-more-btn {
    background: #f8fafc !important;
    border-color: rgba(99, 102, 241, 0.25) !important;
    color: #475569 !important;
}
html.theme-light .pipeline-page .pipeline-show-more-btn:hover {
    background: #eef2ff !important;
    color: #4338ca !important;
}

html.theme-light .pipeline-page .drop-placeholder {
    background: rgba(16, 185, 129, 0.08) !important;
    border-color: rgba(16, 185, 129, 0.35) !important;
}

html.theme-light .pipeline-page .pipeline-analytics-btn {
    background: rgba(99, 102, 241, 0.1) !important;
    border-color: rgba(99, 102, 241, 0.28) !important;
    color: #4338ca !important;
}

html.theme-light .pipeline-page #analyticsPanel [style*="color:#888"],
html.theme-light .pipeline-page #conversionsList,
html.theme-light .pipeline-page #lossReasonsList,
html.theme-light .pipeline-page #managersComparisonList {
    color: #64748b !important;
}

/* Мобильная воронка: кнопка «Статусы», селект этапа */
html.theme-light .pipeline-page .pipeline-mobile-back-btn {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    color: #0f172a !important;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06) !important;
}
html.theme-light .pipeline-page .pipeline-mobile-filters-btn.btn-modern-secondary {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    color: #334155 !important;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.05) !important;
}
html.theme-light .pipeline-page .pipeline-mobile-status-select,
html.theme-light .pipeline-page #mobileStatusSelect {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    color: #0f172a !important;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06) !important;
}

/* Bottom sheet фильтров воронки */
html.theme-light .pipeline-filter-sheet-panel {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
    color: #0f172a !important;
}
html.theme-light .pipeline-filter-sheet-panel h4 {
    color: #0f172a !important;
}
html.theme-light .pipeline-filter-sheet-panel label {
    color: #64748b !important;
}
html.theme-light .pipeline-filter-sheet-panel input,
html.theme-light .pipeline-filter-sheet-panel select {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
    color: #0f172a !important;
}
html.theme-light .pipeline-filter-sheet-actions button[style*="rgba(255,255,255"] {
    background: #f1f5f9 !important;
    color: #475569 !important;
    border: 1px solid #e2e8f0 !important;
}

/* Модалка действий с лидом (воронка) */
html.theme-light .lead-actions-modal .modal-content {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.18) !important;
}
html.theme-light .lead-actions-modal .modal-header {
    background: linear-gradient(135deg, #6366f1, #7c3aed) !important;
}
html.theme-light .lead-actions-modal .modal-header .btn-close {
    filter: brightness(0) invert(1) !important;
    opacity: 0.88 !important;
}
html.theme-light .lead-actions-modal .modal-title {
    color: #ffffff !important;
    text-shadow: none !important;
}
html.theme-light .lead-actions-modal .modal-body {
    background: #ffffff !important;
}
html.theme-light .lead-actions-modal .action-btn {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    color: #0f172a !important;
}
html.theme-light .lead-actions-modal .action-btn:hover {
    background: #eef2ff !important;
    border-color: rgba(99, 102, 241, 0.35) !important;
    color: #4338ca !important;
}
html.theme-light .lead-actions-modal .action-btn .action-btn-desc {
    color: #64748b !important;
}

/* Модалка причины отказа */
html.theme-light #loseReasonModal .modal-content {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
    color: #0f172a !important;
}
html.theme-light #loseReasonModal .modal-title {
    color: #0f172a !important;
}
html.theme-light #loseReasonModal .lose-reason-item {
    background: #f8fafc !important;
    border-bottom-color: #e2e8f0 !important;
    color: #0f172a !important;
}
html.theme-light #loseReasonModal .lose-reason-item:hover {
    background: #eef2ff !important;
}
html.theme-light #loseReasonModal .form-label {
    color: #64748b !important;
}
html.theme-light #loseReasonModal textarea.form-control {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
    color: #0f172a !important;
}
html.theme-light #loseReasonModal .btn-close {
    filter: none !important;
    opacity: 0.75 !important;
}

/* Руководитель /company/dashboard — модалки лида и центра заявок (как у прораба, светлая тема) */
html.theme-light .leader-foreman-modal .leader-modal-sheet,
html.theme-light .leader-foreman-modal .modal-content.leader-modal-sheet {
    background: #ffffff !important;
    border: 1px solid rgba(148, 163, 184, 0.35) !important;
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.1) !important;
    color: #0f172a !important;
}
html.theme-light .leader-foreman-modal .leader-modal-header {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.14), rgba(118, 75, 162, 0.1)) !important;
    border-bottom: 1px solid rgba(148, 163, 184, 0.35) !important;
}
html.theme-light .leader-foreman-modal .leader-modal-header .modal-title {
    color: #0f172a !important;
}
html.theme-light .leader-foreman-modal .leader-modal-header .modal-title i {
    color: #db2777 !important;
}
html.theme-light .leader-foreman-modal .leader-modal-body {
    background: #f1f5f9 !important;
    color: #0f172a !important;
}
html.theme-light .leader-foreman-modal .btn-close.btn-close-white {
    filter: none !important;
    opacity: 0.85 !important;
}
html.theme-light .leader-foreman-modal .cd-form-group label {
    color: #475569 !important;
}
html.theme-light .leader-foreman-modal .cd-input,
html.theme-light .leader-foreman-modal select.cd-input {
    background: #ffffff !important;
    color: #0f172a !important;
    border-color: #e2e8f0 !important;
    color-scheme: light !important;
}
html.theme-light .leader-foreman-modal .cd-input::placeholder {
    color: #94a3b8 !important;
}

/* Руководитель: CRM, рейтинг, команда — кастомные модалки в светлой теме */
html.theme-light .cc-modal-overlay,
html.theme-light .cr-modal-overlay,
html.theme-light .ct-modal-overlay {
    background: rgba(15, 23, 42, 0.45) !important;
    backdrop-filter: blur(4px);
}
html.theme-light .cc-modal,
html.theme-light .cr-modal,
html.theme-light .ct-modal {
    background: #ffffff !important;
    border: 1px solid rgba(148, 163, 184, 0.35) !important;
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.12) !important;
    color: #0f172a !important;
}
html.theme-light .cc-modal-header h3,
html.theme-light .cr-modal-header h3,
html.theme-light .ct-modal-header h3 {
    color: #0f172a !important;
}
html.theme-light .cc-modal-close,
html.theme-light .cr-modal-close,
html.theme-light .ct-modal-close {
    color: #64748b !important;
}
html.theme-light .cc-form-group label,
html.theme-light .ct-form-group label {
    color: #475569 !important;
}
html.theme-light .cc-input,
html.theme-light .ct-input,
html.theme-light .ct-select {
    background: #ffffff !important;
    color: #0f172a !important;
    border-color: #e2e8f0 !important;
    color-scheme: light !important;
}
html.theme-light .cc-input::placeholder,
html.theme-light .ct-input::placeholder {
    color: #94a3b8 !important;
}
html.theme-light .ct-select option {
    background: #ffffff !important;
    color: #0f172a !important;
}
html.theme-light .cr-modal-score-val {
    color: #0f172a !important;
}
html.theme-light .cr-modal-score-lbl,
html.theme-light .cr-modal-section-title {
    color: #64748b !important;
}
html.theme-light .cr-modal-item {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
}
html.theme-light .cr-modal-item .lbl {
    color: #64748b !important;
}
html.theme-light .cr-modal-item .val {
    color: #0f172a !important;
}
html.theme-light .cr-modal-tip {
    background: #eff6ff !important;
    border-color: rgba(59, 130, 246, 0.28) !important;
    color: #1e40af !important;
}


/* ============================================
   /help — Внутренняя инструкция (templates/help.html)
   ============================================ */
html.theme-light .help-wrap,
[data-theme="light"] .help-wrap {
    color: #0f172a;
}
html.theme-light .help-title,
[data-theme="light"] .help-title {
    color: #0f172a !important;
}
html.theme-light .help-title i,
[data-theme="light"] .help-title i {
    color: #4f46e5 !important;
}
html.theme-light .help-subtitle,
[data-theme="light"] .help-subtitle {
    color: #64748b !important;
}
html.theme-light .help-accordion,
[data-theme="light"] .help-accordion {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04) !important;
}
html.theme-light .help-accordion-header:hover,
[data-theme="light"] .help-accordion-header:hover {
    background: #f8fafc !important;
}
html.theme-light .help-accordion-title,
[data-theme="light"] .help-accordion-title {
    color: #0f172a !important;
}
html.theme-light .help-accordion-chevron,
[data-theme="light"] .help-accordion-chevron {
    color: #94a3b8 !important;
}
html.theme-light .help-step,
[data-theme="light"] .help-step {
    border-bottom-color: #f1f5f9 !important;
}
html.theme-light .help-step-num,
[data-theme="light"] .help-step-num {
    background: rgba(99, 102, 241, 0.12) !important;
    color: #4338ca !important;
}
html.theme-light .help-step-title,
[data-theme="light"] .help-step-title {
    color: #0f172a !important;
}
html.theme-light .help-step-desc,
[data-theme="light"] .help-step-desc {
    color: #475569 !important;
}
html.theme-light .help-tip,
[data-theme="light"] .help-tip {
    background: rgba(245, 158, 11, 0.1) !important;
    border-color: rgba(245, 158, 11, 0.3) !important;
    color: #92400e !important;
}
html.theme-light .help-warning,
[data-theme="light"] .help-warning {
    background: rgba(239, 68, 68, 0.08) !important;
    border-color: rgba(239, 68, 68, 0.25) !important;
    color: #b91c1c !important;
}
html.theme-light .help-info,
[data-theme="light"] .help-info {
    background: rgba(59, 130, 246, 0.08) !important;
    border-color: rgba(59, 130, 246, 0.25) !important;
    color: #1d4ed8 !important;
}
html.theme-light .help-content,
[data-theme="light"] .help-content {
    color: #334155;
}
html.theme-light .help-content p,
html.theme-light .help-content li,
html.theme-light .help-content span,
[data-theme="light"] .help-content p,
[data-theme="light"] .help-content li,
[data-theme="light"] .help-content span {
    color: #334155;
}
html.theme-light .help-content strong,
html.theme-light .help-content b,
[data-theme="light"] .help-content strong,
[data-theme="light"] .help-content b {
    color: #0f172a;
}

/* ============================================
   /help (анонимный) — База знаний (landing/help/index.html)
   ============================================ */
html.theme-light .help-grid .help-category,
[data-theme="light"] .help-grid .help-category {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.05) !important;
}
html.theme-light .help-grid .help-category:hover,
[data-theme="light"] .help-grid .help-category:hover {
    border-color: rgba(99, 102, 241, 0.4) !important;
    background: #f8fafc !important;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08) !important;
}
html.theme-light .help-grid .help-category h3,
[data-theme="light"] .help-grid .help-category h3 {
    color: #0f172a !important;
}
html.theme-light .help-grid .help-category p,
[data-theme="light"] .help-grid .help-category p {
    color: #64748b !important;
}

/* ============================================
   /help/guide-owner и /help/guide-company — Полные руководства
   ============================================ */
html.theme-light .guide-card,
[data-theme="light"] .guide-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    color: #334155 !important;
}
html.theme-light .guide-card h2,
html.theme-light .guide-card h3,
html.theme-light .guide-card h4,
[data-theme="light"] .guide-card h2,
[data-theme="light"] .guide-card h3,
[data-theme="light"] .guide-card h4 {
    color: #0f172a !important;
}
html.theme-light .guide-section,
[data-theme="light"] .guide-section {
    color: #334155 !important;
}
html.theme-light .guide-section p,
html.theme-light .guide-section li,
[data-theme="light"] .guide-section p,
[data-theme="light"] .guide-section li {
    color: #334155 !important;
}
html.theme-light .guide-section h2,
html.theme-light .guide-section h3,
html.theme-light .guide-section h4,
[data-theme="light"] .guide-section h2,
[data-theme="light"] .guide-section h3,
[data-theme="light"] .guide-section h4 {
    color: #0f172a !important;
}
html.theme-light .guide-highlight,
[data-theme="light"] .guide-highlight {
    background: rgba(99, 102, 241, 0.08) !important;
    border-left-color: #6366f1 !important;
    color: #3730a3 !important;
}
html.theme-light .guide-highlight p,
[data-theme="light"] .guide-highlight p {
    color: #3730a3 !important;
}
html.theme-light .guide-warning,
[data-theme="light"] .guide-warning {
    background: rgba(245, 158, 11, 0.1) !important;
    border-left-color: #f59e0b !important;
    color: #92400e !important;
}
html.theme-light .guide-warning p,
[data-theme="light"] .guide-warning p {
    color: #92400e !important;
}
html.theme-light .guide-step,
[data-theme="light"] .guide-step {
    color: #334155 !important;
}
html.theme-light .guide-step::before,
[data-theme="light"] .guide-step::before {
    color: #ffffff !important;
    background: linear-gradient(135deg, #6366f1, #7c3aed) !important;
}
html.theme-light .guide-step h3,
html.theme-light .guide-step h4,
html.theme-light .guide-step strong,
[data-theme="light"] .guide-step h3,
[data-theme="light"] .guide-step h4,
[data-theme="light"] .guide-step strong {
    color: #0f172a !important;
}
html.theme-light .guide-step p,
[data-theme="light"] .guide-step p {
    color: #475569 !important;
}

/* ap-hero (используется на /help/guide-* и других) */
html.theme-light .ap-hero,
[data-theme="light"] .ap-hero {
    background: linear-gradient(165deg, #ffffff 0%, #f8fafc 50%, #eef2ff 100%) !important;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
}
html.theme-light .ap-hero-title,
[data-theme="light"] .ap-hero-title {
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a !important;
}
html.theme-light .ap-hero-desc,
html.theme-light .ap-hero-subtitle,
[data-theme="light"] .ap-hero-desc,
[data-theme="light"] .ap-hero-subtitle {
    color: #475569 !important;
}
html.theme-light .ap-hero-badge,
[data-theme="light"] .ap-hero-badge {
    background: rgba(99, 102, 241, 0.12) !important;
    color: #4338ca !important;
    border: 1px solid rgba(99, 102, 241, 0.25) !important;
}


/* ============================================
   /crm-tasks и /crm — Модалки задач (modal-way + crm-task-modal)
   ============================================ */
html.theme-light .modal-way .modal-content,
html.theme-light .crm-task-modal .modal-content,
[data-theme="light"] .modal-way .modal-content,
[data-theme="light"] .crm-task-modal .modal-content {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%) !important;
    color: #0f172a !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.18) !important;
}
html.theme-light .modal-way .modal-header,
html.theme-light .crm-task-modal .modal-header,
[data-theme="light"] .modal-way .modal-header,
[data-theme="light"] .crm-task-modal .modal-header {
    border-bottom: 1px solid #e2e8f0 !important;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(124, 58, 237, 0.05)) !important;
}
html.theme-light .modal-way .modal-title,
html.theme-light .crm-task-modal .modal-title,
[data-theme="light"] .modal-way .modal-title,
[data-theme="light"] .crm-task-modal .modal-title {
    color: #0f172a !important;
}
html.theme-light .modal-way .modal-title i,
html.theme-light .crm-task-modal .modal-title i,
[data-theme="light"] .modal-way .modal-title i,
[data-theme="light"] .crm-task-modal .modal-title i {
    color: #4f46e5 !important;
}
html.theme-light .modal-way .modal-body,
html.theme-light .crm-task-modal .modal-body,
[data-theme="light"] .modal-way .modal-body,
[data-theme="light"] .crm-task-modal .modal-body {
    background: transparent !important;
    color: #0f172a !important;
}
html.theme-light .modal-way .form-label,
html.theme-light .crm-task-modal .form-label,
[data-theme="light"] .modal-way .form-label,
[data-theme="light"] .crm-task-modal .form-label {
    color: #4338ca !important;
}
html.theme-light .modal-way .form-control,
html.theme-light .modal-way .form-select,
html.theme-light .crm-task-modal .form-control,
html.theme-light .crm-task-modal .form-select,
[data-theme="light"] .modal-way .form-control,
[data-theme="light"] .modal-way .form-select,
[data-theme="light"] .crm-task-modal .form-control,
[data-theme="light"] .crm-task-modal .form-select {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    color: #0f172a !important;
}
html.theme-light .modal-way .form-control:focus,
html.theme-light .modal-way .form-select:focus,
html.theme-light .crm-task-modal .form-control:focus,
html.theme-light .crm-task-modal .form-select:focus,
[data-theme="light"] .modal-way .form-control:focus,
[data-theme="light"] .modal-way .form-select:focus,
[data-theme="light"] .crm-task-modal .form-control:focus,
[data-theme="light"] .crm-task-modal .form-select:focus {
    background: #ffffff !important;
    border-color: rgba(99, 102, 241, 0.55) !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12) !important;
    color: #0f172a !important;
}
html.theme-light .modal-way .form-control::placeholder,
html.theme-light .crm-task-modal .form-control::placeholder,
[data-theme="light"] .modal-way .form-control::placeholder,
[data-theme="light"] .crm-task-modal .form-control::placeholder {
    color: #94a3b8 !important;
}
html.theme-light .modal-way .modal-footer,
html.theme-light .crm-task-modal .modal-footer,
[data-theme="light"] .modal-way .modal-footer,
[data-theme="light"] .crm-task-modal .modal-footer {
    border-top: 1px solid #e2e8f0 !important;
    background: rgba(255, 255, 255, 0.96) !important;
}
html.theme-light .modal-way .btn-close.btn-close-white,
html.theme-light .crm-task-modal .btn-close.btn-close-white,
[data-theme="light"] .modal-way .btn-close.btn-close-white,
[data-theme="light"] .crm-task-modal .btn-close.btn-close-white {
    filter: none !important;
    opacity: 0.7 !important;
}
html.theme-light .modal-way .modal-btn-cancel,
[data-theme="light"] .modal-way .modal-btn-cancel {
    background: #f1f5f9 !important;
    border: 1px solid #e2e8f0 !important;
    color: #475569 !important;
}
html.theme-light .modal-way .modal-btn-cancel:hover,
[data-theme="light"] .modal-way .modal-btn-cancel:hover {
    background: #eef2f7 !important;
    color: #0f172a !important;
}
html.theme-light .modal-way .modal-btn-save,
[data-theme="light"] .modal-way .modal-btn-save {
    background: linear-gradient(135deg, #6366f1, #7c3aed) !important;
    color: #ffffff !important;
}
html.theme-light .modal-way .modal-btn-danger,
[data-theme="light"] .modal-way .modal-btn-danger {
    background: rgba(239, 68, 68, 0.1) !important;
    border-color: rgba(239, 68, 68, 0.25) !important;
    color: #b91c1c !important;
}


/* ============================================
   Reminder Preview внутри модалок CRM-задач (modal-way)
   ============================================ */
html.theme-light .modal-way .reminder-preview,
[data-theme="light"] .modal-way .reminder-preview {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.06), rgba(124, 58, 237, 0.04)) !important;
    border-color: rgba(99, 102, 241, 0.22) !important;
}
html.theme-light .modal-way .reminder-preview-title,
[data-theme="light"] .modal-way .reminder-preview-title {
    color: #4338ca !important;
}
html.theme-light .modal-way .reminder-preview-empty,
[data-theme="light"] .modal-way .reminder-preview-empty {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    color: #64748b !important;
}
html.theme-light .modal-way .reminder-preview-item,
[data-theme="light"] .modal-way .reminder-preview-item {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
}
html.theme-light .modal-way .reminder-preview-item:hover,
[data-theme="light"] .modal-way .reminder-preview-item:hover {
    border-color: rgba(99, 102, 241, 0.4) !important;
    background: #eef2ff !important;
}
html.theme-light .modal-way .reminder-preview-item .rp-label,
[data-theme="light"] .modal-way .reminder-preview-item .rp-label {
    color: #1e293b !important;
}
html.theme-light .modal-way .reminder-preview-item .rp-label i,
[data-theme="light"] .modal-way .reminder-preview-item .rp-label i {
    color: #6366f1 !important;
}
html.theme-light .modal-way .reminder-preview-item .rp-time,
[data-theme="light"] .modal-way .reminder-preview-item .rp-time {
    background: #f1f5f9 !important;
    border-color: #e2e8f0 !important;
    color: #475569 !important;
}
html.theme-light .modal-way .reminder-add-btn,
[data-theme="light"] .modal-way .reminder-add-btn {
    background: rgba(99, 102, 241, 0.08) !important;
    border-color: rgba(99, 102, 241, 0.3) !important;
    color: #4338ca !important;
}
html.theme-light .modal-way .reminder-add-btn:hover,
[data-theme="light"] .modal-way .reminder-add-btn:hover {
    background: rgba(99, 102, 241, 0.16) !important;
    color: #312e81 !important;
}
html.theme-light .modal-way .reminder-custom-row input[type="datetime-local"],
[data-theme="light"] .modal-way .reminder-custom-row input[type="datetime-local"] {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}
html.theme-light .modal-way .reminder-custom-row .rc-cancel,
[data-theme="light"] .modal-way .reminder-custom-row .rc-cancel {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    color: #475569 !important;
}
html.theme-light .modal-way .reminder-custom-row .rc-cancel:hover,
[data-theme="light"] .modal-way .reminder-custom-row .rc-cancel:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
}

/* ============================================
   Кнопки modal-btn в светлой теме
   ============================================ */
html.theme-light .modal-btn-cancel,
[data-theme="light"] .modal-btn-cancel {
    background: #f1f5f9 !important;
    border: 1px solid #e2e8f0 !important;
    color: #475569 !important;
}
html.theme-light .modal-btn-cancel:hover,
[data-theme="light"] .modal-btn-cancel:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
}
html.theme-light .modal-btn-save,
[data-theme="light"] .modal-btn-save {
    background: linear-gradient(135deg, #6366f1, #7c3aed) !important;
    color: #ffffff !important;
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.25) !important;
}
html.theme-light .modal-btn-save:hover,
[data-theme="light"] .modal-btn-save:hover {
    box-shadow: 0 10px 22px rgba(99, 102, 241, 0.35) !important;
}
html.theme-light .modal-btn-danger,
[data-theme="light"] .modal-btn-danger {
    background: #fef2f2 !important;
    border-color: #fca5a5 !important;
    color: #b91c1c !important;
}
html.theme-light .modal-btn-danger:hover,
[data-theme="light"] .modal-btn-danger:hover {
    background: #fee2e2 !important;
    border-color: #f87171 !important;
    color: #991b1b !important;
}

/* ============================================
   modal-way заголовок и поля в светлой теме
   ============================================ */
html.theme-light .modal-way .modal-content,
[data-theme="light"] .modal-way .modal-content {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%) !important;
    color: #0f172a !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.18) !important;
}
html.theme-light .modal-way .modal-header,
[data-theme="light"] .modal-way .modal-header {
    border-bottom-color: #e2e8f0 !important;
}
html.theme-light .modal-way .modal-title,
[data-theme="light"] .modal-way .modal-title {
    color: #0f172a !important;
}
html.theme-light .modal-way .modal-title i,
[data-theme="light"] .modal-way .modal-title i {
    color: #6366f1 !important;
}
html.theme-light .modal-way .form-label,
[data-theme="light"] .modal-way .form-label {
    color: #4338ca !important;
}
html.theme-light .modal-way .form-control,
html.theme-light .modal-way .form-select,
[data-theme="light"] .modal-way .form-control,
[data-theme="light"] .modal-way .form-select {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}
html.theme-light .modal-way .form-control:focus,
html.theme-light .modal-way .form-select:focus,
[data-theme="light"] .modal-way .form-control:focus,
[data-theme="light"] .modal-way .form-select:focus {
    background: #ffffff !important;
    border-color: rgba(99, 102, 241, 0.55) !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12) !important;
}
html.theme-light .modal-way .form-control::placeholder,
[data-theme="light"] .modal-way .form-control::placeholder {
    color: #94a3b8 !important;
}
html.theme-light .modal-way .form-select option,
[data-theme="light"] .modal-way .form-select option {
    background: #ffffff !important;
    color: #0f172a !important;
}
html.theme-light .modal-way .modal-footer,
[data-theme="light"] .modal-way .modal-footer {
    border-top-color: #e2e8f0 !important;
    background: rgba(255, 255, 255, 0.96) !important;
}
html.theme-light .modal-way .btn-close,
[data-theme="light"] .modal-way .btn-close {
    filter: none !important;
    opacity: 0.7 !important;
}


/* =========================================================
   OWNER · FINANCE — Светлая тема (полное покрытие)
   Аккаунт заказчика, вкладка «Финансы» в object_detail
   Цель: убрать «белый текст на белом», поднять контраст
   обводок и сделать блоки тёплыми, не серыми.
   ========================================================= */

/* Hero-карточка финансов и сетка KPI */
html.theme-light .ofin-hero {
    background:
        linear-gradient(160deg, #ffffff 0%, #f5f3ff 55%, #ecfeff 100%) !important;
    border: 1px solid #d8d6ff !important;
    box-shadow: 0 18px 48px rgba(99, 102, 241, 0.10), 0 0 0 1px rgba(124, 58, 237, 0.05) !important;
}
html.theme-light .ofin-hero::before {
    background:
        radial-gradient(circle at 0% 0%, rgba(124, 58, 237, 0.08) 0%, transparent 45%),
        radial-gradient(circle at 100% 100%, rgba(6, 182, 212, 0.07) 0%, transparent 45%) !important;
}
html.theme-light .ofin-cell {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04) !important;
}
html.theme-light .ofin-cell-label {
    color: #64748b !important;
}
html.theme-light .ofin-cell-value {
    color: #0f172a !important;
}
html.theme-light .ofin-cell-value--gradient {
    background: linear-gradient(135deg, #6d28d9, #06b6d4) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}
html.theme-light .ofin-cell-value--green { color: #047857 !important; }
html.theme-light .ofin-cell-value--red   { color: #b91c1c !important; }
html.theme-light .ofin-cell-value--gold  { color: #b45309 !important; }
html.theme-light .ofin-cell-sub {
    color: #64748b !important;
}

/* Прогресс оплаты */
html.theme-light .ofin-prog-bar {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
}
html.theme-light .ofin-prog-label { color: #475569 !important; }
html.theme-light .ofin-prog-value { color: #0f172a !important; }
html.theme-light .ofin-prog-track {
    background: #e2e8f0 !important;
}

/* Split-карточки «В договоре / Вне договора» */
html.theme-light .ofin-split,
html.theme-light .of-split {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04) !important;
}
html.theme-light .ofin-split--purple,
html.theme-light .of-split--purple {
    background: linear-gradient(145deg, #ffffff, #f5f3ff) !important;
    border-color: rgba(124, 58, 237, 0.22) !important;
    box-shadow: 0 8px 22px rgba(124, 58, 237, 0.06) !important;
}
html.theme-light .ofin-split--gold,
html.theme-light .of-split--amber {
    background: linear-gradient(145deg, #ffffff, #fffbeb) !important;
    border-color: rgba(245, 158, 11, 0.28) !important;
    box-shadow: 0 8px 22px rgba(245, 158, 11, 0.06) !important;
}
html.theme-light .ofin-split-lbl,
html.theme-light .of-split-lbl {
    color: #64748b !important;
}
html.theme-light .ofin-split-val,
html.theme-light .of-split-val {
    color: #0f172a !important;
}
html.theme-light .of-split--purple .of-split-val { color: #4338ca !important; }
html.theme-light .of-split--amber  .of-split-val { color: #b45309 !important; }

/* Hero-сетка договора (Сумма / Оплачено / Остаток) */
html.theme-light .of-hero {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05) !important;
}
html.theme-light .of-hero-icon {
    background: rgba(99, 102, 241, 0.08) !important;
    color: #4f46e5 !important;
}
html.theme-light .of-hero--purple {
    background: linear-gradient(145deg, #ffffff, #f5f3ff) !important;
    border-color: rgba(124, 58, 237, 0.22) !important;
}
html.theme-light .of-hero--purple .of-hero-icon { background: rgba(124, 58, 237, 0.12) !important; color: #6d28d9 !important; }
html.theme-light .of-hero--purple .of-hero-val  { color: #4338ca !important; }

html.theme-light .of-hero--green {
    background: linear-gradient(145deg, #ffffff, #ecfdf5) !important;
    border-color: rgba(16, 185, 129, 0.26) !important;
}
html.theme-light .of-hero--green .of-hero-icon { background: rgba(16, 185, 129, 0.14) !important; color: #047857 !important; }
html.theme-light .of-hero--green .of-hero-val  { color: #047857 !important; }

html.theme-light .of-hero--amber {
    background: linear-gradient(145deg, #ffffff, #fffbeb) !important;
    border-color: rgba(245, 158, 11, 0.28) !important;
}
html.theme-light .of-hero--amber .of-hero-icon { background: rgba(245, 158, 11, 0.14) !important; color: #b45309 !important; }
html.theme-light .of-hero--amber .of-hero-val  { color: #b45309 !important; }

html.theme-light .of-hero-lbl { color: #64748b !important; }

/* Секции и заголовки финансов */
html.theme-light .of-section {
    background: linear-gradient(145deg, #ffffff, #f8fafc) !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06) !important;
}
html.theme-light .of-section::before { display: none !important; }
html.theme-light .of-section-title { color: #0f172a !important; }
html.theme-light .of-section-icon {
    background: rgba(99, 102, 241, 0.10) !important;
    color: #4f46e5 !important;
    box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.12) !important;
}
html.theme-light .of-section-icon--purple { background: rgba(124, 58, 237, 0.12) !important; color: #6d28d9 !important; }
html.theme-light .of-section-icon--green  { background: rgba(16, 185, 129, 0.14) !important; color: #047857 !important; }
html.theme-light .of-section-icon--red    { background: rgba(239, 68, 68, 0.10) !important; color: #b91c1c !important; }
html.theme-light .of-section-badge {
    background: #f1f5f9 !important;
    color: #334155 !important;
    border: 1px solid #e2e8f0 !important;
}
html.theme-light .of-section-badge--red {
    background: #fee2e2 !important;
    color: #b91c1c !important;
    border-color: #fecaca !important;
}

/* Прогресс-бар оплаты */
html.theme-light .of-progress-wrap {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
}
html.theme-light .of-progress-title { color: #334155 !important; }
html.theme-light .of-progress-pct {
    background: linear-gradient(135deg, #6366f1, #7c3aed) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}
html.theme-light .of-progress-track { background: #e2e8f0 !important; }
html.theme-light .of-progress-labels { color: #64748b !important; }

/* Статусные баннеры */
html.theme-light .of-status--green   { background: #ecfdf5 !important; border-color: rgba(16, 185, 129, 0.32) !important; color: #047857 !important; }
html.theme-light .of-status--amber   { background: #fffbeb !important; border-color: rgba(245, 158, 11, 0.32) !important; color: #b45309 !important; }
html.theme-light .of-status--neutral { background: #f1f5f9 !important; border-color: #e2e8f0 !important; color: #475569 !important; }

/* Категории расходов */
html.theme-light .of-cat-row {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
}
html.theme-light .of-cat-name   { color: #0f172a !important; }
html.theme-light .of-cat-amount { color: #0f172a !important; }
html.theme-light .of-cat-pct    { color: #64748b !important; }
html.theme-light .of-cat-icon   {
    background: rgba(99, 102, 241, 0.08) !important;
    color: #4f46e5 !important;
}
html.theme-light .of-cat-bar    { background: #e2e8f0 !important; }
html.theme-light .of-cat-fill   {
    background: linear-gradient(90deg, #6366f1, #06b6d4) !important;
}
html.theme-light .of-cats-label { color: #64748b !important; }

/* Список операций (платежи / расходы) */
html.theme-light .of-op-item,
html.theme-light .of-pay-item {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04) !important;
}
html.theme-light .of-op-emoji,
html.theme-light .of-pay-icon {
    background: rgba(99, 102, 241, 0.08) !important;
    color: #4f46e5 !important;
}
html.theme-light .of-op-desc,
html.theme-light .of-pay-desc { color: #0f172a !important; }
html.theme-light .of-op-meta,
html.theme-light .of-pay-date { color: #64748b !important; }
html.theme-light .of-op-sum   { color: #0f172a !important; }
html.theme-light .of-pay-amount { color: #047857 !important; }
html.theme-light .of-empty    { color: #94a3b8 !important; }

/* Expand-блок (детали договора) */
html.theme-light .of-expand {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
}

/* Inline-карточки внутри светлой темы заказчика — снять чёрный фон,
   который сейчас прокидывается из тёмной палитры.  Это покрывает
   секции «Полная прозрачность расходов», «Операций / Вне договора» и
   все плитки, которые верстаются инлайн-стилями. */
html.theme-light #tab-finances [style*="background:linear-gradient(145deg,rgba(16,185,129"],
html.theme-light #tab-finances [style*="background:linear-gradient(145deg,rgba(102,126,234"],
html.theme-light #tab-finances [style*="background:linear-gradient(145deg,rgba(245,158,11"],
html.theme-light #tab-finances [style*="background:linear-gradient(145deg,rgba(124,58,237"] {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04) !important;
}
html.theme-light #tab-finances [style*="color:rgba(255,255,255"] { color: #475569 !important; }
html.theme-light #tab-finances [style*="color:#fff"]            { color: #0f172a !important; }
html.theme-light #tab-finances [style*="color:#6ee7b7"]         { color: #047857 !important; }
html.theme-light #tab-finances [style*="color:#34d399"]         { color: #059669 !important; }
html.theme-light #tab-finances [style*="color:#fcd34d"]         { color: #b45309 !important; }
html.theme-light #tab-finances [style*="color:#fbbf24"]         { color: #b45309 !important; }
html.theme-light #tab-finances [style*="border-top:1px solid rgba(255,255,255"],
html.theme-light #tab-finances [style*="border:1px solid rgba(255,255,255"] {
    border-color: #e2e8f0 !important;
}

/* =========================================================
   OWNER · OBJECT DETAIL — Подсветка обводок и фон
   Усиление контраста для всех серых блоков на белом фоне
   ========================================================= */
html.theme-light .status-card,
html.theme-light .section-card,
html.theme-light .stage-card,
html.theme-light .stage-item,
html.theme-light .team-member,
html.theme-light .doc-item,
html.theme-light .event-log-item,
html.theme-light .task-item {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05) !important;
}
html.theme-light .stage-card:hover,
html.theme-light .stage-item:hover,
html.theme-light .doc-item:hover,
html.theme-light .team-member:hover {
    border-color: rgba(99, 102, 241, 0.32) !important;
    box-shadow: 0 14px 32px rgba(99, 102, 241, 0.10) !important;
}


/* =========================================================
   OWNER · DASHBOARD V2 — Светлая тема
   Прицельный апгрейд: KPI-кольца, карточка проекта,
   статус «В работе», подписи и обводки.
   ========================================================= */

/* Кольца Бюджет / Прогресс / "—" */
html.theme-light .hero-metric .metric-ring .ring-bg {
    stroke: rgba(15, 23, 42, 0.10) !important;
}
html.theme-light .hero-metric .metric-ring .ring-fill {
    stroke: #4f46e5 !important;
}
html.theme-light .hero-metric .metric-ring .ring-fill.green {
    stroke: #059669 !important;
}
html.theme-light .hero-metric .metric-ring .ring-fill.warning {
    stroke: #b45309 !important;
}
html.theme-light .hero-metric .metric-ring .ring-fill.danger {
    stroke: #b91c1c !important;
}
html.theme-light .hero-metric .metric-ring .ring-value {
    color: #0f172a !important;
    text-shadow: none !important;
}
html.theme-light .hero-metric .metric-icon {
    color: #0f172a !important;
}
html.theme-light .hero-metric .metric-label {
    color: #475569 !important;
}

/* Карточка проекта (Заказчик Алекса…) */
html.theme-light .owner-app .project-card-3d {
    background:
        radial-gradient(circle at 100% 0%, rgba(124, 58, 237, 0.08), transparent 38%),
        radial-gradient(circle at 0% 100%, rgba(16, 185, 129, 0.06), transparent 38%),
        #ffffff !important;
    border: 1px solid #dbe2ef !important;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.07) !important;
}
html.theme-light .owner-app .project-card-3d .card-glow { opacity: 0 !important; }

html.theme-light .owner-app .project-status-badge {
    background: rgba(99, 102, 241, 0.10) !important;
    border: 1px solid rgba(99, 102, 241, 0.28) !important;
    color: #4338ca !important;
}
html.theme-light .owner-app .project-status-badge.in_progress,
html.theme-light .owner-app .project-status-badge.active {
    background: rgba(124, 58, 237, 0.10) !important;
    border-color: rgba(124, 58, 237, 0.30) !important;
}
html.theme-light .owner-app .project-status-badge.in_progress .status-text,
html.theme-light .owner-app .project-status-badge.active .status-text {
    color: #6d28d9 !important;
}
html.theme-light .owner-app .project-status-badge.in_progress .status-dot,
html.theme-light .owner-app .project-status-badge.active .status-dot {
    background: #7c3aed !important;
    box-shadow: 0 0 8px rgba(124, 58, 237, 0.45) !important;
}

html.theme-light .owner-app .project-card-3d .project-title {
    color: #0f172a !important;
}
html.theme-light .owner-app .project-card-3d .project-address,
html.theme-light .owner-app .project-card-3d .project-address span {
    color: #475569 !important;
}
html.theme-light .owner-app .project-card-3d .project-address i {
    color: #4f46e5 !important;
}
html.theme-light .owner-app .project-card-3d #projectCompany a {
    color: #047857 !important;
}

/* Прогресс этапов в карточке проекта */
html.theme-light .owner-app .stages-progress .stages-track {
    background: #e2e8f0 !important;
}
html.theme-light .owner-app .stages-progress .stages-fill {
    background: linear-gradient(90deg, #6366f1, #06b6d4) !important;
}
html.theme-light .owner-app .stages-progress .stage-dot-circle {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    color: #94a3b8 !important;
}
html.theme-light .owner-app .stages-progress .stage-dot-circle.completed {
    background: #4f46e5 !important;
    border-color: #4f46e5 !important;
    color: #ffffff !important;
}
html.theme-light .owner-app .stages-progress .stage-dot-circle.active {
    background: #7c3aed !important;
    border-color: #7c3aed !important;
    color: #ffffff !important;
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.15) !important;
}

/* Кнопка «Подробнее о проекте» */
html.theme-light .owner-app .btn-view-project {
    background: linear-gradient(135deg, #6366f1, #7c3aed) !important;
    border: 1px solid transparent !important;
    color: #ffffff !important;
    box-shadow: 0 12px 28px rgba(99, 102, 241, 0.25) !important;
}
html.theme-light .owner-app .btn-view-project:hover {
    box-shadow: 0 16px 32px rgba(99, 102, 241, 0.35) !important;
    transform: translateY(-1px) !important;
}

/* Карточки «Финансы / К оплате / Команда / Галерея / Проблема» */
html.theme-light .owner-app .project-actions .action-card-large {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06) !important;
}
html.theme-light .owner-app .project-actions .action-card-large:nth-child(1) { border-color: rgba(16, 185, 129, 0.32) !important; box-shadow: 0 10px 28px rgba(16, 185, 129, 0.10) !important; }
html.theme-light .owner-app .project-actions .action-card-large:nth-child(2) { border-color: rgba(139, 92, 246, 0.32) !important; box-shadow: 0 10px 28px rgba(139, 92, 246, 0.10) !important; }
html.theme-light .owner-app .project-actions .action-card-large:nth-child(3) { border-color: rgba(236, 72, 153, 0.32) !important; box-shadow: 0 10px 28px rgba(236, 72, 153, 0.10) !important; }
html.theme-light .owner-app .project-actions .action-card-large:nth-child(4) { border-color: rgba(6, 182, 212, 0.32) !important; box-shadow: 0 10px 28px rgba(6, 182, 212, 0.10) !important; }
html.theme-light .owner-app .project-actions .action-card-large:nth-child(5) { border-color: rgba(239, 68, 68, 0.32) !important; box-shadow: 0 10px 28px rgba(239, 68, 68, 0.08) !important; }
html.theme-light .owner-app .action-card-large .action-icon-large {
    background: #f1f5f9 !important;
    color: #4f46e5 !important;
}
html.theme-light .owner-app .action-card-large .action-icon-large.green  { background: rgba(16, 185, 129, 0.12) !important; color: #047857 !important; }
html.theme-light .owner-app .action-card-large .action-icon-large.pink   { background: rgba(236, 72, 153, 0.12) !important; color: #be185d !important; }
html.theme-light .owner-app .action-card-large .action-icon-large.cyan   { background: rgba(6, 182, 212, 0.12) !important; color: #0e7490 !important; }
html.theme-light .owner-app .action-card-large .action-icon-large.amber  { background: rgba(245, 158, 11, 0.12) !important; color: #b45309 !important; }
html.theme-light .owner-app .action-card-large .action-icon-large.purple { background: rgba(124, 58, 237, 0.12) !important; color: #6d28d9 !important; }

/* Финансовый виджет на дашборде (3 KPI-плитки) */
html.theme-light .owner-app #financeWidget > div {
    background: linear-gradient(145deg, #ffffff, #f5fdf9) !important;
    border-color: rgba(16, 185, 129, 0.30) !important;
    box-shadow: 0 10px 28px rgba(16, 185, 129, 0.08) !important;
}
html.theme-light .owner-app #financeWidget [style*="background:rgba(16,185,129,0.08)"] {
    background: rgba(16, 185, 129, 0.08) !important;
    border-color: rgba(16, 185, 129, 0.30) !important;
}
html.theme-light .owner-app #financeWidget [style*="color:#10b981"]  { color: #047857 !important; }
html.theme-light .owner-app #financeWidget [style*="color:#888"]      { color: #64748b !important; }
html.theme-light .owner-app #financeWidget [style*="color:#fff"]      { color: #0f172a !important; }
html.theme-light .owner-app #financeWidget [style*="color:#a78bfa"]   { color: #6d28d9 !important; }
html.theme-light .owner-app #financeWidget [style*="color:#f59e0b"]   { color: #b45309 !important; }


/* Фильтр операций по этапу — светлая тема */
html.theme-light #opsStageFilter {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    color: #0f172a !important;
}
html.theme-light .of-stage-filter > span:first-child { color: #475569 !important; }
html.theme-light #opsStageCount { color: #64748b !important; }


/* =========================================================
   WAY Life — Светлая тема (Premium 2026)
   ========================================================= */
html.theme-light .owner-app .waylife-v3 .wl3-hero {
    background: #ffffff !important;
    border-color: rgba(236, 72, 153, 0.32) !important;
    box-shadow:
        0 18px 44px rgba(15, 23, 42, 0.08),
        0 0 0 1px rgba(236, 72, 153, 0.08) !important;
}
html.theme-light .owner-app .waylife-v3 .wl3-hero:hover {
    border-color: rgba(236, 72, 153, 0.55) !important;
    box-shadow:
        0 24px 56px rgba(236, 72, 153, 0.18),
        0 0 0 1px rgba(236, 72, 153, 0.2) !important;
}
html.theme-light .owner-app .waylife-v3 .wl3-hero-content {
    background:
        radial-gradient(600px 200px at 0% 0%, rgba(236, 72, 153, 0.05), transparent 60%),
        linear-gradient(180deg, #fafafa 0%, #f5f5fb 100%) !important;
    border-top: 1px solid rgba(236, 72, 153, 0.16) !important;
}
html.theme-light .owner-app .waylife-v3 .wl3-hero-title { color: #0f172a !important; }
html.theme-light .owner-app .waylife-v3 .wl3-hero-desc  { color: #475569 !important; }
html.theme-light .owner-app .waylife-v3 .wl3-hero-meta  { color: #64748b !important; }
html.theme-light .owner-app .waylife-v3 .wl3-hero-meta > span:not(.wl3-read-link) {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
}
html.theme-light .owner-app .waylife-v3 .wl3-hero-badge {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.18), rgba(190, 24, 93, 0.12)) !important;
    border-color: rgba(236, 72, 153, 0.32) !important;
    color: #be185d !important;
}
html.theme-light .owner-app .waylife-v3 .wl3-read-link {
    color: #ffffff !important;
    background: linear-gradient(135deg, #ec4899, #be185d) !important;
    border-color: rgba(236, 72, 153, 0.5) !important;
    box-shadow: 0 8px 18px rgba(236, 72, 153, 0.25) !important;
}

html.theme-light .owner-app .waylife-v3 .wl3-card {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05) !important;
}
html.theme-light .owner-app .waylife-v3 .wl3-card:hover {
    border-color: rgba(236, 72, 153, 0.35) !important;
    box-shadow: 0 16px 32px rgba(236, 72, 153, 0.14) !important;
}
html.theme-light .owner-app .waylife-v3 .wl3-card-title { color: #0f172a !important; }
html.theme-light .owner-app .waylife-v3 .wl3-card-footer { color: #64748b !important; }
html.theme-light .owner-app .waylife-v3 .wl3-card-footer .wl3-read-link {
    color: #be185d !important;
    background: rgba(236, 72, 153, 0.10) !important;
    border-color: rgba(236, 72, 153, 0.28) !important;
}
html.theme-light .owner-app .waylife-v3 .wl3-card-tag {
    background: rgba(15, 23, 42, 0.6) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
}


/* WAY Life — Bookmark кнопка и acceptance-kit (светлая тема) */
html.theme-light .wl3-bookmark-btn {
    background: rgba(255, 255, 255, 0.92) !important;
    border-color: #e2e8f0 !important;
    color: #475569 !important;
}
html.theme-light .wl3-bookmark-btn:hover {
    background: #ffffff !important;
    color: #be185d !important;
}
html.theme-light .wl3-bookmark-btn.is-on {
    background: linear-gradient(135deg, #ec4899, #be185d) !important;
    border-color: rgba(236, 72, 153, 0.6) !important;
    color: #ffffff !important;
}

html.theme-light .wl-acceptance-kit {
    background:
        radial-gradient(700px 240px at 0% 0%, rgba(245, 158, 11, 0.10), transparent 60%),
        #ffffff !important;
    border-color: rgba(245, 158, 11, 0.32) !important;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.06), 0 0 0 1px rgba(245, 158, 11, 0.08) !important;
}
html.theme-light .wl-ak-icon {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(180, 83, 9, 0.12)) !important;
    border-color: rgba(245, 158, 11, 0.38) !important;
    color: #b45309 !important;
}
html.theme-light .wl-ak-eyebrow {
    background: rgba(245, 158, 11, 0.10) !important;
    border-color: rgba(245, 158, 11, 0.30) !important;
    color: #b45309 !important;
}
html.theme-light .wl-ak-title { color: #0f172a !important; }
html.theme-light .wl-ak-sub   { color: #64748b !important; }
