/*
 * Dark mode — Documents, Templates, Forms, Reports, Leads, Inbox, and Grow.
 * Re-loaded after deferred Composer, Forms, and Inbox bundles.
 */

/* ── Documents and Templates ────────────────────────────────── */
html[data-theme="dark"] body[data-theme="momentum"] #documentsView,
html[data-theme="dark"] body[data-theme="momentum"] .documentsPane,
html[data-theme="dark"] body[data-theme="momentum"] #documentsView .documents-library-container,
html[data-theme="dark"] body[data-theme="momentum"] #templatesView,
html[data-theme="dark"] body[data-theme="momentum"] .templatesPane {
  background: #181818 !important;
  background-image: none !important;
  color: #f0f0f0 !important;
  border-color: rgba(240, 240, 240, 0.18) !important;
  color-scheme: dark;
}

html[data-theme="dark"] body[data-theme="momentum"] #documentsView .documents-header,
html[data-theme="dark"] body[data-theme="momentum"] #documentsView .documents-categories,
html[data-theme="dark"] body[data-theme="momentum"] #documentsView .documents-main,
html[data-theme="dark"] body[data-theme="momentum"] #documentsView .documents-content,
html[data-theme="dark"] body[data-theme="momentum"] #documentsView .documents-sidebar,
html[data-theme="dark"] body[data-theme="momentum"] #documentsView .documents-stats,
html[data-theme="dark"] body[data-theme="momentum"] #documentsView .documents-controls,
html[data-theme="dark"] body[data-theme="momentum"] #templatesView .template-card,
html[data-theme="dark"] body[data-theme="momentum"] #templatesView .templates-header {
  background: #1a1a1a !important;
  background-image: none !important;
  color: #e6e6e6 !important;
  border-color: rgba(240, 240, 240, 0.2) !important;
  box-shadow: none !important;
}

html[data-theme="dark"] body[data-theme="momentum"] #documentsView .document-card,
html[data-theme="dark"] body[data-theme="momentum"] #documentsView .document-list-row,
html[data-theme="dark"] body[data-theme="momentum"] #documentsView .category-chip,
html[data-theme="dark"] body[data-theme="momentum"] #templatesView .template-list-item {
  background: #1e1e1e !important;
  background-image: none !important;
  color: #c6c6c6 !important;
  border-color: rgba(240, 240, 240, 0.18) !important;
}

html[data-theme="dark"] body[data-theme="momentum"] #documentsView .document-card:hover,
html[data-theme="dark"] body[data-theme="momentum"] #documentsView .document-card.selected,
html[data-theme="dark"] body[data-theme="momentum"] #documentsView .document-list-row:hover {
  background: #242424 !important;
  border-color: rgba(136, 192, 208, 0.38) !important;
}

html[data-theme="dark"] body[data-theme="momentum"] #documentsView input,
html[data-theme="dark"] body[data-theme="momentum"] #documentsView select,
html[data-theme="dark"] body[data-theme="momentum"] #templatesView input {
  background: #1e1e1e !important;
  color: #e6e6e6 !important;
  -webkit-text-fill-color: #e6e6e6 !important;
  border-color: rgba(240, 240, 240, 0.26) !important;
}

/* File Library: complete shell, toolbar, list/grid, preview, and state pass. */
html[data-theme="dark"] body[data-theme="momentum"] #documentsView .documents-library-container,
html[data-theme="dark"] body[data-theme="momentum"] #documentsView .documents-main,
html[data-theme="dark"] body[data-theme="momentum"] #documentsView .documents-content,
html[data-theme="dark"] body[data-theme="momentum"] #documentsView .documents-grid,
html[data-theme="dark"] body[data-theme="momentum"] #documentsView .documents-list {
  background: #181818 !important;
  background-color: #181818 !important;
  background-image: none !important;
  color: #e6e6e6 !important;
  border-color: rgba(240, 240, 240, 0.18) !important;
  box-shadow: none !important;
}
html[data-theme="dark"] body[data-theme="momentum"] #documentsView .documents-header,
html[data-theme="dark"] body[data-theme="momentum"] #documentsView .documents-header-top,
html[data-theme="dark"] body[data-theme="momentum"] #documentsView .documents-controls,
html[data-theme="dark"] body[data-theme="momentum"] #documentsView .documents-toolbar-category-row,
html[data-theme="dark"] body[data-theme="momentum"] #documentsView .documents-toolbar-inline,
html[data-theme="dark"] body[data-theme="momentum"] #documentsView .documents-categories,
html[data-theme="dark"] body[data-theme="momentum"] #documentsView .documents-stats,
html[data-theme="dark"] body[data-theme="momentum"] #documentsView .documents-breadcrumbs {
  background: #1a1a1a !important;
  background-color: #1a1a1a !important;
  background-image: none !important;
  color: #c6c6c6 !important;
  border-color: rgba(240, 240, 240, 0.18) !important;
  box-shadow: none !important;
}
html[data-theme="dark"] body[data-theme="momentum"] #documentsView .documents-title,
html[data-theme="dark"] body[data-theme="momentum"] #documentsView .stat-value,
html[data-theme="dark"] body[data-theme="momentum"] #documentsView .document-name,
html[data-theme="dark"] body[data-theme="momentum"] #documentsView .doc-row-info,
html[data-theme="dark"] body[data-theme="momentum"] #documentsView .td-empty-title {
  color: #f0f0f0 !important;
  -webkit-text-fill-color: #f0f0f0 !important;
}
html[data-theme="dark"] body[data-theme="momentum"] #documentsView .documents-subtitle,
html[data-theme="dark"] body[data-theme="momentum"] #documentsView .stat-label,
html[data-theme="dark"] body[data-theme="momentum"] #documentsView .document-meta,
html[data-theme="dark"] body[data-theme="momentum"] #documentsView .document-description,
html[data-theme="dark"] body[data-theme="momentum"] #documentsView .doc-row-meta,
html[data-theme="dark"] body[data-theme="momentum"] #documentsView .breadcrumb-separator,
html[data-theme="dark"] body[data-theme="momentum"] #documentsView .td-empty-description {
  color: #8a8a8a !important;
  -webkit-text-fill-color: #8a8a8a !important;
}
html[data-theme="dark"] body[data-theme="momentum"] #documentsView #documentSearch,
html[data-theme="dark"] body[data-theme="momentum"] #documentsView .sort-select,
html[data-theme="dark"] body[data-theme="momentum"] #documentsView .doc-category-select,
html[data-theme="dark"] body[data-theme="momentum"] #documentsView .view-toggle-group,
html[data-theme="dark"] body[data-theme="momentum"] #documentsView .filter-toggle-btn,
html[data-theme="dark"] body[data-theme="momentum"] #documentsView .filter-clear-btn {
  background: #1e1e1e !important;
  background-color: #1e1e1e !important;
  background-image: none !important;
  color: #c6c6c6 !important;
  -webkit-text-fill-color: #c6c6c6 !important;
  border-color: rgba(240, 240, 240, 0.25) !important;
  box-shadow: none !important;
  color-scheme: dark !important;
}
html[data-theme="dark"] body[data-theme="momentum"] #documentsView .view-toggle {
  background: transparent !important;
  color: #8a8a8a !important;
  border-color: transparent !important;
  box-shadow: none !important;
}
html[data-theme="dark"] body[data-theme="momentum"] #documentsView .view-toggle.active,
html[data-theme="dark"] body[data-theme="momentum"] #documentsView .view-toggle:hover,
html[data-theme="dark"] body[data-theme="momentum"] #documentsView .filter-toggle-btn:hover {
  background: #1e1e1e !important;
  color: #f0f0f0 !important;
  border-color: rgba(136, 192, 208, 0.35) !important;
}
html[data-theme="dark"] body[data-theme="momentum"] #documentsView .category-chip {
  background: #1e1e1e !important;
  background-image: none !important;
  color: #a0a0a0 !important;
  border-color: rgba(240, 240, 240, 0.2) !important;
  box-shadow: none !important;
}
html[data-theme="dark"] body[data-theme="momentum"] #documentsView .category-chip:hover,
html[data-theme="dark"] body[data-theme="momentum"] #documentsView .category-chip.active {
  background: #1e1e1e !important;
  color: #f0f0f0 !important;
  border-color: rgba(136, 192, 208, 0.42) !important;
}
html[data-theme="dark"] body[data-theme="momentum"] #documentsView .document-card,
html[data-theme="dark"] body[data-theme="momentum"] #documentsView .document-card.folder-card,
html[data-theme="dark"] body[data-theme="momentum"] #documentsView .document-row,
html[data-theme="dark"] body[data-theme="momentum"] #documentsView .document-row.folder-row {
  background: #1e1e1e !important;
  background-color: #1e1e1e !important;
  background-image: none !important;
  color: #c6c6c6 !important;
  border-color: rgba(240, 240, 240, 0.2) !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2) !important;
}
html[data-theme="dark"] body[data-theme="momentum"] #documentsView .document-card:hover,
html[data-theme="dark"] body[data-theme="momentum"] #documentsView .document-row:hover {
  background: #222222 !important;
  border-color: rgba(136, 192, 208, 0.35) !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28) !important;
}
html[data-theme="dark"] body[data-theme="momentum"] #documentsView .document-card.selected,
html[data-theme="dark"] body[data-theme="momentum"] #documentsView .document-row.selected {
  background: #1e1e1e !important;
  background-image: none !important;
  border-color: rgba(136, 192, 208, 0.62) !important;
  box-shadow: 0 0 0 2px rgba(136, 192, 208, 0.14) !important;
}
html[data-theme="dark"] body[data-theme="momentum"] #documentsView .document-preview,
html[data-theme="dark"] body[data-theme="momentum"] #documentsView .document-preview.document-preview--simple,
html[data-theme="dark"] body[data-theme="momentum"] #documentsView .doc-row-icon,
html[data-theme="dark"] body[data-theme="momentum"] #documentsView .preview-image,
html[data-theme="dark"] body[data-theme="momentum"] #documentsView .video-thumbnail {
  background: linear-gradient(145deg, #222222 0%, #1e1e1e 100%) !important;
  background-color: #1e1e1e !important;
  color: #88c0d0 !important;
  border-color: rgba(240, 240, 240, 0.18) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025) !important;
}
html[data-theme="dark"] body[data-theme="momentum"] #documentsView .document-preview canvas.pdf-thumbnail {
  background: #1e1e1e !important;
  border-color: rgba(240, 240, 240, 0.18) !important;
}
html[data-theme="dark"] body[data-theme="momentum"] #documentsView .document-overlay {
  background: linear-gradient(180deg, transparent 20%, rgba(0, 0, 0, 0.78) 100%) !important;
}
html[data-theme="dark"] body[data-theme="momentum"] #documentsView .doc-action-btn,
html[data-theme="dark"] body[data-theme="momentum"] #documentsView .selection-checkbox {
  background: #2a2a2a !important;
  background-image: none !important;
  color: #e6e6e6 !important;
  border-color: rgba(240, 240, 240, 0.3) !important;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.32) !important;
}
html[data-theme="dark"] body[data-theme="momentum"] #documentsView .doc-action-btn:hover {
  background: #2e2e2e !important;
  color: #ffffff !important;
}
html[data-theme="dark"] body[data-theme="momentum"] #documentsView .bulkBar,
html[data-theme="dark"] body[data-theme="momentum"] #documentsView #docsBulkBarMount .bulkBar {
  background: #1e1e1e !important;
  background-image: none !important;
  color: #c6c6c6 !important;
  border-color: rgba(136, 192, 208, 0.3) !important;
  box-shadow: none !important;
}
html[data-theme="dark"] body[data-theme="momentum"] #documentsView .bulkBar .btn {
  background: #2a2a2a !important;
  background-image: none !important;
  color: #e6e6e6 !important;
  border-color: rgba(240, 240, 240, 0.28) !important;
  box-shadow: none !important;
}
html[data-theme="dark"] body[data-theme="momentum"] #documentsView .bulkBar .btn:hover {
  background: #2e2e2e !important;
  color: #ffffff !important;
}
html[data-theme="dark"] body[data-theme="momentum"] #documentsView .document-card-skeleton,
html[data-theme="dark"] body[data-theme="momentum"] #documentsView .document-skeleton-preview,
html[data-theme="dark"] body[data-theme="momentum"] #documentsView .document-skeleton-line {
  background: #1e1e1e !important;
  background-image: linear-gradient(90deg, #1e1e1e, #242424, #1e1e1e) !important;
  border-color: rgba(240, 240, 240, 0.12) !important;
}
html[data-theme="dark"] body[data-theme="momentum"] #documentsView .td-empty-state,
html[data-theme="dark"] body[data-theme="momentum"] #documentsView .td-empty-layer,
html[data-theme="dark"] body[data-theme="momentum"] #documentsView .empty-state {
  background: #1a1a1a !important;
  background-image: none !important;
  color: #c6c6c6 !important;
  border-color: rgba(240, 240, 240, 0.18) !important;
  box-shadow: none !important;
}
html[data-theme="dark"] body[data-theme="momentum"] #documentsView #detailsSidebar.documents-sidebar {
  background: #1a1a1a !important;
  background-image: none !important;
  color: #c6c6c6 !important;
  border-color: rgba(240, 240, 240, 0.2) !important;
}

