/**
 * Sisu dark theme: activated via html[data-theme="dark"]
 * Pair with theme.css (light defaults on :root).
 */

html[data-theme="dark"] {
    color-scheme: dark;

    /* Chrome shell (sidebar, topbar, app footer) */
    --sisu-chrome: #060c14;
    --sisu-chrome-2: #0f1a2a;
    --sisu-chrome-gradient: linear-gradient(180deg, var(--sisu-chrome) 0%, var(--sisu-chrome-2) 100%);
    --sisu-chrome-text: #e4ebf3;
    --sisu-chrome-text-muted: rgba(228, 235, 243, 0.58);
    --sisu-chrome-border: rgba(255, 255, 255, 0.08);
    --sisu-chrome-shadow: 0 4px 28px rgba(0, 0, 0, 0.45);
    --sisu-chrome-hover-bg: rgba(255, 255, 255, 0.06);
    --sisu-chrome-active-bg: rgba(45, 154, 114, 0.2);

    /* Content / typography */
    --sisu-navy: #e8eef5;
    --sisu-navy-2: #b8c9dc;
    --sisu-canvas: #0b121c;
    --sisu-canvas-2: #141f2e;
    --sisu-card: #1a2738;
    --sisu-muted: #8fa3b8;
    --sisu-border: rgba(255, 255, 255, 0.09);
    --sisu-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
    --sisu-shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.45);
    --sisu-input-bg: #152232;
    --sisu-input-border: rgba(255, 255, 255, 0.12);
    --sisu-input-border-focus: rgba(72, 180, 140, 0.65);
    --sisu-input-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    --sisu-input-focus-ring: 0 0 0 0.25rem rgba(45, 154, 114, 0.22);
    --sisu-chart-grid: rgba(255, 255, 255, 0.08);
    --sisu-chart-fill: rgba(45, 154, 114, 0.2);
    --sisu-chart-tick: #ffffff;
    --sisu-body-text: #dce4ed;
    --sisu-heading: var(--sisu-navy);
    --sisu-sage-glow: rgba(45, 154, 114, 0.28);

    /* Operations featured hero: stays a rich accent band in dark mode */
    --sisu-operations-featured-from: #060c14;
    --sisu-operations-featured-mid: #0f1a2a;
    --sisu-operations-featured-to: #0d3d30;
    --sisu-operations-featured-text: #e9eef4;
    --sisu-operations-featured-text-muted: rgba(233, 238, 244, 0.82);
    --sisu-operations-featured-border: rgba(45, 154, 114, 0.28);

    --sisu-cta-from: #060c14;
    --sisu-cta-to: #0d3d30;
    --sisu-cta-text: #e9eef4;
    --sisu-cta-text-muted: rgba(233, 238, 244, 0.8);
    --sisu-cta-border: rgba(45, 154, 114, 0.28);
}

html[data-theme="dark"] .marketing-body {
    color: var(--sisu-body-text);
}

html[data-theme="dark"] .sisu-theme {
    color: var(--sisu-body-text);
}

html[data-theme="dark"] .marketing-navbar {
    background: rgba(11, 18, 28, 0.88);
    border-bottom-color: var(--sisu-border);
}

html[data-theme="dark"] .marketing-navbar.is-scrolled {
    background: rgba(11, 18, 28, 0.96);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .marketing-nav-link {
    color: rgba(232, 238, 245, 0.88);
}

html[data-theme="dark"] .marketing-nav-link:hover,
html[data-theme="dark"] .marketing-nav-link.active {
    color: #fff;
}

html[data-theme="dark"] .btn-marketing-menu {
    background: var(--sisu-canvas-2);
    border-color: var(--sisu-border);
    color: var(--sisu-body-text);
}

html[data-theme="dark"] .marketing-offcanvas {
    background: var(--sisu-card);
    color: var(--sisu-body-text);
}

html[data-theme="dark"] .marketing-footer,
html[data-theme="dark"] .footer-sisu {
    background: var(--sisu-chrome-gradient);
    border-color: var(--sisu-chrome-border);
    color: #fff;
}

html[data-theme="dark"] .footer-sisu .footer-sisu__text,
html[data-theme="dark"] .footer-sisu .footer-sisu__links a,
html[data-theme="dark"] .footer-sisu a.footer-sisu__text {
    color: #fff;
}

html[data-theme="dark"] .footer-sisu .footer-sisu__heading {
    color: rgba(255, 255, 255, 0.6);
}

html[data-theme="dark"] .footer-sisu .footer-sisu__links a:hover {
    color: #fff;
    opacity: 1;
}

html[data-theme="dark"] .app-topbar-select {
    color: var(--sisu-chrome-text);
    background-color: rgba(255, 255, 255, 0.06);
    border-color: var(--sisu-chrome-border);
}

html[data-theme="dark"] .app-topbar-select:focus {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

html[data-theme="dark"] .btn-topbar {
    color: var(--sisu-chrome-text);
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--sisu-chrome-border);
}

html[data-theme="dark"] .btn-topbar:hover,
html[data-theme="dark"] .btn-topbar:focus,
html[data-theme="dark"] .btn-topbar.show {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.16);
    color: #fff;
}

