/* Qualitive Light / Dark Appearance — shared across the public site, Chatiso and library.
   The original dark design remains the default. Overrides apply only to opted-in light mode.
   This stylesheet loads after both shared and page-specific CSS. */
:root { color-scheme: dark; }
html[data-qualitive-theme="light"] {
  color-scheme: light;
  --qp-night:#faf8ff; --qp-header:#fff; --qp-deep:#f5f0fb;
  --qp-surface:#fff; --qp-surface-2:#f8f4fd; --qp-border:#ddd2ed;
  --qp-ink:#241633; --qp-muted:#58486a; --qp-purple:#60227b;
  --qp-accent:#672484; --qp-sky:#60307d; --qp-focus:#672b91;
  --qp-shadow:0 14px 38px rgba(48,28,83,.07);
  --bg:#faf8ff;--surface:#fff;--surface-2:#f4effa;--border:#ded5e9;
  --text:#271a39;--muted:#5b4e6d;--title:#32164b;--accent:#6c2789;
  --wash:#faf8ff;--line:#e6ddec;--soft:#f4ebfa;
  --cert-ink:#271a39;--cert-wash:#faf8ff;
}

/* Accessible, keyboard-operable switch in the shared navigation and admin chrome. */
body .portal-header .portal-theme-toggle,
body .admin-topbar .admin-theme-toggle {
  flex:none;display:inline-flex;align-items:center;justify-content:center;gap:8px;
  padding:9px 12px;min-height:42px;border-radius:11px;
  border:1px solid #735580;background:#291a34;color:#f4e8fa;
  font:700 13px/1.25 "Barlow",system-ui,sans-serif;cursor:pointer;
  white-space:nowrap;transition:background .18s ease,border-color .18s ease;
}
body .portal-header .portal-theme-toggle:hover,body .admin-topbar .admin-theme-toggle:hover {
  background:#3d2650;border-color:#a475b8;
}
body .portal-theme-icon {display:inline-grid;place-items:center;flex:none;width:19px;height:19px;font-size:18px;line-height:1;}
body .portal-theme-icon::before {content:"☼";}
html[data-qualitive-theme="light"] body .portal-theme-icon::before {content:"☾";}
body :is(.portal-theme-toggle,.admin-theme-toggle):focus-visible {outline:3px solid #bb75da!important;outline-offset:3px!important;}
@media (max-width:1240px) {
  body .portal-header .portal-menu-panel .portal-theme-toggle {
    width:100%;justify-content:center;margin:8px 0 0;
  }
}

/* Shared header and footer: deliberately paper-like light surfaces, not inverted images. */
html[data-qualitive-theme="light"] body {background:#faf8ff!important;color:#271a39!important;}
html[data-qualitive-theme="light"] body .portal-header,
html[data-qualitive-theme="light"] body.qualitive-certlyst-home .portal-header {
  background:rgba(255,255,255,.97)!important;border-bottom:1px solid #e2d9ec!important;
  box-shadow:0 5px 24px rgba(55,35,90,.065)!important;color:#271a39!important;
}
html[data-qualitive-theme="light"] body .portal-header .portal-brand,
html[data-qualitive-theme="light"] body .portal-header .portal-brand:hover {color:#28153e!important;}
html[data-qualitive-theme="light"] body .portal-header .portal-link,
html[data-qualitive-theme="light"] body.qualitive-certlyst-home .portal-header .portal-link {color:#4a3b60!important;}
html[data-qualitive-theme="light"] body .portal-header .portal-link:hover,
html[data-qualitive-theme="light"] body .portal-header .portal-link.active,
html[data-qualitive-theme="light"] body.qualitive-certlyst-home .portal-header .portal-link:hover,
html[data-qualitive-theme="light"] body.qualitive-certlyst-home .portal-header .portal-link.active {
  color:#642681!important;border-bottom-color:#722995!important;background:#f7f0fb!important;
}
html[data-qualitive-theme="light"] body .portal-header .portal-login,
html[data-qualitive-theme="light"] body .portal-header .portal-chatiso,
html[data-qualitive-theme="light"] body.qualitive-certlyst-home .portal-header :is(.portal-login,.portal-chatiso) {
  color:#5d247c!important;background:#fff!important;border-color:#d9c3e8!important;
}
html[data-qualitive-theme="light"] body .portal-header .portal-signup,
html[data-qualitive-theme="light"] body .portal-header .portal-nav .portal-link[href$="/template"] {
  background:#64247e!important;border-color:#64247e!important;color:#fff!important;
}
html[data-qualitive-theme="light"] body .portal-header .portal-menu-toggle {
  background:#f4eaf9!important;border-color:#d8c6e6!important;color:#572072!important;
}
html[data-qualitive-theme="light"] body .portal-header .portal-menu-icon>span {background:#572072!important;}
@media (max-width:1240px) {
  html[data-qualitive-theme="light"] body .portal-header .portal-menu-panel,
  html[data-qualitive-theme="light"] body.qualitive-certlyst-home .portal-header .portal-menu-panel {
    background:#fff!important;border-color:#e8deef!important;
  }
  html[data-qualitive-theme="light"] body .portal-header .portal-account {border-top-color:#e6d9ec!important;}
}
html[data-qualitive-theme="light"] body .portal-header .portal-theme-toggle,
html[data-qualitive-theme="light"] body .admin-topbar .admin-theme-toggle {
  color:#5b2574;background:#f6effb;border-color:#d9c6e5;
}
html[data-qualitive-theme="light"] body .portal-header .portal-theme-toggle:hover,
html[data-qualitive-theme="light"] body .admin-topbar .admin-theme-toggle:hover {
  background:#ebddf5;border-color:#c9a4d9;
}
html[data-qualitive-theme="light"] body .portal-footer,
html[data-qualitive-theme="light"] body.qualitive-certlyst-home .portal-footer {
  background:#f2edf7!important;color:#52425f!important;border-top:1px solid #e0d3e9!important;
}
html[data-qualitive-theme="light"] body .portal-footer .portal-footer-brand,
html[data-qualitive-theme="light"] body .portal-footer .portal-footer-brand strong {color:#301b43!important;}
html[data-qualitive-theme="light"] body .portal-footer .portal-footer-company p,
html[data-qualitive-theme="light"] body .portal-footer .portal-copyright,
html[data-qualitive-theme="light"] body .portal-footer .portal-footer-bottom {color:#594b68!important;border-color:#ddd0e9!important;}
html[data-qualitive-theme="light"] body .portal-footer a,
html[data-qualitive-theme="light"] body .portal-footer nav a,
html[data-qualitive-theme="light"] body .portal-footer nav a:hover {color:#582676!important;}

/* Homepage: bright lavender hero, off-white cards and readable secondary copy. */
html[data-qualitive-theme="light"] body.qualitive-certlyst-home {
  color-scheme:light;--bg:#faf8ff;--surface:#fff;--surface-2:#f6f0fa;
  --text:#2b1a3c;--muted:#5b4b68;--title:#392046;
  --border:#e2d8ed;--accent:#692687;--eyebrow:#713294;
  --hero-mark-opacity:.12;background:#faf8ff!important;color:#271a39!important;
}
html[data-qualitive-theme="light"] body.qualitive-certlyst-home .hero {
  background:radial-gradient(ellipse 53% 65% at 51% 42%,#ecdcf8 0%,transparent 77%),
             linear-gradient(165deg,#fdfbff,#f6f0fc)!important;
}
html[data-qualitive-theme="light"] body.qualitive-certlyst-home .hero h1 {color:#4e206b!important;text-shadow:none!important;}
html[data-qualitive-theme="light"] body.qualitive-certlyst-home .hero :is(.subtitle,.tagline) {color:#483457!important;}
html[data-qualitive-theme="light"] body.qualitive-certlyst-home #platform-title {color:#69368b!important;}
html[data-qualitive-theme="light"] body.qualitive-certlyst-home .panel {
  background:#fff!important;border:1px solid #ded0ea!important;box-shadow:0 18px 55px #46276b12!important;
}
html[data-qualitive-theme="light"] body.qualitive-certlyst-home .card {
  background:linear-gradient(155deg,#fff,#f8f3fc)!important;border:1px solid #e6dcf0!important;
  box-shadow:0 6px 21px #4b24780a!important;
}
html[data-qualitive-theme="light"] body.qualitive-certlyst-home .card h3 {color:#38204b!important;}
html[data-qualitive-theme="light"] body.qualitive-certlyst-home .card p,
html[data-qualitive-theme="light"] body.qualitive-certlyst-home .platform-availability-note {color:#5a4a67!important;}
html[data-qualitive-theme="light"] body.qualitive-certlyst-home .library-feature-inner {
  background:linear-gradient(140deg,#fff,#f4ecfa)!important;border-color:#decdea!important;
}
html[data-qualitive-theme="light"] body.qualitive-certlyst-home .library-feature h2 {color:#362044!important;}
html[data-qualitive-theme="light"] body.qualitive-certlyst-home .library-highlights li {
  background:#fff!important;color:#38204b!important;border-color:#e7dbee!important;
}
html[data-qualitive-theme="light"] body.qualitive-certlyst-home .library-highlights strong {color:#632581!important;}
html[data-qualitive-theme="light"] body.qualitive-certlyst-home .library-highlights span {color:#594969!important;}
html[data-qualitive-theme="light"] body.qualitive-certlyst-home .library-feature p,
html[data-qualitive-theme="light"] body.qualitive-certlyst-home .library-feature .muted {color:#594969!important;}

/* Marketing information, legal policies, pricing and contact pages. */
html[data-qualitive-theme="light"] body.qualitive-public,
html[data-qualitive-theme="light"] body.qualitive-public.qp-editorial-page {color-scheme:light;background:#faf8ff!important;color:#281a39!important;}
html[data-qualitive-theme="light"] body.qualitive-public .q-hero {
  background:radial-gradient(circle at 89% 0%,#e9def8,transparent 42%),
             linear-gradient(#fdfbff,#f7f2fc)!important;
}
html[data-qualitive-theme="light"] body.qualitive-public .q-hero h1 {color:#301940!important;-webkit-text-fill-color:#301940!important;}
html[data-qualitive-theme="light"] body.qualitive-public .q-kicker {color:#642889!important;}
html[data-qualitive-theme="light"] body.qualitive-public .q-lead,
html[data-qualitive-theme="light"] body.qualitive-public .qp-editorial-hero .q-lead {color:#514360!important;}
html[data-qualitive-theme="light"] body.qualitive-public :is(.q-panel,.q-content-panel,.q-split,.q-pricing,.qp-editorial-aside-card) {
  background:#fff!important;color:#2d203a!important;border-color:#e0d5e9!important;
  box-shadow:0 12px 32px #46276b0c!important;
}
html[data-qualitive-theme="light"] body.qualitive-public :is(.q-panel,.q-content-panel,.q-split,.q-pricing,.q-topic-grid) :is(h2,h3),
html[data-qualitive-theme="light"] body.qualitive-public .qp-editorial-aside-card h2 {color:#322044!important;-webkit-text-fill-color:#322044!important;}
html[data-qualitive-theme="light"] body.qualitive-public :is(.q-panel,.q-content-panel,.q-split,.q-pricing,.q-topic-grid) :is(p,li,span),
html[data-qualitive-theme="light"] body.qualitive-public .qp-editorial-aside-card p {color:#594b68!important;}
html[data-qualitive-theme="light"] body.qualitive-public :is(.q-topic-grid>div,.q-steps>div) {background:#f8f4fc!important;border-color:#e7dbee!important;}
html[data-qualitive-theme="light"] body.qualitive-public .q-steps b {color:#4d2866!important;}
html[data-qualitive-theme="light"] body.qualitive-public .q-notice {background:#efe7f7!important;color:#4b3763!important;}
html[data-qualitive-theme="light"] body.qualitive-public :is(.q-panel,.q-content-panel,.qp-editorial-aside-card) a,
html[data-qualitive-theme="light"] body.qualitive-public .q-text-link {color:#672583!important;}
html[data-qualitive-theme="light"] body.qualitive-public .q-secondary {background:#fff!important;color:#5b2378!important;border-color:#d8c8e5!important;}
html[data-qualitive-theme="light"] body.qualitive-public :is(.qp-editorial-tabs,.qp-editorial-tabs a) {border-color:#e3d6ec!important;}
html[data-qualitive-theme="light"] body.qualitive-public .qp-editorial-tabs a {color:#5b396c!important;}
html[data-qualitive-theme="light"] body.qualitive-public .qp-editorial-tabs a[aria-current="page"] {background:#efe4f7!important;color:#5c237d!important;}

/* Template catalogue, secure downloads, member legal pages. */
html[data-qualitive-theme="light"] body.certlyst-page {background:#faf8ff!important;color:#291a39!important;}
html[data-qualitive-theme="light"] body.certlyst-page.template-catalogue {
  background:#faf8ff!important;color:#291a39!important;
  --purple:#672583;--violet:#78439a;--ink:#291a39;
  --muted:#5e506e;--line:#e4d9ec;--wash:#faf8ff;--soft:#f3eafa;
}
html[data-qualitive-theme="light"] body.template-catalogue :is(h1,h2,.stat-card span,.template h2) {color:#302044!important;}
html[data-qualitive-theme="light"] body.template-catalogue :is(.lead,.breadcrumb,.count-title span,.advanced-filters,.stat-card small,.security-note,.security-note p) {color:#594d68!important;}
html[data-qualitive-theme="light"] body.template-catalogue :is(.stat-card,.category-panel,.template,.template-pagination,.preview-modal .modal-content) {
  background:#fff!important;color:#291c3d!important;border-color:#e2d7ec!important;
  box-shadow:0 9px 25px #482b690d!important;
}
html[data-qualitive-theme="light"] body.template-catalogue :is(.stat-card strong,.accent,.eyebrow,.code) {color:#672583!important;}
html[data-qualitive-theme="light"] body.template-catalogue .category-buttons button {color:#594869!important;}
html[data-qualitive-theme="light"] body.template-catalogue .category-buttons button:hover,
html[data-qualitive-theme="light"] body.template-catalogue .category-buttons button[aria-pressed="true"] {color:#5b2475!important;background:#f0e5f9!important;border-color:#dac7e7!important;}
html[data-qualitive-theme="light"] body.template-catalogue :is(.category-count,.filters,.view-buttons,.thumbnail-button) {background:#f5effa!important;color:#5a2c70!important;border-color:#e0d2eb!important;}
html[data-qualitive-theme="light"] body.template-catalogue :is(.search-field input,.filter-grid select) {background:#fff!important;color:#291c3d!important;border-color:#d3c2e1!important;}
html[data-qualitive-theme="light"] body.template-catalogue .search-field input::placeholder {color:#716580!important;}
html[data-qualitive-theme="light"] body.template-catalogue :is(.filters button,.view-buttons button) {color:#4b3b5f!important;}
html[data-qualitive-theme="light"] body.template-catalogue :is(.filters button,.view-buttons button)[aria-pressed="true"] {background:#e9def5!important;color:#592675!important;border-color:#d2bee4!important;}
html[data-qualitive-theme="light"] body.template-catalogue .tag {background:#efe6f8!important;color:#5b2776!important;border-color:#dbcae8!important;}
html[data-qualitive-theme="light"] body.template-catalogue .tag.department {background:#f8f4fa!important;color:#4f4261!important;}
html[data-qualitive-theme="light"] body.template-catalogue .template-actions button:not([data-preview]) {background:#f4ecf9!important;color:#51266e!important;border-color:#d8c5e5!important;}
html[data-qualitive-theme="light"] body.template-catalogue .template-pagination span {color:#4c3c5f!important;}
html[data-qualitive-theme="light"] body.certlyst-page main.container {background:#faf8ff!important;color:#291a39!important;}
html[data-qualitive-theme="light"] body.certlyst-page main.container :is(h1,h2,strong) {color:#2f2044!important;}
html[data-qualitive-theme="light"] body.certlyst-page main.container :is(.subtitle,p,li) {color:#5c4e6a!important;}
html[data-qualitive-theme="light"] body.certlyst-page main.container :is(.page-content,.info-card,.price-card,.callout) {background:#fff!important;color:#2e2040!important;border-color:#e1d6ec!important;box-shadow:0 10px 30px #46276b0b!important;}
html[data-qualitive-theme="light"] body.certlyst-page main.container a {color:#62267f!important;}

/* Login, registration, reset flow, account and access dashboard. */
html[data-qualitive-theme="light"] body.certlyst-page[data-mode],
html[data-qualitive-theme="light"] body.certlyst-page:has(#downloadAll) {background:#f8f5fd!important;color:#291b3b!important;}
html[data-qualitive-theme="light"] body.certlyst-page .auth-shell,
html[data-qualitive-theme="light"] body.certlyst-page:has(#downloadAll) .panel,
html[data-qualitive-theme="light"] body.certlyst-page[data-mode="account"] .profile-card,
html[data-qualitive-theme="light"] body.access-dashboard :is(.access-step,.access-panel,.access-info) {
  background:#fff!important;color:#2b1f40!important;border:1px solid #e1d5eb!important;
  box-shadow:0 15px 38px #47276d12!important;
}
html[data-qualitive-theme="light"] body.certlyst-page .auth-shell :is(h1,label),
html[data-qualitive-theme="light"] body.certlyst-page[data-mode="account"] :is(.profile-heading h1,.profile-card h2,.profile-card strong,.profile-card dd,.profile-shortcut strong),
html[data-qualitive-theme="light"] body.certlyst-page:has(#downloadAll) :is(.intro h1,.panel h2) {color:#2e1e42!important;}
html[data-qualitive-theme="light"] body.certlyst-page .auth-shell :is(#intro,.auth-meta),
html[data-qualitive-theme="light"] body.certlyst-page[data-mode="account"] :is(.profile-heading p,.profile-card p,.profile-card dt,.profile-shortcut small),
html[data-qualitive-theme="light"] body.certlyst-page:has(#downloadAll) :is(.intro p,.panel p,.disclaimer,.panel li small,.search-label) {color:#5b4e69!important;}
html[data-qualitive-theme="light"] body.certlyst-page .auth-shell input,
html[data-qualitive-theme="light"] body.certlyst-page:has(#downloadAll) #search {
  background:#fff!important;color:#2f2043!important;border:1px solid #c9b9d9!important;
}
html[data-qualitive-theme="light"] body.certlyst-page .auth-shell input::placeholder {color:#746780!important;}
html[data-qualitive-theme="light"] body.certlyst-page .auth-shell #links a,
html[data-qualitive-theme="light"] body.certlyst-page[data-mode="account"] .profile-breadcrumb a {color:#632583!important;}
html[data-qualitive-theme="light"] body.certlyst-page[data-mode="account"] .profile-shortcut {background:#f7f1fb!important;border-color:#e2d6ee!important;}
html[data-qualitive-theme="light"] body.certlyst-page[data-mode="account"] .profile-shortcut-symbol {background:#ece0f5!important;color:#642486!important;}
html[data-qualitive-theme="light"] body.certlyst-page[data-mode="account"] :is(.profile-detail-list>div,.profile-access-status>div) {border-color:#e6dceb!important;}
html[data-qualitive-theme="light"] body.access-dashboard :is(.access-heading>div>p,.access-breadcrumb,.access-panel p,.access-info p) {color:#5a4a69!important;}
html[data-qualitive-theme="light"] body.access-dashboard :is(.access-panel h2,.access-step h2,.access-info h2) {color:#302043!important;}

/* CMMI page: retain original composition and gradients but change to bright editorial palette. */
html[data-qualitive-theme="light"] body.qualitive-cmmi-page {background:#faf8ff!important;color:#2b1e3c!important;color-scheme:light;}
html[data-qualitive-theme="light"] body.qualitive-cmmi-page .cmmi-hero {
  background:radial-gradient(ellipse 70% 100% at 85% 20%,#e7d3f5,transparent 70%),linear-gradient(160deg,#fdfbff,#f5f0fa)!important;
}
html[data-qualitive-theme="light"] body.qualitive-cmmi-page .cmmi-hero::after {background-image:linear-gradient(#5e33800b 1px,transparent 1px),linear-gradient(90deg,#5e33800b 1px,transparent 1px)!important;}
html[data-qualitive-theme="light"] body.qualitive-cmmi-page :is(.cmmi-section-dark,.cmmi-section-faq,.cmmi-section-timeline) {background:#faf8ff!important;}
html[data-qualitive-theme="light"] body.qualitive-cmmi-page .cmmi-section-contrast {background:#f4eefb!important;}
html[data-qualitive-theme="light"] body.qualitive-cmmi-page :is(.cmmi-hero h1,.cmmi-section h2,.cmmi-hero-card h2,.cmmi-benefit h3,.cmmi-path-card h3,.cmmi-domain-card h3,.cmmi-steps h3) {color:#2e1b45!important;}
html[data-qualitive-theme="light"] body.qualitive-cmmi-page :is(.cmmi-section h2 span,.cmmi-hero h1 em) {color:#7c3698!important;}
html[data-qualitive-theme="light"] body.qualitive-cmmi-page :is(.cmmi-section p,.cmmi-lead,.cmmi-hero-notes,.cmmi-benefit p,.cmmi-checks li,.cmmi-step-count,.cmmi-steps p) {color:#584769!important;}
html[data-qualitive-theme="light"] body.qualitive-cmmi-page :is(.cmmi-overline,.cmmi-eyebrow,.cmmi-path-label,.cmmi-domain-top,.cmmi-card-kicker,.cmmi-card-pill,.cmmi-feature-icon) {color:#6a2d87!important;}
html[data-qualitive-theme="light"] body.qualitive-cmmi-page :is(.cmmi-hero-card,.cmmi-benefit,.cmmi-evidence-card,.cmmi-path-card,.cmmi-steps li,.cmmi-domain-card,.cmmi-evidence-callout) {
  background:#fff!important;border-color:#dfd2eb!important;color:#302043!important;
  box-shadow:0 12px 35px #4c2e6b0c!important;
}
html[data-qualitive-theme="light"] body.qualitive-cmmi-page .cmmi-path-card-accent {background:linear-gradient(145deg,#fbf6ff,#f0e5f7)!important;}
html[data-qualitive-theme="light"] body.qualitive-cmmi-page :is(.cmmi-evidence-row strong,.cmmi-evidence-callout strong,.cmmi-hero-card h2,.cmmi-card-bottom strong,.cmmi-domain-card h3,.cmmi-steps h3) {color:#322049!important;}
html[data-qualitive-theme="light"] body.qualitive-cmmi-page :is(.cmmi-evidence-row div span,.cmmi-card-bottom,.cmmi-path-card li,.cmmi-domain-card li) {color:#594b6a!important;}
html[data-qualitive-theme="light"] body.qualitive-cmmi-page :is(.cmmi-evidence-row,.cmmi-card-bottom,.cmmi-faq-list,.cmmi-faq-list details,.cmmi-domain-top) {border-color:#e2d7ec!important;}
html[data-qualitive-theme="light"] body.qualitive-cmmi-page :is(.cmmi-iso-pills span,.cmmi-compare-table tbody tr:nth-child(even),.cmmi-proposal-tabs label) {background:#f7f0fb!important;color:#4b3361!important;border-color:#dfd0e9!important;}
html[data-qualitive-theme="light"] body.qualitive-cmmi-page .cmmi-compare-table thead th {background:#e9dbf4!important;color:#582674!important;}
html[data-qualitive-theme="light"] body.qualitive-cmmi-page .cmmi-compare-table tbody :is(th,td) {color:#40314f!important;border-color:#e1d6e9!important;}
html[data-qualitive-theme="light"] body.qualitive-cmmi-page :is(.cmmi-inline-link,.cmmi-path-card a,.cmmi-faq-list summary) {color:#552771!important;}
html[data-qualitive-theme="light"] body.qualitive-cmmi-page .cmmi-btn-quiet {background:#fff!important;color:#60277e!important;border-color:#d4bfe4!important;}
html[data-qualitive-theme="light"] body.qualitive-cmmi-page .cmmi-cta-panel {
  background:linear-gradient(135deg,#e6d2f4,#f7eafd)!important;border-color:#cfb3e2!important;box-shadow:0 20px 50px #4a29631b!important;
}
html[data-qualitive-theme="light"] body.qualitive-cmmi-page .cmmi-cta-panel :is(h2,.cmmi-overline,p) {color:#342147!important;}
html[data-qualitive-theme="light"] body.qualitive-cmmi-page .cmmi-btn-outline {border-color:#ad80c6!important;color:#5a2476!important;background:#fff!important;}
html[data-qualitive-theme="light"] body.qualitive-cmmi-page .cmmi-disclaimer {color:#5e506a!important;}

/* Workspace and administrative screens: keep existing semantic status colors. */
html[data-qualitive-theme="light"] body :is(.workspace-tool,.workspace-tools-grid a,.chatiso-workspace-tools,.chat-panel,.document-card) {
  border-color:#e0d5ea!important;
}
html[data-qualitive-theme="light"] body .chatiso-workspace-tools {background:#fbf9fe!important;color:#302044!important;}
html[data-qualitive-theme="light"] body .workspace-tool {background:#fff!important;color:#34234a!important;}
html[data-qualitive-theme="light"] body .workspace-tool-name,
html[data-qualitive-theme="light"] body .workspace-tools-heading h2 {color:#312044!important;}
html[data-qualitive-theme="light"] body .workspace-tool-caption {color:#594a68!important;}
html[data-qualitive-theme="light"] body .admin-topbar {background:#fff!important;color:#302044!important;border-bottom:1px solid #e1d7ea!important;}
html[data-qualitive-theme="light"] body .admin-topbar :is(.admin-brand,.admin-login-note,.admin-nav a) {color:#4b2861!important;}
html[data-qualitive-theme="light"] body .admin-bottom {background:#f2edf8!important;color:#554866!important;}
html[data-qualitive-theme="light"] body :is(.admin-card,.admin-panel,.admin-login-card,.admin-content) {background:#fff!important;color:#2c203b!important;border-color:#e0d4e9!important;}

/* Inputs and focus rings: AA-friendly neutrals; preserve filled primary actions. */
html[data-qualitive-theme="light"] body :is(input:not([type="checkbox"]):not([type="radio"]),textarea,select) {color-scheme:light;}
html[data-qualitive-theme="light"] body :is(a,button,input,select,textarea,summary):focus-visible {outline:3px solid #773ca2!important;outline-offset:3px!important;}
@media (prefers-reduced-motion:reduce) {
  body .portal-theme-toggle,body .admin-theme-toggle {transition:none!important;}
}

/* Editorial pages have extra-specific legacy dark selectors: explicitly out-rank them. */
html[data-qualitive-theme="light"] body.qualitive-public.qp-editorial-page main#main {
  background:#faf8ff!important;
}
html[data-qualitive-theme="light"] body.qualitive-public.qp-editorial-page .q-hero.qp-editorial-hero {
  background:radial-gradient(ellipse 70% 380px at 84% 0%,#ead9f7,transparent 80%),
             linear-gradient(180deg,#fcfaff,#f7f2fc 80%)!important;
}
html[data-qualitive-theme="light"] body.qp-editorial-page .q-hero h1 {color:#2e1e41!important;-webkit-text-fill-color:#2e1e41!important;}
html[data-qualitive-theme="light"] body.qp-editorial-page .q-hero .q-lead {color:#554666!important;}
html[data-qualitive-theme="light"] body.qp-editorial-page .q-kicker {color:#70318e!important;}
html[data-qualitive-theme="light"] body.qp-editorial-page .qp-editorial-tabs {
  background:#fff!important;border-color:#ddd0ea!important;
}
html[data-qualitive-theme="light"] body.qp-editorial-page .qp-editorial-tabs a {color:#5d4c6c!important;}
html[data-qualitive-theme="light"] body.qp-editorial-page .qp-editorial-tabs a:hover {background:#f2e9f9!important;color:#572477!important;}
html[data-qualitive-theme="light"] body.qp-editorial-page .qp-editorial-tabs a[aria-current="page"] {
  background:#eadcf5!important;border:1px solid #d6bfe5!important;color:#5a2579!important;box-shadow:none!important;
}
html[data-qualitive-theme="light"] body.qp-editorial-page .qp-editorial-body :is(.q-panel,.q-pricing,.q-split,.q-topic-grid>div) {
  background:#fff!important;border-color:#e1d4eb!important;box-shadow:0 14px 35px #4f28730e!important;color:#2e213e!important;
}
html[data-qualitive-theme="light"] body.qp-editorial-page .qp-editorial-body :is(.q-panel h2,.q-pricing h2,.q-split h2,.q-topic-grid h3) {
  color:#332146!important;-webkit-text-fill-color:#332146!important;
}
html[data-qualitive-theme="light"] body.qp-editorial-page .qp-editorial-body :is(.q-panel p,.q-panel li,.q-pricing p,.q-topic-grid p) {
  color:#594d69!important;
}
html[data-qualitive-theme="light"] body.qp-editorial-page .qp-editorial-body :is(.q-panel a,.q-pricing a:not(.q-primary)) {color:#602781!important;}
html[data-qualitive-theme="light"] body.qp-editorial-page .qp-editorial-aside-card {
  background:#fff!important;border-color:#e0d3e9!important;box-shadow:0 13px 34px #4b29700c!important;
}
html[data-qualitive-theme="light"] body.qp-editorial-page .qp-editorial-aside-card :is(h2,p,.qp-side-quiet) {color:#51435f!important;}
html[data-qualitive-theme="light"] body.qp-editorial-page .qp-editorial-aside-card h2 {color:#2f2043!important;}
html[data-qualitive-theme="light"] body.qp-editorial-page .qp-editorial-aside-card :is(a,span) {color:#642987!important;}
html[data-qualitive-theme="light"] body.qp-editorial-page .qp-editorial-aside-card hr {border-color:#e8dced!important;}
html[data-qualitive-theme="light"] body.qp-editorial-page .qp-editorial-body .q-notice {background:#f2e9f9!important;color:#4d3962!important;border-color:#e1ceec!important;}
html[data-qualitive-theme="light"] body.qp-editorial-page .q-contact-field :is(input,select,textarea) {
  background:#fff!important;color:#2c1e3b!important;border-color:#c9b8d8!important;
}
html[data-qualitive-theme="light"] body.qp-editorial-page .q-contact-field label {color:#322345!important;}