/* Templates library: dark cards and previews instead of white page islands. */
html[data-theme="dark"] body[data-theme="momentum"] #templatesView .templatesRoot,
html[data-theme="dark"] body[data-theme="momentum"] #templatesView .templatesBody,
html[data-theme="dark"] body[data-theme="momentum"] #templatesView .templatesGrid {
  background: #181818 !important;
  background-color: #181818 !important;
  background-image: none !important;
  color: #e6e6e6 !important;
}
html[data-theme="dark"] body[data-theme="momentum"] #templatesView .templatesHeader,
html[data-theme="dark"] body[data-theme="momentum"] #templatesView .templatesHeaderTop,
html[data-theme="dark"] body[data-theme="momentum"] #templatesView .templatesControls {
  background: #1a1a1a !important;
  background-color: #1a1a1a !important;
  background-image: none !important;
  color: #e6e6e6 !important;
  border-color: rgba(240, 240, 240, 0.18) !important;
  box-shadow: none !important;
}
html[data-theme="dark"] body[data-theme="momentum"] #templatesView .templatesTitle,
html[data-theme="dark"] body[data-theme="momentum"] #templatesView .template-card__title,
html[data-theme="dark"] body[data-theme="momentum"] #templatesView .templatesEmptyState-title {
  color: #f0f0f0 !important;
  -webkit-text-fill-color: #f0f0f0 !important;
}
html[data-theme="dark"] body[data-theme="momentum"] #templatesView .templatesSubtitle,
html[data-theme="dark"] body[data-theme="momentum"] #templatesView .template-card__system-hint,
html[data-theme="dark"] body[data-theme="momentum"] #templatesView .templatesEmptyState-desc {
  color: #8a8a8a !important;
  -webkit-text-fill-color: #8a8a8a !important;
}
html[data-theme="dark"] body[data-theme="momentum"] #templatesView .templatesSearch,
html[data-theme="dark"] body[data-theme="momentum"] #templatesView .category-filter,
html[data-theme="dark"] body[data-theme="momentum"] #templatesView .template-card-category-select {
  background: #1e1e1e !important;
  background-color: #1e1e1e !important;
  background-image: none !important;
  color: #c6c6c6 !important;
  -webkit-text-fill-color: #c6c6c6 !important;
  border-color: rgba(240, 240, 240, 0.24) !important;
  box-shadow: none !important;
  color-scheme: dark !important;
}
html[data-theme="dark"] body[data-theme="momentum"] #templatesView .category-filter:hover,
html[data-theme="dark"] body[data-theme="momentum"] #templatesView .category-filter.active {
  background: #1e1e1e !important;
  color: #f0f0f0 !important;
  border-color: rgba(136, 192, 208, 0.42) !important;
}
html[data-theme="dark"] body[data-theme="momentum"] #templatesView .template-card,
html[data-theme="dark"] body[data-theme="momentum"] #templatesView .template-card--manual,
html[data-theme="dark"] body[data-theme="momentum"] #templatesView .template-card--system {
  background: #1a1a1a !important;
  background-color: #1a1a1a !important;
  background-image: none !important;
  color: #c6c6c6 !important;
  border-color: rgba(240, 240, 240, 0.2) !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24) !important;
}
html[data-theme="dark"] body[data-theme="momentum"] #templatesView .template-card:hover {
  background: #1e1e1e !important;
  border-color: rgba(136, 192, 208, 0.38) !important;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.34) !important;
}
html[data-theme="dark"] body[data-theme="momentum"] #templatesView .template-card__banner,
html[data-theme="dark"] body[data-theme="momentum"] #templatesView .template-card--manual .template-card__banner,
html[data-theme="dark"] body[data-theme="momentum"] #templatesView .template-card--system .template-card__banner {
  background: #222222 !important;
  background-image: none !important;
  color: #c6c6c6 !important;
  border-color: rgba(240, 240, 240, 0.16) !important;
}
html[data-theme="dark"] body[data-theme="momentum"] #templatesView .template-card__body,
html[data-theme="dark"] body[data-theme="momentum"] #templatesView .template-card__subject-block {
  background: #1a1a1a !important;
  background-image: none !important;
  color: #c6c6c6 !important;
  border-color: rgba(240, 240, 240, 0.16) !important;
}
html[data-theme="dark"] body[data-theme="momentum"] #templatesView .template-card__preview,
html[data-theme="dark"] body[data-theme="momentum"] #templatesView .template-card__preview-host,
html[data-theme="dark"] body[data-theme="momentum"] #templatesView .template-card__preview-host--pending,
html[data-theme="dark"] body[data-theme="momentum"] #templatesView .template-card__thumb {
  background: linear-gradient(160deg, #222222 0%, #1a1a1a 100%) !important;
  background-color: #1e1e1e !important;
  color: #c6c6c6 !important;
  border-color: rgba(240, 240, 240, 0.2) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025) !important;
}
html[data-theme="dark"] body[data-theme="momentum"] #templatesView .template-card__thumb-scaler.template-preview-content.ql-editor {
  background: transparent !important;
  background-image: none !important;
  color: #dcdcdc !important;
  -webkit-text-fill-color: #dcdcdc !important;
}
html[data-theme="dark"] body[data-theme="momentum"] #templatesView .template-card__thumb-scaler.template-preview-content.ql-editor * {
  color: inherit !important;
  border-color: rgba(240, 240, 240, 0.18) !important;
}
html[data-theme="dark"] body[data-theme="momentum"] #templatesView .template-card__tag,
html[data-theme="dark"] body[data-theme="momentum"] #templatesView .template-card__pill {
  background: #2a2a2a !important;
  background-image: none !important;
  color: #c6c6c6 !important;
  border-color: rgba(240, 240, 240, 0.22) !important;
}
html[data-theme="dark"] body[data-theme="momentum"] #templatesView .template-card__btn,
html[data-theme="dark"] body[data-theme="momentum"] #templatesView .template-card__btn--edit {
  background: #2a2a2a !important;
  background-image: none !important;
  color: #e6e6e6 !important;
  border-color: rgba(240, 240, 240, 0.26) !important;
  box-shadow: none !important;
}
html[data-theme="dark"] body[data-theme="momentum"] #templatesView .template-card__btn:hover {
  background: #2e2e2e !important;
  color: #ffffff !important;
}
html[data-theme="dark"] body[data-theme="momentum"] #templatesView .templatesEmptyState {
  background: #1a1a1a !important;
  background-image: none !important;
  color: #c6c6c6 !important;
  border-color: rgba(240, 240, 240, 0.18) !important;
  box-shadow: none !important;
}