html[data-theme="dark"] .theme-toggle--chrome {
    color: var(--sisu-chrome-text);
}

html[data-theme="dark"] .app-offcanvas .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

html[data-theme="dark"] .sisu-theme .form-control:focus,
html[data-theme="dark"] .marketing-body .form-control:focus,
html[data-theme="dark"] .app-shell .form-control:focus,
html[data-theme="dark"] .app-shell .form-select:focus {
    background-color: var(--sisu-input-bg);
}

html[data-theme="dark"] .sisu-input-group .btn:hover,
html[data-theme="dark"] .sisu-input-group .btn-outline-secondary:hover {
    background: var(--sisu-card);
}

html[data-theme="dark"] .group-card__header {
    background: linear-gradient(180deg, var(--sisu-card) 0%, var(--sisu-canvas-2) 100%);
}

html[data-theme="dark"] .group-card__menu-btn {
    background: var(--sisu-canvas-2);
    border-color: var(--sisu-border);
    color: var(--sisu-muted);
}

html[data-theme="dark"] .group-card__menu-btn:hover,
html[data-theme="dark"] .group-card__menu-btn:focus,
html[data-theme="dark"] .group-card__menu-btn.show {
    background: var(--sisu-card);
    color: var(--sisu-navy);
}

html[data-theme="dark"] .app-account-menu {
    background: var(--sisu-card);
    border-color: var(--sisu-border);
}

html[data-theme="dark"] .app-account-menu__profile {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(45, 154, 114, 0.12) 100%);
}

html[data-theme="dark"] .app-account-menu__item:hover,
html[data-theme="dark"] .app-account-menu__item:focus {
    background: var(--sisu-canvas-2);
    border-color: var(--sisu-border);
    color: var(--sisu-navy);
}

html[data-theme="dark"] .app-account-menu__dropdown {
    background: var(--sisu-card);
    border-color: var(--sisu-border);
}

html[data-theme="dark"] .data-table,
html[data-theme="dark"] .table-responsive-rounded {
    border-color: var(--sisu-border);
    background: var(--sisu-card);
}

html[data-theme="dark"] .data-table__toolbar,
html[data-theme="dark"] .table-responsive-rounded > .data-table__toolbar {
    background: var(--sisu-canvas-2);
    border-bottom-color: var(--sisu-border);
}

html[data-theme="dark"] .data-table__length,
html[data-theme="dark"] .data-table__search-label {
    color: var(--sisu-body-text);
}

html[data-theme="dark"] .data-table__table,
html[data-theme="dark"] .table-responsive-rounded .table {
    color: var(--sisu-body-text);
}

html[data-theme="dark"] .data-table__table thead th,
html[data-theme="dark"] .table-responsive-rounded .table thead th {
    background: var(--sisu-canvas-2);
    border-color: var(--sisu-border);
    color: var(--sisu-muted);
}

html[data-theme="dark"] .data-table__table tbody td,
html[data-theme="dark"] .table-responsive-rounded .table tbody td {
    border-color: var(--sisu-border);
}

html[data-theme="dark"] .data-table__table tbody tr:nth-child(even),
html[data-theme="dark"] .table-responsive-rounded .table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

html[data-theme="dark"] .data-table__footer,
html[data-theme="dark"] .table-responsive-rounded > .p-3 {
    background: var(--sisu-canvas-2) !important;
    border-top-color: var(--sisu-border) !important;
    color: var(--sisu-muted);
}

html[data-theme="dark"] .data-table__info {
    color: #ffffff;
}

