/* ===== Flux – dark mode (applied with html[data-theme="dark"]) ===== */
html[data-theme="dark"]{
  --bg:#081616; --alt:#0d2222; --card:#132b2b; --chip:#1a3838;
  --ink:#eaf6f6; --body:#b9cfcf; --muted:#8fa9a9; --sub:#9fbfb0;
  --primary:#2f8f8c; --deep:#8fe0dc; --mint:#2a4a41; --mint2:#35594d;
  --line:rgba(255,255,255,.12); --dash:rgba(143,224,220,.4);
  --header-bg:rgba(8,22,22,.9); --footer-bg:#040d0d; --footer-text:#a9c3c3;
  --cta-bg:#0b3a39; --cta-ink:#004342;
  color-scheme:dark;
}
html[data-theme="dark"] .btn--primary{color:#fff}
html[data-theme="dark"] .step:first-child .badge{background:var(--mint2);color:#eaf6f6}
html[data-theme="dark"] .badge{color:#cfe5d7}
html[data-theme="dark"] .exp-card__foot{background:rgba(255,255,255,.04)}
html[data-theme="dark"] .hero__blob{background:rgba(47,143,140,.35)}
html[data-theme="dark"] .story__mark{color:rgba(143,224,220,.35)}
html[data-theme="dark"] .field-error{color:#ff9d92}
html[data-theme="dark"] .form-success{background:var(--mint);color:#eaf6f6}
/* credential pill stays a light card, so its text keeps dark colours */
html[data-theme="dark"] .credential strong{color:#0f1e1f}
html[data-theme="dark"] .credential span{color:#3f4948}
html[data-theme="dark"] .credential__icon{background:#cfe5d7;color:#004342}
html[data-theme="dark"] .mobile-nav .btn{color:#fff}

/* ---- Home 2 additions ---- */
html[data-theme="dark"]{--cta2-bg:#0f4644;--backdrop:#16403f}
html[data-theme="dark"] .hm2-stage__n--3{background:#2f8f8c;color:#fff}
html[data-theme="dark"] .hm2-tag2,html[data-theme="dark"] .hm2-pill{color:#eaf6f6}
html[data-theme="dark"] .hm2-pill{background:#2a4a41}
/* floating cards on photos stay white, so their text keeps dark colours */
html[data-theme="dark"] .hm2-showcase__row strong,html[data-theme="dark"] .hm2-metric b,html[data-theme="dark"] .hm2-status{color:#004342}

/* Services page only - paste at the end of assets/css/dark-mode.css */
/* ---- Services additions ---- */
html[data-theme="dark"]{--sv-bg:#091919;--sv-alt:#0e2424;--sv-card:#132b2b;--sv-ink:#8fe0dc;--sv-dark:#d3e6e6;--sv-muted:#8fb3bd;--sv-sage:#4a6b5c;--sv-body:rgba(220,235,235,.84);--sv-btn:#1f7a77}
html[data-theme="dark"] .sv-lead,html[data-theme="dark"] .sv-hero__p p,html[data-theme="dark"] .sv-chronic__p,html[data-theme="dark"] .sv-ben p,html[data-theme="dark"] .sv-pathway p,html[data-theme="dark"] .sv-item p,html[data-theme="dark"] .sv-stage p{color:var(--sv-body)}
html[data-theme="dark"] .sv-prog small{color:var(--sv-muted)}
html[data-theme="dark"] .sv-strip,html[data-theme="dark"] .sv-quote,html[data-theme="dark"] .sv-item:hover{background:rgba(255,255,255,.04)}
html[data-theme="dark"] .sv-pill--ghost{background:rgba(255,255,255,.06)}
html[data-theme="dark"] .sv-btn--ghost{color:#8fe0dc;border-color:#8fe0dc}
html[data-theme="dark"] .sv-btn--ghost:hover{background:#1f7a77;color:#fff;border-color:#1f7a77}
html[data-theme="dark"] .sv-tab{border-color:rgba(255,255,255,.12)}
html[data-theme="dark"] .sv-tab.is-active,html[data-theme="dark"] .sv-seg.is-active{background:#1f7a77;border-color:#1f7a77}
html[data-theme="dark"] .sv-path{background:#0f4644}
html[data-theme="dark"] .sv-mix__bar i:nth-child(1){background:#2f9e9a}
html[data-theme="dark"] .sv-chip__l{color:#145c5a}
html[data-theme="dark"] .sv-btn--light{background:#eaf6f6;color:#0f4644}
html[data-theme="dark"] .sv-tag,html[data-theme="dark"] .sv-chips span{background:rgba(143,224,220,.12)}
html[data-theme="dark"] .sv-seg{background:#132b2b}
html[data-theme="dark"] .sv-stage__n,html[data-theme="dark"] .sv-node{border-color:#2f9e9a}

/* ---- Therapists page · dark mode ---- */
html[data-theme="dark"] .th-hero__copy{background:rgba(15,38,38,.9)}
html[data-theme="dark"] .th-hero__text,html[data-theme="dark"] .th-value p,html[data-theme="dark"] .th-flow p,html[data-theme="dark"] .th-step p,html[data-theme="dark"] .th-action>p{color:#c3d6d6}
html[data-theme="dark"] .th-h1{color:#eaf6f6}
html[data-theme="dark"] .th-h1 em,html[data-theme="dark"] .th-h2 em{color:#8fe0dc}
html[data-theme="dark"] .th-value__n,html[data-theme="dark"] .th-phase,html[data-theme="dark"] .th-kicker{color:#8fb9c4}
html[data-theme="dark"] .th-value h3,html[data-theme="dark"] .th-person h3,html[data-theme="dark"] .th-wide h3,html[data-theme="dark"] .th-flow h3,html[data-theme="dark"] .th-step h3,html[data-theme="dark"] .th-action h3{color:#eaf6f6}
html[data-theme="dark"] .th-person,html[data-theme="dark"] .th-wide,html[data-theme="dark"] .th-action,html[data-theme="dark"] .th-step__card{background:var(--sv-card)}
html[data-theme="dark"] .th-tag,html[data-theme="dark"] .th-pill-link,html[data-theme="dark"] .th-btn-soft,html[data-theme="dark"] .th-note{background:#1a3838;color:#8fe0dc}
html[data-theme="dark"] .th-tag--strong{color:#d4e6e6}
html[data-theme="dark"] .th-pill-link:hover,html[data-theme="dark"] .th-btn-soft:hover{background:#245050}
html[data-theme="dark"] .th-note{color:#cfe5d7}
html[data-theme="dark"] .th-action__meta,html[data-theme="dark"] .th-action__quote{color:#b9cfcf}
html[data-theme="dark"] .th-btn-solid{background:#1b7571}
html[data-theme="dark"] .th-btn-solid:hover{background:#238d88}
html[data-theme="dark"] .th-flow__n{color:#8fb9c4}
html[data-theme="dark"] .th-steps::before{background:rgba(143,224,220,.25)}
html[data-theme="dark"] .th-step__n{background:#1b7571}
html[data-theme="dark"] .th-lead-card,html[data-theme="dark"] .th-tall,html[data-theme="dark"] .th-preview,html[data-theme="dark"] .th-person__photo,html[data-theme="dark"] .th-wide__photo{background:#163434}
html[data-theme="dark"] .th-callout{background:#0f4644}
html[data-theme="dark"] .th-cta{background:#051615}
html[data-theme="dark"] .th-cta__bg::after{background:linear-gradient(to right,#051615 0%,rgba(5,22,21,.9) 50%,rgba(5,22,21,.8) 100%)}
html[data-theme="dark"] .th-pillars li{background:rgba(255,255,255,.07)}
html[data-theme="dark"] .th-pillars p{color:#a9c3c3}
html[data-theme="dark"] .th-cta__lead{color:#a9c3c3}
html[data-theme="dark"] .th-hero__copy{box-shadow:none}

/* ---- About page · dark mode ---- */
html[data-theme="dark"] .ab{background:#081616}
html[data-theme="dark"] .ab-sec--a{background:#081616}
html[data-theme="dark"] .ab-sec--b{background:#0d2222}
html[data-theme="dark"] .ab-h2,html[data-theme="dark"] .ab-h3,html[data-theme="dark"] .ab-h1,html[data-theme="dark"] .ab-principle h3,html[data-theme="dark"] .ab-band h3,html[data-theme="dark"] .ab-moment h3,html[data-theme="dark"] .ab-note strong,html[data-theme="dark"] .ab-impact__card p,html[data-theme="dark"] .ab-callout p,html[data-theme="dark"] .ab-author strong,html[data-theme="dark"] .ab-arch strong{color:#eaf6f6}
html[data-theme="dark"] .ab-h2 em,html[data-theme="dark"] .ab-h1 em,html[data-theme="dark"] .ab-h1 span,html[data-theme="dark"] .ab-blockquote p{color:#8fe0dc}
html[data-theme="dark"] .ab-visual{background:#163434}
html[data-theme="dark"] .ab-visual__shade{background:linear-gradient(to top,rgba(8,22,22,.9) 0%,rgba(8,22,22,.45) 50%,rgba(8,22,22,.1) 100%)}
html[data-theme="dark"] .ab-visual__text,html[data-theme="dark"] .ab-lead,html[data-theme="dark"] .ab-body,html[data-theme="dark"] .ab-principle p,html[data-theme="dark"] .ab-band p,html[data-theme="dark"] .ab-moment p,html[data-theme="dark"] .ab-note span,html[data-theme="dark"] .ab-author span,html[data-theme="dark"] .ab-callout span,html[data-theme="dark"] .ab-manifesto__text p{color:#c3d6d6}
html[data-theme="dark"] .ab-badge{background:rgba(15,38,38,.9);color:#d4e6e6}
html[data-theme="dark"] .ab-badge i{background:#8fe0dc}
html[data-theme="dark"] .ab-quote{background:#0f4644}
html[data-theme="dark"] .ab-quote p{color:#eaf6f6}
html[data-theme="dark"] .ab-quote__foot span:last-child{color:#a9c3c3}
html[data-theme="dark"] .ab-principle,html[data-theme="dark"] .ab-quotecard,html[data-theme="dark"] .ab-band--white,html[data-theme="dark"] .ab-moment,html[data-theme="dark"] .ab-note{background:var(--sv-card)}
html[data-theme="dark"] .ab-band--mint,html[data-theme="dark"] .ab-impact__card--b,html[data-theme="dark"] .ab-btn--soft,html[data-theme="dark"] .ab-callout{background:#1a3838}
html[data-theme="dark"] .ab-impact__card--a{background:#102a2a}
html[data-theme="dark"] .ab-impact__card--c{background:#1f4040}
html[data-theme="dark"] .ab-band__n{color:rgba(143,224,220,35%)}
html[data-theme="dark"] .ab-principle__n,html[data-theme="dark"] .ab-caps,html[data-theme="dark"] .ab-kicker{color:#ffffff}
html[data-theme="dark"] .ab-eyebrow,html[data-theme="dark"] .ab-rule{color:#8fb9c4;background:#8fb9c4}
html[data-theme="dark"] .ab-eyebrow{background:none}
html[data-theme="dark"] .ab-eyebrow--light{color:#8fe0dc}
html[data-theme="dark"] .ab-rule{background:#8fb9c4}
html[data-theme="dark"] .ab-principle__rule{background:#5f8f80}
html[data-theme="dark"] .ab-phase{color:#8fe0dc;border-color:rgba(143,224,220,.2)}
html[data-theme="dark"] .ab-phase i{color:#8fe0dc}
html[data-theme="dark"] .ab-author__ic{background:#1f4a44;color:#8fe0dc}
html[data-theme="dark"] .ab-callout i{color:#8fe0dc}
html[data-theme="dark"] .ab-arch{background:#163434}
html[data-theme="dark"] .ab-arch figcaption{background:rgba(15,38,38,.9)}
html[data-theme="dark"] .ab-arch span{color:#c3d6d6}
html[data-theme="dark"] .ab-time{background:#1b7571}
html[data-theme="dark"] .ab-btn--solid{background:#1b7571}
html[data-theme="dark"] .ab-btn--solid:hover{background:#238d88}
html[data-theme="dark"] .ab-btn--light{background:#e6f7f8;color:#004342}
html[data-theme="dark"] .ab-btn--solid-light{background:#1b7571}
html[data-theme="dark"] .ab-btn--solid-light:hover{background:#238d88}
html[data-theme="dark"] .ab-banner{background:#0f4644}
html[data-theme="dark"] .ab-banner p{color:#eaf6f6}
html[data-theme="dark"] .ab-manifesto{background:#051615}
html[data-theme="dark"] .ab-manifesto h3{color:#eaf6f6}
html[data-theme="dark"] .ab-manifesto__text p{color:#a9c3c3}
html[data-theme="dark"] .ab-manifesto__photo{background:#0f4644}
html[data-theme="dark"] .ab-manifesto__photo::after{background:linear-gradient(to right,#051615 0%,rgba(5,22,21,0) 40%)}
html[data-theme="dark"] .ab-blob--a{background:rgba(47,143,140,.18)}
html[data-theme="dark"] .ab-blob--b{background:rgba(26,56,56,.5)}
html[data-theme="dark"] .ab-quote__foot span:first-child{color:#8fe0dc}

/* ---- Contact page · dark mode ---- */
html[data-theme="dark"] .ct{background:#081616}
html[data-theme="dark"] .ct-sec--w{background:#081616}
html[data-theme="dark"] .ct-sec--b{background:#0d2222}
html[data-theme="dark"] .ct-h1,html[data-theme="dark"] .ct-h2,html[data-theme="dark"] .ct-channel__big,html[data-theme="dark"] .ct-hours__title,html[data-theme="dark"] .ct-marker__card strong,html[data-theme="dark"] .ct-accred__r strong,html[data-theme="dark"] .ct-accred strong,html[data-theme="dark"] .ct-prefer strong,html[data-theme="dark"] .ct-prep__list strong,html[data-theme="dark"] .ct-hours__rows dt{color:#eaf6f6}
html[data-theme="dark"] .ct-channel__big{color:#8fe0dc}
html[data-theme="dark"] .ct-lead,html[data-theme="dark"] .ct-visit-lead,html[data-theme="dark"] .ct-channel p,html[data-theme="dark"] .ct-note,html[data-theme="dark"] .ct-marker__card p,html[data-theme="dark"] .ct-prep__list p,html[data-theme="dark"] .ct-hours__rows dd,html[data-theme="dark"] .ct-privacy,html[data-theme="dark"] .ct-prefer p,html[data-theme="dark"] .ct-accred__l span{color:#c3d6d6}
html[data-theme="dark"] .ct-pill,html[data-theme="dark"] .ct-tag{background:#163434;color:#8fe0dc}
html[data-theme="dark"] .ct-pill--soft{background:#1a3838}
html[data-theme="dark"] .ct-kicker,html[data-theme="dark"] .ct-channel__idx,html[data-theme="dark"] .ct-channel__label,html[data-theme="dark"] .ct-quote-badge__k,html[data-theme="dark"] .ct-accred__r span,html[data-theme="dark"] .ct-hours__rows .is-closed dd{color:#8fb9c4}
html[data-theme="dark"] .ct-dot{background:#8fe0dc}
html[data-theme="dark"] .ct-channel__meta,html[data-theme="dark"] .ct-channel__meta i,html[data-theme="dark"] .ct-link,html[data-theme="dark"] .ct-hours__emg a,html[data-theme="dark"] .ct-marker__card strong,html[data-theme="dark"] .ct-prefer a{color:#8fe0dc}
html[data-theme="dark"] .ct-channel__idx i{background:#2f5f5c}
html[data-theme="dark"] .ct-form-card,html[data-theme="dark"] .ct-prep,html[data-theme="dark"] .ct-prefer{background:var(--sv-card);border-color:rgba(255,255,255,.1)}
html[data-theme="dark"] .ct-input{color:#eaf6f6;border-bottom-color:rgba(143,224,220,.3)}
html[data-theme="dark"] .ct-input:focus{border-bottom-color:#8fe0dc}
html[data-theme="dark"] .ct-input::placeholder,html[data-theme="dark"] .ct-textarea::placeholder{color:rgba(143,184,184,.6)}
html[data-theme="dark"] .ct-label{color:#c3d6d6}
html[data-theme="dark"] .ct-pill-opt span,html[data-theme="dark"] .ct-time{background:#1a3838;color:#d4e6e6}
html[data-theme="dark"] .ct-pill-opt:hover span{background:#245050}
html[data-theme="dark"] .ct-pill-opt input:checked + span{background:#1b7571;color:#fff}
html[data-theme="dark"] .ct-time input{background:#0f2626;border-color:#8fb9c4}
html[data-theme="dark"] .ct-time span{color:#d4e6e6}
html[data-theme="dark"] .ct-form .form-success{background:#1f4a44;color:#d4f0e6}
html[data-theme="dark"] .ct-form .field-error{color:#ff9d92}
html[data-theme="dark"] .ct-btn--solid{background:#1b7571}
html[data-theme="dark"] .ct-btn--solid:hover{background:#238d88}
html[data-theme="dark"] .ct-btn--white{background:#e6f7f8;color:#004342}
html[data-theme="dark"] .ct-accred{background:rgba(15,38,38,.8)}
html[data-theme="dark"] .ct-accred__l>i,html[data-theme="dark"] .ct-prefer__ic,html[data-theme="dark"] .ct-quote-badge__k i,html[data-theme="dark"] .ct-privacy i,html[data-theme="dark"] .ct-marker__dot,html[data-theme="dark"] .ct-map__foot>span i{color:#8fe0dc}
html[data-theme="dark"] .ct-prefer__ic{background:#163434}
html[data-theme="dark"] .ct-arch{background:#163434}
html[data-theme="dark"] .ct-quote-badge{background:rgba(15,38,38,.95)}
html[data-theme="dark"] .ct-quote-badge p{color:#8fe0dc}
html[data-theme="dark"] .ct-quote-badge cite{color:#c3d6d6}
html[data-theme="dark"] .ct-map{background:#0d2222}
html[data-theme="dark"] .ct-map__svg rect{fill:#0d2222}
html[data-theme="dark"] .ct-map__svg path[stroke="#ffffff"]{stroke:#1a3434}
html[data-theme="dark"] .ct-map__svg path[stroke="#cfe5d7"]{stroke:#1f4a44}
html[data-theme="dark"] .ct-map__svg path[fill="#d2e8d9"]{fill:#163434}
html[data-theme="dark"] .ct-marker__card{background:rgba(15,38,38,.92)}
html[data-theme="dark"] .ct-hours{background:#0d2222}
html[data-theme="dark"] .ct-hours__emg{background:rgba(15,38,38,.6)}
html[data-theme="dark"] .ct-close{background:#051615}
html[data-theme="dark"] .ct-close__scrim{background:linear-gradient(to right,#051615 0%,rgba(5,22,21,.95) 50%,rgba(5,22,21,.8) 100%)}
html[data-theme="dark"] .ct-close__pill{background:rgba(15,38,38,.8);color:#8fe0dc}
html[data-theme="dark"] .ct-affirm{background:rgba(15,38,38,.7)}
html[data-theme="dark"] .ct-affirm__ic{background:#1b7571}
html[data-theme="dark"] .ct-affirm__quote{color:#d4e6e6}
html[data-theme="dark"] .ct-btn--glass{background:rgba(27,117,113,.6)}
html[data-theme="dark"] .ct-prep__list li>span{color:rgba(143,224,220,.6)}
html[data-theme="dark"] .ct-hours__rows .is-closed dt{color:#c3d6d6}

/* ---- Patient dashboard · dark mode ---- */
html[data-theme="dark"] .pd{background:#081616}
html[data-theme="dark"] .pd-sec--w{background:#081616}
html[data-theme="dark"] .pd-sec--b{background:#081616}
html[data-theme="dark"] .pd-h1,html[data-theme="dark"] .pd-h2,html[data-theme="dark"] .pd-h3,html[data-theme="dark"] .pd-profile__body strong,html[data-theme="dark"] .pd-stat__value,html[data-theme="dark"] .pd-phases strong,html[data-theme="dark"] .pd-video__body h3,html[data-theme="dark"] .pd-session__body strong,html[data-theme="dark"] .pd-session__date{color:#eaf6f6}
html[data-theme="dark"] .pd-h1 em{color:#8fe0dc}
html[data-theme="dark"] .pd-lead,html[data-theme="dark"] .pd-muted,html[data-theme="dark"] .pd-profile__body>span,html[data-theme="dark"] .pd-stat__sub,html[data-theme="dark"] .pd-session__body span,html[data-theme="dark"] .pd-phases span:not(.pd-phase__n),html[data-theme="dark"] .pd-video__body p,html[data-theme="dark"] .pd-empty,html[data-theme="dark"] .pd-check,html[data-theme="dark"] .pd-check--goal,html[data-theme="dark"] .pd-goals li{color:#c3d6d6}
html[data-theme="dark"] .pd-kicker,html[data-theme="dark"] .pd-stat__label,html[data-theme="dark"] .pd-session__date span,html[data-theme="dark"] .pd-session__date small,html[data-theme="dark"] .pd-phases em,html[data-theme="dark"] .pd-label{color:#8fb9c4}
html[data-theme="dark"] .pd-stat__label i,html[data-theme="dark"] .pd-profile__meta,html[data-theme="dark"] .pd-small i,html[data-theme="dark"] .pd-link{color:#8fe0dc}
html[data-theme="dark"] .pd-pill{background:#163434;color:#8fe0dc}
html[data-theme="dark"] .pd-dot{background:#8fe0dc}
html[data-theme="dark"] .pd-card,html[data-theme="dark"] .pd-profile,html[data-theme="dark"] .pd-tabs,html[data-theme="dark"] .pd-video,html[data-theme="dark"] .pd-modal__panel,html[data-theme="dark"] .pd-chip{background:var(--sv-card,#132b2b)}
html[data-theme="dark"] .pd-card--deep{background:#0f4644}
html[data-theme="dark"] .pd-card--deep .pd-note-quote p,html[data-theme="dark"] .pd-tips li{color:#eaf6f6}
html[data-theme="dark"] .pd-stat,html[data-theme="dark"] .pd-session,html[data-theme="dark"] .pd-phases li,html[data-theme="dark"] .pd-goals li{background:#0d2222}
html[data-theme="dark"] .pd-stat{background:#163434}
html[data-theme="dark"] .pd-phases .is-current{background:#1d4a48}
html[data-theme="dark"] .pd-session__date{background:#163434}
html[data-theme="dark"] .pd-input{background:#0f2626;border-color:rgba(143,224,220,.25);color:#eaf6f6}
html[data-theme="dark"] .pd-input::placeholder{color:#7d9a9a}
html[data-theme="dark"] .pd-input:focus{border-color:#8fe0dc;box-shadow:0 0 0 3px rgba(143,224,220,.18)}
html[data-theme="dark"] .pd-input option{background:#0f2626;color:#eaf6f6}
html[data-theme="dark"] .pd-form .form-success{background:#1f4a44;color:#d4f0e6}
html[data-theme="dark"] .pd-form .field-error{color:#ff9d92}
html[data-theme="dark"] .pd-link-btn{color:#ff9d92}
html[data-theme="dark"] .pd-tab{color:#c3d6d6}
html[data-theme="dark"] .pd-tab:hover{background:#163434}
html[data-theme="dark"] .pd-tab.is-active{background:#1b7571;color:#fff}
html[data-theme="dark"] .pd-btn--solid{background:#1b7571}
html[data-theme="dark"] .pd-btn--solid:hover{background:#238d88}
html[data-theme="dark"] .pd-btn--soft{background:#1a3838;color:#d4e6e6}
html[data-theme="dark"] .pd-btn--soft:hover{background:#245050}
html[data-theme="dark"] .pd-btn--soft[aria-pressed="true"]{background:#1f4a44;color:#d4f0e6}
html[data-theme="dark"] .pd-status{background:#1f4a44;color:#d4f0e6}
html[data-theme="dark"] .pd-phase__n{background:#0d2222;border-color:#2f5f5c;color:#8fe0dc}
html[data-theme="dark"] .pd-phases .is-done .pd-phase__n{background:#1b7571;border-color:#1b7571;color:#fff}
html[data-theme="dark"] .pd-chip{color:#c3d6d6;border-color:rgba(143,224,220,.25)}
html[data-theme="dark"] .pd-chip.is-active{background:#1b7571;border-color:#1b7571;color:#fff}
html[data-theme="dark"] .pd-chip:hover{border-color:#8fe0dc}
html[data-theme="dark"] .pd-video__time{background:rgba(5,22,21,.9)}
html[data-theme="dark"] .pd-modal__backdrop{background:rgba(0,0,0,.7)}
html[data-theme="dark"] .pd-modal__close{background:#163434;color:#8fe0dc}
html[data-theme="dark"] .pd-player{background:#051615}
html[data-theme="dark"] .pd-player__msg,html[data-theme="dark"] .pd-player__msg i{color:#8fe0dc}
html[data-theme="dark"] .pd-bar{background:rgba(143,224,220,.15)}
html[data-theme="dark"] .pd-bar>span{background:#8fe0dc}
html[data-theme="dark"] .pd-check input{accent-color:#8fe0dc}
html[data-theme="dark"] .pd-video__thumb{background:#163434}

/* ---- Patient dashboard (sidebar) · dark mode ---- */
html[data-theme="dark"] body.db{background:#081616}
html[data-theme="dark"] .db-side,html[data-theme="dark"] .db-top,html[data-theme="dark"] .db-card,html[data-theme="dark"] .db-stat,html[data-theme="dark"] .db-pop,html[data-theme="dark"] .db-modal__panel{background:#0d2222;border-color:rgba(255,255,255,.08)}
html[data-theme="dark"] .db-top{border-block-end-color:rgba(255,255,255,.08)}
html[data-theme="dark"] .db-brand,html[data-theme="dark"] .db-top__title,html[data-theme="dark"] .db-h2,html[data-theme="dark"] .db-h3,html[data-theme="dark"] .db-card h3,html[data-theme="dark"] .db-card h4,html[data-theme="dark"] .db-stat__value,html[data-theme="dark"] .db-phases strong,html[data-theme="dark"] .db-item__body strong,html[data-theme="dark"] .db-pop__head,html[data-theme="dark"] .db-pop__list strong,html[data-theme="dark"] .db-profile__text strong,html[data-theme="dark"] .db-date strong,html[data-theme="dark"] .db-tile{color:#eaf6f6}
html[data-theme="dark"] .db-brand__text small,html[data-theme="dark"] .db-muted,html[data-theme="dark"] .db-small,html[data-theme="dark"] .db-item__body span,html[data-theme="dark"] .db-stat__sub,html[data-theme="dark"] .db-video__body p,html[data-theme="dark"] .db-empty,html[data-theme="dark"] .db-check,html[data-theme="dark"] .db-check--goal,html[data-theme="dark"] .db-pop__list span,html[data-theme="dark"] .db-form .field-error,html[data-theme="dark"] .db-goals li{color:#c3d6d6}
html[data-theme="dark"] .db-nav__link{color:#c3d6d6}
html[data-theme="dark"] .db-nav__link i{color:#8fb9c4}
html[data-theme="dark"] .db-nav__link:hover{background:#163434;color:#8fe0dc}
html[data-theme="dark"] .db-nav__link.is-active{background:#1b7571;color:#fff}
html[data-theme="dark"] .db-nav__link--out,html[data-theme="dark"] .db-nav__link--out i,html[data-theme="dark"] .db-link-btn--danger{color:#ff9d92}
html[data-theme="dark"] .db-nav__group,html[data-theme="dark"] .db-kicker,html[data-theme="dark"] .db-top__eyebrow,html[data-theme="dark"] .db-stat__label,html[data-theme="dark"] .db-date span,html[data-theme="dark"] .db-date small,html[data-theme="dark"] .db-phases em,html[data-theme="dark"] .db-label{color:#8fb9c4}
html[data-theme="dark"] .db-side__card{background:#0f4644}
html[data-theme="dark"] .db-iconbtn{background:#0d2222;border-color:rgba(143,224,220,.25);color:#8fe0dc}
html[data-theme="dark"] .db-iconbtn:hover{background:#163434;border-color:#8fe0dc}
html[data-theme="dark"] .db-profile__text span,html[data-theme="dark"] .db-profile__chev{color:#8fb9c4}
html[data-theme="dark"] .db-pop__list li{border-color:rgba(255,255,255,.08)}
html[data-theme="dark"] .db-pop__list li.is-unread{background:rgba(31,74,68,.5)}
html[data-theme="dark"] .db-pop__list li>i{background:#163434;color:#8fe0dc}
html[data-theme="dark"] .db-item,html[data-theme="dark"] .db-tile,html[data-theme="dark"] .db-phases li,html[data-theme="dark"] .db-goals li{background:#0a1d1d}
html[data-theme="dark"] .db-item__ic,html[data-theme="dark"] .db-tile span,html[data-theme="dark"] .db-date{background:#163434;color:#8fe0dc}
html[data-theme="dark"] .db-tile:hover{background:#163434}
html[data-theme="dark"] .db-phases .is-current{background:#1d4a48}
html[data-theme="dark"] .db-phase__n{background:#0d2222;border-color:#2f5f5c;color:#8fe0dc}
html[data-theme="dark"] .db-phases .is-done .db-phase__n{background:#1b7571;border-color:#1b7571;color:#fff}
html[data-theme="dark"] .db-stat__label i,html[data-theme="dark"] .db-small i{color:#8fe0dc}
html[data-theme="dark"] .db-card--deep{background:#0f4644}
html[data-theme="dark"] .db-welcome{background:linear-gradient(120deg,#051615 0%,#14504d 100%)}
html[data-theme="dark"] .db-btn--solid,html[data-theme="dark"] .db-side__card .db-btn--light{background:#1b7571;color:#fff}
html[data-theme="dark"] .db-btn--solid:hover{background:#238d88}
html[data-theme="dark"] .db-btn--soft{background:#1a3838;color:#d4e6e6}
html[data-theme="dark"] .db-btn--soft[aria-pressed="true"]{background:#1f4a44;color:#d4f0e6}
html[data-theme="dark"] .db-btn--light{background:#e6f7f8;color:#004342}
html[data-theme="dark"] .db-link-btn{color:#8fe0dc}
html[data-theme="dark"] .db-input{background:#0f2626;border-color:rgba(143,224,220,.25);color:#eaf6f6}
html[data-theme="dark"] .db-input::placeholder{color:#7d9a9a}
html[data-theme="dark"] .db-input:focus{border-color:#8fe0dc;box-shadow:0 0 0 3px rgba(143,224,220,.18)}
html[data-theme="dark"] .db-input option{background:#0f2626;color:#eaf6f6}
html[data-theme="dark"] .db-form .form-success{background:#1f4a44;color:#d4f0e6}
html[data-theme="dark"] .db-chip{background:#0d2222;color:#c3d6d6;border-color:rgba(143,224,220,.25)}
html[data-theme="dark"] .db-chip.is-active{background:#1b7571;border-color:#1b7571;color:#fff}
html[data-theme="dark"] .db-chip:hover{border-color:#8fe0dc}
html[data-theme="dark"] .db-video__thumb{background:#163434}
html[data-theme="dark"] .db-video__time{background:rgba(5,22,21,.9)}
html[data-theme="dark"] .db-bar{background:rgba(143,224,220,.15)}
html[data-theme="dark"] .db-bar>span{background:#8fe0dc}
html[data-theme="dark"] .db-check input{accent-color:#8fe0dc}
html[data-theme="dark"] .db-status{background:#1f4a44;color:#d4f0e6}
html[data-theme="dark"] .db-scrim{background:rgba(0,0,0,.6)}
html[data-theme="dark"] .db-modal__backdrop{background:rgba(0,0,0,.7)}
html[data-theme="dark"] .db-player{background:#051615}
html[data-theme="dark"] .db-player__msg,html[data-theme="dark"] .db-player__msg i{color:#8fe0dc}
html[data-theme="dark"] .db-avatar{opacity:.92}

/* sidebar dashboard: explicit light text on the deep panels in dark mode */
html[data-theme="dark"] .db-welcome__h span{color:#8fe0dc}
html[data-theme="dark"] .db-side__card>span:not(.db-kicker){color:#c3e7e3}
html[data-theme="dark"] .db-side__card .db-kicker{color:#8fe0dc}
html[data-theme="dark"] .db-note cite{color:#8fe0dc}
html[data-theme="dark"] .db-card--deep .db-kicker{color:#8fe0dc}

/* ---- Admin console · dark mode ---- */
html[data-theme="dark"] .ad-table th{background:#0a1d1d;color:#8fb9c4;border-color:rgba(255,255,255,.08)}
html[data-theme="dark"] .ad-table td{border-color:rgba(255,255,255,.08);color:#c3d6d6}
html[data-theme="dark"] .ad-table td strong{color:#eaf6f6}
html[data-theme="dark"] .ad-table tbody tr:hover td{background:rgba(31,74,68,.35)}
html[data-theme="dark"] .ad-table small,html[data-theme="dark"] .ad-clin__meta span,html[data-theme="dark"] .ad-clin__top span,html[data-theme="dark"] .ad-avail,html[data-theme="dark"] .ad-switchrow{color:#c3d6d6}
html[data-theme="dark"] .ad-badge{background:#163434;color:#d4e6e6}
html[data-theme="dark"] .ad-badge--ok{background:#1f4a44;color:#d4f0e6}
html[data-theme="dark"] .ad-badge--info{background:#1d3550;color:#cfe3ff}
html[data-theme="dark"] .ad-badge--warn{background:#4a3a14;color:#ffe2a3}
html[data-theme="dark"] .ad-badge--danger{background:#4a1f1b;color:#ffc9c2}
html[data-theme="dark"] .ad-badge--muted{background:#1d2b2b;color:#b9cfcf}
html[data-theme="dark"] .ad-bar>span{background:#2f5f5c}
html[data-theme="dark"] .ad-bar.is-today>span,html[data-theme="dark"] .ad-bar:hover>span{background:#8fe0dc}
html[data-theme="dark"] .ad-bar em,html[data-theme="dark"] .ad-util strong,html[data-theme="dark"] .ad-clin__meta strong{color:#eaf6f6}
html[data-theme="dark"] .ad-bar small,html[data-theme="dark"] .ad-util>div{color:#8fb9c4}
html[data-theme="dark"] .ad-util>div{color:#c3d6d6}
html[data-theme="dark"] .ad-time{background:#0a1d1d;color:#8fe0dc}
html[data-theme="dark"] .ad-clin__meta>div{background:#0a1d1d}
html[data-theme="dark"] .ad-ex__body h4{color:#eaf6f6}
html[data-theme="dark"] .ad-switch{background:rgba(143,224,220,.25)}
html[data-theme="dark"] .ad-switch[aria-checked="true"]{background:#1b7571}
html[data-theme="dark"] .ad-switch>span{background:#eaf6f6}
html[data-theme="dark"] .ad-prog{background:rgba(143,224,220,.15)}
html[data-theme="dark"] .ad-prog>span{background:#8fe0dc}
html[data-theme="dark"] .ad-switchrow{border-color:rgba(255,255,255,.08)}
html[data-theme="dark"] .ad-count{background:#1b7571}
html[data-theme="dark"] .ad-toast{background:#0f4644;color:#eaf6f6}
html[data-theme="dark"] .ad-search>i{color:#8fb9c4}

/* ---- auth pages · dark mode ---- */
html[data-theme="dark"] body.au{background:#081616}
html[data-theme="dark"] .au-top{background:#0a1d1d;border-color:rgba(255,255,255,.08)}
html[data-theme="dark"] .au-brand,html[data-theme="dark"] .au-title,html[data-theme="dark"] .au-back,html[data-theme="dark"] .au-iconbtn{color:#eaf6f6}
html[data-theme="dark"] .au-brand__text small,html[data-theme="dark"] .au-eyebrow{color:#8fb9c4}
html[data-theme="dark"] .au-brand__mark{background:#1b7571}
html[data-theme="dark"] .au-iconbtn{background:#0d2222;border-color:rgba(143,224,220,.25);color:#8fe0dc}
html[data-theme="dark"] .au-back:hover,html[data-theme="dark"] .au-iconbtn:hover{background:#163434}
html[data-theme="dark"] .au-card{background:#0d2222;box-shadow:0 24px 60px -24px rgba(0,0,0,.6)}
html[data-theme="dark"] .au-lead,html[data-theme="dark"] .au-check,html[data-theme="dark"] .au-switch,html[data-theme="dark"] .au-form .field-error{color:#c3d6d6}
html[data-theme="dark"] .au-label{color:#eaf6f6}
html[data-theme="dark"] .au-input{background:#0f2626;border-color:rgba(143,224,220,.25);color:#eaf6f6}
html[data-theme="dark"] .au-input::placeholder{color:#7d9a9a}
html[data-theme="dark"] .au-input:focus{border-color:#8fe0dc;box-shadow:0 0 0 3px rgba(143,224,220,.18)}
html[data-theme="dark"] .au-pass__btn{color:#8fb9c4}
html[data-theme="dark"] .au-pass__btn:hover{background:#163434;color:#8fe0dc}
html[data-theme="dark"] .au-check input{accent-color:#8fe0dc}
html[data-theme="dark"] .au-link{color:#8fe0dc}
html[data-theme="dark"] .au-btn--solid{background:#1b7571;box-shadow:0 10px 24px -10px rgba(0,0,0,.6)}
html[data-theme="dark"] .au-btn--solid:hover{background:#238d88}
html[data-theme="dark"] .au-or{color:#8fb9c4}
html[data-theme="dark"] .au-or::before,html[data-theme="dark"] .au-or::after{background:rgba(255,255,255,.1)}
html[data-theme="dark"] .au-social__btn{background:#0f2626;border-color:rgba(143,224,220,.25);color:#eaf6f6}
html[data-theme="dark"] .au-social__btn:hover{background:#163434;border-color:#8fe0dc}
html[data-theme="dark"] .au-social__btn .fa-google{color:#ff7a6e}
html[data-theme="dark"] .au-social__btn .fa-facebook-f{color:#6aa5ff}
html[data-theme="dark"] .au-media__shade{background:linear-gradient(to top,rgba(0,0,0,.85) 0%,rgba(0,0,0,.25) 55%,rgba(0,0,0,0) 100%)}
html[data-theme="dark"] .au-toast{background:#0f4644;color:#eaf6f6}

/* ---- 404 page · dark mode ---- */
html[data-theme="dark"] .nf{background:#081616}
html[data-theme="dark"] .nf-hero::before{background:rgba(47,143,140,.18)}
html[data-theme="dark"] .nf-hero::after{background:rgba(26,56,56,.5)}
html[data-theme="dark"] .nf-h1,html[data-theme="dark"] .nf-h2,html[data-theme="dark"] .nf-tile strong{color:#eaf6f6}
html[data-theme="dark"] .nf-h1 em{color:#8fe0dc}
html[data-theme="dark"] .nf-lead,html[data-theme="dark"] .nf-tile span:not(.nf-tile__ic),html[data-theme="dark"] .nf-none{color:#c3d6d6}
html[data-theme="dark"] .nf-kicker{color:#8fb9c4}
html[data-theme="dark"] .nf-pill{background:#163434;color:#8fe0dc}
html[data-theme="dark"] .nf-dot{background:#8fe0dc}
html[data-theme="dark"] .nf-btn--solid{background:#1b7571}
html[data-theme="dark"] .nf-btn--solid:hover{background:#238d88}
html[data-theme="dark"] .nf-btn--ghost{color:#8fe0dc;border-color:rgba(143,224,220,.35)}
html[data-theme="dark"] .nf-btn--ghost:hover{background:#163434;border-color:#8fe0dc}
html[data-theme="dark"] .nf-visual,html[data-theme="dark"] .nf-tile{background:#0d2222}
html[data-theme="dark"] .nf-digit{color:#eaf6f6}
html[data-theme="dark"] .nf-digit--ring,html[data-theme="dark"] .nf-digit--ring i{color:#8fe0dc}
html[data-theme="dark"] .nf-ring{border-color:#2f5f5c}
html[data-theme="dark"] .nf-ecg path{stroke:#8fe0dc}
html[data-theme="dark"] .nf-search input{background:#0f2626;border-color:rgba(143,224,220,.25);color:#eaf6f6}
html[data-theme="dark"] .nf-search input::placeholder{color:#7d9a9a}
html[data-theme="dark"] .nf-search input:focus{border-color:#8fe0dc}
html[data-theme="dark"] .nf-search>i{color:#8fb9c4}
html[data-theme="dark"] .nf-tile__ic{background:#163434;color:#8fe0dc}
html[data-theme="dark"] .nf-tile:hover .nf-tile__ic{background:#1b7571;color:#fff}
html[data-theme="dark"] .nf-none a{color:#8fe0dc}

/* Header buttons (RTL, dark mode) in dark mode: match the dark menu button next to Login */
html[data-theme="dark"] .hbtn{
  background:#163434;
  border:1px solid rgba(143,224,220,.25);
  color:#eaf6f6;
  box-shadow:0 4px 12px -6px rgba(0,0,0,.5);
}
html[data-theme="dark"] .hbtn:hover{
  background:#1f4a44;
  border-color:rgba(143,224,220,.5);
}
html[data-theme="dark"] .hbtn--icon{
  border-radius:50%;
}
html[data-theme="dark"] .hbtn--rtl{
  color:#eaf6f6;
}
html[data-theme="dark"] .hbtn--rtl i,
html[data-theme="dark"] .hbtn--icon i{
  color:#eaf6f6;
}

/* ---- dark mode ---- */
html[data-theme="dark"] .hx-sec--alt{background:#0d2222}
html[data-theme="dark"] .hx-h1,html[data-theme="dark"] .hx-h2,html[data-theme="dark"] .hx-cond__title,html[data-theme="dark"] .hx-float strong,html[data-theme="dark"] .hx-trust{color:#eaf6f6}
html[data-theme="dark"] .hx-lead,html[data-theme="dark"] .hx-cond__desc,html[data-theme="dark"] .hx-float span{color:#c3d6d6}
html[data-theme="dark"] .hx-kicker,html[data-theme="dark"] .hx-scroll{color:#8fb9c4}
html[data-theme="dark"] .hx-pill{background:rgba(15,38,38,.8);color:#8fe0dc}
html[data-theme="dark"] .hx-blob{opacity:.22}
html[data-theme="dark"] .hx-float,html[data-theme="dark"] .hx-cond__panel{background:#0d2222}
html[data-theme="dark"] .hx-float__ic,html[data-theme="dark"] .hx-trust i{background:#163434;color:#8fe0dc}
html[data-theme="dark"] .hx-word--accent{color:#8fe0dc}
html[data-theme="dark"] .hx-btn--solid{background:#1b7571}
html[data-theme="dark"] .hx-btn--solid:hover{background:#238d88}
html[data-theme="dark"] .hx-btn--ghost{color:#8fe0dc;box-shadow:inset 0 0 0 1.5px rgba(143,224,220,.35)}
html[data-theme="dark"] .hx-btn--ghost:hover{background:#163434}
html[data-theme="dark"] .hx-link{color:#8fe0dc}
html[data-theme="dark"] .hx-link::after{background:#8fe0dc}
html[data-theme="dark"] .hx-cond__btn{background:rgba(13,34,34,.7);color:#eaf6f6}
html[data-theme="dark"] .hx-cond__btn:hover{background:#132b2b}
html[data-theme="dark"] .hx-cond__btn.is-active{background:#1b7571;color:#fff}
html[data-theme="dark"] .hx-cond__panel::before{background:#163434}
html[data-theme="dark"] .hx-cond__big{color:#2e5353}
html[data-theme="dark"] .hx-cond__sub{color:#8fe0dc}

/* dark mode */
html[data-theme="dark"] .hw-sec{background:#081616}
html[data-theme="dark"] .hw-h2,html[data-theme="dark"] .hw-stats strong,html[data-theme="dark"] .hw-modal__head h3{color:#eaf6f6}
html[data-theme="dark"] .hw-h2 em{color:#8fe0dc}
html[data-theme="dark"] .hw-lead,html[data-theme="dark"] .hw-stats span{color:#c3d6d6}
html[data-theme="dark"] .hw-checks li{color:#eaf6f6}
html[data-theme="dark"] .hw-checks i,html[data-theme="dark"] .hw-spark{color:#8fe0dc}
html[data-theme="dark"] .hw-ring{stroke:#8fe0dc}
html[data-theme="dark"] .hw-play{background:#0d2222;color:#8fe0dc}
html[data-theme="dark"] .hw-play::before,html[data-theme="dark"] .hw-play::after{border-color:rgba(143,224,220,.6)}
html[data-theme="dark"] .hw-stats{border-color:rgba(255,255,255,.1)}
html[data-theme="dark"] .hw-modal__panel{background:#0d2222}
html[data-theme="dark"] .hw-modal__x{background:#163434;color:#8fe0dc}
html[data-theme="dark"] .hw-modal__back{background:rgba(0,0,0,.7)}

/* dark mode */
html[data-theme="dark"] .hz-hero{background:radial-gradient(900px 500px at 85% 20%,rgba(20,80,77,.35),transparent 60%),#081616}
html[data-theme="dark"] .hz-hero::after{color:rgba(143,224,220,.05)}
html[data-theme="dark"] .hz-title,html[data-theme="dark"] .hz-badge strong,html[data-theme="dark"] .hz-metric b{color:#eaf6f6}
html[data-theme="dark"] .hz-line--outline>span{-webkit-text-stroke-color:#8fe0dc}
html[data-theme="dark"] .hz-line--grad>span{background-image:linear-gradient(90deg,#8fe0dc 0%,#2f8f8c 35%,#eaf6f6 60%,#8fe0dc 100%)}
html[data-theme="dark"] .hz-text,html[data-theme="dark"] .hz-badge span,html[data-theme="dark"] .hz-metric span{color:#c3d6d6}
html[data-theme="dark"] .hz-tag,html[data-theme="dark"] .hz-metric{background:#0d2222}
html[data-theme="dark"] .hz-tag{color:#8fb9c4}
html[data-theme="dark"] .hz-btn--solid{background:#1b7571}
html[data-theme="dark"] .hz-btn--solid:hover{background:#238d88}
html[data-theme="dark"] .hz-btn--ghost{color:#8fe0dc;box-shadow:inset 0 0 0 1.5px rgba(143,224,220,.35)}
html[data-theme="dark"] .hz-badge__ic,html[data-theme="dark"] .hz-metric__ic{background:#163434;color:#8fe0dc}
html[data-theme="dark"] .hz-orb{background:#0d2222;color:#8fe0dc}
html[data-theme="dark"] .hz-orb--b{background:#1b7571;color:#fff}
html[data-theme="dark"] .hz-orbit{border-color:rgba(143,224,220,.3)}

/* dark mode */
html[data-theme="dark"] .hz-tx{background:linear-gradient(180deg,#0d2222 0%,#081616 100%)}
html[data-theme="dark"] .hz-tx .hz-h2,html[data-theme="dark"] .hz-panel__vt{color:#eaf6f6}
html[data-theme="dark"] .hz-tx .hz-kicker{color:#8fb9c4}
html[data-theme="dark"] .hz-tx__side p{color:#c3d6d6}
html[data-theme="dark"] .hz-panel{background:#0d2222}
html[data-theme="dark"] .hz-panel.is-open{background:linear-gradient(160deg,#051615 0%,#1b7571 100%)}
html[data-theme="dark"] .hz-panel__num{color:#8fe0dc}
html[data-theme="dark"] .hz-panel__ic{background:#163434;color:#8fe0dc}

/* dark mode */
html[data-theme="dark"] .hz-panel::after{background:linear-gradient(180deg,rgba(13,34,34,.8) 0%,rgba(13,34,34,.94) 100%)}
html[data-theme="dark"] .hz-panel.is-open::after{background:linear-gradient(170deg,rgba(5,22,21,.4) 0%,rgba(5,22,21,.75) 45%,rgba(5,22,21,.95) 100%)}
html[data-theme="dark"] .hz-panel__img{opacity:.4}
html[data-theme="dark"] .hz-panel__vt{color:#eaf6f6;text-shadow:0 1px 14px rgba(0,0,0,.8)}

html[data-theme="dark"]{
  --mnav-bg:#0b1d1d; --mnav-ink:#eaf6f6; --mnav-sub:#9fc4c2; --mnav-line:rgba(255,255,255,.1);
  --mnav-hover:rgba(143,224,220,.1); --mnav-active:#8fe0dc; --mnav-active-bg:rgba(143,224,220,.14);
  --mnav-card:#102828; --mnav-foot:#091818; --mnav-sw-off:#3a5a58; --mnav-sw-on:#1b7571;
}
html[data-theme="dark"] .side-scrim{background:rgba(0,0,0,.65)}

/* About · hero eyebrow text "THE REHABCORE STORY" (dark mode only) */
html[data-theme="dark"] .ab-eyebrow--light{color:#e6fbf9!important;text-shadow:0 1px 10px rgba(0,0,0,.6)}

/* Home 2 · treatment card eyebrow (e.g. "DESENSITIZATION") readable in dark mode */
html[data-theme="dark"] .hz-eyebrow{color:#8fe0dc}

/* Home 2 · treatment card chip ("Dynamic Stability") text and dot readable in dark mode */
html[data-theme="dark"] .hz-chip{color:#ffffff;background:rgba(143,224,220,.18)}
html[data-theme="dark"] .hz-chip i{background:#8fe0dc}