/* Calculaza site-wide colour system. The header switch controls this document-wide theme. */
html[data-cz-theme="light"] { color-scheme: light; }
html[data-cz-theme="dark"] { color-scheme: dark; }

html[data-cz-theme="dark"] body {
  color: #e7edf6 !important;
  background: #0b1422 !important;
}
html[data-cz-theme="dark"] #page,
html[data-cz-theme="dark"] .site,
html[data-cz-theme="dark"] .site-content,
html[data-cz-theme="dark"] .content-area,
html[data-cz-theme="dark"] .site-main,
html[data-cz-theme="dark"] .wp-site-blocks {
  color: #e7edf6;
  background-color: transparent !important;
}
html[data-cz-theme="dark"] .cz-page-wrap,
html[data-cz-theme="dark"] .cz-home,
html[data-cz-theme="dark"] .cz-home-lab,
html[data-cz-theme="dark"] .cz-tools-directory {
  color: #e7edf6 !important;
}
html[data-cz-theme="dark"] .cz-page-wrap h1,
html[data-cz-theme="dark"] .cz-page-wrap h2,
html[data-cz-theme="dark"] .cz-page-wrap h3,
html[data-cz-theme="dark"] .cz-home-lab h1,
html[data-cz-theme="dark"] .cz-home-lab h2,
html[data-cz-theme="dark"] .cz-home-lab h3 {
  color: #f3f6fb !important;
}
html[data-cz-theme="dark"] .cz-breadcrumb,
html[data-cz-theme="dark"] .cz-breadcrumb a,
html[data-cz-theme="dark"] .cz-section-heading p,
html[data-cz-theme="dark"] .cz-archive-description,
html[data-cz-theme="dark"] .cz-tool-page-header p,
html[data-cz-theme="dark"] .cz-info-section,
html[data-cz-theme="dark"] .cz-tool-summary {
  color: #aebbd0 !important;
}
html[data-cz-theme="dark"] .cz-tool-main-card,
html[data-cz-theme="dark"] .cz-category-card,
html[data-cz-theme="dark"] .cz-subcategory-card,
html[data-cz-theme="dark"] .cz-tool-link-grid a,
html[data-cz-theme="dark"] .cz-content-card,
html[data-cz-theme="dark"] .cz-directory-category,
html[data-cz-theme="dark"] .cz-directory-tool-card,
html[data-cz-theme="dark"] .cz-directory-subcategory {
  color: #e7edf6 !important;
  background: #142136 !important;
  border-color: #2a3a52 !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .16);
}
html[data-cz-theme="dark"] .cz-directory-hero,
html[data-cz-theme="dark"] .cz-hero {
  color: #f3f6fb;
  background: linear-gradient(135deg, #14253b 0%, #17243a 58%, #182e3a 100%) !important;
  border-color: #2a3d57 !important;
}
html[data-cz-theme="dark"] .cz-directory-hero h1,
html[data-cz-theme="dark"] .cz-directory-tool-card__link > strong,
html[data-cz-theme="dark"] .cz-directory-category__body > strong,
html[data-cz-theme="dark"] .cz-directory-subcategory > span {
  color: #f3f6fb !important;
}
html[data-cz-theme="dark"] .cz-directory-intro,
html[data-cz-theme="dark"] .cz-directory-tool-card__description,
html[data-cz-theme="dark"] .cz-directory-category__body small,
html[data-cz-theme="dark"] .cz-directory-section__heading p,
html[data-cz-theme="dark"] .cz-directory-trustline,
html[data-cz-theme="dark"] .cz-directory-stats span {
  color: #aebbd0 !important;
}
html[data-cz-theme="dark"] .cz-directory-search,
html[data-cz-theme="dark"] .cz-search input,
html[data-cz-theme="dark"] .cz-field input,
html[data-cz-theme="dark"] .cz-field select,
html[data-cz-theme="dark"] .cz-field textarea,
html[data-cz-theme="dark"] .cz-contact-form input,
html[data-cz-theme="dark"] .cz-contact-form textarea {
  color: #edf3fb !important;
  background: #0e1a2b !important;
  border-color: #344760 !important;
}
html[data-cz-theme="dark"] .cz-directory-search input::placeholder,
html[data-cz-theme="dark"] .cz-search input::placeholder,
html[data-cz-theme="dark"] .cz-field input::placeholder,
html[data-cz-theme="dark"] .cz-field textarea::placeholder {
  color: #8292a9 !important;
}
html[data-cz-theme="dark"] .cz-directory-sibling-nav a,
html[data-cz-theme="dark"] .cz-category-pills a {
  color: #dce6f3 !important;
  background: #142136 !important;
  border-color: #30435d !important;
}
html[data-cz-theme="dark"] .cz-directory-stats {
  border-color: #30435d;
}
html[data-cz-theme="dark"] .cz-directory-stats strong { color: #f1f5fb; }
html[data-cz-theme="dark"] .cz-result {
  color: #edf3fb;
  background: #172d47 !important;
  border-color: #315174 !important;
}
html[data-cz-theme="dark"] .cz-result-output { color: #f1f5fb !important; }
html[data-cz-theme="dark"] .cz-faq-item { border-color: #304057; }
html[data-cz-theme="dark"] .cz-site-header {
  --cz-header-bg: #101c2d;
  --cz-header-text: #eef3fa;
  --cz-header-muted: #aebbd0;
  --cz-header-line: rgba(215, 228, 246, .16);
}
html[data-cz-theme="dark"] .cz-site-footer {
  --cz-footer-bg: #0e1929;
  --cz-footer-panel: #142238;
  --cz-footer-text: #edf3fa;
  --cz-footer-muted: #adbbce;
  --cz-footer-line: rgba(215, 228, 246, .16);
}
html[data-cz-theme="dark"] .cz-site-footer--light {
  --cz-footer-bg: #0e1929;
  --cz-footer-panel: #142238;
  --cz-footer-text: #edf3fa;
  --cz-footer-muted: #adbbce;
  --cz-footer-line: rgba(215, 228, 246, .16);
}
html[data-cz-theme="dark"] .cz-tool-actions .cz-reset {
  color: #dbe5f2 !important;
  background: #2a3b53 !important;
}
html[data-cz-theme="dark"] .cz-pagination a,
html[data-cz-theme="dark"] .cz-pagination span,
html[data-cz-theme="dark"] .cz-directory-pagination a,
html[data-cz-theme="dark"] .cz-directory-pagination span {
  color: #e3ebf5;
  background: #142136;
  border-color: #30435d;
}
html[data-cz-theme="dark"] .cz-pagination .current,
html[data-cz-theme="dark"] .cz-directory-pagination .current {
  color: #fff;
  background: #168b72;
  border-color: #168b72;
}
html[data-cz-theme="dark"] .cz-info-section h2,
html[data-cz-theme="dark"] .cz-info-section h3,
html[data-cz-theme="dark"] .cz-info-section h4 { color: #f3f6fb !important; }
html[data-cz-theme="dark"] .cz-notice { color: #f6e8cf; background: #3a2b1c; border-color: #76502c; }
html[data-cz-theme="dark"] .cz-notice.success { color: #d8f7e3; background: #153629; border-color: #28674d; }

@media (prefers-reduced-motion: reduce) {
  html[data-cz-theme] *, html[data-cz-theme] *::before, html[data-cz-theme] *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* The global switch also keeps the shared header aligned with the selected mode. */
html[data-cz-theme="light"] .cz-site-header {
  --cz-header-bg: #ffffff;
  --cz-header-text: #172338;
  --cz-header-muted: #66758a;
  --cz-header-line: rgba(23, 35, 56, .12);
}
html[data-cz-theme="dark"] .cz-home-lab .cz-lab-hero,
html[data-cz-theme="dark"] .cz-home-lab .cz-lab-mini-panel,
html[data-cz-theme="dark"] .cz-home-lab .cz-lab-category,
html[data-cz-theme="dark"] .cz-home-lab .cz-lab-tool-card,
html[data-cz-theme="dark"] .cz-home-lab .cz-lab-recent-item,
html[data-cz-theme="dark"] .cz-home-lab .cz-lab-popular-card {
  color: #e7edf6 !important;
  background: #142136 !important;
  border-color: #2a3a52 !important;
}
html[data-cz-theme="dark"] .cz-home-lab .cz-lab-hero h1,
html[data-cz-theme="dark"] .cz-home-lab .cz-lab-tool-card strong,
html[data-cz-theme="dark"] .cz-home-lab .cz-lab-category-copy strong {
  color: #f2f6fb !important;
}
html[data-cz-theme="dark"] .cz-home-lab .cz-lab-intro,
html[data-cz-theme="dark"] .cz-home-lab .cz-lab-tool-card > span,
html[data-cz-theme="dark"] .cz-home-lab .cz-lab-category-copy small {
  color: #aebbd0 !important;
}
html[data-cz-theme="dark"] .cz-home-lab .cz-lab-search,
html[data-cz-theme="dark"] .cz-home-lab .cz-lab-search input,
html[data-cz-theme="dark"] .cz-home-lab .cz-lab-mini-controls input,
html[data-cz-theme="dark"] .cz-home-lab .cz-lab-word-controls textarea {
  color: #edf3fb !important;
  background: #0e1a2b !important;
  border-color: #344760 !important;
}
html[data-cz-theme="dark"] .cz-home-lab .cz-lab-section h2,
html[data-cz-theme="dark"] .cz-home-lab .cz-lab-heading-row h2 { color: #f2f6fb !important; }
html[data-cz-theme="dark"] .cz-site-footer,
html[data-cz-theme="dark"] .cz-site-footer--light {
  --cz-footer-bg: #0e1929;
  --cz-footer-panel: #142238;
  --cz-footer-text: #edf3fa;
  --cz-footer-muted: #adbbce;
  --cz-footer-line: rgba(215, 228, 246, .16);
}

/* Support pages follow the visitor's selected site theme. */
html[data-cz-theme="dark"] .cz-support-page { color:#e7edf6 !important; }
html[data-cz-theme="dark"] .cz-support-page h1,
html[data-cz-theme="dark"] .cz-support-page h2,
html[data-cz-theme="dark"] .cz-support-page h3,
html[data-cz-theme="dark"] .cz-support-page h4,
html[data-cz-theme="dark"] .cz-support-section-heading h3,
html[data-cz-theme="dark"] .cz-about-note h3,
html[data-cz-theme="dark"] .cz-faq-jump-nav strong,
html[data-cz-theme="dark"] .cz-faq-item summary,
html[data-cz-theme="dark"] .cz-faq-bottom-cta strong { color:#f2f6fb !important; }
html[data-cz-theme="dark"] .cz-support-intro>p,
html[data-cz-theme="dark"] .cz-support-hero>p,
html[data-cz-theme="dark"] .cz-support-section-heading>p,
html[data-cz-theme="dark"] .cz-support-feature p,
html[data-cz-theme="dark"] .cz-about-note p,
html[data-cz-theme="dark"] .cz-faq-answer,
html[data-cz-theme="dark"] .cz-faq-bottom-cta p,
html[data-cz-theme="dark"] .cz-contact-submit-row small { color:#aebbd0 !important; }
html[data-cz-theme="dark"] .cz-contact-info-card,
html[data-cz-theme="dark"] .cz-contact-form-panel,
html[data-cz-theme="dark"] .cz-support-feature,
html[data-cz-theme="dark"] .cz-about-steps li,
html[data-cz-theme="dark"] .cz-faq-jump-nav,
html[data-cz-theme="dark"] .cz-faq-item { color:#e7edf6; background:#142136; border-color:#30435d; box-shadow:0 10px 28px rgba(0,0,0,.14); }
html[data-cz-theme="dark"] .cz-support-hero,
html[data-cz-theme="dark"] .cz-about-note,
html[data-cz-theme="dark"] .cz-faq-bottom-cta { color:#e7edf6; background:linear-gradient(135deg,#14283a,#17243a); border-color:#304b5b; }
html[data-cz-theme="dark"] .cz-contact-fields label { color:#dce6f3; }
html[data-cz-theme="dark"] .cz-contact-fields input,
html[data-cz-theme="dark"] .cz-contact-fields textarea { color:#edf3fb; background:#0e1a2b; border-color:#344760; }
html[data-cz-theme="dark"] .cz-faq-jump-nav a { color:#c2cede; }
html[data-cz-theme="dark"] .cz-faq-jump-nav a:hover { color:#7de3c1; background:#20354b; }
html[data-cz-theme="dark"] .cz-support-privacy-note { color:#93a3b8; }
html[data-cz-theme="dark"] .cz-contact-shortcuts a,
html[data-cz-theme="dark"] .cz-contact-shortcuts h3 { color:#dce6f3; border-color:#30435d; }

/* Blog archive colour tokens for both themes. */
html[data-cz-theme="dark"] .cz-blog-archive { color:#e7edf6; }
html[data-cz-theme="dark"] .cz-blog-archive-header,
html[data-cz-theme="dark"] .cz-blog-bottom-cta { color:#e7edf6; background:radial-gradient(circle at 88% 12%,rgba(22,139,114,.12),transparent 36%),linear-gradient(135deg,#14283a,#17243a 66%,#142136); border-color:#304b5b; }
html[data-cz-theme="dark"] .cz-blog-archive-header h1,
html[data-cz-theme="dark"] .cz-blog-results-heading h2,
html[data-cz-theme="dark"] .cz-blog-bottom-cta h2 { color:#f2f6fb; }
html[data-cz-theme="dark"] .cz-blog-archive-header>p:last-child,
html[data-cz-theme="dark"] .cz-blog-results-heading p,
html[data-cz-theme="dark"] .cz-blog-bottom-cta p { color:#aebbd0; }
html[data-cz-theme="dark"] .cz-blog-topic-nav strong { color:#dce6f3; }
html[data-cz-theme="dark"] .cz-blog-topic-nav a,
html[data-cz-theme="dark"] .cz-blog-results-count,
html[data-cz-theme="dark"] .cz-blog-archive-filters { color:#dce6f3; background:#142136; border-color:#30435d; }
html[data-cz-theme="dark"] .cz-blog-archive-filters input,
html[data-cz-theme="dark"] .cz-blog-archive-filters select,
html[data-cz-theme="dark"] .cz-blog-search-field input { color:#edf3fb; background:#0e1a2b; border-color:#344760; }
html[data-cz-theme="dark"] .cz-blog-card,
html[data-cz-theme="dark"] .cz-blog-empty { color:#e7edf6; background:#142136; border-color:#30435d; }
html[data-cz-theme="dark"] .cz-blog-card h2 a,
html[data-cz-theme="dark"] .cz-blog-card h3 a,
html[data-cz-theme="dark"] .cz-blog-empty h2 { color:#f2f6fb; }
html[data-cz-theme="dark"] .cz-blog-card-copy>p,
html[data-cz-theme="dark"] .cz-blog-card-meta,
html[data-cz-theme="dark"] .cz-blog-empty p { color:#aebbd0; }
html[data-cz-theme="dark"] .cz-blog-art-card { background:rgba(20,33,54,.92); border-color:#3b536d; }
html[data-cz-theme="dark"] .cz-blog-art-card strong { color:#f2f6fb; }
html[data-cz-theme="dark"] .cz-blog-art-card small { color:#aebbd0; }
html[data-cz-theme="dark"] .cz-blog-art-chip { color:#7de3c1; background:#1a3046; border-color:#3a566c; }
html[data-cz-theme="dark"] .cz-blog-card-placeholder { background:radial-gradient(circle at 18% 20%,rgba(22,139,114,.22),transparent 45%),linear-gradient(135deg,#172d42,#1c2c46); }
html[data-cz-theme="dark"] .cz-support-panel { color:#e7edf6; background:#142136; border-color:#30435d; box-shadow:0 10px 28px rgba(0,0,0,.14); }
html[data-cz-theme="dark"] .cz-support-icon { color:#7de3c1; background:#20384b; }
html[data-cz-theme="dark"] .cz-contact-shortcuts a { border-color:#30435d; }
html[data-cz-theme="dark"] .cz-contact-fields input::placeholder,
html[data-cz-theme="dark"] .cz-contact-fields textarea::placeholder { color:#8292a9; }
html[data-cz-theme="dark"] .cz-about-stats strong { color:#f2f6fb; }
html[data-cz-theme="dark"] .cz-about-stats span { color:#aebbd0; }
html[data-cz-theme="dark"] .cz-support-alert.is-success { color:#d8f7e3; background:#153629; border-color:#28674d; }
html[data-cz-theme="dark"] .cz-support-alert.is-error { color:#f8d9cd; background:#3b251e; border-color:#76442f; }


/* -------------------------------------------------------------------------
   v2.27.5 — unified site-wide theme tokens and component coverage.
   Keep the selector scope inside Calculaza components so a theme toggle does
   not unexpectedly recolour unrelated third-party plugin interfaces.
   ------------------------------------------------------------------------- */
:root {
  color-scheme: light;
  --cz-page-bg: #ffffff;
  --cz-surface: #ffffff;
  --cz-surface-raised: #f8fafc;
  --cz-surface-inset: #f1f5f9;
  --cz-text: #172033;
  --cz-heading: #111827;
  --cz-muted-text: #526174;
  --cz-subtle-text: #5d6b7d;
  --cz-placeholder: #59677a;
  --cz-border: #cbd5e1;
  --cz-border-strong: #94a3b8;
  --cz-link: #334ac5;
  --cz-link-hover: #24389f;
  --cz-primary: #4653c8;
  --cz-primary-hover: #3542ad;
  --cz-primary-text: #ffffff;
  --cz-control-bg: #ffffff;
  --cz-control-text: #172033;
  --cz-control-border: #b9c5d4;
  --cz-focus: #315be8;
  --cz-selection-bg: #dbeafe;
  --cz-selection-text: #172033;
  --cz-success-bg: #ecfdf5;
  --cz-success-text: #145c3b;
  --cz-error-bg: #fff1f0;
  --cz-error-text: #8a2d21;
  --cz-warning-bg: #fff7e8;
  --cz-warning-text: #75450a;
  --cz-shadow: 0 12px 32px rgba(15, 23, 42, .08);
}
html[data-cz-theme="light"] { color-scheme: light; }
html[data-cz-theme="dark"] {
  color-scheme: dark;
  --cz-page-bg: #0b1422;
  --cz-surface: #142136;
  --cz-surface-raised: #192b43;
  --cz-surface-inset: #0e1a2b;
  --cz-text: #e7edf6;
  --cz-heading: #f4f7fc;
  --cz-muted-text: #b8c5d8;
  --cz-subtle-text: #a7b6ca;
  --cz-placeholder: #a3b1c5;
  --cz-border: #40546e;
  --cz-border-strong: #60758f;
  --cz-link: #b8c5ff;
  --cz-link-hover: #d6ddff;
  --cz-primary: #4b55d6;
  --cz-primary-hover: #5d63e4;
  --cz-primary-text: #ffffff;
  --cz-control-bg: #0e1a2b;
  --cz-control-text: #f2f6fc;
  --cz-control-border: #526782;
  --cz-focus: #aab8ff;
  --cz-selection-bg: #364b78;
  --cz-selection-text: #ffffff;
  --cz-success-bg: #17372c;
  --cz-success-text: #d4f6e2;
  --cz-error-bg: #402622;
  --cz-error-text: #ffd8cf;
  --cz-warning-bg: #40331e;
  --cz-warning-text: #ffe4ad;
  --cz-shadow: 0 14px 34px rgba(0, 0, 0, .28);
}

/* Native widgets (date/time/select controls, checkboxes and scrollbars) follow the preference. */
html[data-cz-theme="dark"],
html[data-cz-theme="dark"] body,
html[data-cz-theme="dark"] .cz-page-wrap,
html[data-cz-theme="dark"] .cz-home,
html[data-cz-theme="dark"] .cz-home-lab,
html[data-cz-theme="dark"] .cz-tools-directory,
html[data-cz-theme="dark"] .cz-tool-shell,
html[data-cz-theme="dark"] .cz-tool-app,
html[data-cz-theme="dark"] .cz-blog-archive,
html[data-cz-theme="dark"] .cz-support-page,
html[data-cz-theme="dark"] .cz-content-card {
  color-scheme: dark;
}
html[data-cz-theme="light"] .cz-page-wrap,
html[data-cz-theme="light"] .cz-home,
html[data-cz-theme="light"] .cz-home-lab,
html[data-cz-theme="light"] .cz-tools-directory,
html[data-cz-theme="light"] .cz-tool-shell,
html[data-cz-theme="light"] .cz-tool-app,
html[data-cz-theme="light"] .cz-blog-archive,
html[data-cz-theme="light"] .cz-support-page,
html[data-cz-theme="light"] .cz-content-card { color-scheme: light; }

/* Global Calculaza canvas and base wrappers. */
html[data-cz-theme="dark"] body {
  color: var(--cz-text) !important;
  background-color: var(--cz-page-bg) !important;
}
html[data-cz-theme="dark"] #page,
html[data-cz-theme="dark"] .site,
html[data-cz-theme="dark"] .site-content,
html[data-cz-theme="dark"] .content-area,
html[data-cz-theme="dark"] .site-main,
html[data-cz-theme="dark"] #primary,
html[data-cz-theme="dark"] #content,
html[data-cz-theme="dark"] .wp-site-blocks {
  color: var(--cz-text);
  background-color: transparent !important;
}
html[data-cz-theme="dark"] .cz-page-wrap,
html[data-cz-theme="dark"] .cz-home,
html[data-cz-theme="dark"] .cz-home-lab,
html[data-cz-theme="dark"] .cz-tools-directory,
html[data-cz-theme="dark"] .cz-tool-shell,
html[data-cz-theme="dark"] .cz-blog-archive,
html[data-cz-theme="dark"] .cz-support-page {
  color: var(--cz-text) !important;
}
html[data-cz-theme="dark"] .cz-page-wrap h1,
html[data-cz-theme="dark"] .cz-page-wrap h2,
html[data-cz-theme="dark"] .cz-page-wrap h3,
html[data-cz-theme="dark"] .cz-page-wrap h4,
html[data-cz-theme="dark"] .cz-home h1,
html[data-cz-theme="dark"] .cz-home h2,
html[data-cz-theme="dark"] .cz-home h3,
html[data-cz-theme="dark"] .cz-home h4,
html[data-cz-theme="dark"] .cz-tool-shell h1,
html[data-cz-theme="dark"] .cz-tool-shell h2,
html[data-cz-theme="dark"] .cz-tool-shell h3,
html[data-cz-theme="dark"] .cz-tool-shell h4,
html[data-cz-theme="dark"] .cz-blog-archive h1,
html[data-cz-theme="dark"] .cz-blog-archive h2,
html[data-cz-theme="dark"] .cz-blog-archive h3,
html[data-cz-theme="dark"] .cz-support-page h1,
html[data-cz-theme="dark"] .cz-support-page h2,
html[data-cz-theme="dark"] .cz-support-page h3,
html[data-cz-theme="dark"] .cz-support-page h4 {
  color: var(--cz-heading) !important;
  -webkit-text-fill-color: var(--cz-heading) !important;
  background: none !important;
}
html[data-cz-theme="dark"] .cz-page-wrap p,
html[data-cz-theme="dark"] .cz-home p,
html[data-cz-theme="dark"] .cz-tool-shell p,
html[data-cz-theme="dark"] .cz-blog-archive p,
html[data-cz-theme="dark"] .cz-support-page p,
html[data-cz-theme="dark"] .cz-info-section,
html[data-cz-theme="dark"] .cz-tool-summary,
html[data-cz-theme="dark"] .cz-archive-description,
html[data-cz-theme="dark"] .cz-breadcrumb,
html[data-cz-theme="dark"] .cz-breadcrumb a {
  color: var(--cz-muted-text) !important;
}
html[data-cz-theme="dark"] .cz-page-wrap a:not(.cz-tool-actions button),
html[data-cz-theme="dark"] .cz-home a,
html[data-cz-theme="dark"] .cz-blog-archive a,
html[data-cz-theme="dark"] .cz-support-page a,
html[data-cz-theme="dark"] .cz-info-section a {
  color: var(--cz-link);
}
html[data-cz-theme="dark"] .cz-page-wrap a:hover,
html[data-cz-theme="dark"] .cz-home a:hover,
html[data-cz-theme="dark"] .cz-blog-archive a:hover,
html[data-cz-theme="dark"] .cz-support-page a:hover,
html[data-cz-theme="dark"] .cz-info-section a:hover { color: var(--cz-link-hover); }

/* Calculator UI — applies to every catalogue definition through shared markup. */
html[data-cz-theme="dark"] .cz-tool-main-card,
html[data-cz-theme="dark"] .cz-ux-input-panel,
html[data-cz-theme="dark"] .cz-ux-result-panel,
html[data-cz-theme="dark"] .cz-tool-app,
html[data-cz-theme="dark"] .cz-personal-tools,
html[data-cz-theme="dark"] .cz-personal-tool-card,
html[data-cz-theme="dark"] .cz-related-tool-card,
html[data-cz-theme="dark"] .cz-local-history,
html[data-cz-theme="dark"] .cz-history-compare-card,
html[data-cz-theme="dark"] .cz-content-card,
html[data-cz-theme="dark"] .cz-references,
html[data-cz-theme="dark"] .cz-topic-label {
  color: var(--cz-text) !important;
  background: var(--cz-surface) !important;
  border-color: var(--cz-border) !important;
  box-shadow: var(--cz-shadow);
}
html[data-cz-theme="dark"] .cz-fields,
html[data-cz-theme="dark"] .cz-tool-form,
html[data-cz-theme="dark"] .cz-ux-body,
html[data-cz-theme="dark"] .cz-ux-input-panel,
html[data-cz-theme="dark"] .cz-tool-app { color: var(--cz-text) !important; }
html[data-cz-theme="dark"] .cz-field,
html[data-cz-theme="dark"] .cz-field-label,
html[data-cz-theme="dark"] .cz-field label,
html[data-cz-theme="dark"] .cz-ux-panel-heading,
html[data-cz-theme="dark"] .cz-ux-input-heading,
html[data-cz-theme="dark"] .cz-result-heading,
html[data-cz-theme="dark"] .cz-result-label,
html[data-cz-theme="dark"] .cz-result-status,
html[data-cz-theme="dark"] .cz-field-hint,
html[data-cz-theme="dark"] .cz-ux-step-tag,
html[data-cz-theme="dark"] .cz-ux-privacy-note {
  color: var(--cz-text) !important;
}
html[data-cz-theme="dark"] .cz-field input,
html[data-cz-theme="dark"] .cz-field select,
html[data-cz-theme="dark"] .cz-field textarea,
html[data-cz-theme="dark"] .cz-tool-app input:not([type="checkbox"]):not([type="radio"]),
html[data-cz-theme="dark"] .cz-tool-app select,
html[data-cz-theme="dark"] .cz-tool-app textarea,
html[data-cz-theme="dark"] .cz-contact-form input,
html[data-cz-theme="dark"] .cz-contact-form textarea,
html[data-cz-theme="dark"] .cz-contact-fields input,
html[data-cz-theme="dark"] .cz-contact-fields textarea,
html[data-cz-theme="dark"] .cz-directory-search input,
html[data-cz-theme="dark"] .cz-search input,
html[data-cz-theme="dark"] .cz-blog-archive-filters input,
html[data-cz-theme="dark"] .cz-blog-archive-filters select,
html[data-cz-theme="dark"] .cz-blog-search-field input {
  color: var(--cz-control-text) !important;
  background-color: var(--cz-control-bg) !important;
  border-color: var(--cz-control-border) !important;
  caret-color: var(--cz-link);
  color-scheme: dark;
}
html[data-cz-theme="dark"] .cz-field input::placeholder,
html[data-cz-theme="dark"] .cz-field textarea::placeholder,
html[data-cz-theme="dark"] .cz-tool-app input::placeholder,
html[data-cz-theme="dark"] .cz-tool-app textarea::placeholder,
html[data-cz-theme="dark"] .cz-contact-form input::placeholder,
html[data-cz-theme="dark"] .cz-contact-fields input::placeholder,
html[data-cz-theme="dark"] .cz-contact-fields textarea::placeholder,
html[data-cz-theme="dark"] .cz-blog-search-field input::placeholder {
  color: var(--cz-placeholder) !important;
  opacity: 1;
}
html[data-cz-theme="dark"] .cz-field select option,
html[data-cz-theme="dark"] .cz-tool-app select option,
html[data-cz-theme="dark"] select option {
  color: var(--cz-control-text);
  background: var(--cz-control-bg);
}
html[data-cz-theme="dark"] input[type="checkbox"],
html[data-cz-theme="dark"] input[type="radio"],
html[data-cz-theme="dark"] input[type="range"],
html[data-cz-theme="dark"] progress { accent-color: var(--cz-primary); }
html[data-cz-theme="dark"] .cz-field input:focus,
html[data-cz-theme="dark"] .cz-field select:focus,
html[data-cz-theme="dark"] .cz-field textarea:focus,
html[data-cz-theme="dark"] .cz-contact-form input:focus,
html[data-cz-theme="dark"] .cz-contact-fields input:focus,
html[data-cz-theme="dark"] .cz-contact-fields textarea:focus,
html[data-cz-theme="dark"] .cz-blog-archive-filters input:focus,
html[data-cz-theme="dark"] .cz-blog-archive-filters select:focus {
  outline: 2px solid var(--cz-focus) !important;
  outline-offset: 2px;
  border-color: var(--cz-focus) !important;
  box-shadow: 0 0 0 3px rgba(170,184,255,.18) !important;
}
html[data-cz-theme="dark"] .cz-result,
html[data-cz-theme="dark"] .cz-result-output,
html[data-cz-theme="dark"] .cz-history-result,
html[data-cz-theme="dark"] .cz-history-compare-card pre,
html[data-cz-theme="dark"] .cz-mini-result,
html[data-cz-theme="dark"] [data-mini-result] {
  color: var(--cz-text) !important;
  background: var(--cz-surface-raised) !important;
  border-color: var(--cz-border) !important;
}
html[data-cz-theme="dark"] .cz-result-output,
html[data-cz-theme="dark"] .cz-history-result,
html[data-cz-theme="dark"] .cz-history-compare-card pre { color: var(--cz-heading) !important; }
html[data-cz-theme="dark"] .cz-result.is-error,
html[data-cz-theme="dark"] .cz-notice:not(.success),
html[data-cz-theme="dark"] .cz-support-alert.is-error {
  color: var(--cz-error-text) !important;
  background: var(--cz-error-bg) !important;
  border-color: #875044 !important;
}
html[data-cz-theme="dark"] .cz-notice.success,
html[data-cz-theme="dark"] .cz-support-alert.is-success {
  color: var(--cz-success-text) !important;
  background: var(--cz-success-bg) !important;
  border-color: #38795e !important;
}
html[data-cz-theme="dark"] .cz-tool-actions button,
html[data-cz-theme="dark"] .cz-contact-form button,
html[data-cz-theme="dark"] .cz-search button,
html[data-cz-theme="dark"] .cz-contact-submit-row button,
html[data-cz-theme="dark"] .cz-support-button {
  color: var(--cz-primary-text) !important;
  background: var(--cz-primary) !important;
  border-color: var(--cz-primary) !important;
  box-shadow: none;
}
html[data-cz-theme="dark"] .cz-tool-actions button:hover,
html[data-cz-theme="dark"] .cz-contact-form button:hover,
html[data-cz-theme="dark"] .cz-search button:hover,
html[data-cz-theme="dark"] .cz-contact-submit-row button:hover,
html[data-cz-theme="dark"] .cz-support-button:hover {
  color: #ffffff !important;
  background: var(--cz-primary-hover) !important;
  border-color: var(--cz-primary-hover) !important;
}
html[data-cz-theme="dark"] .cz-tool-actions .cz-reset,
html[data-cz-theme="dark"] .cz-tool-actions .cz-example,
html[data-cz-theme="dark"] .cz-result-actions button,
html[data-cz-theme="dark"] .cz-copy,
html[data-cz-theme="dark"] .cz-download-csv,
html[data-cz-theme="dark"] .cz-history-actions button,
html[data-cz-theme="dark"] .cz-personal-tool-remove,
html[data-cz-theme="dark"] .cz-favorite-toggle,
html[data-cz-theme="dark"] .cz-card-favorite-button {
  color: var(--cz-text) !important;
  background: var(--cz-surface-raised) !important;
  border: 1px solid var(--cz-border) !important;
}
html[data-cz-theme="dark"] .cz-tool-actions .cz-reset:hover,
html[data-cz-theme="dark"] .cz-tool-actions .cz-example:hover,
html[data-cz-theme="dark"] .cz-result-actions button:hover,
html[data-cz-theme="dark"] .cz-copy:hover,
html[data-cz-theme="dark"] .cz-download-csv:hover,
html[data-cz-theme="dark"] .cz-history-actions button:hover {
  color: var(--cz-heading) !important;
  background: #243a57 !important;
  border-color: var(--cz-border-strong) !important;
}
html[data-cz-theme="dark"] .cz-tool-actions button:focus-visible,
html[data-cz-theme="dark"] .cz-result-actions button:focus-visible,
html[data-cz-theme="dark"] .cz-copy:focus-visible,
html[data-cz-theme="dark"] .cz-download-csv:focus-visible,
html[data-cz-theme="dark"] .cz-favorite-toggle:focus-visible,
html[data-cz-theme="dark"] .cz-card-favorite-button:focus-visible,
html[data-cz-theme="dark"] .cz-lab-suggestion:focus-visible,
html[data-cz-theme="dark"] .cz-header__theme-toggle:focus-visible {
  outline: 3px solid var(--cz-focus) !important;
  outline-offset: 3px;
}

/* Search suggestions, dropdowns and directory result cards. */
html[data-cz-theme="dark"] .cz-lab-suggestions,
html[data-cz-theme="dark"] .cz-directory-suggestions,
html[data-cz-theme="dark"] .cz-search-results-hero,
html[data-cz-theme="dark"] .cz-results-in-hero,
html[data-cz-theme="dark"] .cz-lab-home-recovery,
html[data-cz-theme="dark"] .cz-lab-mini-shell {
  color: var(--cz-text) !important;
  background: var(--cz-surface) !important;
  border-color: var(--cz-border) !important;
  box-shadow: var(--cz-shadow);
}
html[data-cz-theme="dark"] .cz-lab-suggestion,
html[data-cz-theme="dark"] .cz-lab-recent-search,
html[data-cz-theme="dark"] .cz-lab-suggestion-browse,
html[data-cz-theme="dark"] .cz-lab-home-recovery-link,
html[data-cz-theme="dark"] .cz-search-result,
html[data-cz-theme="dark"] .cz-directory-tool-card,
html[data-cz-theme="dark"] .cz-directory-category,
html[data-cz-theme="dark"] .cz-directory-subcategory,
html[data-cz-theme="dark"] .cz-lab-tool-card,
html[data-cz-theme="dark"] .cz-lab-category,
html[data-cz-theme="dark"] .cz-lab-popular-card,
html[data-cz-theme="dark"] .cz-lab-recent-item {
  color: var(--cz-text) !important;
  background: var(--cz-surface-raised) !important;
  border-color: var(--cz-border) !important;
}
html[data-cz-theme="dark"] .cz-lab-suggestion strong,
html[data-cz-theme="dark"] .cz-lab-suggestion-copy strong,
html[data-cz-theme="dark"] .cz-search-result strong,
html[data-cz-theme="dark"] .cz-directory-tool-card__link,
html[data-cz-theme="dark"] .cz-directory-category__body strong,
html[data-cz-theme="dark"] .cz-lab-tool-card strong { color: var(--cz-heading) !important; }
html[data-cz-theme="dark"] .cz-lab-suggestion small,
html[data-cz-theme="dark"] .cz-lab-suggestion-meta,
html[data-cz-theme="dark"] .cz-lab-suggestion-heading,
html[data-cz-theme="dark"] .cz-lab-suggestion-empty,
html[data-cz-theme="dark"] .cz-directory-tool-card__description,
html[data-cz-theme="dark"] .cz-lab-tool-card > span { color: var(--cz-muted-text) !important; }
html[data-cz-theme="dark"] .cz-directory-search-prompts button,
html[data-cz-theme="dark"] .cz-directory-clear,
html[data-cz-theme="dark"] .cz-category-pills a,
html[data-cz-theme="dark"] .cz-directory-sibling-nav a { color: var(--cz-text) !important; background: var(--cz-surface-raised) !important; border-color: var(--cz-border) !important; }

/* Home cards, archive cards, blog content, support pages and site footer. */
html[data-cz-theme="dark"] .cz-tool-main-card,
html[data-cz-theme="dark"] .cz-category-card,
html[data-cz-theme="dark"] .cz-subcategory-card,
html[data-cz-theme="dark"] .cz-tool-link-grid a,
html[data-cz-theme="dark"] .cz-content-card,
html[data-cz-theme="dark"] .cz-blog-card,
html[data-cz-theme="dark"] .cz-blog-empty,
html[data-cz-theme="dark"] .cz-blog-archive-filters,
html[data-cz-theme="dark"] .cz-blog-topic-nav,
html[data-cz-theme="dark"] .cz-contact-info-card,
html[data-cz-theme="dark"] .cz-contact-form-panel,
html[data-cz-theme="dark"] .cz-support-feature,
html[data-cz-theme="dark"] .cz-about-steps li,
html[data-cz-theme="dark"] .cz-faq-jump-nav,
html[data-cz-theme="dark"] .cz-faq-item,
html[data-cz-theme="dark"] .cz-support-panel {
  color: var(--cz-text) !important;
  background: var(--cz-surface) !important;
  border-color: var(--cz-border) !important;
}
html[data-cz-theme="dark"] .cz-blog-card h2 a,
html[data-cz-theme="dark"] .cz-blog-empty h2,
html[data-cz-theme="dark"] .cz-about-steps strong,
html[data-cz-theme="dark"] .cz-faq-item summary,
html[data-cz-theme="dark"] .cz-faq-jump-nav strong,
html[data-cz-theme="dark"] .cz-support-feature h4 { color: var(--cz-heading) !important; }
html[data-cz-theme="dark"] .cz-blog-card-copy > p,
html[data-cz-theme="dark"] .cz-blog-card-meta,
html[data-cz-theme="dark"] .cz-blog-results-heading p,
html[data-cz-theme="dark"] .cz-blog-archive-header > p:last-child,
html[data-cz-theme="dark"] .cz-blog-card-placeholder,
html[data-cz-theme="dark"] .cz-blog-empty p,
html[data-cz-theme="dark"] .cz-about-steps p,
html[data-cz-theme="dark"] .cz-support-feature p,
html[data-cz-theme="dark"] .cz-faq-answer,
html[data-cz-theme="dark"] .cz-contact-submit-row small { color: var(--cz-muted-text) !important; }
html[data-cz-theme="dark"] .cz-blog-archive-header,
html[data-cz-theme="dark"] .cz-blog-bottom-cta,
html[data-cz-theme="dark"] .cz-support-hero,
html[data-cz-theme="dark"] .cz-about-note,
html[data-cz-theme="dark"] .cz-faq-bottom-cta,
html[data-cz-theme="dark"] .cz-directory-hero,
html[data-cz-theme="dark"] .cz-hero,
html[data-cz-theme="dark"] .cz-home-lab .cz-lab-hero {
  color: var(--cz-text) !important;
  background: linear-gradient(135deg, #14283d, #17243b 58%, #142136) !important;
  border-color: var(--cz-border) !important;
}
html[data-cz-theme="dark"] .cz-site-footer,
html[data-cz-theme="dark"] .cz-site-footer--light {
  --cz-footer-bg: #0e1929;
  --cz-footer-panel: #142238;
  --cz-footer-text: #f0f4fb;
  --cz-footer-muted: #b8c5d8;
  --cz-footer-line: rgba(215, 228, 246, .22);
}
html[data-cz-theme="dark"] .cz-blog-archive-filters input,
html[data-cz-theme="dark"] .cz-blog-archive-filters select,
html[data-cz-theme="dark"] .cz-blog-search-field input,
html[data-cz-theme="dark"] .cz-directory-search input,
html[data-cz-theme="dark"] .cz-lab-search input {
  color: var(--cz-control-text) !important;
  background: var(--cz-control-bg) !important;
  border-color: var(--cz-control-border) !important;
}

/* Text selection and browser-native popup surfaces. */
html[data-cz-theme="dark"] ::selection { color: var(--cz-selection-text); background: var(--cz-selection-bg); }
html[data-cz-theme="dark"] ::-webkit-calendar-picker-indicator { filter: invert(.85); cursor: pointer; }
html[data-cz-theme="dark"] ::-webkit-inner-spin-button,
html[data-cz-theme="dark"] ::-webkit-outer-spin-button { filter: invert(.85); }
html[data-cz-theme="dark"] ::-webkit-scrollbar { width: 12px; height: 12px; }
html[data-cz-theme="dark"] ::-webkit-scrollbar-track { background: #0e1a2b; }
html[data-cz-theme="dark"] ::-webkit-scrollbar-thumb { background: #40546e; border: 3px solid #0e1a2b; border-radius: 20px; }

/* Responsive safety: cards, controls and suggestion menus may not overflow at 200% zoom. */
@media (max-width: 1024px) {
  html[data-cz-theme="dark"] .cz-fields,
  html[data-cz-theme="dark"] .cz-blog-archive-grid,
  html[data-cz-theme="dark"] .cz-category-grid { min-width: 0; }
}
@media (max-width: 820px) {
  html[data-cz-theme="dark"] .cz-lab-suggestions,
  html[data-cz-theme="dark"] .cz-directory-suggestions { max-width: calc(100vw - 28px); }
  html[data-cz-theme="dark"] .cz-tool-actions button,
  html[data-cz-theme="dark"] .cz-result-actions button,
  html[data-cz-theme="dark"] .cz-contact-submit-row button { min-height: 44px; }
}
@media (max-width: 600px) {
  html[data-cz-theme="dark"] .cz-tool-main-card,
  html[data-cz-theme="dark"] .cz-ux-input-panel,
  html[data-cz-theme="dark"] .cz-result,
  html[data-cz-theme="dark"] .cz-blog-card,
  html[data-cz-theme="dark"] .cz-content-card { min-width: 0; }
  html[data-cz-theme="dark"] .cz-field input,
  html[data-cz-theme="dark"] .cz-field select,
  html[data-cz-theme="dark"] .cz-field textarea,
  html[data-cz-theme="dark"] .cz-blog-archive-filters input,
  html[data-cz-theme="dark"] .cz-blog-archive-filters select { max-width: 100%; }
}
@media (forced-colors: active) {
  html[data-cz-theme] .cz-tool-actions button,
  html[data-cz-theme] .cz-result-actions button,
  html[data-cz-theme] .cz-lab-suggestion,
  html[data-cz-theme] .cz-field input,
  html[data-cz-theme] .cz-field select,
  html[data-cz-theme] .cz-field textarea { forced-color-adjust: auto; }
}

/* Extended calculator workspace and quick-tool components. */
html[data-cz-theme="dark"] .cz-ux-stage,
html[data-cz-theme="dark"] .cz-ux-header,
html[data-cz-theme="dark"] .cz-ux-guide-panel,
html[data-cz-theme="dark"] .cz-lab-mini-shell,
html[data-cz-theme="dark"] .cz-lab-mini-panel,
html[data-cz-theme="dark"] .cz-lab-mini-tabs,
html[data-cz-theme="dark"] .cz-lab-word-stats span,
html[data-cz-theme="dark"] .cz-lab-mini-result,
html[data-cz-theme="dark"] .cz-lab-category,
html[data-cz-theme="dark"] .cz-lab-tool-card,
html[data-cz-theme="dark"] .cz-lab-recent-item,
html[data-cz-theme="dark"] .cz-lab-popular-card {
  color: var(--cz-text) !important;
  background: var(--cz-surface) !important;
  border-color: var(--cz-border) !important;
}
html[data-cz-theme="dark"] .cz-ux-workspace-title,
html[data-cz-theme="dark"] .cz-ux-input-heading,
html[data-cz-theme="dark"] .cz-ux-preview-title,
html[data-cz-theme="dark"] .cz-ux-workflow-steps strong,
html[data-cz-theme="dark"] .cz-lab-mini-copy h3,
html[data-cz-theme="dark"] .cz-lab-word-stats strong,
html[data-cz-theme="dark"] .cz-lab-mini-result strong {
  color: var(--cz-heading) !important;
}
html[data-cz-theme="dark"] .cz-ux-workspace-description,
html[data-cz-theme="dark"] .cz-ux-guide-top,
html[data-cz-theme="dark"] .cz-ux-preview-note,
html[data-cz-theme="dark"] .cz-ux-progress-label,
html[data-cz-theme="dark"] .cz-ux-workflow-steps small,
html[data-cz-theme="dark"] .cz-ux-input-intro,
html[data-cz-theme="dark"] .cz-lab-mini-copy p,
html[data-cz-theme="dark"] .cz-lab-mini-of,
html[data-cz-theme="dark"] .cz-lab-word-stats small,
html[data-cz-theme="dark"] .cz-lab-mini-result p,
html[data-cz-theme="dark"] .cz-lab-mini-result small,
html[data-cz-theme="dark"] .cz-lab-recent-item small,
html[data-cz-theme="dark"] .cz-lab-category-copy small,
html[data-cz-theme="dark"] .cz-lab-tool-card > span,
html[data-cz-theme="dark"] .cz-lab-section-heading p,
html[data-cz-theme="dark"] .cz-lab-privacy-note,
html[data-cz-theme="dark"] .cz-lab-related {
  color: var(--cz-muted-text) !important;
}
html[data-cz-theme="dark"] .cz-ux-browser-badge,
html[data-cz-theme="dark"] .cz-ux-form .cz-field input,
html[data-cz-theme="dark"] .cz-ux-form .cz-field select,
html[data-cz-theme="dark"] .cz-ux-form .cz-field textarea,
html[data-cz-theme="dark"] .cz-lab-mini-controls input,
html[data-cz-theme="dark"] .cz-lab-word-controls textarea {
  color: var(--cz-control-text) !important;
  background: var(--cz-control-bg) !important;
  border-color: var(--cz-control-border) !important;
}
html[data-cz-theme="dark"] .cz-ux-ready-state,
html[data-cz-theme="dark"] .cz-ux-preview-value,
html[data-cz-theme="dark"] .cz-ux-kicker,
html[data-cz-theme="dark"] .cz-ux-step-tag,
html[data-cz-theme="dark"] .cz-lab-heading-row > a,
html[data-cz-theme="dark"] .cz-lab-related a { color: #91e7d0 !important; }
html[data-cz-theme="dark"] .cz-ux-progress-track { background: #30435a !important; }
html[data-cz-theme="dark"] .cz-lab-mini-tabs button { color: var(--cz-muted-text) !important; }
html[data-cz-theme="dark"] .cz-lab-mini-tabs button[aria-selected="true"] {
  color: var(--cz-heading) !important;
  background: var(--cz-surface-raised) !important;
  border-color: var(--cz-border-strong) !important;
}
html[data-cz-theme="dark"] .cz-lab-mini-controls > button,
html[data-cz-theme="dark"] .cz-lab-result-actions button,
html[data-cz-theme="dark"] .cz-lab-recent-clear {
  color: #ffffff !important;
  background: var(--cz-primary) !important;
  border-color: var(--cz-primary) !important;
}
html[data-cz-theme="dark"] .cz-lab-mini-controls > button:hover,
html[data-cz-theme="dark"] .cz-lab-result-actions button:hover,
html[data-cz-theme="dark"] .cz-lab-recent-clear:hover {
  background: var(--cz-primary-hover) !important;
}
html[data-cz-theme="dark"] .cz-lab-mini-error { color: #ffd8cf !important; }
html[data-cz-theme="dark"] .cz-lab-mini-icon { background: #27375b !important; color: #d7d9ff !important; }
html[data-cz-theme="dark"] .cz-lab-mini-icon.cz-mini-pink { background: #4a2940 !important; color: #ffc6df !important; }
html[data-cz-theme="dark"] .cz-lab-mini-icon.cz-mini-cyan { background: #193d50 !important; color: #b5eaff !important; }
html[data-cz-theme="dark"] .cz-tool-app-individual { --cz-ux-glow: rgba(130, 143, 255, .12); }
html[data-cz-theme="dark"] .cz-ux-stage:before { opacity: .18; }

/* Public single-post / blog article modules, not only the blog archive. */
html[data-cz-theme="dark"] .cz-blog-article,
html[data-cz-theme="dark"] .single-post .entry-content,
html[data-cz-theme="dark"] .single-post .post-content {
  color: var(--cz-text);
}
html[data-cz-theme="dark"] .cz-blog-article h1,
html[data-cz-theme="dark"] .cz-blog-article h2,
html[data-cz-theme="dark"] .cz-blog-article h3,
html[data-cz-theme="dark"] .cz-blog-article h4,
html[data-cz-theme="dark"] .cz-blog-article strong,
html[data-cz-theme="dark"] .cz-blog-article b { color: var(--cz-heading) !important; }
html[data-cz-theme="dark"] .cz-blog-article p,
html[data-cz-theme="dark"] .cz-blog-article li,
html[data-cz-theme="dark"] .cz-blog-intro { color: var(--cz-muted-text) !important; }
html[data-cz-theme="dark"] .single-post .cz-blog-toc,
html[data-cz-theme="dark"] .single-post .cz-related-blogs,
html[data-cz-theme="dark"] .single-post .cz-blog-faq,
html[data-cz-theme="dark"] .single-post .cz-blog-share,
html[data-cz-theme="dark"] .cz-blog-article blockquote,
html[data-cz-theme="dark"] .cz-blog-article pre,
html[data-cz-theme="dark"] .cz-blog-article table {
  color: var(--cz-text) !important;
  background: var(--cz-surface) !important;
  border-color: var(--cz-border) !important;
}
html[data-cz-theme="dark"] .cz-blog-article code,
html[data-cz-theme="dark"] .cz-blog-article pre,
html[data-cz-theme="dark"] .cz-blog-article th,
html[data-cz-theme="dark"] .cz-blog-article td { border-color: var(--cz-border) !important; }

/* Header controls inherit the site's central palette. */
html[data-cz-theme="dark"] .cz-site-header {
  --cz-header-bg: #101c2d;
  --cz-header-text: #f0f4fb;
  --cz-header-muted: #bdc9dc;
  --cz-header-line: rgba(215, 228, 246, .22);
  --cz-header-accent: #91e7d0;
}

/* High-specificity fixes for legacy UX selectors that carried light-mode !important values. */
html[data-cz-theme="dark"] .cz-tool-app-individual {
  --cz-ux-a: #c0c8ff;
  --cz-ux-b: #d0b7ff;
  --cz-ux-c: #91e7d0;
  --cz-ux-glow: rgba(160, 170, 255, .14);
}
html[data-cz-theme="dark"] .cz-tool-app-individual .cz-ux-step-tag {
  color: #e0e5ff !important;
  background: #29385d !important;
  border: 1px solid #52658d !important;
}
html[data-cz-theme="dark"] .cz-tool-app-individual .cz-result .cz-result-label,
html[data-cz-theme="dark"] .cz-tool-app .cz-result .cz-result-label {
  color: #d4d9ff !important;
  -webkit-text-fill-color: #d4d9ff !important;
}
html[data-cz-theme="dark"] .cz-tool-app-individual .cz-result .cz-result-label:before,
html[data-cz-theme="dark"] .cz-tool-app .cz-result .cz-result-label:before {
  background: #91e7d0 !important;
  box-shadow: 0 0 0 4px rgba(145, 231, 208, .15) !important;
}
html[data-cz-theme="dark"] .cz-blog-read-more,
html[data-cz-theme="dark"] .cz-blog-filter-reset,
html[data-cz-theme="dark"] .cz-faq-contact-link,
html[data-cz-theme="dark"] .cz-contact-shortcuts a,
html[data-cz-theme="dark"] .cz-about-feature a,
html[data-cz-theme="dark"] .cz-about-note > a,
html[data-cz-theme="dark"] .cz-faq-bottom-cta a {
  color: #91e7d0 !important;
}
html[data-cz-theme="dark"] .cz-blog-card-meta,
html[data-cz-theme="dark"] .cz-blog-archive-eyebrow,
html[data-cz-theme="dark"] .cz-blog-card-category { color: #bdc9dc !important; }
html[data-cz-theme="dark"] .cz-contact-form label,
html[data-cz-theme="dark"] .cz-contact-fields label { color: #dce6f3 !important; }
html[data-cz-theme="dark"] .cz-home-lab { position: relative; z-index: 2; }
html[data-cz-theme="dark"] .cz-home-lab .cz-lab-hero { position: relative; z-index: 3; }
html[data-cz-theme="dark"] .cz-home-lab .cz-lab-suggestions { z-index: 120 !important; }

/* Dark mode for the expanded public About / feature-tour page. */
html[data-cz-theme="dark"] .cz-about-platform{--cz-about-ink:#edf3fc;--cz-about-muted:#b2c0d4;--cz-about-line:#30415a;--cz-about-surface:#172438;--cz-about-soft:#1e2e45;--cz-about-accent:#91b8ff;--cz-about-accent-soft:#253b5c}
html[data-cz-theme="dark"] .cz-about-platform .cz-about-hero--expanded{background:radial-gradient(circle at 12% 0,rgba(75,125,220,.18),transparent 38%),linear-gradient(135deg,#16263e 0%,#17283f 55%,#1a2c43 100%);border-color:#344b6d}
html[data-cz-theme="dark"] .cz-about-platform .cz-about-hero-copy h2,
html[data-cz-theme="dark"] .cz-about-platform .cz-about-hero-side-grid strong,
html[data-cz-theme="dark"] .cz-about-platform .cz-about-hero-big-stat strong,
html[data-cz-theme="dark"] .cz-about-platform .cz-support-section-heading h3,
html[data-cz-theme="dark"] .cz-about-platform .cz-about-category-copy strong,
html[data-cz-theme="dark"] .cz-about-platform .cz-about-feature-card h4,
html[data-cz-theme="dark"] .cz-about-platform .cz-about-capability-card h4,
html[data-cz-theme="dark"] .cz-about-platform .cz-about-bottom-cta h3{color:#edf3fc}
html[data-cz-theme="dark"] .cz-about-platform .cz-about-hero-copy>p,
html[data-cz-theme="dark"] .cz-about-platform .cz-about-hero-side-top,
html[data-cz-theme="dark"] .cz-about-platform .cz-about-hero-side>p,
html[data-cz-theme="dark"] .cz-about-platform .cz-about-hero-big-stat span,
html[data-cz-theme="dark"] .cz-about-platform .cz-about-hero-side-grid span,
html[data-cz-theme="dark"] .cz-about-platform .cz-support-section-heading>p,
html[data-cz-theme="dark"] .cz-about-platform .cz-about-category-copy small,
html[data-cz-theme="dark"] .cz-about-platform .cz-about-feature-card p,
html[data-cz-theme="dark"] .cz-about-platform .cz-about-feature-card>small,
html[data-cz-theme="dark"] .cz-about-platform .cz-about-capability-card p,
html[data-cz-theme="dark"] .cz-about-platform .cz-about-bottom-cta p{color:#b2c0d4}
html[data-cz-theme="dark"] .cz-about-platform .cz-about-hero-side,
html[data-cz-theme="dark"] .cz-about-platform .cz-about-category-card,
html[data-cz-theme="dark"] .cz-about-platform .cz-about-feature-card,
html[data-cz-theme="dark"] .cz-about-platform .cz-about-capability-card,
html[data-cz-theme="dark"] .cz-about-platform .cz-about-workflow-section .cz-about-steps li,
html[data-cz-theme="dark"] .cz-about-platform .cz-about-bottom-cta{background:#172438;border-color:#30415a;box-shadow:none}
html[data-cz-theme="dark"] .cz-about-platform .cz-about-hero-big-stat{border-color:#30415a}
html[data-cz-theme="dark"] .cz-about-platform .cz-about-category-icon,
html[data-cz-theme="dark"] .cz-about-platform .cz-support-feature-icon,
html[data-cz-theme="dark"] .cz-about-platform .cz-about-capability-tag{background:#263e61;color:#a8c7ff}
html[data-cz-theme="dark"] .cz-about-platform .cz-about-feature-card>small{border-color:#30415a}
html[data-cz-theme="dark"] .cz-about-platform .cz-about-trust-panel{background:linear-gradient(120deg,#1b2c46,#1a2a42);border-color:#354e72}
html[data-cz-theme="dark"] .cz-about-platform .cz-about-trust-panel h3{color:#edf3fc}
html[data-cz-theme="dark"] .cz-about-platform .cz-about-trust-panel p{color:#b2c0d4}
html[data-cz-theme="dark"] .cz-about-platform .cz-about-trust-links a{color:#a8c7ff}
html[data-cz-theme="dark"] .cz-about-platform .cz-about-category-card:hover{border-color:#607faa}