html[data-theme="dark"] .data-table__pager .page-link {
    background: var(--sisu-card);
    border-color: var(--sisu-border);
    color: var(--sisu-body-text);
}

html[data-theme="dark"] .data-table__pager .page-item.active .page-link {
    background: var(--sisu-sage);
    border-color: var(--sisu-sage);
    color: #fff;
}

html[data-theme="dark"] .data-table__pager .page-item.disabled .page-link {
    background: var(--sisu-canvas-2);
    color: var(--sisu-muted);
}

html[data-theme="dark"] .admin-earnings-chart__empty-title {
    color: var(--sisu-body-text);
}

html[data-theme="dark"] .admin-earnings-chart__empty-hint {
    color: var(--sisu-muted);
}

html[data-theme="dark"] .data-table__empty td:not(:has(.data-table__empty-state)) {
    color: var(--sisu-muted);
    background: var(--sisu-canvas-2) !important;
    border-top-color: var(--sisu-border) !important;
}

html[data-theme="dark"] .data-table__empty-state {
    border-color: rgba(45, 154, 114, 0.3);
    background: linear-gradient(180deg, rgba(45, 154, 114, 0.1) 0%, var(--sisu-canvas-2) 100%);
}

html[data-theme="dark"] .data-table__empty-icon {
    background: rgba(45, 154, 114, 0.2);
    color: var(--sisu-sage);
}

html[data-theme="dark"] .data-table__empty-title {
    color: var(--sisu-body-text);
}

html[data-theme="dark"] .data-table__empty-hint {
    color: var(--sisu-muted);
}

html[data-theme="dark"] .group-contrib-meter__pct {
    color: var(--sisu-body-text);
}

html[data-theme="dark"] .group-contrib-meter__track {
    stroke: var(--sisu-border);
}

html[data-theme="dark"] .group-contrib-analytics__chart-title {
    color: var(--sisu-body-text);
}

html[data-theme="dark"] .group-contrib-card--members .group-contrib-card__head h2,
html[data-theme="dark"] .group-contrib-card--members .group-contrib-card__head .small,
html[data-theme="dark"] .group-contrib-card--members .group-contrib-member-meters .fw-semibold,
html[data-theme="dark"] .group-contrib-card--members .group-contrib-member-meters .fw-bold {
    color: #ffffff;
}

html[data-theme="dark"] .group-contrib-card--members .group-contrib-member-meters .text-muted {
    color: rgba(255, 255, 255, 0.65);
}

html[data-theme="dark"] .member-profile__hero {
    background: linear-gradient(135deg, var(--sisu-card) 0%, var(--sisu-canvas-2) 100%);
}

html[data-theme="dark"] .member-profile__name,
html[data-theme="dark"] .member-profile__meta-value {
    color: var(--sisu-body-text);
}

html[data-theme="dark"] .member-profile__meta-item {
    background: var(--sisu-canvas);
}

html[data-theme="dark"] .member-profile__badge--invited,
html[data-theme="dark"] .member-profile__badge--pending {
    color: #e8c547 !important;
}

html[data-theme="dark"] .member-profile__badge--suspended {
    color: #f0808c !important;
}

html[data-theme="dark"] .account-profile__hero {
    background: linear-gradient(135deg, var(--sisu-card) 0%, var(--sisu-canvas-2) 100%);
}

html[data-theme="dark"] .account-profile__badge--pending {
    color: #e8c547 !important;
}

html[data-theme="dark"] .account-profile__meta-action:hover,
html[data-theme="dark"] .account-profile__meta-action:focus {
    background: rgba(45, 154, 114, 0.12);
}

html[data-theme="dark"] .contributions-table__foot td {
    background: var(--sisu-canvas-2);
}

html[data-theme="dark"] .contributions-table__grand-totals {
    background: linear-gradient(180deg, rgba(45, 154, 114, 0.1) 0%, var(--sisu-canvas-2) 100%);
}

html[data-theme="dark"] .contributions-table__grand-label {
    color: var(--sisu-body-text);
}

html[data-theme="dark"] .group-contribute-modal__ring-pct {
    color: var(--sisu-body-text);
}

html[data-theme="dark"] .group-contribute-modal__hero {
    background: linear-gradient(135deg, rgba(45, 154, 114, 0.15) 0%, var(--sisu-canvas-2) 55%);
}

