/* Persistent site-wide dark theme. Loaded after page-specific styles. */

.dm-theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  min-height: 2.35rem;
  padding: 0.42rem 0.72rem;
  color: #3c4043;
  background: #f6f8fb;
  border: 1px solid #dadce0;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}
.dm-theme-toggle:hover {
  color: #1a73e8;
  background: #eef4fe;
  border-color: rgba(26, 115, 232, 0.42);
}
.dm-theme-toggle:focus-visible {
  outline: 3px solid rgba(66, 133, 244, 0.3);
  outline-offset: 2px;
}
.dm-theme-toggle__icon { font-size: 0.95rem; }

:root[data-theme="dark"] {
  color-scheme: dark;
  --hs-heading: #f1f5f9;
  --hs-body: #b8c2d1;
  --hs-border: #2c3a4f;
  --hs-canvas: #0b1120;
  --hs-canvas-2: #0f172a;
  --hs-white: #111c2f;
  --hs-primary-light: #14294a;
  --hs-primary-opacity: rgba(96, 165, 250, 0.17);
  --hs-secondary-opacity: rgba(129, 140, 248, 0.16);
  --dm-text: #e5edf7;
  --dm-text-soft: #c0cad8;
  --dm-muted: #9caabd;
  --dm-border: rgba(148, 163, 184, 0.24);
  --dm-slate-900: #f1f5f9;
  --dm-slate-800: #e2e8f0;
  --dm-slate-700: #cbd5e1;
  --dm-slate-600: #a9b5c6;
  --dm-slate-400: #8492a6;
  --dm-slate-200: #334155;
  --dm-slate-100: #182338;
  --dm-slate-50: #111c2f;
  --pl-body: #e5edf7;
  --pl-secondary: #a9b5c6;
  --pl-surface: #111c2f;
  --pl-page: #0b1120;
  --pl-card-border: #2c3a4f;
  --pl-outline-border: #3b4b62;
  --pf-ink: #eef4ff;
  --dm-canvas-base: #0b1120;
  --dm-canvas-top: #0f172a;
  --dm-canvas-bottom: #111827;
  --dm-glass-nav: rgba(11, 17, 32, 0.94);
  --dm-glass-nav-border: #26344a;
  --bs-body-bg: #0b1120;
  --bs-body-color: #cbd5e1;
  --bs-heading-color: #f1f5f9;
  --bs-secondary-color: #a7b3c4;
  --bs-secondary-bg: #182338;
  --bs-tertiary-bg: #111c2f;
  --bs-border-color: #334155;
  --bs-link-color: #7db4ff;
  --bs-link-hover-color: #a8cbff;
}