/* Momentum's template polish uses a more specific light-only selector. */
html[data-theme="dark"] body[data-theme="momentum"] .app-shell[data-view="templates"] #templatesView.templatesPane .templatesHeader,
html[data-theme="dark"] body[data-theme="momentum"] .app-shell[data-view="templates"] #templatesView.templatesPane .templatesHeaderTop,
html[data-theme="dark"] body[data-theme="momentum"] .app-shell[data-view="templates"] #templatesView.templatesPane .templatesControls {
  background: #1a1a1a !important;
  background-image: none !important;
  color: #f0f0f0 !important;
  border-color: rgba(240, 240, 240, 0.2) !important;
  box-shadow: none !important;
}

html[data-theme="dark"] body[data-theme="momentum"] .app-shell[data-view="templates"] #templatesView.templatesPane .templatesSearch,
html[data-theme="dark"] body[data-theme="momentum"] .app-shell[data-view="templates"] #templatesView.templatesPane .category-filter {
  background: #1e1e1e !important;
  background-image: none !important;
  color: #c6c6c6 !important;
  -webkit-text-fill-color: #c6c6c6 !important;
  border-color: rgba(240, 240, 240, 0.25) !important;
  box-shadow: none !important;
}

html[data-theme="dark"] body[data-theme="momentum"] .app-shell[data-view="templates"] #templatesView.templatesPane .category-filter.active {
  background: #1e1e1e !important;
  color: #f1f5f9 !important;
  -webkit-text-fill-color: #f1f5f9 !important;
  border-color: rgba(136, 192, 208, 0.42) !important;
  box-shadow: none !important;
}

html[data-theme="dark"] body[data-theme="momentum"] .app-shell[data-view="templates"] #templatesView.templatesPane .template-card,
html[data-theme="dark"] body[data-theme="momentum"] .app-shell[data-view="templates"] #templatesView.templatesPane .template-card--system {
  background: #1a1a1a !important;
  background-image: none !important;
  color: #dcdcdc !important;
  border-color: rgba(136, 192, 208, 0.28) !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.26) !important;
}

html[data-theme="dark"] body[data-theme="momentum"] .app-shell[data-view="templates"] #templatesView.templatesPane .template-card__preview,
html[data-theme="dark"] body[data-theme="momentum"] .app-shell[data-view="templates"] #templatesView.templatesPane .template-card__preview-host,
html[data-theme="dark"] body[data-theme="momentum"] .app-shell[data-view="templates"] #templatesView.templatesPane .template-card__thumb {
  background: linear-gradient(180deg, #222222, #1e1e1e) !important;
  background-color: #1e1e1e !important;
  color: #dcdcdc !important;
  border-color: rgba(240, 240, 240, 0.24) !important;
  box-shadow: none !important;
}

html[data-theme="dark"] body[data-theme="momentum"] #templatesView .template-card__thumb .line-items-embed,
html[data-theme="dark"] body[data-theme="momentum"] #templatesView .template-card__thumb .line-items-preview-invoice-header,
html[data-theme="dark"] body[data-theme="momentum"] #templatesView .template-card__thumb .line-items-preview-invoice-header--simple,
html[data-theme="dark"] body[data-theme="momentum"] #templatesView .template-card__thumb .td-invoice-premium {
  background: #222222 !important;
  background-image: none !important;
  color: #dcdcdc !important;
  border-color: rgba(240, 240, 240, 0.2) !important;
  box-shadow: none !important;
}

html[data-theme="dark"] body[data-theme="momentum"] #templatesView .template-card__thumb .line-items-embed *,
html[data-theme="dark"] body[data-theme="momentum"] #templatesView .template-card__thumb .line-items-preview-invoice-header * {
  color: #dcdcdc !important;
  border-color: rgba(240, 240, 240, 0.18) !important;
}

html[data-theme="dark"] body[data-theme="momentum"] #templatesView .template-card__thumb-scaler > *,
html[data-theme="dark"] body[data-theme="momentum"] #templatesView .template-card__thumb-scaler table,
html[data-theme="dark"] body[data-theme="momentum"] #templatesView .template-card__thumb .line-items-preview-inv-panels,
html[data-theme="dark"] body[data-theme="momentum"] #templatesView .template-card__thumb .line-items-preview-billto,
html[data-theme="dark"] body[data-theme="momentum"] #templatesView .template-card__thumb .line-items-preview-inv-details,
html[data-theme="dark"] body[data-theme="momentum"] #templatesView .template-card__thumb .line-items-preview-inv-logo-wrap {
  background: #222222 !important;
  background-image: none !important;
  color: #dcdcdc !important;
  border-color: rgba(240, 240, 240, 0.2) !important;
  box-shadow: none !important;
}

html[data-theme="dark"] body[data-theme="momentum"] #templatesView .template-card__system-action-note {
  background: #1e1e1e !important;
  background-image: none !important;
  color: #c6c6c6 !important;
  -webkit-text-fill-color: #c6c6c6 !important;
  border-color: rgba(167, 139, 250, 0.28) !important;
}

html[data-theme="dark"] body[data-theme="momentum"] #templatesView .mm-styled-select__trigger {
  background: #222222 !important;
  background-image: none !important;
  color: #dcdcdc !important;
  -webkit-text-fill-color: #dcdcdc !important;
  border-color: rgba(240, 240, 240, 0.26) !important;
  box-shadow: none !important;
}

html[data-theme="dark"] body[data-theme="momentum"] #templatesView .templatesHeader .btn.secondary {
  background: #1e1e1e !important;
  background-image: none !important;
  color: #e6e6e6 !important;
  -webkit-text-fill-color: #e6e6e6 !important;
  border-color: rgba(240, 240, 240, 0.28) !important;
  box-shadow: none !important;
}

html[data-theme="dark"] body[data-theme="momentum"] #templatesView .templatesHeader .btn.primary {
  background: #81a1c1 !important;
  background-image: none !important;
  color: #f8fafc !important;
  -webkit-text-fill-color: #f8fafc !important;
  border-color: #81a1c1 !important;
  box-shadow: none !important;
}

/* Portaled File Library menus and dialogs. */
html[data-theme="dark"] body[data-theme="momentum"] #docFilterModal .filter-panel-v3,
html[data-theme="dark"] body[data-theme="momentum"] #docFilterModal .filter-panel-header,
html[data-theme="dark"] body[data-theme="momentum"] #docFilterModal .filter-panel-body,
html[data-theme="dark"] body[data-theme="momentum"] #docFilterModal .filter-panel-footer,
html[data-theme="dark"] body[data-theme="momentum"] .doc-context-menu,
html[data-theme="dark"] body[data-theme="momentum"] .doc-info-modal,
html[data-theme="dark"] body[data-theme="momentum"] .doc-info-modal-content,
html[data-theme="dark"] body[data-theme="momentum"] .doc-info-preview-wrap {
  background: #1a1a1a !important;
  background-color: #1a1a1a !important;
  background-image: none !important;
  color: #e6e6e6 !important;
  border-color: rgba(240, 240, 240, 0.22) !important;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.48) !important;
}
html[data-theme="dark"] body[data-theme="momentum"] #docFilterModal .filter-type-btn,
html[data-theme="dark"] body[data-theme="momentum"] #docFilterModal .size-preset-btn,
html[data-theme="dark"] body[data-theme="momentum"] #docFilterModal .date-preset-btn,
html[data-theme="dark"] body[data-theme="momentum"] .doc-context-menu .menu-item,
html[data-theme="dark"] body[data-theme="momentum"] .doc-info-tag {
  background: #1e1e1e !important;
  background-image: none !important;
  color: #c6c6c6 !important;
  border-color: rgba(240, 240, 240, 0.22) !important;
}
html[data-theme="dark"] body[data-theme="momentum"] .doc-context-menu .menu-item:hover,
html[data-theme="dark"] body[data-theme="momentum"] #docFilterModal .filter-type-btn:hover {
  background: #2a2a2a !important;
  color: #f0f0f0 !important;
}

/* New-document chooser and Composer chrome. The document page itself stays
   white when representing printable output; surrounding tools are dark. */
html[data-theme="dark"] .td-doc-create-chooser__card,
html[data-theme="dark"] .td-doc-create-chooser__card--blank-row,
html[data-theme="dark"] .td-doc-create-chooser__template-row,
html[data-theme="dark"] .td-doc-create-chooser__prepare-card,
html[data-theme="dark"] .td-doc-create-chooser__deliver-option {
  background: #1e1e1e !important;
  background-image: none !important;
  color: #e6e6e6 !important;
  border-color: rgba(240, 240, 240, 0.2) !important;
}
html[data-theme="dark"] .td-doc-create-chooser__card-title {
  color: #f0f0f0 !important;
}