html[data-theme="dark"] .group-contribute-modal__invoice .table-responsive {
    background: var(--sisu-canvas-2);
}

html[data-theme="dark"] .group-contribute-modal__member-list .group-contribute-modal__member-item.group-contribute-modal__member--selected {
    background: rgba(45, 154, 114, 0.15);
    border-color: rgba(45, 154, 114, 0.4);
    color: var(--sisu-body-text);
}

html[data-theme="dark"] .group-contribute-modal__member-badge {
    background: rgba(45, 154, 114, 0.12);
    color: var(--sisu-sage);
    border-color: rgba(45, 154, 114, 0.35);
}

html[data-theme="dark"] .locations-admin__country-item,
html[data-theme="dark"] .locations-admin__city-item {
    background: var(--sisu-canvas-2);
}

html[data-theme="dark"] .locations-admin__country-item.is-selected {
    background: rgba(45, 154, 114, 0.12);
    border-color: rgba(45, 154, 114, 0.35);
}

html[data-theme="dark"] .dropdown-menu {
    background: var(--sisu-card);
    border-color: var(--sisu-border);
}

html[data-theme="dark"] .dropdown-item {
    color: var(--sisu-body-text);
}

html[data-theme="dark"] .dropdown-item:hover,
html[data-theme="dark"] .dropdown-item:focus {
    background: var(--sisu-canvas-2);
    color: var(--sisu-sage);
}

html[data-theme="dark"] .dropdown-divider {
    border-color: var(--sisu-border);
}

html[data-theme="dark"] .modal-content {
    background: var(--sisu-card);
    color: var(--sisu-body-text);
}

html[data-theme="dark"] .modal-header,
html[data-theme="dark"] .modal-footer {
    border-color: var(--sisu-border);
}

html[data-theme="dark"] .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

html[data-theme="dark"] .auth-link {
    color: var(--sisu-sage);
}

html[data-theme="dark"] .btn-sisu-accent {
    color: #0c2238;
}

html[data-theme="dark"] .theme-toggle--marketing {
    border-color: var(--sisu-border);
    color: var(--sisu-body-text);
}

html[data-theme="dark"] .theme-toggle--marketing:hover {
    background: var(--sisu-canvas-2);
    color: #fff;
}

/* Marketing home & pages: cards and sections follow theme tokens */
html[data-theme="dark"] .explore-sisu-intro h2,
html[data-theme="dark"] .marketing-section .display-6 {
    color: var(--sisu-body-text);
}

html[data-theme="dark"] .app-content .feature-card .display-6,
html[data-theme="dark"] .feature-card__metric {
    color: #7adcb4;
}

html[data-theme="dark"] .stat-tile .value,
html[data-theme="dark"] .group-detail__stat-value {
    color: var(--sisu-navy);
}

html[data-theme="dark"] .nav-card {
    background: var(--sisu-card);
    color: var(--sisu-body-text);
    border-color: var(--sisu-border);
}

html[data-theme="dark"] .nav-card:hover {
    color: var(--sisu-body-text);
    border-color: rgba(45, 154, 114, 0.4);
}

html[data-theme="dark"] .nav-card__title {
    color: var(--sisu-body-text);
}

html[data-theme="dark"] .nav-card__text {
    color: var(--sisu-muted);
}

html[data-theme="dark"] .nav-card__link {
    color: var(--sisu-sage);
}

html[data-theme="dark"] .marketing-content--alt {
    background: var(--sisu-canvas);
}

html[data-theme="dark"] .icon-pill--navy {
    background: rgba(184, 201, 220, 0.16);
    color: var(--sisu-navy-2);
}