html[data-theme="dark"] body,
html[data-theme="dark"] body.dm-page-home {
  color: #cbd5e1;
  background-color: #0b1120 !important;
  background-image:
    linear-gradient(rgba(96, 165, 250, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(96, 165, 250, 0.07) 1px, transparent 1px),
    linear-gradient(rgba(96, 165, 250, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(96, 165, 250, 0.025) 1px, transparent 1px) !important;
}
html[data-theme="dark"] body:has(.dm-pro) { background-image: none !important; }

html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] h4,
html[data-theme="dark"] h5,
html[data-theme="dark"] h6,
html[data-theme="dark"] .dm-section-title,
html[data-theme="dark"] .font-display { color: #f1f5f9; }
html[data-theme="dark"] a { color: #7db4ff; }
html[data-theme="dark"] a:hover { color: #a8cbff; }
html[data-theme="dark"] .text-muted,
html[data-theme="dark"] .text-secondary,
html[data-theme="dark"] .text-body-secondary,
html[data-theme="dark"] .text-dim { color: #9eabbc !important; }
html[data-theme="dark"] .text-body { color: #dbe5f1 !important; }
html[data-theme="dark"] code:not(pre code) {
  color: #a8cbff;
  background: rgba(96, 165, 250, 0.1);
}
html[data-theme="dark"] hr { border-color: #334155; }

/* Header, navigation, menus and global toggle. */
html[data-theme="dark"] .dm-topbar {
  color: #cbd5e1 !important;
  background: #0f172a !important;
  border-color: #26344a;
}
html[data-theme="dark"] .dm-topbar__text { color: #cbd5e1 !important; }
html[data-theme="dark"] .dm-topbar__badge {
  color: #93c5fd !important;
  background: #14294a !important;
}
html[data-theme="dark"] .dm-topbar__close {
  color: #b8c2d1 !important;
  background: #182338 !important;
}
html[data-theme="dark"] .dm-navbar,
html[data-theme="dark"] .navbar {
  background: rgba(11, 17, 32, 0.96) !important;
  border-color: #26344a !important;
}
html[data-theme="dark"] .navbar-brand,
html[data-theme="dark"] .dm-brand,
html[data-theme="dark"] .dm-nav-link,
html[data-theme="dark"] .navbar-nav .nav-link { color: #e7eef8 !important; }
html[data-theme="dark"] .dm-nav-link:hover,
html[data-theme="dark"] .navbar-nav .nav-link:hover { color: #8bbcff !important; }
html[data-theme="dark"] .navbar-toggler {
  border-color: #42516a;
  background-color: #e2e8f0;
}
html[data-theme="dark"] .dropdown-menu,
html[data-theme="dark"] .dm-rbt-user__panel {
  color: #dbe5f1;
  background: #111c2f !important;
  border-color: #334155 !important;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.4) !important;
}
html[data-theme="dark"] .dropdown-item,
html[data-theme="dark"] .dm-rbt-user__list a,
html[data-theme="dark"] .dm-rbt-user__logout button { color: #cbd5e1 !important; }
html[data-theme="dark"] .dropdown-item:hover,
html[data-theme="dark"] .dropdown-item:focus,
html[data-theme="dark"] .dm-rbt-user__list a:hover {
  color: #fff !important;
  background: #1a2940 !important;
}
html[data-theme="dark"] .dropdown-divider,
html[data-theme="dark"] .dm-rbt-user__rule { border-color: #334155; }
html[data-theme="dark"] .dm-theme-toggle {
  color: #fde68a;
  background: #182338;
  border-color: #3b4b62;
}
html[data-theme="dark"] .dm-theme-toggle:hover {
  color: #fff3b0;
  background: #22314a;
  border-color: #64748b;
}

/* Shared paper/card surfaces. */
html[data-theme="dark"] :is(
  .card,
  .dm-card,
  .dm-growth-trust,
  .dm-topic-card,
  .dm-course-card-popular,
  .dm-hero-strip,
  .dm-hero-enquiry,
  .dm-auth-card,
  .dm-tp-card,
  .dm-testimonial-card,
  .dm-blog-sidebar__widget,
  .dm-admin-card,
  .dm-admin-form-card,
  .dm-admin-crm-row,
  .dm-admin-enquiry-card,
  .dm-admin-profile-section,
  .dm-admin-profile-hero,
  .dm-admin-empty,
  .dm-stu-panel,
  .dm-stu-sidebar__inner,
  .dm-progress-overview,
  .dm-event-card,
  .dm-ev-card,
  .dm-path-card,
  .dm-diagnostic-card,
  .dm-research-paper-card
) {
  color: #cbd5e1 !important;
  background: #111c2f !important;
  border-color: #2c3a4f !important;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.24) !important;
}
html[data-theme="dark"] :is(
  .dm-section-tint-green,
  .dm-section-tint-blush,
  .dm-section-tint-mist,
  .dm-home-learn-dual,
  .dm-section--course-stack,
  .dm-blog-page,
  .dm-auth-page
) {
  color: #cbd5e1;
  background: #0d1526 !important;
  border-color: #26344a !important;
}
html[data-theme="dark"] .bg-white,
html[data-theme="dark"] .bg-light,
html[data-theme="dark"] .bg-body,
html[data-theme="dark"] .bg-body-tertiary {
  color: #cbd5e1 !important;
  background-color: #111c2f !important;
}
html[data-theme="dark"] .border,
html[data-theme="dark"] .border-top,
html[data-theme="dark"] .border-bottom,
html[data-theme="dark"] .border-light-subtle { border-color: #334155 !important; }

/* Forms, tables and common controls. */
html[data-theme="dark"] :is(.form-control, .form-select, textarea, input:not([type="checkbox"]):not([type="radio"])) {
  color: #e5edf7 !important;
  background-color: #0b1324 !important;
  border-color: #3b4b62 !important;
}
html[data-theme="dark"] :is(.form-control, .form-select, textarea, input)::placeholder {
  color: #728097 !important;
}
html[data-theme="dark"] :is(.form-control, .form-select, textarea, input):focus {
  color: #f8fafc !important;
  background-color: #0f1a2e !important;
  border-color: #60a5fa !important;
  box-shadow: 0 0 0 0.2rem rgba(96, 165, 250, 0.18) !important;
}
html[data-theme="dark"] .input-group-text {
  color: #cbd5e1;
  background: #182338;
  border-color: #3b4b62;
}
html[data-theme="dark"] :is(.table, .dm-admin-data-table) {
  --bs-table-bg: #111c2f;
  --bs-table-color: #cbd5e1;
  --bs-table-border-color: #334155;
  --bs-table-striped-bg: #162237;
  --bs-table-hover-bg: #1a2940;
  color: #cbd5e1 !important;
}
html[data-theme="dark"] :is(.btn-outline-secondary, .btn-dm-outline) {
  color: #b8c9df !important;
  background: transparent !important;
  border-color: #53637a !important;
}
html[data-theme="dark"] :is(.btn-outline-secondary, .btn-dm-outline):hover {
  color: #fff !important;
  background: #24344d !important;
  border-color: #7b8ba2 !important;
}

/* Homepage, catalog, courses and testimonials. */
html[data-theme="dark"] .dm-hero--compact__title {
  color: #f1f5f9 !important;
  -webkit-text-fill-color: #f1f5f9 !important;
}
html[data-theme="dark"] .dm-hero--compact__title .dm-hl {
  color: #4ade80 !important;
  -webkit-text-fill-color: #4ade80 !important;
}
html[data-theme="dark"] .dm-hero-badge {
  color: #bfdbfe !important;
  -webkit-text-fill-color: #bfdbfe !important;
  background: #111c2f !important;
  border-color: #334155 !important;
}
html[data-theme="dark"] .dm-hero__research-note,
html[data-theme="dark"] .dm-hero__research-note strong { color: #b8c2d1 !important; }
html[data-theme="dark"] .dm-bp { color: #dbe5f1; }
html[data-theme="dark"] .dm-hero-enquiry__lead,
html[data-theme="dark"] .dm-hero-meta,
html[data-theme="dark"] .dm-course-card-popular__summary,
html[data-theme="dark"] .dm-roadmap-card__desc { color: #a9b5c6 !important; }
html[data-theme="dark"] .dm-logo-marquee__brand {
  color: #e5edf7 !important;
  background: #111c2f !important;
  border-color: #334155 !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.24) !important;
}
html[data-theme="dark"] .dm-topic-card__lesson,
html[data-theme="dark"] .dm-lesson-card,
html[data-theme="dark"] .dm-content-link-card,
html[data-theme="dark"] .dm-admin-course-progress,
html[data-theme="dark"] .dm-admin-topic-progress {
  color: #cbd5e1 !important;
  background: #162237 !important;
  border-color: #334155 !important;
}
html[data-theme="dark"] .dm-topic-card__lesson:hover,
html[data-theme="dark"] .dm-lesson-card:hover { background: #1b2b44 !important; }
html[data-theme="dark"] .dm-topic-card__title,
html[data-theme="dark"] .dm-lesson-card__title,
html[data-theme="dark"] .dm-course-card-popular__title { color: #f1f5f9 !important; }
html[data-theme="dark"] .dm-stat-pill {
  color: #cbd5e1 !important;
  background: #111c2f !important;
  border-color: #334155 !important;
}
html[data-theme="dark"] .dm-syllabus-research-banner {
  color: #b8c2d1 !important;
  background: #0f1d34 !important;
  border-color: #27456f !important;
}
html[data-theme="dark"] .dm-syllabus-research-banner strong { color: #e5edf7 !important; }
html[data-theme="dark"] .dm-course-hero,
html[data-theme="dark"] .dm-topic-hero,
html[data-theme="dark"] .dm-syllabus-hero { color: #cbd5e1; background-color: #0d1526 !important; }
html[data-theme="dark"] .dm-entity-testimonials__form,
html[data-theme="dark"] .dm-tp-card__context {
  color: #cbd5e1;
  background: #162237 !important;
  border-color: #334155 !important;
}
html[data-theme="dark"] .dm-catalog-research-hint {
  color: #a9bde0 !important;
  background: #10203a !important;
  border-color: #27456f !important;
}

html[data-theme="dark"] #roadmap {
  --roadmap-card-bg: #111c2f;
  --roadmap-card-bg-hover: #16243b;
  --roadmap-card-title: #f1f5f9;
  --roadmap-card-muted: #a9b5c6;
  --roadmap-dot-ring: #0b1120;
}
html[data-theme="dark"] #roadmap .dm-card { color: #cbd5e1 !important; }
html[data-theme="dark"] #roadmap .dm-roadmap-card__title { color: #f1f5f9 !important; }
html[data-theme="dark"] #roadmap :is(.dm-roadmap-card__desc, .dm-roadmap-duration) {
  color: #a9b5c6 !important;
}
html[data-theme="dark"] #roadmap .dm-topic-pill {
  color: #dbe5f1 !important;
  background: #1a2940 !important;
  border-color: #42516a !important;
}

html[data-theme="dark"] .dm-hs-test-card {
  color: #cbd5e1 !important;
  background: #111c2f !important;
  border-color: #2c3a4f !important;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.24) !important;
}
html[data-theme="dark"] .dm-hs-test-card__quote { color: #c4cedc !important; }
html[data-theme="dark"] .dm-hs-test-card__name { color: #f1f5f9 !important; }
html[data-theme="dark"] .dm-hs-test-card__role { color: #9eabbc !important; }
html[data-theme="dark"] .dm-home-events__pill,
html[data-theme="dark"] .dm-philosophy-blocks__badge {
  color: #bfdbfe !important;
  background: #14294a !important;
  border-color: #315783 !important;
}
html[data-theme="dark"] .dm-philosophy-blocks__card--finale {
  color: #cbd5e1 !important;
  background: linear-gradient(135deg, #142038, #111c2f) !important;
  border-color: #315783 !important;
}
html[data-theme="dark"] .dm-home-bundles__stat {
  color: #cbd5e1 !important;
  background: rgba(17, 28, 47, 0.94) !important;
  border-color: #334155 !important;
}
html[data-theme="dark"] .dm-home-bundles__cta--ghost {
  color: #a8cbff !important;
  border-color: #4b6383 !important;
}
html[data-theme="dark"] .dm-course-card-popular__thumb-badge {
  color: #f8fafc !important;
  background: rgba(15, 23, 42, 0.9) !important;
  border-color: rgba(148, 163, 184, 0.48) !important;
}
html[data-theme="dark"] .dm-course-card-popular__thumb-badge--soon {
  color: #fde68a !important;
  background: rgba(66, 43, 8, 0.94) !important;
  border-color: rgba(251, 191, 36, 0.5) !important;
}

/* Student and admin applications. */
html[data-theme="dark"] body .dm-stu-hero-wrap {
  color: #cbd5e1 !important;
  background: #111c2f !important;
  border-color: #334155 !important;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.3) !important;
}
html[data-theme="dark"] body .dm-stu-hero-cover {
  background-color: #111c2f !important;
  background-image:
    linear-gradient(90deg, #4285f4 0 25%, #ea4335 25% 50%, #fbbc05 50% 75%, #34a853 75% 100%),
    linear-gradient(rgba(96, 165, 250, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(96, 165, 250, 0.08) 1px, transparent 1px) !important;
}
html[data-theme="dark"] body .dm-stu-hero-name { color: #f1f5f9 !important; }
html[data-theme="dark"] body .dm-stu-meta li { color: #b8c2d1 !important; }
html[data-theme="dark"] body .dm-stu-dashboard {
  --stu-border: #334155;
  --stu-body: #b8c2d1;
  --stu-head: #f1f5f9;
  --stu-primary: #60a5fa;
  --stu-secondary: #93c5fd;
  --stu-white: #111c2f;
  color: #cbd5e1 !important;
  background:
    radial-gradient(ellipse 62% 24% at 50% 0%, rgba(37, 99, 235, 0.12), transparent 68%),
    linear-gradient(180deg, #080e1a, #0a1220) !important;
}
html[data-theme="dark"] body .dm-stu-prebanner {
  background: linear-gradient(135deg, #0d1729, #101d33) !important;
  border-color: #26344a !important;
}
html[data-theme="dark"] body .dm-stu-hero-wrap {
  border: 1px solid #34465f !important;
}
html[data-theme="dark"] body .dm-stu-hero-cover {
  background-image:
    linear-gradient(to bottom, transparent 0, transparent calc(100% - 4px), rgba(0, 0, 0, 0) calc(100% - 4px)),
    radial-gradient(ellipse 65% 95% at 12% 5%, rgba(59, 130, 246, 0.28), transparent 62%),
    radial-gradient(ellipse 45% 80% at 92% 20%, rgba(14, 165, 233, 0.13), transparent 64%),
    linear-gradient(rgba(96, 165, 250, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(96, 165, 250, 0.055) 1px, transparent 1px),
    linear-gradient(145deg, #111d32, #0d1729) !important;
  background-size: auto, auto, auto, 32px 32px, 32px 32px, auto !important;
}
html[data-theme="dark"] body .dm-stu-hero-cover::after {
  background: linear-gradient(to bottom, transparent 5%, rgba(4, 10, 20, 0.72) 100%) !important;
}
html[data-theme="dark"] body .dm-stu-avatar {
  border-color: #dbeafe !important;
  box-shadow:
    0 0 0 3px rgba(96, 165, 250, 0.28),
    0 12px 34px rgba(0, 0, 0, 0.35) !important;
}
html[data-theme="dark"] body .dm-stu-sidebar {
  background: linear-gradient(150deg, #52709a, #2563eb, #3b82f6) !important;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.28) !important;
}
html[data-theme="dark"] body .dm-stu-sidebar__inner {
  background: linear-gradient(160deg, #121e32, #0f192b) !important;
  border-color: #334155 !important;
}
html[data-theme="dark"] body :is(
  .dm-stu-sidebar__welcome,
  .dm-stu-sidebar__section
) {
  color: #9eabbc !important;
  opacity: 1 !important;
}
html[data-theme="dark"] body :is(
  .dm-stu-sidebar__section,
  .dm-stu-menu li + li
) {
  border-color: #2f4059 !important;
}
html[data-theme="dark"] body :is(
  .dm-stu-menu a,
  .dm-stu-menu button.dm-stu-menu__btn,
  .dm-stu-menu .bi
) {
  color: #b8c2d1 !important;
}
html[data-theme="dark"] body :is(
  .dm-stu-menu a:hover,
  .dm-stu-menu button.dm-stu-menu__btn:hover
) {
  color: #f1f5f9 !important;
  background: #1a2940 !important;
}
html[data-theme="dark"] body .dm-stu-menu a.is-active {
  color: #bfdbfe !important;
  background: #172d4f !important;
}
html[data-theme="dark"] body .dm-stu-menu a.is-active .bi {
  color: #93c5fd !important;
}
html[data-theme="dark"] body .dm-stu-panel {
  color: #cbd5e1 !important;
  background: linear-gradient(155deg, #111c2f, #0f192b) !important;
  border: 1px solid #334155 !important;
  box-shadow: 0 16px 46px rgba(0, 0, 0, 0.26) !important;
}
html[data-theme="dark"] body .dm-stu-panel__title {
  color: #f1f5f9 !important;
  border-color: #3b4b62 !important;
}
html[data-theme="dark"] body .dm-hub-journey {
  color: #cbd5e1 !important;
  background:
    radial-gradient(ellipse 70% 90% at 0% 0%, rgba(37, 99, 235, 0.12), transparent 60%),
    linear-gradient(140deg, #142138, #101a2d) !important;
  border-color: #3b4b62 !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.03) !important;
}
html[data-theme="dark"] body .dm-hub-journey__track {
  stroke: #34445b !important;
}
html[data-theme="dark"] body :is(
  .dm-hub-journey__pct,
  .dm-hub-journey .text-dark,
  .learn-activity .text-dark
) {
  color: #f1f5f9 !important;
}
html[data-theme="dark"] body .dm-hub-journey__chip {
  color: #bfdbfe !important;
  background: #172d4f !important;
  border-color: #315783 !important;
}
html[data-theme="dark"] body .dm-hub-quick.card {
  color: #cbd5e1 !important;
  background: #0d1728 !important;
  border: 1px solid #334155 !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2) !important;
}
html[data-theme="dark"] body .dm-hub-quick .text-primary {
  color: #93c5fd !important;
}
html[data-theme="dark"] body .dm-hub-stat-tile {
  color: #cbd5e1 !important;
  border-color: #334155 !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.025);
}
html[data-theme="dark"] body .dm-hub-stat-tile--blue {
  background: rgba(59, 130, 246, 0.11) !important;
}
html[data-theme="dark"] body .dm-hub-stat-tile--emerald {
  background: rgba(16, 185, 129, 0.1) !important;
}
html[data-theme="dark"] body .dm-hub-stat-tile--amber {
  background: rgba(245, 158, 11, 0.1) !important;
}
html[data-theme="dark"] body .dm-hub-stat-tile--slate {
  background: #152137 !important;
}
html[data-theme="dark"] body .dm-hub-stat-tile__label {
  color: #9eabbc !important;
}
html[data-theme="dark"] body .dm-hub-stat-tile__value {
  color: #f1f5f9 !important;
}
html[data-theme="dark"] body .learn-continue-card {
  color: #cbd5e1 !important;
  background: #0e182a !important;
  border-color: #334155 !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22) !important;
}
html[data-theme="dark"] body .learn-continue-card--alt {
  background:
    radial-gradient(ellipse 80% 120% at 0% 0%, rgba(37, 99, 235, 0.12), transparent 62%),
    #111d31 !important;
  border-color: #426087 !important;
}
html[data-theme="dark"] body .learn-continue-card__label {
  color: #93c5fd !important;
}
html[data-theme="dark"] body .learn-continue-card__course {
  color: #9eabbc !important;
}
html[data-theme="dark"] body .learn-continue-card__lesson {
  color: #f1f5f9 !important;
}
html[data-theme="dark"] body .learn-bar,
html[data-theme="dark"] body .dm-stu-progress-bar {
  background: #29384e !important;
}
html[data-theme="dark"] body .learn-streak {
  color: #a7f3d0 !important;
  background: rgba(16, 185, 129, 0.12) !important;
  border-color: rgba(52, 211, 153, 0.3) !important;
}
html[data-theme="dark"] body .learn-activity {
  color: #b8c2d1 !important;
  background: #0e182a !important;
  border-color: #334155 !important;
}
html[data-theme="dark"] body .dm-stu-subsection-title {
  color: #93c5fd !important;
}
html[data-theme="dark"] body .dm-stu-course-card {
  color: #cbd5e1 !important;
  background: #0e182a !important;
  border-color: #334155 !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.24) !important;
}
html[data-theme="dark"] body .dm-stu-course-card.rbt-hover:hover {
  border-color: #52709a !important;
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.32) !important;
}
html[data-theme="dark"] body .dm-stu-course-card__title a {
  color: #f1f5f9 !important;
}
html[data-theme="dark"] body .dm-stu-course-card__title a:hover {
  color: #bfdbfe !important;
}
html[data-theme="dark"] body :is(
  .dm-stu-course-card__meta,
  .dm-stu-course-card__progress-label
) {
  color: #b8c2d1 !important;
}
html[data-theme="dark"] body .dm-stu-course-card__bundle,
html[data-theme="dark"] body .dm-stu-course-card__progress-num {
  color: #93c5fd !important;
}
html[data-theme="dark"] body .dm-hub-empty {
  color: #cbd5e1 !important;
  background: #0e182a !important;
  border-color: #3b4b62 !important;
}
html[data-theme="dark"] body .dm-hub-empty__icon {
  color: #93c5fd !important;
  background: #172d4f !important;
}
html[data-theme="dark"] body .dm-hub-empty__title {
  color: #f1f5f9 !important;
}
html[data-theme="dark"] body .dm-hub-empty__text {
  color: #b8c2d1 !important;
}
html[data-theme="dark"] body .dm-hub-banner--info {
  color: #cbd5e1 !important;
  background: #14294a !important;
  border: 1px solid #315783 !important;
}
html[data-theme="dark"] body .dm-hub-banner--info a {
  color: #bfdbfe !important;
}
html[data-theme="dark"] body .dm-stu-tabbar {
  background: rgba(10, 18, 32, 0.96) !important;
  border-color: #334155 !important;
  box-shadow: 0 -12px 36px rgba(0, 0, 0, 0.32) !important;
}
html[data-theme="dark"] body .dm-stu-tabbar__item {
  color: #9eabbc !important;
}
html[data-theme="dark"] body .dm-stu-tabbar__item:is(:hover, .is-active) {
  color: #bfdbfe !important;
  background: #172d4f !important;
}
html[data-theme="dark"] body .dm-stu-profile-row {
  border-color: #2f4059 !important;
}
html[data-theme="dark"] body .dm-stu-profile-row__label {
  color: #9eabbc !important;
}
html[data-theme="dark"] body .dm-stu-profile-row__value {
  color: #e5edf7 !important;
}
html[data-theme="dark"] body .dm-stu-profile-row__value a {
  color: #93c5fd !important;
}
html[data-theme="dark"] body .dm-stu-settings {
  border-color: #3b4b62 !important;
}
html[data-theme="dark"] body .dm-stu-settings__title {
  color: #93c5fd !important;
}
html[data-theme="dark"] body .dm-stu-card {
  color: #cbd5e1 !important;
  background: linear-gradient(155deg, #0f1a2d, #0c1627) !important;
  border-color: #334155 !important;
  box-shadow:
    0 12px 34px rgba(0, 0, 0, 0.22),
    inset 0 1px rgba(255, 255, 255, 0.025) !important;
}
html[data-theme="dark"] body .dm-stu-card__head {
  background:
    radial-gradient(ellipse 90% 100% at 0% 0%, rgba(59, 130, 246, 0.12), transparent 62%),
    linear-gradient(180deg, #142138, #111c2f) !important;
  border-color: #334155 !important;
}
html[data-theme="dark"] body .dm-stu-card__title {
  color: #f1f5f9 !important;
}
html[data-theme="dark"] body :is(
  .dm-stu-card__lede,
  .dm-stu-card__fine
) {
  color: #aeb9c8 !important;
}
html[data-theme="dark"] body .dm-stu-card__body {
  background: transparent !important;
}
html[data-theme="dark"] body .dm-stu-card .border-top {
  border-color: #334155 !important;
}
html[data-theme="dark"] body .dm-stu-card .form-label {
  color: #b8c2d1 !important;
}
html[data-theme="dark"] body .dm-stu-card .form-control {
  color: #f1f5f9 !important;
  background: #091321 !important;
  border-color: #3b4b62 !important;
}
html[data-theme="dark"] body .dm-stu-card .form-control:focus {
  border-color: #60a5fa !important;
  box-shadow: 0 0 0 0.2rem rgba(96, 165, 250, 0.16) !important;
}
html[data-theme="dark"] body .dm-stu-card .btn-link {
  color: #93c5fd !important;
}
html[data-theme="dark"] body .dm-stu-card .btn-link:hover {
  color: #dbeafe !important;
}
html[data-theme="dark"] body .dm-stu-metric-grid > div {
  background: #111c2f !important;
  border-color: #334155 !important;
}
html[data-theme="dark"] body .dm-stu-metric-grid dt {
  color: #9eabbc !important;
}
html[data-theme="dark"] body .dm-stu-metric-grid dd {
  color: #93c5fd !important;
}
html[data-theme="dark"] body .dm-stu-card .btn-dm-ghost {
  color: #dbeafe !important;
  background: transparent !important;
  border-color: #526178 !important;
}
html[data-theme="dark"] body .dm-stu-card .btn-dm-ghost:hover {
  color: #fff !important;
  background: #1b3152 !important;
  border-color: #60a5fa !important;
}
html[data-theme="dark"] body .dm-dash-alert--success {
  color: #d1fae5 !important;
  background: rgba(16, 185, 129, 0.12) !important;
  border-color: rgba(52, 211, 153, 0.3) !important;
}
html[data-theme="dark"] body .dm-dash-alert--error {
  color: #fecdd3 !important;
  background: rgba(244, 63, 94, 0.1) !important;
  border-color: rgba(251, 113, 133, 0.3) !important;
}
html[data-theme="dark"] .dm-admin-nav {
  background: #111c2f !important;
  border-color: #334155 !important;
}
html[data-theme="dark"] .dm-admin-nav__link { color: #b8c2d1 !important; }
html[data-theme="dark"] .dm-admin-nav__link--active {
  color: #93c5fd !important;
  background: #14294a !important;
}
html[data-theme="dark"] .dm-admin-profile-hero__avatar,
html[data-theme="dark"] .dm-admin-crm-row__avatar { box-shadow: 0 0 0 3px #26344a; }
html[data-theme="dark"] .dm-admin-enquiry-card__aside {
  color: #cbd5e1;
  background: #0e192c !important;
  border-color: #334155 !important;
}

/* Long-form lessons: preserve dark code blocks and make reading surfaces dark. */
html[data-theme="dark"] .dm-pro {
  --pro-text: #cbd5e1;
  --pro-heading: #f1f5f9;
  --pro-muted: #9eabbc;
  --pro-border: #334155;
  --pro-soft: #111c2f;
  --pro-link: #7db4ff;
}
html[data-theme="dark"] .dm-pro .dm-lesson-body { background: #0b1120 !important; }
html[data-theme="dark"] .dm-pro .dm-prose--lesson > p:first-of-type,
html[data-theme="dark"] .dm-pro .dm-prose--lesson blockquote { color: #b8c2d1; }
html[data-theme="dark"] .dm-pro .dm-prose--lesson :not(pre) > code {
  color: #bfdbfe;
  background: #172238;
  border-color: #334155;
}
html[data-theme="dark"] .dm-pro .dm-prose--lesson :is(
  .dm-practice,
  .dm-objectives,
  .dm-glossary,
  details.dm-answer,
  .dm-table-wrap
) {
  color: #cbd5e1;
  background: #111c2f !important;
  border-color: #334155 !important;
}
html[data-theme="dark"] .dm-pro .dm-prose--lesson .dm-callout {
  color: #dbe5f1;
  background: #132036 !important;
  border-color: #3b4b62 !important;
}
html[data-theme="dark"] .dm-pro .dm-prose--lesson .dm-takeaways {
  color: #dbe5f1;
  background: #10271f !important;
  border-color: #285c47 !important;
}
html[data-theme="dark"] .dm-pro .dm-prose--lesson .dm-table-wrap th {
  color: #f1f5f9;
  background: #182338;
  border-color: #334155;
}
html[data-theme="dark"] .dm-pro .dm-prose--lesson .dm-table-wrap td { border-color: #26344a; }
html[data-theme="dark"] .dm-pro .dm-figure--hand {
  color-scheme: light;
  background: #f6f8fb !important;
  border-radius: 12px;
  padding: 0.35rem;
}

/* Course lessons — a focused dark reading experience, including rich content. */
html[data-theme="dark"] body.dm-page-lesson {
  background: #080e1a !important;
}
html[data-theme="dark"] body.dm-page-lesson .dm-lesson-page {
  --pl-card-bg: #111c2f;
  --pl-card-border: #334155;
  --pl-surface: #0b1120;
  --dm-white: #111c2f;
  --dm-cream: #0f172a;
  --dm-text: #e8edf5;
  --dm-text-soft: #c0cad8;
  --dm-muted: #a9b5c6;
  --dm-border: #334155;
  color: #d6dde8;
  background: #0b1120;
}
html[data-theme="dark"] body.dm-page-lesson .dm-lesson-banner {
  color: #d6dde8;
  background:
    radial-gradient(ellipse 65% 130% at 10% 0%, rgba(37, 99, 235, 0.12), transparent 58%),
    linear-gradient(155deg, #0e192c, #111c2f) !important;
  border-color: #334155 !important;
}
html[data-theme="dark"] body.dm-page-lesson :is(
  .dm-lesson-hero__title,
  .dm-lesson-stat-card__value,
  .dm-prose--lesson h2,
  .dm-prose--lesson h3,
  .dm-prose--lesson h4,
  .dm-prose--lesson strong
) {
  color: #f1f5f9 !important;
}
html[data-theme="dark"] body.dm-page-lesson .dm-lesson-meta__pill {
  color: #cbd5e1 !important;
  background: #162237 !important;
  border-color: #3b4b62 !important;
  box-shadow: none !important;
}
html[data-theme="dark"] body.dm-page-lesson .dm-lesson-meta__pill--sequence {
  background: #172b4d !important;
  border-color: #3f6191 !important;
}
html[data-theme="dark"] body.dm-page-lesson .dm-lesson-stat-card {
  color: #cbd5e1 !important;
  background: linear-gradient(155deg, #142038, #111c2f) !important;
  border-color: #334155 !important;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22) !important;
}
html[data-theme="dark"] body.dm-page-lesson .dm-lesson-progress-track {
  background: #26344a !important;
}
html[data-theme="dark"] body.dm-page-lesson .dm-lesson-body {
  background: #0b1120 !important;
}
html[data-theme="dark"] body.dm-page-lesson .dm-lesson-panel {
  color: #d6dde8;
  background: #111c2f !important;
  border-color: #334155 !important;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24) !important;
}
html[data-theme="dark"] body.dm-page-lesson .dm-pro .dm-lesson-panel {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
html[data-theme="dark"] body.dm-page-lesson .dm-prose--lesson {
  color: #d6dde8 !important;
}
html[data-theme="dark"] body.dm-page-lesson .dm-pro-code .dm-code-playground__editor,
html[data-theme="dark"] body.dm-page-lesson .dm-pro-code .dm-code-playground__editor:focus {
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
  caret-color: #f1f5f9 !important;
  background: transparent !important;
  border: 0 !important;
}
html[data-theme="dark"] body.dm-page-lesson .dm-pro-code__layer {
  color: #e6edf3 !important;
}
html[data-theme="dark"] body.dm-page-lesson .dm-pro-code__gutter {
  color: #8b949e !important;
  background: #0d1117 !important;
  border-color: #30363d !important;
}
html[data-theme="dark"] body.dm-page-lesson .dm-prose--lesson :is(
  .dm-formula,
  .dm-eq,
  .dm-colorkey
) {
  color: #e5e7eb !important;
  background-color: #101827 !important;
  background-image: radial-gradient(rgba(148, 163, 184, 0.13) 1px, transparent 1px) !important;
  border-color: #3b4b62 !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2) !important;
}
html[data-theme="dark"] body.dm-page-lesson .dm-prose--lesson :is(.dm-formula, .dm-eq) {
  background-image: linear-gradient(transparent 94%, rgba(148, 163, 184, 0.12) 94%) !important;
}
html[data-theme="dark"] body.dm-page-lesson .dm-prose--lesson :is(
  .dm-eq__note,
  .dm-output-label
) {
  color: #b8c2d1 !important;
}
html[data-theme="dark"] body.dm-page-lesson .dm-prose--lesson .dm-figure {
  color-scheme: light;
  color: #202124 !important;
  background-color: #f6f8fb !important;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.12) 1px, transparent 1px) !important;
  background-size: 22px 22px !important;
  border: 1px solid #64748b !important;
  box-shadow:
    0 16px 38px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.05) !important;
}
html[data-theme="dark"] body.dm-page-lesson .dm-prose--lesson .dm-figure svg {
  color-scheme: light;
  background: transparent !important;
  filter: none !important;
}
html[data-theme="dark"] body.dm-page-lesson .dm-prose--lesson .dm-figure figcaption {
  color: #3f4b5c !important;
  font-weight: 600;
}
html[data-theme="dark"] body.dm-page-lesson .dm-prose--lesson :is(
  .dm-practice,
  .dm-objectives,
  .dm-glossary,
  details.dm-answer,
  .dm-table-wrap
) {
  color: #d6dde8 !important;
  background: #111c2f !important;
  border-color: #3b4b62 !important;
}
html[data-theme="dark"] body.dm-page-lesson .dm-prose--lesson details.dm-answer > summary {
  color: #e8edf5 !important;
}
html[data-theme="dark"] body.dm-page-lesson .dm-lesson-notes {
  border-color: #334155 !important;
}
html[data-theme="dark"] body.dm-page-lesson .dm-lesson-notes__area {
  color: #e5edf7 !important;
  background: #0f172a !important;
  border-color: #3b4b62 !important;
}
html[data-theme="dark"] body.dm-page-lesson .dm-lesson-notes__area::placeholder {
  color: #7f8da1;
}
html[data-theme="dark"] body.dm-page-lesson .dm-lesson-colab-embed-card {
  color: #d6dde8 !important;
  background: #111c2f !important;
  border-color: #334155 !important;
}
html[data-theme="dark"] body.dm-page-lesson .dm-lesson-colab-embed-card__title {
  background: #162237 !important;
  border-color: #334155 !important;
}

/* Lesson coding challenge and quiz prompt. */
html[data-theme="dark"] body.dm-page-lesson .dm-coding-challenge {
  color: #d6dde8 !important;
  background: #111c2f !important;
  border-color: #334155 !important;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24) !important;
}
html[data-theme="dark"] body.dm-page-lesson .dm-cc-head {
  background: linear-gradient(135deg, #15243c, #12233a) !important;
  border-color: #334155 !important;
}
html[data-theme="dark"] body.dm-page-lesson .dm-cc-prompt {
  border-color: #334155 !important;
}
html[data-theme="dark"] body.dm-page-lesson .dm-cc-hints {
  border-color: #475569 !important;
}
html[data-theme="dark"] body.dm-page-lesson .dm-cc-workspace {
  background: #0d1526 !important;
}
html[data-theme="dark"] body.dm-page-lesson .dm-cc-toolbar {
  color: #cbd5e1 !important;
  background: #162237 !important;
  border-color: #334155 !important;
}
html[data-theme="dark"] body.dm-page-lesson .dm-cc-btn--ghost {
  color: #d6dde8 !important;
  border-color: #526178 !important;
}
html[data-theme="dark"] body.dm-page-lesson .dm-cc-btn--ghost:hover:not(:disabled) {
  color: #fff !important;
  background: #24344d !important;
}
html[data-theme="dark"] body.dm-page-lesson .dm-cc-editor,
html[data-theme="dark"] body.dm-page-lesson .dm-cc-editor textarea {
  color: #e5e7eb !important;
  background: #0d1117 !important;
}
html[data-theme="dark"] body.dm-page-lesson .dm-cc-editor textarea {
  caret-color: #f1f5f9;
}
html[data-theme="dark"] body.dm-page-lesson .dm-cc-results {
  color: #d6dde8 !important;
  background: #0f172a !important;
  border-color: #334155 !important;
}
html[data-theme="dark"] body.dm-page-lesson .dm-lesson-quizcta {
  color: #d6dde8 !important;
  background: #111c2f !important;
  border-color: #3b4b62 !important;
  border-left-color: #fbbc05 !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2) !important;
}
html[data-theme="dark"] body.dm-page-lesson .dm-lesson-quizcta__text strong {
  color: #f1f5f9 !important;
}
html[data-theme="dark"] body.dm-page-lesson .dm-lesson-quizcta__text span {
  color: #b8c2d1 !important;
}

/* Blogs, research, events, quizzes, modals and assistant. */
html[data-theme="dark"] body.dm-page-blogs {
  background: #080e1a !important;
}
html[data-theme="dark"] body.dm-page-blogs .dm-blog-page {
  color: #cbd5e1 !important;
  background:
    radial-gradient(ellipse 70% 28% at 50% 0%, rgba(37, 99, 235, 0.11), transparent 68%),
    linear-gradient(180deg, #0b1322, #080f1d) !important;
  border-color: #26344a !important;
}
html[data-theme="dark"] body.dm-page-blogs .dm-blog-page__head .dm-kicker {
  color: #93c5fd !important;
}
html[data-theme="dark"] body.dm-page-blogs .dm-blog-page__head .dm-section-title {
  color: #f1f5f9 !important;
}
html[data-theme="dark"] body.dm-page-blogs .dm-blog-page__head .text-muted {
  color: #b8c2d1 !important;
}
html[data-theme="dark"] body.dm-page-blogs .dm-blog-filter-banner {
  color: #d6dde8 !important;
  background:
    radial-gradient(ellipse 70% 140% at 0% 50%, rgba(37, 99, 235, 0.15), transparent 65%),
    linear-gradient(135deg, #142138, #101a2d) !important;
  border-color: #426087 !important;
  box-shadow:
    0 12px 34px rgba(0, 0, 0, 0.22),
    inset 0 1px rgba(255, 255, 255, 0.035) !important;
}
html[data-theme="dark"] body.dm-page-blogs .dm-blog-filter-banner__label {
  color: #9eabbc !important;
}
html[data-theme="dark"] body.dm-page-blogs .dm-blog-filter-banner__value {
  color: #f1f5f9 !important;
}
html[data-theme="dark"] body.dm-page-blogs .dm-blog-filter-banner__clear {
  color: #93c5fd !important;
  padding: 0.3rem 0.65rem;
  border: 1px solid #49688f;
  border-radius: 999px;
  background: rgba(23, 45, 79, 0.75);
}
html[data-theme="dark"] body.dm-page-blogs .dm-blog-filter-banner__clear:hover {
  color: #fff !important;
  background: #1b3152;
  border-color: #60a5fa;
  text-decoration: none;
}
html[data-theme="dark"] body.dm-page-blogs .dm-course-card-popular {
  color: #cbd5e1 !important;
  background: linear-gradient(155deg, #111c2f, #0e182a) !important;
  border-color: #334155 !important;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.24) !important;
}
html[data-theme="dark"] body.dm-page-blogs .dm-course-card-popular:hover {
  border-color: #52709a !important;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.31) !important;
}
html[data-theme="dark"] body.dm-page-blogs .dm-course-card-popular__meta {
  color: #9eabbc !important;
}
html[data-theme="dark"] body.dm-page-blogs .dm-course-card-popular__title {
  color: #f1f5f9 !important;
}
html[data-theme="dark"] body.dm-page-blogs .dm-course-card-popular__summary {
  color: #b8c2d1 !important;
}
html[data-theme="dark"] body.dm-page-blogs .dm-course-card-popular__footer {
  border-color: #334155 !important;
}
html[data-theme="dark"] body.dm-page-blogs .dm-course-card-popular__price-num {
  color: #f1f5f9 !important;
}
html[data-theme="dark"] body.dm-page-blogs :is(
  .dm-course-card-popular__price-label,
  .dm-course-card-popular__link
) {
  color: #93c5fd !important;
}
html[data-theme="dark"] body.dm-page-blogs .dm-blog-sidebar__widget {
  color: #cbd5e1 !important;
  background: linear-gradient(155deg, #111c2f, #0f192b) !important;
  border-color: #334155 !important;
  box-shadow:
    0 14px 38px rgba(0, 0, 0, 0.24),
    inset 0 1px rgba(255, 255, 255, 0.025) !important;
}
html[data-theme="dark"] body.dm-page-blogs .dm-blog-sidebar__widget--newsletter {
  background:
    radial-gradient(ellipse 90% 70% at 0% 0%, rgba(37, 99, 235, 0.12), transparent 62%),
    linear-gradient(155deg, #121f34, #0f192b) !important;
}
html[data-theme="dark"] body.dm-page-blogs .dm-blog-sidebar__widget-title {
  color: #f1f5f9 !important;
  border-color: #334155 !important;
}
html[data-theme="dark"] body.dm-page-blogs .dm-blog-sidebar__pop-list li + li {
  border-color: #2f4059 !important;
}
html[data-theme="dark"] body.dm-page-blogs .dm-blog-sidebar__pop-thumb {
  background: #17253b !important;
  border: 1px solid #334155;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.24) !important;
}
html[data-theme="dark"] body.dm-page-blogs .dm-blog-sidebar__pop-title {
  color: #e5edf7 !important;
}
html[data-theme="dark"] body.dm-page-blogs .dm-blog-sidebar__pop:hover .dm-blog-sidebar__pop-title {
  color: #bfdbfe !important;
}
html[data-theme="dark"] body.dm-page-blogs .dm-blog-sidebar__pop-meta {
  color: #9eabbc !important;
}
html[data-theme="dark"] body.dm-page-blogs .dm-blog-sidebar__pop-meta .bi {
  color: #93c5fd !important;
}
html[data-theme="dark"] body.dm-page-blogs .dm-blog-sidebar__cat {
  color: #b8c2d1 !important;
  border: 1px solid transparent;
}
html[data-theme="dark"] body.dm-page-blogs .dm-blog-sidebar__cat:hover {
  color: #f1f5f9 !important;
  background: #18263d !important;
  border-color: #334155;
}
html[data-theme="dark"] body.dm-page-blogs .dm-blog-sidebar__cat.is-active {
  color: #dbeafe !important;
  background: linear-gradient(135deg, #18345c, #172d4f) !important;
  border-color: #42699a !important;
}
html[data-theme="dark"] body.dm-page-blogs .dm-blog-sidebar__cat-num {
  color: #cbd5e1 !important;
}
html[data-theme="dark"] body.dm-page-blogs .dm-blog-sidebar__cat.is-active .dm-blog-sidebar__cat-num {
  color: #bfdbfe !important;
}
html[data-theme="dark"] body.dm-page-blogs :is(
  .dm-blog-sidebar__newsletter-lede,
  .dm-blog-sidebar__newsletter-note
) {
  color: #aeb9c8 !important;
}
html[data-theme="dark"] body.dm-page-blogs .dm-blog-sidebar__newsletter-input {
  color: #f1f5f9 !important;
  background: #091321 !important;
  border-color: #3b4b62 !important;
}
html[data-theme="dark"] body.dm-page-blogs .dm-blog-sidebar__tag {
  color: #cbd5e1 !important;
  background: #172238 !important;
  border-color: #3b4b62 !important;
}
html[data-theme="dark"] body.dm-page-blogs .dm-blog-sidebar__tag:hover {
  color: #eaf2ff !important;
  background: #203554 !important;
  border-color: #52709a !important;
}
html[data-theme="dark"] body.dm-page-blogs .dm-blog-sidebar__tag.is-active {
  color: #fff !important;
  background: linear-gradient(135deg, #2563eb, #1a73e8) !important;
  border-color: #7db7ff !important;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.24) !important;
}
html[data-theme="dark"] body.dm-page-blogs .dm-blog-sidebar__tags {
  scrollbar-color: #526178 #111c2f;
}
html[data-theme="dark"] body.dm-page-blogs .dm-blog-page .col-lg-8 > .text-muted {
  color: #aeb9c8 !important;
}
html[data-theme="dark"] .dm-rlab-enterprise {
  color: #cbd5e1 !important;
  background: #0b1120 !important;
  border-color: #26344a !important;
}
html[data-theme="dark"] .dm-rlab-enterprise__title,
html[data-theme="dark"] .dm-rlab-enterprise__band-title,
html[data-theme="dark"] .dm-rlab-enterprise__brand { color: #f1f5f9 !important; }
html[data-theme="dark"] .dm-rlab-enterprise__lede,
html[data-theme="dark"] .dm-rlab-enterprise__band-lede,
html[data-theme="dark"] .dm-rlab-enterprise__tagline { color: #a9b5c6 !important; }
html[data-theme="dark"] .dm-rlab-enterprise__eyebrow {
  color: #bfdbfe !important;
  background: #14294a !important;
  border-color: #315783 !important;
}
html[data-theme="dark"] .dm-rlab-enterprise__card {
  color: #cbd5e1 !important;
  background: #111c2f !important;
  border-color: #334155 !important;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28) !important;
}
html[data-theme="dark"] .dm-rlab-enterprise__glyph-disk { background: #e8eef8 !important; }
html[data-theme="dark"] .dm-rlab-enterprise__chip {
  color: #b9c7da !important;
  background: #16243b !important;
  border-color: #3b4b62 !important;
}
html[data-theme="dark"] :is(
  .dm-research-lab-page,
  .dm-papers-section--lab,
  .dm-research-frontier,
  .dm-rlab-reading-paths,
  .dm-rlab-start
) {
  color: #cbd5e1;
  background-color: #0d1526 !important;
  border-color: #26344a !important;
}
html[data-theme="dark"] .dm-blog-sidebar__widget--newsletter,
html[data-theme="dark"] .dm-research-roots__card,
html[data-theme="dark"] .dm-home-outcomes__card,
html[data-theme="dark"] .dm-community-card,
html[data-theme="dark"] .dm-events-card,
html[data-theme="dark"] .dm-quiz-card,
html[data-theme="dark"] .dm-quiz-shell {
  color: #cbd5e1 !important;
  background: #111c2f !important;
  border-color: #334155 !important;
}
html[data-theme="dark"] .modal-content,
html[data-theme="dark"] .offcanvas,
html[data-theme="dark"] .dm-site-assistant__panel {
  color: #cbd5e1;
  background: #111c2f !important;
  border-color: #334155 !important;
}
html[data-theme="dark"] .modal-header,
html[data-theme="dark"] .modal-footer { border-color: #334155; }
html[data-theme="dark"] .btn-close { filter: invert(1) grayscale(1) brightness(1.8); }
html[data-theme="dark"] .alert {
  color: #dbe5f1;
  background-color: #162237;
  border-color: #3b4b62;
}

/* Footer. */
html[data-theme="dark"] .dm-footer.dm-footer-pro {
  color: #a9b5c6;
  background: #080e1a !important;
  border-color: #26344a;
}
html[data-theme="dark"] .dm-fp__brand,
html[data-theme="dark"] .dm-fp__title { color: #f1f5f9; }
html[data-theme="dark"] :is(
  .dm-fp__tagline,
  .dm-fp__muted,
  .dm-fp__contact li,
  .dm-fp__col a,
  .dm-fp__bottom,
  .dm-fp__legal a
) { color: #9eabbc; }
html[data-theme="dark"] .dm-fp__contact a { color: #cbd5e1; }
html[data-theme="dark"] .dm-fp__bottom { border-color: #26344a; }
html[data-theme="dark"] .dm-footer-pro .dm-fp__field .form-control {
  color: #e5edf7;
  background: #0f172a;
  border-color: #3b4b62;
}

/* Home — bundle showcase. Keep its depth and accents without retaining light panels. */
html[data-theme="dark"] body.dm-page-home .dm-home-bundles {
  color: #cbd5e1 !important;
  background:
    radial-gradient(ellipse 70% 50% at 8% 2%, rgba(37, 99, 235, 0.14), transparent 60%),
    radial-gradient(ellipse 55% 45% at 96% 78%, rgba(14, 165, 233, 0.09), transparent 58%),
    linear-gradient(180deg, #0b1120 0%, #0e192c 100%) !important;
  border-color: #26344a !important;
}
html[data-theme="dark"] body.dm-page-home .dm-home-bundles::before {
  background-image: radial-gradient(rgba(125, 180, 255, 0.11) 1px, transparent 1px) !important;
}
html[data-theme="dark"] body.dm-page-home .dm-home-bundles::after {
  background: radial-gradient(circle, rgba(59, 130, 246, 0.13), transparent 70%) !important;
}
html[data-theme="dark"] body.dm-page-home .dm-home-bundles__header {
  background: linear-gradient(155deg, rgba(17, 28, 47, 0.93), rgba(15, 25, 43, 0.84)) !important;
  border-color: #334155 !important;
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.25), inset 0 1px rgba(255, 255, 255, 0.04) !important;
}
html[data-theme="dark"] body.dm-page-home .dm-home-bundles__eyebrow {
  color: #93c5fd !important;
  background: rgba(37, 99, 235, 0.14) !important;
  border-color: rgba(96, 165, 250, 0.34) !important;
}
html[data-theme="dark"] body.dm-page-home .dm-home-bundles__title,
html[data-theme="dark"] body.dm-page-home .dm-home-bundles__stat strong {
  color: #f1f5f9 !important;
}
html[data-theme="dark"] body.dm-page-home .dm-home-bundles__lede,
html[data-theme="dark"] body.dm-page-home .dm-home-bundles__stat {
  color: #a9b5c6 !important;
}
html[data-theme="dark"] body.dm-page-home .dm-home-bundles__stat {
  background: #162237 !important;
  border-color: #3b4b62 !important;
}
html[data-theme="dark"] body.dm-page-home .dm-home-bundles .dm-course-card-popular .dm-course-card-popular__body {
  color: #cbd5e1 !important;
  background: linear-gradient(180deg, #111c2f 0%, #0f192b 100%) !important;
  border-color: #334155 !important;
}
html[data-theme="dark"] body.dm-page-home .dm-home-bundles .dm-home-bundles__cta--ghost.btn {
  color: #dbeafe !important;
  background: rgba(15, 23, 42, 0.56) !important;
  border-color: #475569 !important;
}

/* Home — research papers. This section has intentionally strong light-theme selectors. */
html[data-theme="dark"] body.dm-page-home #research-papers.dm-papers-section {
  color: #cbd5e1 !important;
  background: #0d1526 !important;
  border-color: #26344a !important;
}
html[data-theme="dark"] body.dm-page-home #research-papers.dm-papers-section::before {
  background:
    radial-gradient(ellipse 80% 50% at 18% 20%, rgba(37, 99, 235, 0.17), transparent 58%),
    radial-gradient(ellipse 60% 42% at 92% 78%, rgba(14, 165, 233, 0.1), transparent 54%) !important;
}
html[data-theme="dark"] body.dm-page-home #research-papers.dm-papers-section::after {
  background-image: radial-gradient(rgba(148, 163, 184, 0.1) 1px, transparent 1px) !important;
}
html[data-theme="dark"] body.dm-page-home #research-papers.dm-papers-section .dm-kicker {
  color: #93c5fd !important;
}
html[data-theme="dark"] body.dm-page-home #research-papers.dm-papers-section #dm-papers-heading,
html[data-theme="dark"] body.dm-page-home #research-papers.dm-papers-section .dm-papers-section__lede strong {
  color: #f1f5f9 !important;
}
html[data-theme="dark"] body.dm-page-home #research-papers.dm-papers-section .dm-papers-section__lede {
  color: #a9b5c6 !important;
}

/* Home — supporting panels that otherwise retain pearl-white gradients. */
html[data-theme="dark"] body.dm-page-home .dm-home-events {
  background:
    radial-gradient(ellipse 72% 48% at 10% -8%, rgba(37, 99, 235, 0.18), transparent 58%),
    radial-gradient(ellipse 48% 40% at 96% 88%, rgba(14, 165, 233, 0.08), transparent 56%),
    linear-gradient(180deg, #0b1120 0%, #0c1526 100%) !important;
}
html[data-theme="dark"] body.dm-page-home .dm-home-events__showcase,
html[data-theme="dark"] body.dm-page-home .dm-home-community__rhythm {
  color: #d6deea !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 32%),
    linear-gradient(155deg, #141e33 0%, #10192b 100%) !important;
  border-color: #3d516c !important;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.38),
    inset 0 1px rgba(255, 255, 255, 0.06) !important;
}
html[data-theme="dark"] body.dm-page-home .dm-home-events__showcase-glow {
  background: radial-gradient(ellipse 55% 60% at 50% 0%, rgba(59, 130, 246, 0.24), transparent 72%) !important;
  opacity: 1;
}
html[data-theme="dark"] body.dm-page-home .dm-home-events__title,
html[data-theme="dark"] body.dm-page-home .dm-home-events__hint strong,
html[data-theme="dark"] body.dm-page-home .dm-home-events__empty-title {
  color: #f8fafc !important;
}
html[data-theme="dark"] body.dm-page-home :is(.dm-home-events__lede, .dm-home-events__hint, .dm-home-events__empty-copy) {
  color: #c9d4e3 !important;
}
html[data-theme="dark"] body.dm-page-home .dm-home-events__hint i {
  color: #93c5fd !important;
  opacity: 1;
}
html[data-theme="dark"] body.dm-page-home .dm-home-events__btn-cal {
  color: #eaf2ff !important;
  background: rgba(37, 99, 235, 0.22) !important;
  border-color: #7db4ff !important;
}
html[data-theme="dark"] body.dm-page-home .dm-home-events__btn-cal:hover,
html[data-theme="dark"] body.dm-page-home .dm-home-events__btn-cal:focus-visible {
  color: #fff !important;
  background: #1d4ed8 !important;
  border-color: #1d4ed8 !important;
}
html[data-theme="dark"] body.dm-page-home .dm-home-events__empty {
  color: #dbe5f1 !important;
  background: rgba(7, 13, 24, 0.42) !important;
  border-color: #46607f !important;
}
html[data-theme="dark"] body.dm-page-home .dm-home-events__empty-mark {
  color: #bfdbfe !important;
  background: #173056 !important;
  border-color: #3d6ea5 !important;
}
html[data-theme="dark"] body.dm-page-home .dm-home-events__foot {
  border-color: #334155 !important;
}
html[data-theme="dark"] body.dm-page-home .dm-home-events__foot-link {
  color: #9ec5ff !important;
}
html[data-theme="dark"] body.dm-page-home .dm-home-events__foot-link:hover {
  color: #e8f1ff !important;
}

/* Event tickets: a bright full-card blue reads as a light panel on the dark page.
   Keep the colored date rail, and put the copy on the same dark surface as the rest of home. */
html[data-theme="dark"] body.dm-page-home .dm-home-event-card__shell {
  background: #121b2d !important;
  border-color: #3d516c !important;
  box-shadow:
    0 14px 36px rgba(0, 0, 0, 0.36),
    inset 0 1px rgba(255, 255, 255, 0.04) !important;
}
html[data-theme="dark"] body.dm-page-home .dm-home-event-card:hover .dm-home-event-card__shell {
  border-color: #6b93c9 !important;
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(125, 180, 255, 0.28) !important;
}
html[data-theme="dark"] body.dm-page-home .dm-home-event-card__rail-bg {
  background: linear-gradient(180deg, #1d4ed8 0%, #1e3a8a 100%) !important;
}
html[data-theme="dark"] body.dm-page-home .dm-home-event-card--accent-2 .dm-home-event-card__rail-bg {
  background: linear-gradient(180deg, #0f766e 0%, #134e4a 100%) !important;
}
html[data-theme="dark"] body.dm-page-home .dm-home-event-card--accent-3 .dm-home-event-card__rail-bg {
  background: linear-gradient(180deg, #6d28d9 0%, #3b0764 100%) !important;
}
html[data-theme="dark"] body.dm-page-home .dm-home-event-card--accent-4 .dm-home-event-card__rail-bg {
  background: linear-gradient(180deg, #b45309 0%, #7c2d12 100%) !important;
}
html[data-theme="dark"] body.dm-page-home .dm-home-event-card__body {
  background: transparent !important;
}
html[data-theme="dark"] body.dm-page-home .dm-home-event-card__heading,
html[data-theme="dark"] body.dm-page-home .dm-home-event-card__session-title {
  color: #f8fafc !important;
}
html[data-theme="dark"] body.dm-page-home .dm-home-event-card__lead,
html[data-theme="dark"] body.dm-page-home .dm-home-event-card__solo-note,
html[data-theme="dark"] body.dm-page-home .dm-home-event-card__more {
  color: #c9d4e3 !important;
}
html[data-theme="dark"] body.dm-page-home .dm-home-event-card__chip {
  color: #e8f1ff !important;
  background: rgba(125, 180, 255, 0.12) !important;
  border-color: rgba(147, 197, 253, 0.34) !important;
}
html[data-theme="dark"] body.dm-page-home .dm-home-event-card__chip--muted {
  color: #d5deea !important;
  background: rgba(8, 15, 28, 0.45) !important;
  border-color: #3d516c !important;
}
html[data-theme="dark"] body.dm-page-home .dm-home-event-card__chip--live {
  color: #fecaca !important;
  background: rgba(127, 29, 29, 0.45) !important;
  border-color: rgba(252, 165, 165, 0.45) !important;
}
html[data-theme="dark"] body.dm-page-home .dm-home-event-card__agenda {
  background: rgba(7, 13, 24, 0.45) !important;
  border-color: #3d516c !important;
  box-shadow: none !important;
}
html[data-theme="dark"] body.dm-page-home .dm-home-event-card__agenda-label {
  color: #bfdbfe !important;
}
html[data-theme="dark"] body.dm-page-home .dm-home-event-card__cal-inner {
  background: #f8fafc !important;
}
html[data-theme="dark"] body.dm-page-home .dm-home-event-card__cal-month {
  color: #1d4ed8 !important;
}
html[data-theme="dark"] body.dm-page-home .dm-home-event-card__cal-day {
  color: #0f172a !important;
}
html[data-theme="dark"] body.dm-page-home .dm-home-event-card__cal-year {
  color: #475569 !important;
}
html[data-theme="dark"] body.dm-page-home .dm-home-event-card__btn-register {
  background: #f8fafc !important;
  color: #1e3a8a !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28) !important;
}
html[data-theme="dark"] body.dm-page-home .dm-home-event-card__btn-register:hover {
  background: #dbeafe !important;
  color: #1e3a8a !important;
}
html[data-theme="dark"] body.dm-page-home .dm-home-event-card__ghost-link {
  color: #b9d4ff !important;
}
html[data-theme="dark"] body.dm-page-home .dm-home-event-card__ghost-link:hover {
  color: #fff !important;
}
html[data-theme="dark"] body.dm-page-home .dm-home-community__rhythm :is(h1, h2, h3, h4, h5, h6) {
  color: #f1f5f9 !important;
}

/* Course syllabus — preserve hierarchy without dimming locked lessons to illegibility. */
html[data-theme="dark"] .dm-topic-card__title a {
  color: #f1f5f9 !important;
}
html[data-theme="dark"] .dm-topic-card__title a:hover {
  color: #93c5fd !important;
}
html[data-theme="dark"] .dm-topic-card__blurb {
  color: #b8c2d1 !important;
}
html[data-theme="dark"] .dm-topic-card__lesson {
  color: #dbe5f1 !important;
  background: #162237 !important;
  border-color: #2e3d53 !important;
}
html[data-theme="dark"] .dm-topic-card__lesson:hover {
  color: #f1f5f9 !important;
  background: #1a2941 !important;
  border-color: #4a6b97 !important;
}
html[data-theme="dark"] .dm-topic-card__lesson--locked {
  opacity: 0.94 !important;
}
html[data-theme="dark"] .dm-topic-card__lesson-t {
  color: #dbe5f1 !important;
}
html[data-theme="dark"] :is(.dm-topic-card__lesson-m, .dm-topic-card__count) {
  color: #a9b5c6 !important;
}
html[data-theme="dark"] .dm-topic-card__link-all,
html[data-theme="dark"] .dm-topic-card__link-all:hover {
  color: #fff !important;
}

/* Events — cohesive dark schedule, testimonial and detail-page experience. */
html[data-theme="dark"] body.dm-page-events {
  background: #080e1a !important;
}
html[data-theme="dark"] body.dm-page-events .dm-ev-hero {
  color: #d6dde8 !important;
  background:
    radial-gradient(ellipse 72% 90% at 88% -18%, rgba(59, 130, 246, 0.18), transparent 58%),
    radial-gradient(ellipse 58% 70% at 2% 55%, rgba(14, 165, 233, 0.1), transparent 56%),
    linear-gradient(155deg, #0b1120, #101d33) !important;
  border-color: #334155 !important;
}
html[data-theme="dark"] body.dm-page-events .dm-ev-hero::before {
  opacity: 0.16;
  background-image: radial-gradient(rgba(148, 163, 184, 0.32) 1px, transparent 1px) !important;
}
html[data-theme="dark"] body.dm-page-events :is(
  .dm-ev-hero__title,
  .dm-ev-schedule-head__title,
  .dm-ev-schedule-head__lede strong,
  .dm-ev-day-card__day-num,
  .dm-ev-session__title,
  .dm-ev-break__title,
  .dm-ev-testimonials__title,
  .dm-ev-testimonial-name
) {
  color: #f1f5f9 !important;
}
html[data-theme="dark"] body.dm-page-events :is(
  .dm-ev-hero__lede,
  .dm-ev-schedule-head__lede,
  .dm-ev-session__detail,
  .dm-ev-break__time,
  .dm-ev-testimonials__lede
) {
  color: #b8c2d1 !important;
}
html[data-theme="dark"] body.dm-page-events :is(
  .dm-ev-hero__eyebrow,
  .dm-ev-schedule-head__eyebrow,
  .dm-ev-day-card__meta,
  .dm-ev-day-card__agenda-link,
  .dm-ev-session__join-hint,
  .dm-ev-break__slot,
  .dm-ev-testimonials__eyebrow,
  .dm-ev-carousel-word
) {
  color: #93c5fd !important;
}
html[data-theme="dark"] body.dm-page-events .dm-ev-schedule-block {
  background:
    radial-gradient(ellipse 60% 32% at 50% 0%, rgba(37, 99, 235, 0.08), transparent 68%),
    #0b1120 !important;
}
html[data-theme="dark"] body.dm-page-events .dm-ev-agenda-stack__divider {
  border-color: #334155 !important;
}
html[data-theme="dark"] body.dm-page-events .dm-ev-day-card--surface {
  color: #d6dde8 !important;
  background: linear-gradient(155deg, #111c2f, #0f192b) !important;
  border-color: #334155 !important;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24) !important;
}
html[data-theme="dark"] body.dm-page-events .dm-ev-day-card--surface:hover {
  border-color: #49617f !important;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.3) !important;
}
html[data-theme="dark"] body.dm-page-events .dm-ev-day-card__header {
  border-color: #334155 !important;
}
html[data-theme="dark"] body.dm-page-events .dm-ev-session {
  color: #d6dde8 !important;
  background: #0e182a !important;
  border-color: #2f4059 !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.025) !important;
}
html[data-theme="dark"] body.dm-page-events .dm-ev-session:hover {
  background: #16243a !important;
  border-color: #4b6383 !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2) !important;
}
html[data-theme="dark"] body.dm-page-events .dm-ev-session__avatar {
  color: #fff !important;
  border-color: #26344a !important;
}
html[data-theme="dark"] body.dm-page-events :is(
  .dm-ev-session__kicker,
  .dm-ev-session__speakers-tba
) {
  color: #9eabbc !important;
}
html[data-theme="dark"] body.dm-page-events .dm-ev-session__speakers {
  color: #cbd5e1 !important;
}
html[data-theme="dark"] body.dm-page-events .dm-ev-session__detail {
  border-color: #3b4b62 !important;
}
html[data-theme="dark"] body.dm-page-events .dm-ev-session__time-badge {
  color: #bfdbfe !important;
  background: #172b4d !important;
  border-color: #3f6191 !important;
}
html[data-theme="dark"] body.dm-page-events .dm-ev-session__time-badge--tba {
  color: #cbd5e1 !important;
  background: #1b2638 !important;
  border-color: #475569 !important;
}
html[data-theme="dark"] body.dm-page-events .dm-ev-break--detailed {
  color: #d6dde8 !important;
  background: #121e31 !important;
  border-color: #475569 !important;
}
html[data-theme="dark"] body.dm-page-events .dm-ev-break {
  border-color: #3b4b62 !important;
}
html[data-theme="dark"] body.dm-page-events .dm-ev-btn-join-live {
  color: #bfdbfe !important;
  border-color: #60a5fa !important;
}
html[data-theme="dark"] body.dm-page-events .dm-ev-btn-ticket,
html[data-theme="dark"] body.dm-page-events .dm-ev-btn-ticket:hover {
  color: #fff !important;
}
html[data-theme="dark"] body.dm-page-events .dm-ev-testimonials {
  color: #d6dde8 !important;
  background:
    radial-gradient(ellipse 66% 45% at 12% 20%, rgba(37, 99, 235, 0.1), transparent 62%),
    linear-gradient(180deg, #0d1526, #0b1322) !important;
  border-top: 1px solid #26344a;
  border-bottom: 1px solid #26344a;
}
html[data-theme="dark"] body.dm-page-events .dm-ev-testimonials__toolbar {
  border-color: #334155 !important;
}
html[data-theme="dark"] body.dm-page-events .dm-ev-testimonial-card {
  margin-left: 0;
  margin-right: 0;
  padding: clamp(1rem, 3vw, 1.75rem);
  background: linear-gradient(150deg, rgba(17, 28, 47, 0.96), rgba(15, 25, 43, 0.9));
  border: 1px solid #334155;
  border-radius: 1.5rem;
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.25);
}
html[data-theme="dark"] body.dm-page-events .dm-ev-testimonial-visual {
  background:
    radial-gradient(circle at 35% 22%, rgba(96, 165, 250, 0.24), transparent 36%),
    linear-gradient(155deg, #172b4d, #111c2f) !important;
  border: 1px solid #3b4b62;
}
html[data-theme="dark"] body.dm-page-events .dm-ev-testimonial-visual__quotes {
  background: #1d2a40 !important;
  border: 1px solid #526178;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25) !important;
}
html[data-theme="dark"] body.dm-page-events .dm-ev-testimonial-visual__quotes::after {
  color: #dbe5f1 !important;
}
html[data-theme="dark"] body.dm-page-events .dm-ev-testimonial-visual__silhouette {
  color: #9eb0c7 !important;
}
html[data-theme="dark"] body.dm-page-events .dm-ev-testimonial-quote {
  color: #d3dbe7 !important;
}
html[data-theme="dark"] body.dm-page-events .dm-ev-final-cta {
  background: #0b1120 !important;
}
html[data-theme="dark"] body.dm-page-events .dm-ev-final-cta__panel {
  color: #cbd5e1 !important;
  background: linear-gradient(155deg, #111c2f, #0f192b) !important;
  border-color: #334155 !important;
  border-top-color: #4285f4 !important;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.26) !important;
}
html[data-theme="dark"] body.dm-page-events .dm-ev-final-cta__title {
  color: #f1f5f9 !important;
}
html[data-theme="dark"] body.dm-page-events .dm-ev-final-cta__lede {
  color: #a9b5c6 !important;
}
html[data-theme="dark"] body.dm-page-events .dm-ev-final-cta .dm-ev-final-cta__btn,
html[data-theme="dark"] body.dm-page-events .dm-ev-final-cta .dm-ev-final-cta__btn:hover {
  color: #fff !important;
  background: linear-gradient(135deg, #2563eb, #1a73e8) !important;
  border-color: #60a5fa !important;
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.28) !important;
}
html[data-theme="dark"] body.dm-page-event-detail .dm-ev-detail-format-badge {
  color: #dbe5f1 !important;
  background: #1b2a40 !important;
  border: 1px solid #475569;
}
html[data-theme="dark"] body.dm-page-event-detail .dm-ev-detail-meta.card,
html[data-theme="dark"] body.dm-page-event-detail .dm-ev-day-highlight {
  color: #d6dde8 !important;
  background: #111c2f !important;
  border: 1px solid #334155 !important;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.24) !important;
}
html[data-theme="dark"] body.dm-page-event-detail :is(
  .dm-ev-detail-meta__value,
  .dm-ev-day-highlight__title,
  .dm-ev-day-highlight__time,
  .dm-ev-day-highlight__detail,
  .dm-ev-day-highlight__hint a
) {
  color: #e5edf7 !important;
}
html[data-theme="dark"] body.dm-page-event-detail .dm-ev-detail-meta__label {
  color: #9eabbc !important;
}

/* Research Lab — navigation, reading paths, and product cards. */
html[data-theme="dark"] .dm-rlab-toc {
  background: linear-gradient(180deg, rgba(11, 17, 32, 0.96), rgba(15, 25, 43, 0.92)) !important;
  border-color: #334155 !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22) !important;
}
html[data-theme="dark"] .dm-rlab-toc__link {
  color: #cbd5e1 !important;
  background: #162237 !important;
  border-color: #3b4b62 !important;
}
html[data-theme="dark"] .dm-rlab-toc__link:hover,
html[data-theme="dark"] .dm-rlab-toc__link--emph {
  color: #bfdbfe !important;
  background: rgba(37, 99, 235, 0.2) !important;
  border-color: rgba(96, 165, 250, 0.48) !important;
}
html[data-theme="dark"] .dm-rlab-toc__track--secondary {
  border-color: #334155 !important;
}
html[data-theme="dark"] .dm-rlab-toc__tier-label {
  color: #a9b5c6 !important;
}
html[data-theme="dark"] .dm-rlab-toc__pill {
  background: #162237 !important;
}
html[data-theme="dark"] .dm-rlab-toc__pill--beginner { color: #6ee7b7 !important; }
html[data-theme="dark"] .dm-rlab-toc__pill--intermediate { color: #93c5fd !important; }
html[data-theme="dark"] .dm-rlab-toc__pill--professional { color: #7dd3fc !important; }
html[data-theme="dark"] .dm-rlab-paths {
  color: #cbd5e1 !important;
  background:
    radial-gradient(ellipse 72% 52% at 50% -12%, rgba(37, 99, 235, 0.13), transparent 58%),
    linear-gradient(180deg, #0d1526, #0b1322) !important;
  border-color: #26344a !important;
}
html[data-theme="dark"] .dm-rlab-paths__intro {
  background: linear-gradient(160deg, #111c2f, #0f192b) !important;
  border-color: #334155 !important;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.25), inset 0 1px rgba(255, 255, 255, 0.04) !important;
}
html[data-theme="dark"] :is(.dm-rlab-paths__title, .dm-rlab-path-card__heading, .dm-rlab-path-card__paper-title) {
  color: #f1f5f9 !important;
}
html[data-theme="dark"] :is(.dm-rlab-paths__lede, .dm-rlab-path-card__sub, .dm-rlab-path-card__paper-cite) {
  color: #a9b5c6 !important;
}
html[data-theme="dark"] .dm-rlab-path-card {
  color: #cbd5e1 !important;
  background: #111c2f !important;
  border-color: #334155 !important;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.2) !important;
}
html[data-theme="dark"] .dm-rlab-path-card__link:hover {
  background: rgba(59, 130, 246, 0.12) !important;
}
html[data-theme="dark"] .dm-papers-section--lab {
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(37, 99, 235, 0.12), transparent 58%),
    radial-gradient(ellipse 60% 45% at 100% 80%, rgba(14, 165, 233, 0.08), transparent 52%),
    #0d1526 !important;
}
html[data-theme="dark"] .dm-rp-card__inner {
  color: #cbd5e1 !important;
  background: linear-gradient(165deg, #111c2f, #0f192b) !important;
  border-color: #334155 !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.04) !important;
}
html[data-theme="dark"] .dm-rp-card__inner::before {
  background: radial-gradient(circle at 100% 0%, rgba(59, 130, 246, 0.14), transparent 70%) !important;
}
html[data-theme="dark"] .dm-rp-card__name {
  color: #f1f5f9 !important;
}
html[data-theme="dark"] .dm-rlab-start__card {
  color: #cbd5e1 !important;
  background: #111c2f !important;
  border-color: #334155 !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2) !important;
}
html[data-theme="dark"] .dm-rlab-start__ct {
  color: #f1f5f9 !important;
}
html[data-theme="dark"] :is(.dm-rlab-start__lede, .dm-rlab-start__cm) {
  color: #a9b5c6 !important;
}

/* Research Lab — deliberate hierarchy instead of a flat all-white override. */
html[data-theme="dark"] body.dm-page-research-lab {
  color: #cbd5e1 !important;
  background: #080e1a !important;
  background-image: none !important;
}
html[data-theme="dark"] body.dm-page-research-lab .dm-rlab-enterprise {
  background:
    radial-gradient(ellipse 72% 30% at 50% -4%, rgba(59, 130, 246, 0.2), transparent 64%),
    radial-gradient(ellipse 34% 22% at 100% 32%, rgba(14, 165, 233, 0.08), transparent 62%),
    linear-gradient(180deg, #0b1424, #080f1d) !important;
  border-color: #26344a !important;
}
html[data-theme="dark"] body.dm-page-research-lab .dm-rlab-enterprise__aurora {
  opacity: 0.5 !important;
}
html[data-theme="dark"] body.dm-page-research-lab .dm-rlab-enterprise__grid-bg {
  opacity: 0.13 !important;
  background-size: 64px 64px !important;
}
html[data-theme="dark"] body.dm-page-research-lab .dm-rlab-enterprise__noise {
  opacity: 0.012 !important;
}
html[data-theme="dark"] body.dm-page-research-lab :is(
  .dm-rlab-enterprise__title,
  .dm-rlab-enterprise__band-title,
  .dm-rlab-enterprise__brand,
  .dm-research-lab-page__title,
  .dm-rlab-eco__title,
  .dm-rlab-frontier__title,
  .dm-rlab-frontier-card__title,
  .dm-rlab-paths__title,
  .dm-rlab-path-card__heading,
  .dm-rlab-path-card__paper-title,
  .dm-rlab-start__ct,
  .dm-rlab-tiers__title,
  .dm-rlab-tier__title,
  .dm-paper-card__title,
  .dm-research-products__title,
  .dm-rp-card__name
) {
  color: #f1f5f9 !important;
}
html[data-theme="dark"] body.dm-page-research-lab :is(
  .dm-rlab-enterprise__lede,
  .dm-rlab-enterprise__band-lede,
  .dm-rlab-enterprise__tagline,
  .dm-research-lab-page__tagline,
  .dm-rlab-eco__lede,
  .dm-rlab-eco__sub,
  .dm-rlab-frontier__lede,
  .dm-rlab-frontier-card__lede,
  .dm-rlab-paths__lede,
  .dm-rlab-path-card__sub,
  .dm-rlab-path-card__paper-cite,
  .dm-rlab-start__lede,
  .dm-rlab-start__cm,
  .dm-rlab-tiers__lede,
  .dm-rlab-tier__sub,
  .dm-paper-card__meta,
  .dm-research-products__lede,
  .dm-rp-card__body,
  .text-muted
) {
  color: #aeb9c8 !important;
}
html[data-theme="dark"] body.dm-page-research-lab :is(
  .dm-kicker,
  .dm-rlab-path-card__meta,
  .dm-rp-assembly__eyebrow,
  .dm-rp-card__label
) {
  color: #dbe5f1 !important;
  opacity: 1 !important;
}
html[data-theme="dark"] body.dm-page-research-lab .dm-rlab-enterprise__eyebrow {
  color: #e5edf7 !important;
  background: #14294a !important;
  border-color: #315783 !important;
}
html[data-theme="dark"] body.dm-page-research-lab .dm-rlab-enterprise__band-chip {
  color: #fde68a !important;
  background: rgba(120, 76, 15, 0.2) !important;
  border-color: rgba(251, 191, 36, 0.35) !important;
}
html[data-theme="dark"] body.dm-page-research-lab .dm-rlab-enterprise__card {
  color: #cbd5e1 !important;
  background: linear-gradient(155deg, #121e32, #0e182a) !important;
  border-color: #334155 !important;
  box-shadow:
    0 12px 34px rgba(0, 0, 0, 0.24),
    inset 0 1px rgba(255, 255, 255, 0.03) !important;
}
html[data-theme="dark"] body.dm-page-research-lab .dm-rlab-enterprise__card:hover {
  border-color: #52709a !important;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.3) !important;
}
html[data-theme="dark"] body.dm-page-research-lab .dm-rlab-enterprise__chip {
  color: #b8c7da !important;
  background: #17243a !important;
  border-color: #3b4b62 !important;
}
html[data-theme="dark"] body.dm-page-research-lab .dm-research-lab-page {
  background:
    radial-gradient(ellipse 64% 20% at 50% 0%, rgba(37, 99, 235, 0.12), transparent 66%),
    linear-gradient(180deg, #0a1220, #0b1322) !important;
}
html[data-theme="dark"] body.dm-page-research-lab .dm-research-lab-page::before {
  opacity: 0.16 !important;
}
html[data-theme="dark"] body.dm-page-research-lab :is(
  .dm-paper-card--float.dm-paper-card--lab-icon,
  .dm-rlab-pipeline-float-chip,
  .dm-research-lab-page__pillar,
  .dm-rlab-pipeline,
  .dm-rlab-pipeline__node,
  .dm-rp-assembly__unit
) {
  color: #d6dde8 !important;
  background: #142138 !important;
  border-color: #3b4b62 !important;
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.24),
    inset 0 1px rgba(255, 255, 255, 0.035) !important;
}
html[data-theme="dark"] body.dm-page-research-lab .dm-research-lab-page__pillar .bi {
  color: #93c5fd !important;
}
html[data-theme="dark"] body.dm-page-research-lab .dm-rlab-toc {
  background: rgba(10, 18, 32, 0.92) !important;
  border-color: #334155 !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25) !important;
}
html[data-theme="dark"] body.dm-page-research-lab .dm-rlab-toc__link {
  color: #cbd5e1 !important;
  background: #142138 !important;
  border-color: #3b4b62 !important;
}
html[data-theme="dark"] body.dm-page-research-lab .dm-rlab-toc__link:hover,
html[data-theme="dark"] body.dm-page-research-lab .dm-rlab-toc__link--emph {
  color: #fff !important;
  background: #18345c !important;
  border-color: #52709a !important;
}
html[data-theme="dark"] body.dm-page-research-lab .dm-rlab-eco {
  background:
    radial-gradient(ellipse 50% 50% at 0% 0%, rgba(37, 99, 235, 0.1), transparent 64%),
    linear-gradient(155deg, #101c30, #0d1728) !important;
  border-color: #334155 !important;
}
html[data-theme="dark"] body.dm-page-research-lab .dm-rlab-eco__tile {
  color: #cbd5e1 !important;
  background: #111c2f !important;
  border-color: #334155 !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2) !important;
}
html[data-theme="dark"] body.dm-page-research-lab .dm-rlab-eco__tile:hover {
  border-color: #52709a !important;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.27) !important;
}
html[data-theme="dark"] body.dm-page-research-lab .dm-rlab-eco__brand {
  color: #e5edf7 !important;
}
html[data-theme="dark"] body.dm-page-research-lab .dm-rlab-frontier-card {
  color: #cbd5e1 !important;
  background: linear-gradient(155deg, #111c2f, #0e182a) !important;
  border-top-color: #334155 !important;
  border-right-color: #334155 !important;
  border-bottom-color: #334155 !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22) !important;
}
html[data-theme="dark"] body.dm-page-research-lab .dm-rlab-frontier-card:hover {
  border-top-color: #52709a !important;
  border-right-color: #52709a !important;
  border-bottom-color: #52709a !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.3) !important;
}
html[data-theme="dark"] body.dm-page-research-lab .dm-rlab-frontier-card__tags li {
  color: #b8c7da !important;
  background: #1a2940 !important;
}
html[data-theme="dark"] body.dm-page-research-lab .dm-rlab-frontier-card__cta {
  color: #e5edf7 !important;
}
html[data-theme="dark"] body.dm-page-research-lab .dm-rlab-paths {
  background:
    radial-gradient(ellipse 62% 30% at 50% 0%, rgba(37, 99, 235, 0.1), transparent 66%),
    linear-gradient(180deg, #0b1322, #09111f) !important;
}
html[data-theme="dark"] body.dm-page-research-lab .dm-rlab-paths__intro {
  background: linear-gradient(155deg, #121f34, #0f192b) !important;
  border-color: #3b4b62 !important;
}
html[data-theme="dark"] body.dm-page-research-lab .dm-rlab-paths__kicker.dm-kicker {
  color: #e5edf7 !important;
  background: #172d4f !important;
  border-color: #315783 !important;
}
html[data-theme="dark"] body.dm-page-research-lab .dm-rlab-path-card,
html[data-theme="dark"] body.dm-page-research-lab .dm-rlab-start__card {
  color: #cbd5e1 !important;
  background: #111c2f !important;
  border-color: #334155 !important;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.22) !important;
}
html[data-theme="dark"] body.dm-page-research-lab .dm-rlab-path-card__step {
  color: #f1f5f9 !important;
  background: #18345c !important;
}
html[data-theme="dark"] body.dm-page-research-lab .dm-rlab-path-card__link:hover {
  background: #18263d !important;
}
html[data-theme="dark"] body.dm-page-research-lab .dm-rlab-pipeline {
  background: rgba(17, 28, 47, 0.95) !important;
}
html[data-theme="dark"] body.dm-page-research-lab .dm-rlab-pipeline__wire {
  background: #526178 !important;
}
html[data-theme="dark"] body.dm-page-research-lab .dm-papers-section--lab {
  background:
    radial-gradient(ellipse 70% 28% at 50% 0%, rgba(37, 99, 235, 0.11), transparent 64%),
    #0a1220 !important;
  border-color: #26344a !important;
}
html[data-theme="dark"] body.dm-page-research-lab .dm-rlab-tier__header {
  border-color: #334155 !important;
}
html[data-theme="dark"] body.dm-page-research-lab .dm-paper-card--grid {
  color: #cbd5e1 !important;
  background: linear-gradient(155deg, #111c2f, #0e182a) !important;
  border-top-color: #334155 !important;
  border-right-color: #334155 !important;
  border-bottom-color: #334155 !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22) !important;
}
html[data-theme="dark"] body.dm-page-research-lab .dm-paper-card--grid:hover {
  border-top-color: #52709a !important;
  border-right-color: #52709a !important;
  border-bottom-color: #52709a !important;
  box-shadow: 0 17px 38px rgba(0, 0, 0, 0.3) !important;
}
html[data-theme="dark"] body.dm-page-research-lab .dm-paper-card__rank {
  color: #dbe5f1 !important;
}
html[data-theme="dark"] body.dm-page-research-lab .dm-paper-card__label {
  color: #9eabbc !important;
}
html[data-theme="dark"] body.dm-page-research-lab .dm-paper-grid-link__hint {
  color: #e5edf7 !important;
}
html[data-theme="dark"] body.dm-page-research-lab .dm-paper-theme-chip {
  color: #dbe5f1 !important;
  background: #172d4f !important;
}
html[data-theme="dark"] body.dm-page-research-lab :is(
  .dm-rlab-tier__badge--beginner,
  .dm-paper-tier--beginner
) {
  color: #6ee7b7 !important;
  background: rgba(16, 185, 129, 0.13) !important;
}
html[data-theme="dark"] body.dm-page-research-lab :is(
  .dm-rlab-tier__badge--intermediate,
  .dm-paper-tier--intermediate
) {
  color: #e5edf7 !important;
  background: rgba(59, 130, 246, 0.14) !important;
}
html[data-theme="dark"] body.dm-page-research-lab :is(
  .dm-rlab-tier__badge--professional,
  .dm-paper-tier--professional
) {
  color: #e5edf7 !important;
  background: rgba(14, 165, 233, 0.13) !important;
}
html[data-theme="dark"] body.dm-page-research-lab .dm-research-products {
  color: #cbd5e1 !important;
  background:
    radial-gradient(ellipse 64% 30% at 50% 0%, rgba(37, 99, 235, 0.1), transparent 65%),
    linear-gradient(180deg, #0b1322, #080f1d) !important;
  border-color: #26344a !important;
}
html[data-theme="dark"] body.dm-page-research-lab .dm-research-products__bg {
  opacity: 0.12 !important;
}
html[data-theme="dark"] body.dm-page-research-lab .dm-rp-assembly__track {
  background: #111c2f !important;
  border-color: #334155 !important;
}
html[data-theme="dark"] body.dm-page-research-lab .dm-rp-card__inner {
  color: #cbd5e1 !important;
  background: linear-gradient(155deg, #111c2f, #0e182a) !important;
  border-color: #334155 !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.03) !important;
}
html[data-theme="dark"] body.dm-page-research-lab .dm-rp-card__foot {
  border-color: #3b4b62 !important;
}
html[data-theme="dark"] body.dm-page-research-lab .dm-rp-card__pill {
  color: #e5edf7 !important;
  background: #172d4f !important;
  border-color: #315783 !important;
}
html[data-theme="dark"] body.dm-page-research-lab #main-content a {
  color: #e5edf7 !important;
}
html[data-theme="dark"] body.dm-page-research-lab #main-content a:hover {
  color: #fff !important;
}

/* Path Finder — polished dark wizard, option states, and recommendation. */
html[data-theme="dark"] body.dm-page-path-finder {
  background: #080e1a !important;
}
html[data-theme="dark"] body.dm-page-path-finder .dm-pf-hero {
  color: #cbd5e1 !important;
  background:
    radial-gradient(ellipse 72% 85% at 50% -28%, rgba(59, 130, 246, 0.22), transparent 62%),
    linear-gradient(165deg, #0d1729, #0a1220) !important;
  border-color: #2b3a50 !important;
}
html[data-theme="dark"] body.dm-page-path-finder .dm-pf-hero__title {
  color: #f1f5f9 !important;
}
html[data-theme="dark"] body.dm-page-path-finder .dm-pf-hero__lede {
  color: #b8c2d1 !important;
}
html[data-theme="dark"] body.dm-page-path-finder .dm-pf-hero__lede a {
  color: #93c5fd !important;
}
html[data-theme="dark"] body.dm-page-path-finder #main-content > .dm-section {
  background:
    radial-gradient(ellipse 58% 30% at 50% 2%, rgba(37, 99, 235, 0.1), transparent 68%),
    linear-gradient(180deg, #080e1a, #0a1220) !important;
}
html[data-theme="dark"] body.dm-page-path-finder .dm-pf-progress__track {
  background: #1b2a40 !important;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.12);
}
html[data-theme="dark"] body.dm-page-path-finder .dm-pf-progress__fill {
  background: linear-gradient(90deg, #3b82f6, #60a5fa) !important;
  box-shadow: 0 0 16px rgba(59, 130, 246, 0.36);
}
html[data-theme="dark"] body.dm-page-path-finder .dm-pf-progress__meta {
  color: #9eabbc !important;
}
html[data-theme="dark"] body.dm-page-path-finder .dm-pf-progress__step-label {
  color: #e5edf7 !important;
}
html[data-theme="dark"] body.dm-page-path-finder .dm-pf-progress__hint {
  color: #aeb9c8 !important;
}
html[data-theme="dark"] body.dm-page-path-finder .dm-pf-wizard {
  color: #d6dde8 !important;
  background:
    linear-gradient(150deg, rgba(19, 32, 53, 0.98), rgba(14, 24, 42, 0.98)) !important;
  border-color: #34465f !important;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.3),
    inset 0 1px rgba(255, 255, 255, 0.035) !important;
}
html[data-theme="dark"] body.dm-page-path-finder .dm-pf-panel__eyebrow {
  color: #7db7ff !important;
}
html[data-theme="dark"] body.dm-page-path-finder :is(
  .dm-pf-panel__title,
  .dm-pf-choice__title,
  .dm-pf-outcome__title,
  .dm-pf-recap__title,
  .dm-pf-recap__list strong
) {
  color: #f1f5f9 !important;
}
html[data-theme="dark"] body.dm-page-path-finder :is(
  .dm-pf-panel__lede,
  .dm-pf-choice__subtitle,
  .dm-pf-outcome__desc,
  .dm-pf-recap__list,
  .dm-pf-footnote,
  .dm-pf-nav-hint
) {
  color: #b8c2d1 !important;
}
html[data-theme="dark"] body.dm-page-path-finder .dm-pf-choice {
  color: #d6dde8 !important;
  background: #111c2f !important;
  border-color: #334155 !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.025);
}
html[data-theme="dark"] body.dm-page-path-finder .dm-pf-choice:hover {
  background: #17253b !important;
  border-color: #52709a !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22) !important;
}
html[data-theme="dark"] body.dm-page-path-finder .dm-pf-choice:focus-visible {
  outline-color: #60a5fa !important;
}
html[data-theme="dark"] body.dm-page-path-finder .dm-pf-choice.is-pressed {
  background: linear-gradient(145deg, #183157, #14253f) !important;
  border-color: #60a5fa !important;
  box-shadow:
    0 10px 30px rgba(37, 99, 235, 0.2),
    inset 0 0 0 1px rgba(147, 197, 253, 0.08) !important;
}
html[data-theme="dark"] body.dm-page-path-finder .dm-pf-choice__ico {
  color: #93c5fd !important;
  background: #1b3152 !important;
  border: 1px solid #36577e;
}
html[data-theme="dark"] body.dm-page-path-finder .dm-pf-choice.is-pressed .dm-pf-choice__ico {
  color: #fff !important;
  background: #2563eb !important;
  border-color: #60a5fa !important;
}
html[data-theme="dark"] body.dm-page-path-finder .dm-pf-choice__chevron {
  color: #718096 !important;
}
html[data-theme="dark"] body.dm-page-path-finder .dm-pf-choice:hover .dm-pf-choice__chevron {
  color: #93c5fd !important;
}
html[data-theme="dark"] body.dm-page-path-finder .dm-pf-nav {
  border-color: #334155 !important;
}
html[data-theme="dark"] body.dm-page-path-finder .dm-pf-nav .btn-link,
html[data-theme="dark"] body.dm-page-path-finder #pf-restart {
  color: #93c5fd !important;
}
html[data-theme="dark"] body.dm-page-path-finder .dm-pf-nav .btn-link:hover,
html[data-theme="dark"] body.dm-page-path-finder #pf-restart:hover {
  color: #dbeafe !important;
}
html[data-theme="dark"] body.dm-page-path-finder .dm-pf-outcome {
  color: #d6dde8 !important;
  background:
    radial-gradient(ellipse 60% 80% at 0% 0%, rgba(37, 99, 235, 0.14), transparent 62%),
    linear-gradient(155deg, #121f34, #0f192b) !important;
  border-color: #426087 !important;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.3),
    inset 0 1px rgba(255, 255, 255, 0.04) !important;
}
html[data-theme="dark"] body.dm-page-path-finder .dm-pf-outcome__badge {
  color: #a7f3d0 !important;
  background: rgba(16, 185, 129, 0.14) !important;
  border: 1px solid rgba(52, 211, 153, 0.3);
}
html[data-theme="dark"] body.dm-page-path-finder .dm-pf-recap {
  color: #d6dde8 !important;
  background: #0d1728 !important;
  border-color: #334155 !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22) !important;
}
html[data-theme="dark"] body.dm-page-path-finder .dm-pf-recap__list li + li {
  border-color: #2f4059 !important;
}
html[data-theme="dark"] body.dm-page-path-finder .dm-pf-outcome .text-muted {
  color: #9eabbc !important;
}
html[data-theme="dark"] body.dm-page-path-finder .dm-pf-outcome a:not(.btn) {
  color: #93c5fd !important;
}
html[data-theme="dark"] body.dm-page-path-finder .dm-pf-outcome .btn-dm-outline {
  color: #dbeafe !important;
  background: transparent !important;
  border-color: #52709a !important;
}
html[data-theme="dark"] body.dm-page-path-finder .dm-pf-outcome .btn-dm-outline:hover {
  color: #fff !important;
  background: #1b3152 !important;
  border-color: #60a5fa !important;
}

/* Community — switch its local design tokens so every editorial card follows suit. */
html[data-theme="dark"] body.dm-page-community {
  --dm-com-bg: #0b1322;
  --dm-com-card: #111c2f;
  --dm-com-ink: #f1f5f9;
  --dm-com-muted: #a9b5c6;
  --dm-com-frame: #334155;
  --dm-com-shadow: 0 18px 48px rgba(0, 0, 0, 0.25);
}
html[data-theme="dark"] body.dm-page-community .dm-community-hero {
  background:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(37, 99, 235, 0.16), transparent 56%),
    radial-gradient(ellipse 70% 50% at 100% 40%, rgba(234, 179, 8, 0.07), transparent 48%),
    linear-gradient(180deg, #0d1729, #0b1322) !important;
  border-color: #334155 !important;
}
html[data-theme="dark"] body.dm-page-community .dm-community-hero__vignette {
  box-shadow: inset 0 0 130px rgba(0, 0, 0, 0.24) !important;
}
html[data-theme="dark"] body.dm-page-community .dm-community-pills a {
  color: #dbe5f1 !important;
  background: #162237 !important;
  border-color: #3b4b62 !important;
}
html[data-theme="dark"] body.dm-page-community :is(
  .dm-community-feature,
  .dm-community-bento__cell,
  .dm-community-quote
) {
  color: #cbd5e1 !important;
  background: #111c2f !important;
  border-color: #334155 !important;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.22) !important;
}
html[data-theme="dark"] body.dm-page-community .dm-community-bento__media {
  background: #162237 !important;
}
html[data-theme="dark"] body.dm-page-community .dm-community-quote__face {
  border-color: #334155 !important;
}
html[data-theme="dark"] body.dm-page-community .dm-community-strip {
  background: linear-gradient(180deg, rgba(17, 28, 47, 0.72), rgba(11, 19, 34, 0.25)) !important;
  border-color: #334155 !important;
}
html[data-theme="dark"] body.dm-page-community .dm-community-strip__face {
  border-color: #334155 !important;
}
html[data-theme="dark"] body.dm-page-community .dm-community-cta {
  color: #cbd5e1 !important;
  background: #0d1526 !important;
  border-color: #334155 !important;
}
html[data-theme="dark"] body.dm-page-community .dm-community-cta__title {
  color: #f1f5f9 !important;
}
html[data-theme="dark"] body.dm-page-community .dm-community-cta__lede {
  color: #a9b5c6 !important;
}

@media (max-width: 1199.98px) {
  .dm-theme-toggle__label { display: none; }
  .dm-theme-toggle { width: 2.35rem; padding-inline: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .dm-theme-toggle { transition: none; }
}