html[data-theme="dark"] body[data-theme="momentum"] .composer-modal,
html[data-theme="dark"] body[data-theme="momentum"] #composerModal .composer-shell,
html[data-theme="dark"] body[data-theme="momentum"] #composerModal .composer-toolbar,
html[data-theme="dark"] body[data-theme="momentum"] #composerModal .composer-toolbar-tabstrip,
html[data-theme="dark"] body[data-theme="momentum"] #composerModal .composer-toolbar-panel,
html[data-theme="dark"] body[data-theme="momentum"] #composerModal .insert-block-drawer,
html[data-theme="dark"] body[data-theme="momentum"] #composerModal .composer-doc-mobile-drawer,
html[data-theme="dark"] body[data-theme="momentum"] #composerModal .composer-sidebar {
  background: #1a1a1a !important;
  background-image: none !important;
  color: #e6e6e6 !important;
  border-color: rgba(240, 240, 240, 0.2) !important;
}

html[data-theme="dark"] body[data-theme="momentum"] #composerModal input,
html[data-theme="dark"] body[data-theme="momentum"] #composerModal textarea,
html[data-theme="dark"] body[data-theme="momentum"] #composerModal select,
html[data-theme="dark"] body[data-theme="momentum"] #composerModal .ql-toolbar {
  background: #1e1e1e !important;
  color: #e6e6e6 !important;
  border-color: rgba(240, 240, 240, 0.26) !important;
}

/* ── Forms builder and portaled builder dialogs ─────────────── */
html[data-theme="dark"] {
  --fb-bg-dark: #1e1e1e;
  --fb-success-light: rgba(16, 185, 129, 0.16);
  --fb-warning-light: rgba(245, 158, 11, 0.16);
  --fb-danger-light: rgba(239, 68, 68, 0.16);
}

html[data-theme="dark"] body[data-theme="momentum"] #formsView,
html[data-theme="dark"] body[data-theme="momentum"] .formsPane,
html[data-theme="dark"] body[data-theme="momentum"] #formsView .fb-shell {
  background: #181818 !important;
  color: #f0f0f0 !important;
  border-color: rgba(240, 240, 240, 0.18) !important;
}

html[data-theme="dark"] #formsView .fb-main,
html[data-theme="dark"] #formsView .fb-sidebar,
html[data-theme="dark"] #formsView .fb-palette,
html[data-theme="dark"] #formsView .fb-inspector,
html[data-theme="dark"] #formsView .fb-topbar,
html[data-theme="dark"] #formsView .fb-canvas,
html[data-theme="dark"] #formsView .fb-canvas-page,
html[data-theme="dark"] #formsView .fb-section,
html[data-theme="dark"] #formsView .fb-field,
html[data-theme="dark"] #formsView .fb-page-tabs,
html[data-theme="dark"] #formsView .fb-inspector-tabs,
html[data-theme="dark"] .fb-modal,
html[data-theme="dark"] .fb-modal-header,
html[data-theme="dark"] .fb-modal-body,
html[data-theme="dark"] .fb-modal-footer,
html[data-theme="dark"] .fb-preview-frame,
html[data-theme="dark"] .fb-publish-wizard-form-preview,
html[data-theme="dark"] .fb-template-card {
  background: #1a1a1a !important;
  background-image: none !important;
  color: #e6e6e6 !important;
  border-color: rgba(240, 240, 240, 0.2) !important;
}

html[data-theme="dark"] #formsView input,
html[data-theme="dark"] #formsView textarea,
html[data-theme="dark"] #formsView select,
html[data-theme="dark"] .fb-modal input,
html[data-theme="dark"] .fb-modal textarea,
html[data-theme="dark"] .fb-modal select,
html[data-theme="dark"] .fb-publish-url-input {
  background: #1e1e1e !important;
  color: #e6e6e6 !important;
  -webkit-text-fill-color: #e6e6e6 !important;
  border-color: rgba(240, 240, 240, 0.26) !important;
}

html[data-theme="dark"] .fb-responses-table th {
  background: #222222 !important;
  color: #8a8a8a !important;
}

/* ── Reports, including generated content and builder ───────── */
html[data-theme="dark"] body[data-theme="momentum"] .app-shell[data-view="reports"] #reportsWrap,
html[data-theme="dark"] body[data-theme="momentum"] .app-shell[data-view="reports"] #reportsPreviewPanel {
  background: #181818 !important;
  background-image: none !important;
  color: #f0f0f0 !important;
  border-color: rgba(240, 240, 240, 0.18) !important;
}

html[data-theme="dark"] body[data-theme="momentum"] #reportsPreviewPanel .report-detail-view,
html[data-theme="dark"] body[data-theme="momentum"] #reportsPreviewPanel .report-detail-header,
html[data-theme="dark"] body[data-theme="momentum"] #reportsPreviewPanel .report-chart-section,
html[data-theme="dark"] body[data-theme="momentum"] #reportsPreviewPanel .report-table-section,
html[data-theme="dark"] body[data-theme="momentum"] #reportsPreviewPanel .report-kpi {
  background: #1a1a1a !important;
  background-image: none !important;
  color: #e6e6e6 !important;
  border-color: rgba(240, 240, 240, 0.2) !important;
  box-shadow: none !important;
}

html[data-theme="dark"] body[data-theme="momentum"] #reportsPreviewPanel .report-table th {
  background: #222222 !important;
  color: #8a8a8a !important;
}
html[data-theme="dark"] body[data-theme="momentum"] #reportsPreviewPanel .report-table td {
  background: #1a1a1a !important;
  color: #c6c6c6 !important;
  border-color: rgba(240, 240, 240, 0.12) !important;
}

html[data-theme="dark"] body[data-theme="momentum"] .report-builder-container,
html[data-theme="dark"] body[data-theme="momentum"] .report-builder-header,
html[data-theme="dark"] body[data-theme="momentum"] .report-builder-left,
html[data-theme="dark"] body[data-theme="momentum"] .report-builder-section,
html[data-theme="dark"] body[data-theme="momentum"] .wizard-progress {
  background: #1a1a1a !important;
  background-image: none !important;
  color: #e6e6e6 !important;
  border-color: rgba(240, 240, 240, 0.2) !important;
}

/* ── Leads / form responses ─────────────────────────────────── */
html[data-theme="dark"] body[data-theme="momentum"] .app-shell[data-view="leads"] #leadsWrap,
html[data-theme="dark"] body[data-theme="momentum"] .app-shell[data-view="leads"] #leadsWrap .leads-view {
  background: #181818 !important;
  background-image: none !important;
  color: #f0f0f0 !important;
  border-color: rgba(240, 240, 240, 0.18) !important;
}

html[data-theme="dark"] body[data-theme="momentum"] #leadsWrap .leads-content,
html[data-theme="dark"] body[data-theme="momentum"] #leadsWrap .leads-table-wrap,
html[data-theme="dark"] body[data-theme="momentum"] #leadsWrap .leads-stat-card {
  background: #1a1a1a !important;
  color: #e6e6e6 !important;
  border-color: rgba(240, 240, 240, 0.2) !important;
}
html[data-theme="dark"] body[data-theme="momentum"] #leadsWrap .leads-table th {
  background: #222222 !important;
  color: #8a8a8a !important;
}
html[data-theme="dark"] body[data-theme="momentum"] #leadsWrap .leads-table td {
  background: #1a1a1a !important;
  color: #c6c6c6 !important;
  border-color: rgba(240, 240, 240, 0.12) !important;
}

/* ── Inbox: deferred email-inbox.css companion ─────────────── */
html[data-theme="dark"] body[data-theme="momentum"] #emailInboxView .td-inbox__conv-header,
html[data-theme="dark"] body[data-theme="momentum"] #emailInboxView .td-inbox__composer-shell,
html[data-theme="dark"] body[data-theme="momentum"] #emailInboxView .td-inbox__composer-panel,
html[data-theme="dark"] body[data-theme="momentum"] #emailInboxView .td-inbox__composer-panel-summary,
html[data-theme="dark"] body[data-theme="momentum"] #emailInboxView .td-inbox__record-card,
html[data-theme="dark"] body[data-theme="momentum"] #emailInboxView .td-inbox__deal-close,
html[data-theme="dark"] body[data-theme="momentum"] #emailInboxView .td-inbox__team-notes,
html[data-theme="dark"] body[data-theme="momentum"] #emailInboxView .td-inbox__bulk-bar,
html[data-theme="dark"] body[data-theme="momentum"] #emailInboxView .td-inbox__placeholder {
  background: #1a1a1a !important;
  background-image: none !important;
  color: #e6e6e6 !important;
  border-color: rgba(240, 240, 240, 0.18) !important;
}

html[data-theme="dark"] body[data-theme="momentum"] #emailInboxView .td-inbox__search,
html[data-theme="dark"] body[data-theme="momentum"] #emailInboxView .td-inbox__adv-input,
html[data-theme="dark"] body[data-theme="momentum"] #emailInboxView .td-inbox__composer-row input,
html[data-theme="dark"] body[data-theme="momentum"] #emailInboxView .td-inbox__composer-row textarea,
html[data-theme="dark"] body[data-theme="momentum"] #emailInboxView .td-inbox__textarea {
  background: #1e1e1e !important;
  color: #e6e6e6 !important;
  -webkit-text-fill-color: #e6e6e6 !important;
  border-color: rgba(240, 240, 240, 0.26) !important;
}

html[data-theme="dark"] body[data-theme="momentum"] #emailInboxView .td-inbox__msg-bubble,
html[data-theme="dark"] body[data-theme="momentum"] #emailInboxView .td-inbox__msg--out .td-inbox__msg-bubble,
html[data-theme="dark"] body[data-theme="momentum"] #emailInboxView .td-inbox__msg--in .td-inbox__msg-bubble,
html[data-theme="dark"] body[data-theme="momentum"] #emailInboxView .td-inbox__chip,
html[data-theme="dark"] body[data-theme="momentum"] #emailInboxView .td-inbox__dropdown {
  background: #1e1e1e !important;
  color: #e6e6e6 !important;
  border-color: rgba(240, 240, 240, 0.2) !important;
}