html[data-theme="dark"] .cta-band {
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

html[data-theme="dark"] .cta-band::before {
    background: radial-gradient(ellipse 80% 120% at 100% 0%, rgba(45, 154, 114, 0.22) 0%, transparent 55%);
}

/* Area of operation: full section uses theme tokens */
html[data-theme="dark"] .marketing-section--operations {
    color: var(--sisu-body-text);
    background: linear-gradient(
        180deg,
        var(--sisu-canvas-2) 0%,
        var(--sisu-canvas) 42%,
        var(--sisu-chrome) 100%
    );
    --ops-badge-soon-bg: rgba(255, 255, 255, 0.06);
    --ops-badge-soon-color: var(--sisu-muted);
    --ops-badge-soon-border: var(--sisu-border);
}

html[data-theme="dark"] .marketing-section--operations .operations-section__orb--1 {
    opacity: 0.32;
}

html[data-theme="dark"] .marketing-section--operations .operations-section__orb--2 {
    opacity: 0.28;
}

html[data-theme="dark"] .marketing-section--operations .operations-stat {
    background: var(--sisu-card);
    border-color: var(--sisu-border);
}

html[data-theme="dark"] .marketing-section--operations .operations-stat__icon {
    background: rgba(45, 154, 114, 0.14);
    color: var(--sisu-sage);
}

html[data-theme="dark"] .marketing-section--operations .operations-stat:hover {
    border-color: rgba(45, 154, 114, 0.28);
}

html[data-theme="dark"] .marketing-section--operations .operations-carousel-panel {
    background: var(--sisu-card);
    border-color: var(--sisu-border);
}

html[data-theme="dark"] .marketing-section--operations .operations-carousel-panel__footer {
    border-top-color: var(--sisu-border);
}

html[data-theme="dark"] .marketing-section--operations .operations-carousel-panel__footer .auth-link {
    color: var(--sisu-sage);
}

html[data-theme="dark"] .marketing-section--operations .operations-carousel__btn {
    background: var(--sisu-canvas-2);
    color: var(--sisu-heading);
    border-color: var(--sisu-border);
}

html[data-theme="dark"] .marketing-section--operations .operations-carousel__viewport {
    scrollbar-color: rgba(45, 154, 114, 0.45) transparent;
}

html[data-theme="dark"] .marketing-section--operations .operations-carousel__viewport::-webkit-scrollbar-thumb {
    background: rgba(45, 154, 114, 0.45);
}

html[data-theme="dark"] .marketing-section--operations .operations-country-card {
    background: linear-gradient(165deg, var(--sisu-card) 0%, var(--sisu-canvas-2) 100%);
}

html[data-theme="dark"] .marketing-section--operations .operations-country-card.is-active {
    background: linear-gradient(165deg, var(--sisu-card) 0%, rgba(45, 154, 114, 0.14) 100%);
    box-shadow: var(--sisu-shadow-lg), 0 12px 32px var(--sisu-sage-glow);
}

html[data-theme="dark"] .marketing-section--operations .operations-country-card.is-active .operations-country-card__name {
    color: var(--sisu-sage);
}

html[data-theme="dark"] .marketing-section--operations .operations-country-card.is-upcoming {
    opacity: 0.88;
    filter: grayscale(0.25);
}

html[data-theme="dark"] .marketing-section--operations .operations-country-card.is-upcoming:hover {
    opacity: 1;
    box-shadow: var(--sisu-shadow);
}

html[data-theme="dark"] .marketing-section--operations .operations-country-card .operations-badge--live {
    background: rgba(45, 154, 114, 0.2);
    color: #b8f0d4;
    border-color: rgba(72, 180, 140, 0.4);
}

html[data-theme="dark"] .marketing-section--operations .operations-featured {
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.35),
        0 20px 48px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

html[data-theme="dark"] .marketing-section--operations .operations-featured__mesh {
    opacity: 0.22;
}

html[data-theme="dark"] .marketing-section--operations .operations-featured__glow {
    background: radial-gradient(circle, rgba(45, 154, 114, 0.35) 0%, transparent 68%);
}

html[data-theme="dark"] .marketing-section--operations .operations-featured__flag-wrap {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] .marketing-section--operations .operations-featured .operations-badge--live {
    background: rgba(45, 154, 114, 0.22);
    color: #b8f0d4;
    border-color: rgba(72, 180, 140, 0.4);
}

html[data-theme="dark"] .marketing-section--operations .operations-featured__cta {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

/* Member documents: Quill rich text editor (toolbar is sibling inside .member-documents__editor-wrap) */
html[data-theme="dark"] .member-documents__editor-wrap {
    border-color: var(--sisu-border);
    background: var(--sisu-card);
}

html[data-theme="dark"] .member-documents__editor-wrap .ql-toolbar.ql-snow {
    border-color: var(--sisu-border);
    background: var(--sisu-canvas-2);
}

html[data-theme="dark"] .member-documents__editor-wrap .ql-container.ql-snow {
    background: var(--sisu-input-bg);
    color: var(--sisu-body-text);
}

html[data-theme="dark"] .member-documents__editor-wrap .ql-editor {
    color: var(--sisu-body-text);
}

html[data-theme="dark"] .member-documents__editor-wrap .ql-editor.ql-blank::before {
    color: var(--sisu-muted);
}

html[data-theme="dark"] .member-documents__editor-wrap .ql-snow .ql-stroke {
    stroke: #fff;
}

html[data-theme="dark"] .member-documents__editor-wrap .ql-snow .ql-fill {
    fill: #fff;
}

html[data-theme="dark"] .member-documents__editor-wrap .ql-snow .ql-picker {
    color: #fff;
}

html[data-theme="dark"] .member-documents__editor-wrap .ql-snow .ql-picker-label {
    color: #fff;
}

html[data-theme="dark"] .member-documents__editor-wrap .ql-snow .ql-picker-label::before {
    color: #fff;
}

html[data-theme="dark"] .member-documents__editor-wrap .ql-snow .ql-picker-label:hover {
    color: #fff;
}

html[data-theme="dark"] .member-documents__editor-wrap .ql-snow .ql-picker-options {
    background: var(--sisu-card);
    border-color: var(--sisu-border);
}

html[data-theme="dark"] .member-documents__editor-wrap .ql-snow .ql-picker-item {
    color: var(--sisu-body-text);
}

html[data-theme="dark"] .member-documents__editor-wrap .ql-snow .ql-picker-item:hover {
    color: #fff;
    background: var(--sisu-chrome-hover-bg);
}

html[data-theme="dark"] .member-documents__editor-wrap .ql-snow.ql-toolbar button {
    color: #fff;
}

html[data-theme="dark"] .member-documents__editor-wrap .ql-snow.ql-toolbar button:hover,
html[data-theme="dark"] .member-documents__editor-wrap .ql-snow.ql-toolbar button:focus,
html[data-theme="dark"] .member-documents__editor-wrap .ql-snow.ql-toolbar button.ql-active {
    color: #fff;
}

html[data-theme="dark"] .member-documents__editor-wrap .ql-snow.ql-toolbar button:hover .ql-stroke,
html[data-theme="dark"] .member-documents__editor-wrap .ql-snow.ql-toolbar button:focus .ql-stroke,
html[data-theme="dark"] .member-documents__editor-wrap .ql-snow.ql-toolbar button.ql-active .ql-stroke,
html[data-theme="dark"] .member-documents__editor-wrap .ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke,
html[data-theme="dark"] .member-documents__editor-wrap .ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke,
html[data-theme="dark"] .member-documents__editor-wrap .ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke,
html[data-theme="dark"] .member-documents__editor-wrap .ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke {
    stroke: #fff;
}

html[data-theme="dark"] .member-documents__editor-wrap .ql-snow.ql-toolbar button:hover .ql-fill,
html[data-theme="dark"] .member-documents__editor-wrap .ql-snow.ql-toolbar button:focus .ql-fill,
html[data-theme="dark"] .member-documents__editor-wrap .ql-snow.ql-toolbar button.ql-active .ql-fill,
html[data-theme="dark"] .member-documents__editor-wrap .ql-snow.ql-toolbar .ql-picker-label:hover .ql-fill,
html[data-theme="dark"] .member-documents__editor-wrap .ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-fill,
html[data-theme="dark"] .member-documents__editor-wrap .ql-snow.ql-toolbar .ql-picker-item:hover .ql-fill,
html[data-theme="dark"] .member-documents__editor-wrap .ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-fill {
    fill: #fff;
}

html[data-theme="dark"] .member-documents__preview-body {
    color: var(--sisu-body-text);
}

html[data-theme="dark"] .member-documents__preview-body a {
    color: var(--sisu-sage);
}

html[data-theme="dark"] .cookie-consent__inner {
    background: var(--sisu-card);
    border-color: var(--sisu-border);
    box-shadow: var(--sisu-shadow-lg);
}

html[data-theme="dark"] .cookie-consent__title {
    color: var(--sisu-navy);
}

html[data-theme="dark"] .cookie-consent__text {
    color: var(--sisu-muted);
}

html[data-theme="dark"] .legal-prose p,
html[data-theme="dark"] .legal-prose li {
    color: var(--sisu-muted);
}

html[data-theme="dark"] .legal-prose__notice {
    background: rgba(45, 154, 114, 0.12);
    border-color: rgba(45, 154, 114, 0.22);
    color: var(--sisu-muted);
}