html[data-theme="dark"] body[data-theme="momentum"] .td-inbox__modal,
html[data-theme="dark"] body[data-theme="momentum"] .td-inbox__modal-header,
html[data-theme="dark"] body[data-theme="momentum"] .td-inbox__modal-footer {
  background: #1a1a1a !important;
  color: #e6e6e6 !important;
  border-color: rgba(240, 240, 240, 0.2) !important;
}

/* ── Grow menu, Lead Finder, Sequences, Campaigns ───────────── */
html[data-theme="dark"] body[data-theme="momentum"] #__toolsMenu.tools-menu,
html[data-theme="dark"] body[data-theme="momentum"] #__toolsMenu.tools-menu > div {
  background: #1a1a1a !important;
  background-image: none !important;
  color: #e6e6e6 !important;
  border-color: rgba(240, 240, 240, 0.22) !important;
}
html[data-theme="dark"] body[data-theme="momentum"] #__toolsMenu.tools-menu > div > div:first-child {
  color: #a0a0a0 !important;
  -webkit-text-fill-color: #a0a0a0 !important;
  border-bottom-color: rgba(240, 240, 240, 0.18) !important;
}
html[data-theme="dark"] body[data-theme="momentum"] #__toolsMenu .tools-action-item {
  background: transparent !important;
  color: #c6c6c6 !important;
  -webkit-text-fill-color: #c6c6c6 !important;
}
html[data-theme="dark"] body[data-theme="momentum"] #__toolsMenu .tools-action-item > span,
html[data-theme="dark"] body[data-theme="momentum"] #__toolsMenu .tools-action-item > span > span {
  color: #c6c6c6 !important;
  -webkit-text-fill-color: #c6c6c6 !important;
  opacity: 1 !important;
}
html[data-theme="dark"] body[data-theme="momentum"] #__toolsMenu .tools-action-item:hover,
html[data-theme="dark"] body[data-theme="momentum"] #__toolsMenu .tools-action-item:focus-visible {
  background: #242424 !important;
  color: #ffffff !important;
}
html[data-theme="dark"] body[data-theme="momentum"] #__toolsMenu .tools-action-item:hover > span,
html[data-theme="dark"] body[data-theme="momentum"] #__toolsMenu .tools-action-item:hover > span > span,
html[data-theme="dark"] body[data-theme="momentum"] #__toolsMenu .tools-action-item:focus-visible > span,
html[data-theme="dark"] body[data-theme="momentum"] #__toolsMenu .tools-action-item:focus-visible > span > span {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

html[data-theme="dark"] body[data-theme="momentum"] #__fileMenu.tools-menu,
html[data-theme="dark"] body[data-theme="momentum"] #__fileMenu.tools-menu > div {
  background: #1a1a1a !important;
  background-color: #1a1a1a !important;
  background-image: none !important;
  color: #e6e6e6 !important;
  border-color: rgba(240, 240, 240, 0.24) !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.48) !important;
}
html[data-theme="dark"] body[data-theme="momentum"] #__fileMenu.tools-menu > div > div:first-child {
  color: #8a8a8a !important;
  border-bottom-color: rgba(240, 240, 240, 0.16) !important;
}
html[data-theme="dark"] body[data-theme="momentum"] #__fileMenu .file-action-item {
  background: transparent !important;
  color: #c6c6c6 !important;
}
html[data-theme="dark"] body[data-theme="momentum"] #__fileMenu .file-action-item > span {
  color: #c6c6c6 !important;
  -webkit-text-fill-color: #c6c6c6 !important;
}
html[data-theme="dark"] body[data-theme="momentum"] #__fileMenu .file-action-item:hover,
html[data-theme="dark"] body[data-theme="momentum"] #__fileMenu .file-action-item:focus-visible {
  background: #242424 !important;
  color: #f0f0f0 !important;
}
html[data-theme="dark"] body[data-theme="momentum"] #__fileMenu .file-action-item:hover > span,
html[data-theme="dark"] body[data-theme="momentum"] #__fileMenu .file-action-item:focus-visible > span {
  color: #f0f0f0 !important;
  -webkit-text-fill-color: #f0f0f0 !important;
}
html[data-theme="dark"] body[data-theme="momentum"] #__fileMenu .file-action-item[data-resource="forms"] > div {
  background: #242424 !important;
  background-image: none !important;
}
html[data-theme="dark"] body[data-theme="momentum"] #__fileMenu .file-action-item[data-resource="documents"] > div {
  background: #1e1e1e !important;
  background-image: none !important;
}
html[data-theme="dark"] body[data-theme="momentum"] #__fileMenu .file-action-item[data-resource="templates"] > div {
  background: #3b301c !important;
  background-image: none !important;
}
html[data-theme="dark"] body[data-theme="momentum"] #__fileMenu .file-action-item[data-resource="packageStudio"] > div {
  background: #1e1e1e !important;
  background-image: none !important;
}
html[data-theme="dark"] body[data-theme="momentum"] #__fileMenu.tools-menu::after {
  color: #7a7a7a !important;
  border-top-color: rgba(240, 240, 240, 0.16) !important;
}

html[data-theme="dark"] body[data-theme="momentum"] #__leadFinderPage {
  --surface: #1a1a1a;
  --surface-1: #1a1a1a;
  --surface-2: #1e1e1e;
  --text-primary: #f0f0f0;
  --text-secondary: #b0b0b0;
  --border: rgba(240, 240, 240, 0.2);
  background: #181818 !important;
  color: #f0f0f0 !important;
  color-scheme: dark;
}
html[data-theme="dark"] body[data-theme="momentum"] #__leadFinderPage #lfpPlacesPanel,
html[data-theme="dark"] body[data-theme="momentum"] #__leadFinderPage #lfpApolloPanel,
html[data-theme="dark"] body[data-theme="momentum"] #__leadFinderPage #lfpListBuilderPanel,
html[data-theme="dark"] body[data-theme="momentum"] #__leadFinderPage [style*="background:var(--surface"] {
  background: #1a1a1a !important;
  color: #e6e6e6 !important;
  border-color: rgba(240, 240, 240, 0.2) !important;
}

html[data-theme="dark"] body[data-theme="momentum"] #__sequencesManager .sequences-modal,
html[data-theme="dark"] body[data-theme="momentum"] #__sequencesManager .sequences-header,
html[data-theme="dark"] body[data-theme="momentum"] #__sequencesManager .sequences-tabs,
html[data-theme="dark"] body[data-theme="momentum"] #__sequencesManager .sequence-card-enhanced,
html[data-theme="dark"] body[data-theme="momentum"] #__sequencesManager .sequence-builder,
html[data-theme="dark"] body[data-theme="momentum"] #__sequencesManager .help-example-sequence {
  background: #1a1a1a !important;
  background-image: none !important;
  color: #e6e6e6 !important;
  border-color: rgba(240, 240, 240, 0.2) !important;
}

html[data-theme="dark"] body[data-theme="momentum"] #__sequencesManager .sequences-body,
html[data-theme="dark"] body[data-theme="momentum"] #__sequencesManager .sequences-grid,
html[data-theme="dark"] body[data-theme="momentum"] #__sequencesManager .sequence-card,
html[data-theme="dark"] body[data-theme="momentum"] #__sequencesManager .sequence-card-header,
html[data-theme="dark"] body[data-theme="momentum"] #__sequencesManager .sequence-card-body {
  background-color: #1a1a1a !important;
  color: #e6e6e6 !important;
  border-color: rgba(240, 240, 240, 0.2) !important;
}

html[data-theme="dark"] body[data-theme="momentum"] #__sequencesManager .sequences-tab {
  background: transparent !important;
  background-image: none !important;
  color: #88c0d0 !important;
  -webkit-text-fill-color: #88c0d0 !important;
}
html[data-theme="dark"] body[data-theme="momentum"] #__sequencesManager .sequences-tab:hover {
  background: #1e1e1e !important;
  color: #f1f5f9 !important;
}
html[data-theme="dark"] body[data-theme="momentum"] #__sequencesManager .sequences-tab.active {
  background: #1e1e1e !important;
  background-image: none !important;
  color: #f8fafc !important;
  -webkit-text-fill-color: #f8fafc !important;
  box-shadow: none !important;
}

html[data-theme="dark"] body[data-theme="momentum"] #__sequencesManager .sequence-card-title h3 {
  background: none !important;
  color: #f8fafc !important;
  -webkit-text-fill-color: #f8fafc !important;
  text-shadow: none !important;
}

html[data-theme="dark"] body[data-theme="momentum"] #__sequencesManager .sequence-trigger-text,
html[data-theme="dark"] body[data-theme="momentum"] #__sequencesManager .sequence-stat,
html[data-theme="dark"] body[data-theme="momentum"] #__sequencesManager .sequence-meta,
html[data-theme="dark"] body[data-theme="momentum"] #__sequencesManager .sequence-description,
html[data-theme="dark"] body[data-theme="momentum"] #__sequencesManager .muted {
  color: #88c0d0 !important;
  -webkit-text-fill-color: #88c0d0 !important;
}

html[data-theme="dark"] body[data-theme="momentum"] #__sequencesManager .sequence-stat strong,
html[data-theme="dark"] body[data-theme="momentum"] #__sequencesManager .sequence-meta strong,
html[data-theme="dark"] body[data-theme="momentum"] #__sequencesManager .sequence-description strong {
  color: #f0f0f0 !important;
  -webkit-text-fill-color: #f0f0f0 !important;
}

html[data-theme="dark"] body[data-theme="momentum"] #__sequencesManager .sequence-stat.active strong {
  color: #a8a8a8 !important;
  -webkit-text-fill-color: #a8a8a8 !important;
}

html[data-theme="dark"] body[data-theme="momentum"] #__sequencesManager .sequence-stats,
html[data-theme="dark"] body[data-theme="momentum"] #__sequencesManager .sequence-meta {
  border-color: rgba(240, 240, 240, 0.2) !important;
}

html[data-theme="dark"] body[data-theme="momentum"] #__sequencesManager .sequence-description {
  background: #1e1e1e !important;
  background-image: none !important;
  border-left-color: #87a6c4 !important;
}

html[data-theme="dark"] body[data-theme="momentum"] #__sequencesManager .sequence-card-actions {
  background: #222222 !important;
  background-image: none !important;
  color: #e6e6e6 !important;
  border-color: rgba(240, 240, 240, 0.22) !important;
}

html[data-theme="dark"] body[data-theme="momentum"] #__sequencesManager .sequence-action-btn {
  background: #1e1e1e !important;
  background-image: none !important;
  color: #f1f5f9 !important;
  -webkit-text-fill-color: #f1f5f9 !important;
  border: 1px solid rgba(240, 240, 240, 0.3) !important;
  box-shadow: none !important;
}
html[data-theme="dark"] body[data-theme="momentum"] #__sequencesManager .sequence-action-btn:hover {
  background: #1e1e1e !important;
  border-color: rgba(136, 192, 208, 0.46) !important;
}
html[data-theme="dark"] body[data-theme="momentum"] #__sequencesManager .sequence-action-btn-delete {
  color: #fca5a5 !important;
  -webkit-text-fill-color: #fca5a5 !important;
  border-color: rgba(248, 113, 113, 0.3) !important;
}

html[data-theme="dark"] body[data-theme="momentum"] #__sequencesManager #__seqSearch,
html[data-theme="dark"] body[data-theme="momentum"] #__sequencesManager #__seqFullscreen,
html[data-theme="dark"] body[data-theme="momentum"] #__sequencesManager #__seqClose {
  background: #1e1e1e !important;
  color: #f0f0f0 !important;
  -webkit-text-fill-color: #f0f0f0 !important;
  border-color: rgba(240, 240, 240, 0.3) !important;
  box-shadow: none !important;
}

html[data-theme="dark"] body[data-theme="momentum"] #__sequencesManager [style*="color:#64748b"],
html[data-theme="dark"] body[data-theme="momentum"] #__sequencesManager [style*="color: #64748b"] {
  color: #88c0d0 !important;
  -webkit-text-fill-color: #88c0d0 !important;
}
html[data-theme="dark"] body[data-theme="momentum"] #__sequencesManager [style*="color:#475569"],
html[data-theme="dark"] body[data-theme="momentum"] #__sequencesManager [style*="color: #475569"],
html[data-theme="dark"] body[data-theme="momentum"] #__sequencesManager [style*="color:#334155"],
html[data-theme="dark"] body[data-theme="momentum"] #__sequencesManager [style*="color: #334155"] {
  color: #e6e6e6 !important;
  -webkit-text-fill-color: #e6e6e6 !important;
}

html[data-theme="dark"] body[data-theme="momentum"] #__campaignManager .campaign-manager-modal .campaign-tabs,
html[data-theme="dark"] body[data-theme="momentum"] #__campaignManager .campaign-card,
html[data-theme="dark"] body[data-theme="momentum"] #__campaignManager .campaign-card-head {
  background: #1a1a1a !important;
  background-image: none !important;
  color: #e6e6e6 !important;
  border-color: rgba(240, 240, 240, 0.2) !important;
}
html[data-theme="dark"] body[data-theme="momentum"] #__campaignManager .campaign-tab.active {
  background: rgba(129, 161, 193, 0.22) !important;
  color: #2a2a2a !important;
  border-color: rgba(136, 192, 208, 0.4) !important;
}

/* ── Demo audit: Leads workspace ───────────────────────────── */
html[data-theme="dark"] body[data-theme="momentum"] .app-shell[data-view="leads"] #leadsView,
html[data-theme="dark"] body[data-theme="momentum"] .app-shell[data-view="leads"] #leadsView .leads-content,
html[data-theme="dark"] body[data-theme="momentum"] .app-shell[data-view="leads"] #leadsView .leads-responses {
  background: #181818 !important;
  background-image: none !important;
  color: #e6e6e6 !important;
  color-scheme: dark;
}

html[data-theme="dark"] body[data-theme="momentum"] #leadsView .leads-form-selector,
html[data-theme="dark"] body[data-theme="momentum"] #leadsView .leads-stat-card,
html[data-theme="dark"] body[data-theme="momentum"] #leadsView .leads-empty-state,
html[data-theme="dark"] body[data-theme="momentum"] #leadsView .leads-loading,
html[data-theme="dark"] body[data-theme="momentum"] #leadsView .leads-error,
html[data-theme="dark"] body[data-theme="momentum"] #leadsView .leads-table-wrap {
  background: #1a1a1a !important;
  background-image: none !important;
  color: #c6c6c6 !important;
  border-color: rgba(240, 240, 240, 0.2) !important;
  box-shadow: none !important;
}

html[data-theme="dark"] body[data-theme="momentum"] #leadsView .leads-stat-card.active {
  background: #2a2a2a !important;
  border-color: rgba(136, 192, 208, 0.5) !important;
}

html[data-theme="dark"] body[data-theme="momentum"] #leadsView :is(
  .leads-form-selector,
  .leads-table-wrap
) .mm-styled-select__trigger,
html[data-theme="dark"] body[data-theme="momentum"] #leadsView :is(input, select, textarea) {
  background: #222222 !important;
  background-image: none !important;
  color: #e6e6e6 !important;
  -webkit-text-fill-color: #e6e6e6 !important;
  border-color: rgba(240, 240, 240, 0.28) !important;
  box-shadow: none !important;
  color-scheme: dark;
}

html[data-theme="dark"] body[data-theme="momentum"] #leadsView :is(
  .leads-form-selector label,
  .leads-stat-number,
  .leads-empty-state h3,
  th
) {
  color: #f0f0f0 !important;
  -webkit-text-fill-color: #f0f0f0 !important;
}

html[data-theme="dark"] body[data-theme="momentum"] #leadsView :is(
  .leads-stat-label,
  .leads-empty-state p,
  .leads-no-forms,
  td
) {
  color: #a0a0a0 !important;
}

/* ── Demo audit: Inbox unread/filter states ────────────────── */
html[data-theme="dark"] body[data-theme="momentum"] #inboxView .td-inbox__adv-search,
html[data-theme="dark"] body[data-theme="momentum"] #inboxView .td-inbox__thread,
html[data-theme="dark"] body[data-theme="momentum"] #inboxView .td-inbox__thread--unread {
  background: #1a1a1a !important;
  background-image: none !important;
  color: #e6e6e6 !important;
  border-color: rgba(240, 240, 240, 0.18) !important;
}

html[data-theme="dark"] body[data-theme="momentum"] #inboxView .td-inbox__thread:hover {
  background: #222222 !important;
}

html[data-theme="dark"] body[data-theme="momentum"] #inboxView .td-inbox__thread--selected,
html[data-theme="dark"] body[data-theme="momentum"] #inboxView .td-inbox__thread--selected.td-inbox__thread--unread,
html[data-theme="dark"] body[data-theme="momentum"] #inboxView .td-inbox__thread--selected:hover {
  background: linear-gradient(95deg, #2a2a2a 0%, #1e1e1e 100%) !important;
  box-shadow: inset 3px 0 0 #87a6c4 !important;
}

html[data-theme="dark"] body[data-theme="momentum"] #inboxView :is(
  .td-inbox__thread-subject,
  .td-inbox__thread-snippet,
  .td-inbox__thread-from,
  .td-inbox__adv-search-summary
) {
  color: #dcdcdc !important;
  -webkit-text-fill-color: #dcdcdc !important;
}

html[data-theme="dark"] body[data-theme="momentum"] #inboxView :is(
  .td-inbox__adv-input,
  .td-inbox__filter-select,
  .mm-styled-select__trigger,
  .td-inbox__mailbox-tab,
  .td-inbox__chip-filter
) {
  background: #222222 !important;
  background-image: none !important;
  color: #c6c6c6 !important;
  -webkit-text-fill-color: #c6c6c6 !important;
  border-color: rgba(240, 240, 240, 0.26) !important;
  box-shadow: none !important;
  color-scheme: dark;
}

html[data-theme="dark"] body[data-theme="momentum"] #inboxView :is(
  .td-inbox__mailbox-tab--active,
  .td-inbox__chip-filter--active
) {
  background: #1e1e1e !important;
  color: #88c0d0 !important;
  border-color: rgba(136, 192, 208, 0.45) !important;
}

/* ── Demo audit: Deal Doctor ───────────────────────────────── */
html[data-theme="dark"] body[data-theme="momentum"] #dealDoctorWrap,
html[data-theme="dark"] body[data-theme="momentum"] #dealDoctorWrap .deal-doctor-container,
html[data-theme="dark"] body[data-theme="momentum"] #dealDoctorWrap .deal-doctor-content {
  background: #181818 !important;
  background-image: none !important;
  color: #e6e6e6 !important;
  color-scheme: dark;
}

html[data-theme="dark"] body[data-theme="momentum"] #dealDoctorWrap :is(
  .stat-card,
  .doctor-stats-grid .stat-card-small,
  .todays-priorities,
  .priority-card,
  .deal-card,
  .deal-card-risks,
  .deal-doctor-empty
) {
  background: #1a1a1a !important;
  background-image: none !important;
  color: #e6e6e6 !important;
  border-color: rgba(240, 240, 240, 0.2) !important;
  box-shadow: none !important;
}

html[data-theme="dark"] body[data-theme="momentum"] #dealDoctorWrap :is(
  .stat-card,
  .stat-card-small,
  .priority-card,
  .deal-card
):hover {
  background: #222222 !important;
  border-color: rgba(136, 192, 208, 0.38) !important;
}

html[data-theme="dark"] body[data-theme="momentum"] #dealDoctorWrap :is(
  .stat-value,
  .stat-value-small,
  .priorities-title,
  .priority-deal-name,
  .priority-value,
  .deal-card-title,
  h2,
  h3
) {
  color: #f0f0f0 !important;
  -webkit-text-fill-color: #f0f0f0 !important;
}

html[data-theme="dark"] body[data-theme="momentum"] #dealDoctorWrap :is(
  .stat-label,
  .stat-label-small,
  .stat-sublabel,
  .priorities-subtitle,
  .priority-contact-info,
  .deal-card-subtitle,
  p
) {
  color: #a0a0a0 !important;
}

html[data-theme="dark"] body[data-theme="momentum"] #dealDoctorWrap :is(
  .priority-reason,
  .priority-action-btn
) {
  background: #242424 !important;
  background-image: none !important;
  color: #dcdcdc !important;
  border-color: rgba(240, 240, 240, 0.24) !important;
}

/* Previews are miniature app UI, but must not flash white in the library. */
html[data-theme="dark"] body[data-theme="momentum"] #templatesView .template-card__thumb-scaler :is(
  [style*="linear-gradient(145deg"],
  [style*="background:#fff"],
  [style*="background: #fff"],
  [style*="background:white"],
  [style*="background: white"]
) {
  background: #222222 !important;
  background-image: none !important;
  color: #dcdcdc !important;
  border-color: rgba(240, 240, 240, 0.18) !important;
}

/* Runtime roots use Wrap/View names that differ from the navigation mode. */
html[data-theme="dark"] body[data-theme="momentum"] #leadsWrap :is(
  .leads-content,
  .leads-responses
) {
  background: #181818 !important;
  background-image: none !important;
  color: #e6e6e6 !important;
}

html[data-theme="dark"] body[data-theme="momentum"] #leadsWrap :is(
  .leads-form-selector,
  .leads-stat-card,
  .leads-empty-state,
  .leads-loading,
  .leads-error,
  .leads-table-wrap
) {
  background: #1a1a1a !important;
  background-image: none !important;
  color: #c6c6c6 !important;
  border-color: rgba(240, 240, 240, 0.2) !important;
  box-shadow: none !important;
}

html[data-theme="dark"] body[data-theme="momentum"] #leadsWrap :is(
  .mm-styled-select__trigger,
  input,
  select,
  textarea
) {
  background: #222222 !important;
  background-image: none !important;
  color: #e6e6e6 !important;
  -webkit-text-fill-color: #e6e6e6 !important;
  border-color: rgba(240, 240, 240, 0.28) !important;
  box-shadow: none !important;
}

html[data-theme="dark"] body[data-theme="momentum"] #leadsWrap :is(
  .leads-form-selector label,
  .leads-stat-number,
  .leads-empty-state h3,
  th
) {
  color: #f0f0f0 !important;
  -webkit-text-fill-color: #f0f0f0 !important;
}

html[data-theme="dark"] body[data-theme="momentum"] #leadsWrap :is(
  .leads-stat-label,
  .leads-empty-state p,
  .leads-no-forms,
  td
) {
  color: #a0a0a0 !important;
}

html[data-theme="dark"] body[data-theme="momentum"] #emailInboxView :is(
  .td-inbox__adv-search,
  .td-inbox__thread,
  .td-inbox__thread--unread
) {
  background: #1a1a1a !important;
  background-image: none !important;
  color: #e6e6e6 !important;
  border-color: rgba(240, 240, 240, 0.18) !important;
}

html[data-theme="dark"] body[data-theme="momentum"] #emailInboxView .td-inbox__thread:hover {
  background: #222222 !important;
}

html[data-theme="dark"] body[data-theme="momentum"] #emailInboxView :is(
  .td-inbox__thread--selected,
  .td-inbox__thread--selected.td-inbox__thread--unread,
  .td-inbox__thread--selected:hover
) {
  background: linear-gradient(95deg, #2a2a2a 0%, #1e1e1e 100%) !important;
  box-shadow: inset 3px 0 0 #87a6c4 !important;
}

html[data-theme="dark"] body[data-theme="momentum"] #emailInboxView :is(
  .td-inbox__adv-input,
  .td-inbox__filter-select,
  .mm-styled-select__trigger,
  .td-inbox__mailbox-tab,
  .td-inbox__chip-filter
) {
  background: #222222 !important;
  background-image: none !important;
  color: #c6c6c6 !important;
  -webkit-text-fill-color: #c6c6c6 !important;
  border-color: rgba(240, 240, 240, 0.26) !important;
  box-shadow: none !important;
}

html[data-theme="dark"] body[data-theme="momentum"] #emailInboxView :is(
  .td-inbox__thread-subject,
  .td-inbox__thread-snippet,
  .td-inbox__thread-from,
  .td-inbox__adv-search-summary
) {
  color: #dcdcdc !important;
  -webkit-text-fill-color: #dcdcdc !important;
}

html[data-theme="dark"] body[data-theme="momentum"] #dealDoctorWrap .deal-card-recommendations {
  background: #1e1e1e !important;
  background-image: none !important;
  color: #dcdcdc !important;
  border-color: rgba(96, 165, 250, 0.24) !important;
}

html[data-theme="dark"] body[data-theme="momentum"] #dealDoctorWrap .deal-doctor-content :is(
  .deal-card-value,
  .deal-card-quick-actions,
  .deal-card-actions,
  .deal-contact-quick
) {
  background: #1e1e1e !important;
  background-image: none !important;
  color: #dcdcdc !important;
  border-color: rgba(240, 240, 240, 0.18) !important;
}

html[data-theme="dark"] body[data-theme="momentum"] #dealDoctorWrap .deal-doctor-content :is(
  .recommendation,
  .quick-action-icon,
  .contact-quick-btn,
  .deal-action-btn:not(.primary):not(.urgent):not(.warning):not(.success)
) {
  background: #242424 !important;
  background-image: none !important;
  color: #dcdcdc !important;
  border-color: rgba(240, 240, 240, 0.24) !important;
  box-shadow: none !important;
}

html[data-theme="dark"] body[data-theme="momentum"] #dealDoctorWrap .deal-doctor-content :is(
  .recommendations-header,
  .recommendation .rec-title,
  .value-amount
) {
  color: #f0f0f0 !important;
  -webkit-text-fill-color: #f0f0f0 !important;
}

html[data-theme="dark"] body[data-theme="momentum"] #dealDoctorWrap .deal-doctor-content :is(
  .recommendation .rec-action,
  .recommendations-more,
  .value-probability,
  .deal-card-meta
) {
  color: #a0a0a0 !important;
}

html[data-theme="dark"] body[data-theme="momentum"] #dealDoctorWrap .deal-doctor-content .risk-tag {
  background: rgba(127, 29, 29, 0.34) !important;
  color: #fca5a5 !important;
  border-color: rgba(248, 113, 113, 0.28) !important;
}

html[data-theme="dark"] body[data-theme="momentum"] #dealDoctorWrap .deal-doctor-hero {
  background: linear-gradient(135deg, #1e1e1e 0%, #181818 52%, #1e1e1e 100%) !important;
  border-bottom-color: rgba(135, 166, 196, 0.22) !important;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.34) !important;
}

html[data-theme="dark"] body[data-theme="momentum"] #documentsView .mm-styled-select__value {
  color: #dcdcdc !important;
  -webkit-text-fill-color: #dcdcdc !important;
}

html[data-theme="dark"] body[data-theme="momentum"] #templatesView :is(
  .template-card__category-label,
  .template-card__usage-meta
) {
  color: #c6c6c6 !important;
  -webkit-text-fill-color: #c6c6c6 !important;
}

html[data-theme="dark"] body[data-theme="momentum"] #templatesView .template-card__subject-text {
  color: #88c0d0 !important;
  -webkit-text-fill-color: #88c0d0 !important;
}

html[data-theme="dark"] body[data-theme="momentum"] #dealDoctorWrap .trend-badge__label {
  color: #fca5a5 !important;
  -webkit-text-fill-color: #fca5a5 !important;
}

html[data-theme="dark"] body[data-theme="momentum"] #dealDoctorWrap .doctor-filter {
  background: #2a2a2a !important;
  background-image: none !important;
  color: #dcdcdc !important;
  -webkit-text-fill-color: #dcdcdc !important;
  border-color: rgba(240, 240, 240, 0.28) !important;
  box-shadow: none !important;
}

html[data-theme="dark"] body[data-theme="momentum"] #dealDoctorWrap :is(
  .priority-badge--critical,
  .urgency-badge--overdue,
  .status-badge--critical
) {
  background: rgba(127, 29, 29, 0.42) !important;
  color: #fecaca !important;
  border-color: rgba(248, 113, 113, 0.34) !important;
}

html[data-theme="dark"] body[data-theme="momentum"] #dealDoctorWrap :is(
  .status-badge--at-risk,
  .urgency-badge--urgent
) {
  background: rgba(120, 53, 15, 0.42) !important;
  color: #fde68a !important;
  border-color: rgba(251, 191, 36, 0.34) !important;
}

html[data-theme="dark"] body[data-theme="momentum"] #dealDoctorWrap .status-badge--hot {
  background: rgba(6, 78, 59, 0.42) !important;
  color: #a7f3d0 !important;
  border-color: rgba(52, 211, 153, 0.34) !important;
}

html[data-theme="dark"] body[data-theme="momentum"] #dealDoctorWrap .urgency-badge--soon {
  background: rgba(30, 64, 175, 0.36) !important;
  color: #88c0d0 !important;
  border-color: rgba(96, 165, 250, 0.34) !important;
}

html[data-theme="dark"] body[data-theme="momentum"] #dealDoctorWrap .deal-action-btn.primary {
  background: #81a1c1 !important;
  background-image: none !important;
  color: #f8fafc !important;
  border-color: #81a1c1 !important;
}

html[data-theme="dark"] body[data-theme="momentum"] #reportsWrap #newCustomReportBtn.btn-new-custom-report {
  background: #2a2a2a !important;
  background-image: none !important;
  color: #dcdcdc !important;
  border-color: rgba(240, 240, 240, 0.28) !important;
  box-shadow: none !important;
}

html[data-theme="dark"] body[data-theme="momentum"] #templatesView .template-card__thumb .line-items-label {
  background: #2a2a2a !important;
  background-image: none !important;
  color: #dcdcdc !important;
  -webkit-text-fill-color: #dcdcdc !important;
  border-color: rgba(240, 240, 240, 0.2) !important;
}

/* Runtime menu hovers are injected after stylesheets. */
html[data-theme="dark"] body[data-theme="momentum"] :is(
  #__fileMenu,
  #__simpleMoreMenu,
  #__toolsMenu
) :is(.file-action-item, .tools-action-item):hover {
  background: #242424 !important;
  background-image: none !important;
  color: #f0f0f0 !important;
}

html[data-theme="dark"] body[data-theme="momentum"] :is(
  #__fileMenu,
  #__simpleMoreMenu,
  #__toolsMenu
) :is(.file-action-item, .tools-action-item) > span {
  color: #dcdcdc !important;
  opacity: 1 !important;
}

/* Forms builder interactions, inspector, publishing, and dialogs. */
html[data-theme="dark"] body[data-theme="momentum"] #formsView :is(
  .fb-inspector,
  .fb-inspector-tabs,
  .fb-inspector-panel,
  .fb-modal,
  .fb-modal-header,
  .fb-modal-body,
  .fb-modal-footer,
  .fb-publish-wizard-form-preview,
  .td-impl-industry-confirm-dialog
) {
  background: #1a1a1a !important;
  background-image: none !important;
  color: #dcdcdc !important;
  border-color: rgba(240, 240, 240, 0.2) !important;
  box-shadow: none !important;
}

html[data-theme="dark"] body[data-theme="momentum"] #formsView :is(
  .fb-page-tab,
  .fb-palette-item,
  .fb-section,
  .fb-field
):hover,
html[data-theme="dark"] body[data-theme="momentum"] #formsView :is(
  .fb-page-tab.active,
  .fb-palette-item.active,
  .fb-field.selected
) {
  background: #242424 !important;
  color: #f0f0f0 !important;
  border-color: rgba(136, 192, 208, 0.38) !important;
}

html[data-theme="dark"] body.fb-dragging #formsView .fb-drop-zone-active::after,
html[data-theme="dark"] body[data-theme="momentum"] #formsView .fb-drop-zone-active::after {
  background: #2a2a2a !important;
  color: #f0f0f0 !important;
  border-color: rgba(136, 192, 208, 0.45) !important;
}

html[data-theme="dark"] body[data-theme="momentum"] #formsView .fb-publish-warning {
  background: rgba(120, 53, 15, 0.36) !important;
  color: #fde68a !important;
  border-color: rgba(251, 191, 36, 0.32) !important;
}

/* Reports list, KPI variants, and builder wizard. */
html[data-theme="dark"] body[data-theme="momentum"] #reportsWrap :is(
  .report-kpi,
  .report-chart-section,
  .report-table-section,
  .report-builder-left,
  .wizard-progress,
  .wizard-step-content,
  .custom-report-item,
  .custom-reports-empty
) {
  background: #1a1a1a !important;
  background-image: none !important;
  color: #dcdcdc !important;
  border-color: rgba(240, 240, 240, 0.2) !important;
  box-shadow: none !important;
}

html[data-theme="dark"] body[data-theme="momentum"] #reportsWrap .report-list-item:hover {
  background: #222222 !important;
}

html[data-theme="dark"] body[data-theme="momentum"] #reportsWrap .report-list-item.active {
  background: #2a2a2a !important;
  border-color: rgba(136, 192, 208, 0.45) !important;
}

html[data-theme="dark"] body[data-theme="momentum"] #reportsWrap .report-kpi.success {
  background: rgba(6, 78, 59, 0.34) !important;
}
html[data-theme="dark"] body[data-theme="momentum"] #reportsWrap .report-kpi.warning {
  background: rgba(120, 53, 15, 0.34) !important;
}
html[data-theme="dark"] body[data-theme="momentum"] #reportsWrap .report-kpi.danger {
  background: rgba(127, 29, 29, 0.34) !important;
}

/* Inbox message chrome, attachments, filters, and preview. */
html[data-theme="dark"] body[data-theme="momentum"] #emailInboxView :is(
  .td-inbox__message-list,
  .td-inbox__preview-modal,
  .td-inbox__preview-head,
  .td-inbox__composer-panel,
  .td-inbox__team-notes,
  .td-inbox__more-dropdown,
  .td-inbox__dropdown,
  .td-inbox__empty
) {
  background: #1a1a1a !important;
  background-image: none !important;
  color: #dcdcdc !important;
  border-color: rgba(240, 240, 240, 0.2) !important;
  box-shadow: none !important;
}

html[data-theme="dark"] body[data-theme="momentum"] #emailInboxView :is(
  .td-inbox__msg-body,
  .td-inbox__att-name
) {
  color: #dcdcdc !important;
  -webkit-text-fill-color: #dcdcdc !important;
}

html[data-theme="dark"] body[data-theme="momentum"] #emailInboxView :is(
  .td-inbox__btn-secondary,
  .td-inbox__att-action
) {
  background: #2a2a2a !important;
  background-image: none !important;
  color: #dcdcdc !important;
  border-color: rgba(240, 240, 240, 0.28) !important;
  box-shadow: none !important;
}

/* Sequences builder/help/logs and Campaign manager. */
html[data-theme="dark"] body[data-theme="momentum"] #__sequencesManager :is(
  .sequence-builder,
  .builder-section,
  .sequences-help,
  .help-card,
  .help-example,
  .delivery-logs-modal,
  .delivery-logs-header,
  .delivery-logs-body,
  .sequences-empty,
  .help-tooltip-popup
),
html[data-theme="dark"] body[data-theme="momentum"] #__campaignManager :is(
  .campaign-manager-modal,
  .campaign-tabs,
  .campaign-card,
  .campaign-card-head,
  .campaign-stat,
  .campaign-preview,
  .campaign-audit-head,
  .campaign-audit-body,
  .campaign-audit-row,
  [class*="campaign-cal-"]
) {
  background: #1a1a1a !important;
  background-image: none !important;
  color: #dcdcdc !important;
  border-color: rgba(240, 240, 240, 0.2) !important;
  box-shadow: none !important;
}

html[data-theme="dark"] body[data-theme="momentum"] #__campaignManager .campaign-tab[data-tab] {
  background: transparent !important;
  background-image: none !important;
  color: #a0a0a0 !important;
  border-color: transparent !important;
}

html[data-theme="dark"] body[data-theme="momentum"] #__campaignManager .campaign-tab[data-tab]:is(.active, :hover) {
  background: #1e1e1e !important;
  background-image: none !important;
  color: #f0f0f0 !important;
  border-color: rgba(136, 192, 208, 0.4) !important;
}

/* LinkedIn Desk is a full-page Grow tool. */
html[data-theme="dark"] body[data-theme="momentum"] :is(
  .li-desk-page,
  .li-desk-card,
  .li-desk-field__value,
  .li-desk-mode,
  .li-desk-log,
  .li-desk-empty
) {
  background: #1a1a1a !important;
  background-image: none !important;
  color: #dcdcdc !important;
  border-color: rgba(240, 240, 240, 0.2) !important;
  box-shadow: none !important;
}

html[data-theme="dark"] body[data-theme="momentum"] .li-desk-btn {
  background: #2a2a2a !important;
  background-image: none !important;
  color: #dcdcdc !important;
  border-color: rgba(240, 240, 240, 0.28) !important;
}

html[data-theme="dark"] body[data-theme="momentum"] .li-desk-install {
  background: rgba(120, 53, 15, 0.34) !important;
  color: #fde68a !important;
  border-color: rgba(251, 191, 36, 0.3) !important;
}

/* Lead Finder inline status and debug strips. */
html[data-theme="dark"] body[data-theme="momentum"] #__leadFinderPage :is(
  #lfpApolloConnectBanner,
  #lfpApolloCreditsBar,
  #lfpApolloQueryDebug,
  #lfpApolloResultsHint
) {
  background: #1e1e1e !important;
  background-image: none !important;
  color: #dcdcdc !important;
  border-color: rgba(240, 240, 240, 0.22) !important;
}

/* Inbox wait / team-note chips that remain light after email-inbox.css. */
html[data-theme="dark"] body[data-theme="momentum"] #emailInboxView :is(
  .td-inbox__wait-btn,
  .td-inbox__team-notes-details,
  .td-inbox__team-note
) {
  background: #1e1e1e !important;
  background-image: none !important;
  color: #dcdcdc !important;
  -webkit-text-fill-color: #dcdcdc !important;
  border-color: rgba(240, 240, 240, 0.24) !important;
  box-shadow: none !important;
}

html[data-theme="dark"] body[data-theme="momentum"] #emailInboxView .td-inbox__wait-btn:hover {
  background: #242424 !important;
  color: #f0f0f0 !important;
}
