/**
 * BrainConex Dark-Theme – System-weite Overrides fuer alle BrainConex-Module.
 *
 * Wird nur aktiv, wenn <html data-scp-theme="dark"> gesetzt ist. Das Attribut
 * setzt PlatformLayoutElement (Theme-Toggle) oder das Early-Head-Script.
 *
 * Light-Mode bleibt unberuehrt – alle Regeln hier sind Dark-only Overrides.
 */

/* ============================================================
 * 1. Root-Hintergrund & generischer Body
 * ============================================================ */
html[data-scp-theme="dark"] {
    color-scheme: dark;
}
html[data-scp-theme="dark"] body {
    background-color: #0b1220;
    color: #e5e7eb;
}

/* ============================================================
 * 1b. Plattform-Shell (Sidebar + Layout) — Tutor-ähnlich, ohne Verläufe
 * Sidebar und Inhalt in derselben dunklen Navy-Familie.
 * !important: überschreibt ggf. gespeicherte Brand-Blau-Sidebar-Farben im Dark Mode.
 * ============================================================ */
html[data-scp-theme="dark"] .smartcore-platform-layout,
.smartcore-platform-layout[data-scp-theme="dark"] {
    background-color: #0b1220;
    --scp-sidebar-from: #0f172a;
    --scp-sidebar-to: #0f172a;
    --scp-content-bg: #0f172a;
    --scp-surface: #111827;
    --scp-surface-border: #1f2937;
}
html[data-scp-theme="dark"] .smartcore-platform-layout .scp-layout-body,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-layout-body {
    gap: 0;
    background-color: #0b1220;
}
html[data-scp-theme="dark"] .smartcore-platform-layout .scp-layout-sidebar,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-layout-sidebar {
    background-color: #0f172a !important;
    background-image: none !important;
    border-right: 1px solid #1f2937;
}
html[data-scp-theme="dark"] .smartcore-platform-layout .scp-layout-content,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-layout-content {
    background-color: #0f172a !important;
    background-image: none !important;
    border-color: #1f2937;
}
html[data-scp-theme="dark"] .smartcore-platform-layout .scp-topbar,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-topbar {
    background-color: #111827;
    border-color: #1f2937;
}

/* ============================================================
 * 2. BrainConex Referrals (.scr-*)
 * ============================================================ */
html[data-scp-theme="dark"] .scr-ref-dash,
html[data-scp-theme="dark"] .scr-campaign-content,
html[data-scp-theme="dark"] .scr-ref-dash .scr-form-section,
html[data-scp-theme="dark"] .scr-ref-dash .scr-basics-card,
html[data-scp-theme="dark"] .scr-ref-dash .scr-flow-card,
html[data-scp-theme="dark"] .scr-ref-dash .scr-flow-preview,
html[data-scp-theme="dark"] .scr-ref-dash .scr-field-row,
html[data-scp-theme="dark"] .scr-ref-dash .scr-tabs,
html[data-scp-theme="dark"] .scr-ref-dash .scr-activity,
html[data-scp-theme="dark"] .scr-ref-dash .scr-preview-card {
    background-color: #111827;
    color: #e5e7eb;
    border-color: #1f2937;
}
html[data-scp-theme="dark"] .scr-ref-dash .scr-basics-card__head {
    background: #1e293b;
    border-color: #1f2937;
}
html[data-scp-theme="dark"] .scr-ref-dash .scr-basics-card__title,
html[data-scp-theme="dark"] .scr-ref-dash h2,
html[data-scp-theme="dark"] .scr-ref-dash h3,
html[data-scp-theme="dark"] .scr-ref-dash h4 {
    color: #f1f5f9;
}
html[data-scp-theme="dark"] .scr-ref-dash .scr-basics-card__sub,
html[data-scp-theme="dark"] .scr-ref-dash .scr-field-hint,
html[data-scp-theme="dark"] .scr-ref-dash .scr-flow-card__footer,
html[data-scp-theme="dark"] .scr-ref-dash .scr-flow-preview__empty {
    color: #94a3b8;
}
html[data-scp-theme="dark"] .scr-ref-dash .scr-flow-card__head {
    background: #1e3a8a;
    border-color: #1f2937;
}
html[data-scp-theme="dark"] .scr-ref-dash .scr-flow-card__divider {
    color: #64748b;
    border-color: #334155;
}
html[data-scp-theme="dark"] .scr-ref-dash .scr-flow-card__footer {
    background-color: #0f172a;
    border-color: #1f2937;
}
html[data-scp-theme="dark"] .scr-ref-dash .scr-flow-preview {
    box-shadow: 0 1px 2px rgba(0, 0, 0, .35) inset;
    background-color: #0f172a;
}
html[data-scp-theme="dark"] .scr-ref-dash .scr-flow-block {
    background-color: #111827;
    border-color: #1f2937;
}
html[data-scp-theme="dark"] .scr-ref-dash .scr-flow-block__head {
    background-color: #1e293b;
    border-color: #1f2937;
}
html[data-scp-theme="dark"] .scr-ref-dash .scr-flow-block__label,
html[data-scp-theme="dark"] .scr-ref-dash .scr-flow-block__edit {
    color: #e5e7eb;
}
html[data-scp-theme="dark"] .scr-ref-dash .scr-flow-block__edit:focus {
    background-color: #0f172a;
    box-shadow: 0 0 0 2px #3b82f6;
}
html[data-scp-theme="dark"] .scr-ref-dash .scr-flow-block__edit:empty::before {
    color: #64748b;
}
html[data-scp-theme="dark"] .scr-ref-dash .scr-flow-chip {
    background-color: #1f2937;
    border-color: #334155;
    color: #cbd5e1;
}
html[data-scp-theme="dark"] .scr-ref-dash .scr-flow-chip:hover {
    background-color: #1e3a8a;
    border-color: #3b82f6;
    color: #bfdbfe;
}
html[data-scp-theme="dark"] .scr-ref-dash input[type="text"],
html[data-scp-theme="dark"] .scr-ref-dash input[type="url"],
html[data-scp-theme="dark"] .scr-ref-dash input[type="email"],
html[data-scp-theme="dark"] .scr-ref-dash input[type="number"],
html[data-scp-theme="dark"] .scr-ref-dash input[type="search"],
html[data-scp-theme="dark"] .scr-ref-dash input[type="date"],
html[data-scp-theme="dark"] .scr-ref-dash input[type="datetime-local"],
html[data-scp-theme="dark"] .scr-ref-dash textarea,
html[data-scp-theme="dark"] .scr-ref-dash select,
html[data-scp-theme="dark"] .scr-ref-dash .scr-flow-block__input {
    background-color: #0f172a;
    color: #e5e7eb;
    border-color: #334155;
}
html[data-scp-theme="dark"] .scr-ref-dash input:focus,
html[data-scp-theme="dark"] .scr-ref-dash textarea:focus,
html[data-scp-theme="dark"] .scr-ref-dash select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px #1e3a8a;
    outline: none;
}
html[data-scp-theme="dark"] .scr-ref-dash table {
    background-color: #111827;
    color: #e5e7eb;
}
html[data-scp-theme="dark"] .scr-ref-dash table th {
    background-color: #1e293b;
    color: #e5e7eb;
    border-color: #1f2937;
}
html[data-scp-theme="dark"] .scr-ref-dash table td {
    border-color: #1f2937;
}
html[data-scp-theme="dark"] .scr-ref-dash .scr-pill,
html[data-scp-theme="dark"] .scr-ref-dash .scr-activity__tone {
    background-color: #1f2937;
    color: #cbd5e1;
}
html[data-scp-theme="dark"] .scr-ref-dash .scr-dash-save-bar {
    background-color: #111827;
    border-color: #1f2937;
}

/* ============================================================
 * 3. BrainConex Dealmaker (.dlm-*) – Dashboard & Public
 * ============================================================ */
html[data-scp-theme="dark"] .dlm-dash,
html[data-scp-theme="dark"] .dlm-shell,
html[data-scp-theme="dark"] .dlm-storefront-outer,
html[data-scp-theme="dark"] .dlm-pool {
    background-color: transparent;
    color: #e5e7eb;
}
html[data-scp-theme="dark"] .dlm-dropzone {
    background-color: #0f172a;
    border-color: #334155;
}
html[data-scp-theme="dark"] .dlm-dropzone:hover,
html[data-scp-theme="dark"] .dlm-dropzone:focus-within {
    background-color: #1e293b;
    border-color: #64748b;
}
html[data-scp-theme="dark"] .dlm-dropzone.dlm-dropzone--is-dragover {
    background-color: #1e3a8a;
    border-color: #3b82f6;
}
html[data-scp-theme="dark"] .dlm-dropzone__text {
    color: #94a3b8;
}
html[data-scp-theme="dark"] .dlm-stat-card,
html[data-scp-theme="dark"] .dlm-card,
html[data-scp-theme="dark"] .dlm-tile,
html[data-scp-theme="dark"] .dlm-panel,
html[data-scp-theme="dark"] .dlm-box,
html[data-scp-theme="dark"] .dlm-section {
    background-color: #111827;
    color: #e5e7eb;
    border-color: #1f2937;
}
html[data-scp-theme="dark"] .dlm-tile:hover {
    background-color: #1e293b;
}
html[data-scp-theme="dark"] .dlm-header,
html[data-scp-theme="dark"] .dlm-subheader {
    background-color: transparent;
    color: #f1f5f9;
}
html[data-scp-theme="dark"] .dlm-sub,
html[data-scp-theme="dark"] .dlm-muted,
html[data-scp-theme="dark"] .dlm-hint {
    color: #94a3b8;
}
html[data-scp-theme="dark"] .dlm-dash input[type="text"],
html[data-scp-theme="dark"] .dlm-dash input[type="url"],
html[data-scp-theme="dark"] .dlm-dash input[type="email"],
html[data-scp-theme="dark"] .dlm-dash input[type="number"],
html[data-scp-theme="dark"] .dlm-dash input[type="search"],
html[data-scp-theme="dark"] .dlm-dash textarea,
html[data-scp-theme="dark"] .dlm-dash select,
html[data-scp-theme="dark"] .dlm-shell input[type="text"],
html[data-scp-theme="dark"] .dlm-shell input[type="email"],
html[data-scp-theme="dark"] .dlm-shell input[type="number"],
html[data-scp-theme="dark"] .dlm-shell textarea,
html[data-scp-theme="dark"] .dlm-shell select {
    background-color: #0f172a;
    color: #e5e7eb;
    border-color: #334155;
}
html[data-scp-theme="dark"] .dlm-grid .dlm-tile {
    background-color: #111827;
}
html[data-scp-theme="dark"] .dlm-builder-preview-banner {
    background-color: #1e3a8a;
    color: #e5e7eb;
    border-color: #3b82f6;
}

/* ============================================================
 * 3b. Mandanten-Einstellungen (Hub + Unterseiten, Inline-Styles in PHP)
 * ============================================================ */
html[data-scp-theme="dark"] .smartcore-settings-hub,
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-settings-hub {
    color: #e5e7eb;
}
html[data-scp-theme="dark"] .smartcore-settings-hub__hero,
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-settings-hub__hero {
    border-bottom-color: #334155;
}
html[data-scp-theme="dark"] .smartcore-settings-hub__title,
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-settings-hub__title {
    color: #f1f5f9;
}
html[data-scp-theme="dark"] .smartcore-settings-hub__lead,
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-settings-hub__lead {
    color: #cbd5e1;
}
html[data-scp-theme="dark"] .smartcore-settings-hub__card,
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-settings-hub__card {
    background-color: #111827;
    border-color: #334155;
    color: #e5e7eb;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}
html[data-scp-theme="dark"] .smartcore-settings-hub__card:hover,
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-settings-hub__card:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.22);
}
html[data-scp-theme="dark"] .smartcore-settings-hub__card--disabled,
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-settings-hub__card--disabled {
    background-color: #0f172a;
    border-color: #475569;
    color: #94a3b8;
}
html[data-scp-theme="dark"] .smartcore-settings-hub__card-title,
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-settings-hub__card-title {
    color: #bfdbfe;
}
html[data-scp-theme="dark"] .smartcore-settings-hub__card-desc,
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-settings-hub__card-desc {
    color: #94a3b8;
}
html[data-scp-theme="dark"] .smartcore-settings-hub__card-hint,
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-settings-hub__card-hint {
    color: #64748b;
}
html[data-scp-theme="dark"] .smartcore-settings-hub__back-link,
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-settings-hub__back-link {
    color: #93c5fd;
}
html[data-scp-theme="dark"] .smartcore-settings-hub__muted,
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-settings-hub__muted {
    color: #94a3b8;
}
html[data-scp-theme="dark"] .smartcore-cm-master {
    color: #e5e7eb;
}
html[data-scp-theme="dark"] .smartcore-cm-master__hero--edit {
    border-bottom-color: #334155;
}
html[data-scp-theme="dark"] .smartcore-cm-master__title--edit {
    color: #f1f5f9;
}
html[data-scp-theme="dark"] .smartcore-cm-master__meta {
    color: #94a3b8;
}
html[data-scp-theme="dark"] .smartcore-cm-master__msg--ok {
    background-color: #064e3b;
    color: #d1fae5;
    border-color: #059669;
}
html[data-scp-theme="dark"] .smartcore-cm-master__msg--err {
    background-color: #7f1d1d;
    color: #fecaca;
    border-color: #b91c1c;
}
html[data-scp-theme="dark"] .smartcore-cm-master__card--edit {
    border-color: #334155;
    background: #111827;
    box-shadow: none;
}
html[data-scp-theme="dark"] .smartcore-cm-master__label {
    color: #94a3b8;
}
html[data-scp-theme="dark"] .smartcore-cm-master__control {
    background-color: #0f172a;
    border-color: #334155;
    color: #e5e7eb;
}
html[data-scp-theme="dark"] .smartcore-cm-master__bar {
    border-top-color: #334155;
    background: rgba(15, 23, 42, 0.92);
}
html[data-scp-theme="dark"] .smartcore-cm-master__muted {
    color: #94a3b8;
}
html[data-scp-theme="dark"] .smartcore-cm-master__logo-drop {
    border-color: #475569;
    background-color: #0f172a;
}
html[data-scp-theme="dark"] .smartcore-cm-master__logo-preview img {
    border-color: #334155;
    background-color: #111827;
}
html[data-scp-theme="dark"] .smartcore-cm-master__logo-drop-hint {
    color: #94a3b8;
}
html[data-scp-theme="dark"] .smartcore-cm-master__btn--ghost {
    border-color: #334155;
    background-color: #1e293b;
    color: #e5e7eb;
}
html[data-scp-theme="dark"] .smartcore-cm-master__btn--ghost:hover {
    border-color: #475569;
    background-color: #334155;
}
html[data-scp-theme="dark"] .smartcore-ca {
    color: #e5e7eb;
}
html[data-scp-theme="dark"] .smartcore-ca__hero,
html[data-scp-theme="dark"] .smartcore-ca__hero--edit {
    border-bottom-color: #334155;
}
html[data-scp-theme="dark"] .smartcore-ca__title,
html[data-scp-theme="dark"] .smartcore-ca__title--edit {
    color: #f1f5f9;
}
html[data-scp-theme="dark"] .smartcore-ca__lead,
html[data-scp-theme="dark"] .smartcore-ca__meta,
html[data-scp-theme="dark"] .smartcore-ca__muted,
html[data-scp-theme="dark"] .smartcore-ca__sub {
    color: #94a3b8;
}
html[data-scp-theme="dark"] .smartcore-ca-msg--ok {
    background-color: #064e3b;
    color: #d1fae5;
    border-color: #059669;
}
html[data-scp-theme="dark"] .smartcore-ca-msg--err {
    background-color: #7f1d1d;
    color: #fecaca;
    border-color: #b91c1c;
}
html[data-scp-theme="dark"] .smartcore-ca__tablewrap {
    border-color: #334155;
    background-color: #111827;
}
html[data-scp-theme="dark"] .smartcore-ca__table th {
    background-color: #0f172a;
    color: #94a3b8;
    border-bottom-color: #334155;
}
html[data-scp-theme="dark"] .smartcore-ca__table td {
    border-bottom-color: #334155;
    color: #e5e7eb;
}
html[data-scp-theme="dark"] .smartcore-ca__card,
html[data-scp-theme="dark"] .smartcore-ca__card--edit {
    background: #111827;
    border-color: #334155;
    box-shadow: none;
}
html[data-scp-theme="dark"] .smartcore-ca__label {
    color: #cbd5e1;
}
html[data-scp-theme="dark"] .smartcore-ca__input,
html[data-scp-theme="dark"] .smartcore-ca__control {
    background-color: #0f172a;
    border-color: #334155;
    color: #e5e7eb;
}
html[data-scp-theme="dark"] .smartcore-ca__readonly {
    color: #e5e7eb;
    background-color: #0f172a;
    border-color: #475569;
}
html[data-scp-theme="dark"] .smartcore-ca__hint,
html[data-scp-theme="dark"] .smartcore-ca__optional {
    color: #94a3b8;
}
html[data-scp-theme="dark"] .smartcore-ca__bar {
    border-top-color: #334155;
    background: rgba(15, 23, 42, 0.92);
}
html[data-scp-theme="dark"] .smartcore-ca__btn {
    background-color: #1e293b;
    border-color: #334155;
    color: #e5e7eb;
}
html[data-scp-theme="dark"] .smartcore-ca__btn--primary {
    background-color: #2563eb;
    border-color: #2563eb;
    color: #fff;
}
html[data-scp-theme="dark"] .smartcore-ca__btn--primary:hover {
    background-color: #1d4ed8;
}
html[data-scp-theme="dark"] .smartcore-ca__btn--ghost {
    background-color: transparent;
    color: #94a3b8;
}
html[data-scp-theme="dark"] .smartcore-ca__btn--ghost:hover {
    background-color: #334155;
    color: #e5e7eb;
}
html[data-scp-theme="dark"] .smartcore-ca__link,
html[data-scp-theme="dark"] .smartcore-ca__linkbtn {
    color: #93c5fd;
}
html[data-scp-theme="dark"] .smartcore-ca__linkbtn--danger,
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-ca__linkbtn--danger {
    color: #f87171;
}
html[data-scp-theme="dark"] .smartcore-ca__quota,
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-ca__quota {
    background: #111827;
    border-color: #334155;
    color: #e5e7eb;
}
html[data-scp-theme="dark"] .smartcore-ca__quota-title,
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-ca__quota-title {
    color: #f1f5f9;
}
html[data-scp-theme="dark"] .smartcore-ca__quota-list,
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-ca__quota-list {
    color: #cbd5e1;
}
html[data-scp-theme="dark"] .smartcore-ca__quota-hint,
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-ca__quota-hint {
    color: #94a3b8;
}
html[data-scp-theme="dark"] .smartcore-ca__quota-hint a,
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-ca__quota-hint a {
    color: #93c5fd;
}
html[data-scp-theme="dark"] .smartcore-ca__btn--outline-primary,
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-ca__btn--outline-primary {
    background: #1e293b;
    border-color: #3b82f6;
    color: #93c5fd;
}
html[data-scp-theme="dark"] .smartcore-ca__btn--outline-primary:hover,
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-ca__btn--outline-primary:hover {
    background: #1e3a5f;
    border-color: #60a5fa;
    color: #bfdbfe;
}
html[data-scp-theme="dark"] .smartcore-subs--edit {
    color: #e5e7eb;
}
html[data-scp-theme="dark"] .smartcore-subs__hero--edit {
    border-bottom-color: #334155;
}
html[data-scp-theme="dark"] .smartcore-subs__title--edit {
    color: #f1f5f9;
}
html[data-scp-theme="dark"] .smartcore-subs__meta,
html[data-scp-theme="dark"] .smartcore-subs__muted {
    color: #94a3b8;
}
html[data-scp-theme="dark"] .smartcore-subs__quota-deeplink,
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-subs__quota-deeplink {
    border-color: #336699;
    background: #111827;
    box-shadow: none;
}
html[data-scp-theme="dark"] .smartcore-subs__quota-deeplink-eyebrow,
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-subs__quota-deeplink-eyebrow {
    color: #93c5fd;
}
html[data-scp-theme="dark"] .smartcore-subs__quota-deeplink-title,
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-subs__quota-deeplink-title {
    color: #f1f5f9;
}
html[data-scp-theme="dark"] .smartcore-subs__quota-deeplink-text,
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-subs__quota-deeplink-text {
    color: #cbd5e1;
}
html[data-scp-theme="dark"] .smartcore-subs__commerce-admin-diag,
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-subs__commerce-admin-diag {
    border-color: #475569;
    background: #111827;
    color: #cbd5e1;
}
html[data-scp-theme="dark"] .smartcore-subs__commerce-admin-diag-title,
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-subs__commerce-admin-diag-title {
    color: #f1f5f9;
}
html[data-scp-theme="dark"] .smartcore-subs__commerce-admin-diag-k,
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-subs__commerce-admin-diag-k {
    color: #94a3b8;
}
html[data-scp-theme="dark"] .smartcore-subs__commerce-admin-diag-a,
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-subs__commerce-admin-diag-a {
    color: #93c5fd;
}
html[data-scp-theme="dark"] .smartcore-subs-msg--ok {
    background-color: #064e3b;
    color: #d1fae5;
    border-color: #059669;
}
html[data-scp-theme="dark"] .smartcore-subs-msg--err {
    background-color: #7f1d1d;
    color: #fecaca;
    border-color: #b91c1c;
}
html[data-scp-theme="dark"] .smartcore-subs__card--edit {
    background: #111827;
    border-color: #334155;
    box-shadow: none;
}
html[data-scp-theme="dark"] .smartcore-subs__h2 {
    background-color: #0f172a;
    border-bottom-color: #334155;
    color: #94a3b8;
}
html[data-scp-theme="dark"] .smartcore-subs__modcard {
    background-color: #111827;
    border-color: #334155;
}
html[data-scp-theme="dark"] .smartcore-subs__modslug {
    color: #64748b;
}
html[data-scp-theme="dark"] .smartcore-subs__table th,
html[data-scp-theme="dark"] .smartcore-subs__table td {
    border-bottom-color: #334155;
    color: #e5e7eb;
}
html[data-scp-theme="dark"] .smartcore-subs__table th {
    background-color: #0f172a;
    color: #94a3b8;
}
html[data-scp-theme="dark"] .smartcore-subs__reason {
    background-color: #0f172a;
    border-color: #334155;
    color: #e5e7eb;
}
html[data-scp-theme="dark"] .smartcore-subs__btn {
    background-color: #1e293b;
    border-color: #334155;
    color: #e5e7eb;
}
html[data-scp-theme="dark"] .smartcore-subs__btn--primary {
    background-color: #2563eb;
    border-color: #2563eb;
    color: #fff;
    box-shadow: 0 1px 2px rgba(37, 99, 235, 0.35);
}
html[data-scp-theme="dark"] .smartcore-subs__btn--primary:hover {
    background-color: #1d4ed8;
}
html[data-scp-theme="dark"] .smartcore-subs__btn--ghost {
    border-color: #334155;
    color: #e5e7eb;
}
html[data-scp-theme="dark"] .smartcore-subs__btn--ghost:hover {
    background-color: #334155;
}
html[data-scp-theme="dark"] .smartcore-subs__btn--danger {
    background-color: #450a0a;
    border-color: #991b1b;
    color: #fecaca;
}
html[data-scp-theme="dark"] .smartcore-subs__btn--danger:hover {
    background-color: #7f1d1d;
}
html[data-scp-theme="dark"] .smartcore-subs__bookrow {
    border-bottom-color: #334155;
}
html[data-scp-theme="dark"] .smartcore-subs__booktitle {
    color: #e5e7eb;
}
html[data-scp-theme="dark"] .smartcore-subs__foot {
    color: #64748b;
}

/*
 * Mandanten-Hub «Bestellungen & Module» / Nutzungs-Limits: innere weisse Panels
 * (.smartcore-subs__dash-panel, Abo-Karten, …) + gleiche Regeln wenn nur
 * .smartcore-platform-layout[data-scp-theme="dark"] gesetzt ist.
 */
html[data-scp-theme="dark"] .smartcore-subs--edit,
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-subs--edit {
    color: #e5e7eb;
}
html[data-scp-theme="dark"] .smartcore-subs__h3,
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-subs__h3 {
    color: #f1f5f9;
}
html[data-scp-theme="dark"] .smartcore-subs__dash-panel,
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-subs__dash-panel {
    background: #1e293b;
    border-color: #334155;
}
html[data-scp-theme="dark"] .smartcore-subs__dash-hint,
html[data-scp-theme="dark"] .smartcore-subs__dash-hint--compact,
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-subs__dash-hint,
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-subs__dash-hint--compact {
    color: #94a3b8;
}
html[data-scp-theme="dark"] .smartcore-subs__team-row,
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-subs__team-row {
    background: #111827;
    border-color: #334155;
}
html[data-scp-theme="dark"] .smartcore-subs__team-row.is-extra,
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-subs__team-row.is-extra {
    background: #172554;
    border-color: #1d4ed8;
}
html[data-scp-theme="dark"] .smartcore-subs__team-meta,
html[data-scp-theme="dark"] .smartcore-subs__team-orders,
html[data-scp-theme="dark"] .smartcore-subs__team-cost,
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-subs__team-meta,
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-subs__team-orders,
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-subs__team-cost {
    color: #94a3b8;
}
html[data-scp-theme="dark"] .smartcore-subs__team-cost,
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-subs__team-cost {
    color: #93c5fd;
}
html[data-scp-theme="dark"] .smartcore-subs__qcard-cost,
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-subs__qcard-cost {
    color: #93c5fd;
}
html[data-scp-theme="dark"] .smartcore-subs__qcard-cost--missing,
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-subs__qcard-cost--missing {
    color: #fbbf24;
}
html[data-scp-theme="dark"] .scp-bill-snap,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-bill-snap {
    background: linear-gradient(180deg, #172554 0%, #0f172a 56px);
    border-color: #1e3a8a;
}
html[data-scp-theme="dark"] .scp-bill-snap__title,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-bill-snap__title {
    color: #f1f5f9;
}
html[data-scp-theme="dark"] .scp-bill-snap__lead,
html[data-scp-theme="dark"] .scp-bill-snap__section-lead,
html[data-scp-theme="dark"] .scp-bill-snap__hint,
html[data-scp-theme="dark"] .scp-bill-snap__muted,
html[data-scp-theme="dark"] .scp-bill-snap__card-meta,
html[data-scp-theme="dark"] .scp-bill-snap__kpi-hint,
html[data-scp-theme="dark"] .scp-bill-snap__per,
html[data-scp-theme="dark"] .scp-bill-snap__unit,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-bill-snap__lead,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-bill-snap__section-lead,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-bill-snap__hint,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-bill-snap__muted,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-bill-snap__card-meta,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-bill-snap__kpi-hint,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-bill-snap__per,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-bill-snap__unit {
    color: #94a3b8;
}
html[data-scp-theme="dark"] .scp-bill-snap__h3,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-bill-snap__h3 {
    color: #93c5fd;
}
html[data-scp-theme="dark"] .scp-bill-snap__kpi,
html[data-scp-theme="dark"] .scp-bill-snap__card,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-bill-snap__kpi,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-bill-snap__card {
    background: #111827;
    border-color: #334155;
}
html[data-scp-theme="dark"] .scp-bill-snap__kpi.is-total,
html[data-scp-theme="dark"] .scp-bill-snap__card.is-extra,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-bill-snap__kpi.is-total,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-bill-snap__card.is-extra {
    background: #172554;
    border-color: #1d4ed8;
}
html[data-scp-theme="dark"] .scp-bill-snap__kpi-label,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-bill-snap__kpi-label {
    color: #94a3b8;
}
html[data-scp-theme="dark"] .scp-bill-snap__kpi-value,
html[data-scp-theme="dark"] .scp-bill-snap__card-title,
html[data-scp-theme="dark"] .scp-bill-snap__price,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-bill-snap__kpi-value,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-bill-snap__card-title,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-bill-snap__price {
    color: #f8fafc;
}
html[data-scp-theme="dark"] .scp-bill-snap__price--incl,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-bill-snap__price--incl {
    color: #6ee7b7;
}
html[data-scp-theme="dark"] .scp-bill-snap__price--missing,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-bill-snap__price--missing {
    color: #fbbf24;
}
html[data-scp-theme="dark"] .scp-bill-snap__bar,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-bill-snap__bar {
    background: #334155;
}
html[data-scp-theme="dark"] .smartcore-subs__abo-card,
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-subs__abo-card {
    background: #111827;
    border-color: #334155;
}
html[data-scp-theme="dark"] .smartcore-subs__order-card,
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-subs__order-card {
    background: #111827;
    border-color: #334155;
}
html[data-scp-theme="dark"] .smartcore-subs__order-card.is-operator,
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-subs__order-card.is-operator {
    background: #172554;
    border-color: #1d4ed8;
}
html[data-scp-theme="dark"] .smartcore-subs__order-card-title,
html[data-scp-theme="dark"] .smartcore-subs__order-card-amt,
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-subs__order-card-title,
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-subs__order-card-amt {
    color: #f8fafc;
}
html[data-scp-theme="dark"] .smartcore-subs__order-card-meta,
html[data-scp-theme="dark"] .smartcore-subs__order-card-ref,
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-subs__order-card-meta,
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-subs__order-card-ref {
    color: #94a3b8;
}
html[data-scp-theme="dark"] .smartcore-subs__order-card-st--done,
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-subs__order-card-st--done {
    background: #064e3b;
    color: #6ee7b7;
}
html[data-scp-theme="dark"] .smartcore-subs__order-card-st--pending,
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-subs__order-card-st--pending {
    background: #451a03;
    color: #fcd34d;
}
html[data-scp-theme="dark"] .smartcore-subs__order-card-st--operator,
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-subs__order-card-st--operator {
    background: #1e3a8a;
    color: #93c5fd;
}
html[data-scp-theme="dark"] .smartcore-subs__abo-card--archive,
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-subs__abo-card--archive {
    background: #0f172a;
    border-color: #475569;
}
html[data-scp-theme="dark"] .smartcore-subs__abo-card-dates,
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-subs__abo-card-dates {
    color: #94a3b8;
}
html[data-scp-theme="dark"] .smartcore-subs__abo-card-lab,
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-subs__abo-card-lab {
    color: #64748b;
}
html[data-scp-theme="dark"] .smartcore-subs__abo-card-badge,
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-subs__abo-card-badge {
    background: #334155;
    color: #cbd5e1;
}
html[data-scp-theme="dark"] .smartcore-subs__pill,
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-subs__pill {
    background: #1e3a5f;
    color: #93c5fd;
}
html[data-scp-theme="dark"] .smartcore-subs__pill--muted,
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-subs__pill--muted {
    background: #334155;
    color: #cbd5e1;
}
html[data-scp-theme="dark"] .smartcore-subs__backlink,
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-subs__backlink {
    color: #93c5fd;
}
html[data-scp-theme="dark"] .smartcore-subs__detail-card,
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-subs__detail-card {
    background: #111827;
    border-color: #334155;
}
html[data-scp-theme="dark"] .smartcore-subs__detail-head,
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-subs__detail-head {
    border-bottom-color: #334155;
}
html[data-scp-theme="dark"] .smartcore-subs__detail-title,
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-subs__detail-title {
    color: #f1f5f9;
}
html[data-scp-theme="dark"] .smartcore-subs__detail-hint,
html[data-scp-theme="dark"] .smartcore-subs__hint,
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-subs__detail-hint,
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-subs__hint {
    color: #94a3b8;
}
html[data-scp-theme="dark"] .smartcore-subs__detail-block,
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-subs__detail-block {
    background: #0f172a;
    border-color: #334155;
}
html[data-scp-theme="dark"] .smartcore-subs__detail-block--admin,
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-subs__detail-block--admin {
    background: #3b1e0a;
    border-color: #9a3412;
}
html[data-scp-theme="dark"] .smartcore-subs__detail-h3,
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-subs__detail-h3 {
    color: #e5e7eb;
}
html[data-scp-theme="dark"] .smartcore-subs__detail-label-txt,
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-subs__detail-label-txt {
    color: #94a3b8;
}
html[data-scp-theme="dark"] .smartcore-subs__qcard,
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-subs__qcard {
    background: #111827;
    border-color: #334155;
}
html[data-scp-theme="dark"] .smartcore-subs__qcard-headline,
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-subs__qcard-headline {
    color: #f1f5f9;
}
html[data-scp-theme="dark"] .smartcore-subs__qcard-usage,
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-subs__qcard-usage {
    color: #94a3b8;
}
html[data-scp-theme="dark"] .smartcore-subs__qcard-usage-bar,
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-subs__qcard-usage-bar {
    background: #334155;
}
html[data-scp-theme="dark"] .smartcore-subs__qcard-usage--warn .smartcore-subs__qcard-usage-text,
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-subs__qcard-usage--warn .smartcore-subs__qcard-usage-text {
    color: #fbbf24;
}
html[data-scp-theme="dark"] .smartcore-subs__qcard-usage--exhausted .smartcore-subs__qcard-usage-text,
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-subs__qcard-usage--exhausted .smartcore-subs__qcard-usage-text {
    color: #fca5a5;
}
html[data-scp-theme="dark"] .smartcore-subs__quota-lead,
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-subs__quota-lead {
    color: #94a3b8;
}
html[data-scp-theme="dark"] .smartcore-subs__lang-intro,
html[data-scp-theme="dark"] .smartcore-subs__langlead--compact,
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-subs__lang-intro,
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-subs__langlead--compact {
    color: #94a3b8;
}
html[data-scp-theme="dark"] .smartcore-subs__lang-count,
html[data-scp-theme="dark"] .smartcore-subs__langstats--compact,
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-subs__lang-count,
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-subs__langstats--compact {
    color: #e5e7eb;
}
html[data-scp-theme="dark"] .smartcore-subs__lang-chip,
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-subs__lang-chip {
    background: #1e293b;
    border-color: #334155;
    color: #93c5fd;
}
html[data-scp-theme="dark"] .smartcore-subs__langpill,
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-subs__langpill {
    background: #064e3b;
    color: #a7f3d0;
}
html[data-scp-theme="dark"] .smartcore-subs__pcard,
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-subs__pcard {
    background: #111827;
    border-color: #334155;
    box-shadow: none;
}
html[data-scp-theme="dark"] .smartcore-subs__pcard-visual,
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-subs__pcard-visual {
    background: #1e293b;
}
html[data-scp-theme="dark"] .smartcore-subs__pcard-title,
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-subs__pcard-title {
    color: #f1f5f9;
}
html[data-scp-theme="dark"] .smartcore-subs__pcard-desc,
html[data-scp-theme="dark"] .smartcore-subs__pcard-lim,
html[data-scp-theme="dark"] .smartcore-subs__pcard-per,
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-subs__pcard-desc,
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-subs__pcard-lim,
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-subs__pcard-per {
    color: #94a3b8;
}
html[data-scp-theme="dark"] .smartcore-subs__pcard-lim-label,
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-subs__pcard-lim-label {
    color: #cbd5e1;
}
html[data-scp-theme="dark"] .smartcore-subs__pcard-price,
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-subs__pcard-price {
    color: #f1f5f9;
}
html[data-scp-theme="dark"] .smartcore-subs__pcard-disc,
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-subs__pcard-disc {
    color: #38bdf8;
}
html[data-scp-theme="dark"] .smartcore-subs__pcard-actions,
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-subs__pcard-actions {
    background: #111827;
    border-top-color: #334155;
}
html[data-scp-theme="dark"] .smartcore-subs__quota-deeplink--inline,
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-subs__quota-deeplink--inline {
    border-color: #336699;
    background: #111827;
    box-shadow: none;
}
html[data-scp-theme="dark"] .smartcore-subs__card--edit,
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-subs__card--edit {
    background: #111827;
    border-color: #334155;
    box-shadow: none;
}
html[data-scp-theme="dark"] .smartcore-subs__h2,
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-subs__h2 {
    background-color: #0f172a;
    border-bottom-color: #334155;
    color: #94a3b8;
}
html[data-scp-theme="dark"] .smartcore-subs__modcard,
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-subs__modcard {
    background-color: #111827;
    border-color: #334155;
}
html[data-scp-theme="dark"] .smartcore-subs__modslug,
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-subs__modslug {
    color: #64748b;
}
html[data-scp-theme="dark"] .smartcore-subs__meta,
html[data-scp-theme="dark"] .smartcore-subs__muted,
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-subs__meta,
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-subs__muted {
    color: #94a3b8;
}
html[data-scp-theme="dark"] .smartcore-subs-msg--ok,
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-subs-msg--ok {
    background-color: #064e3b;
    color: #d1fae5;
    border-color: #059669;
}
html[data-scp-theme="dark"] .smartcore-subs-msg--err,
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-subs-msg--err {
    background-color: #7f1d1d;
    color: #fecaca;
    border-color: #b91c1c;
}
html[data-scp-theme="dark"] .smartcore-subs-msg--info,
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-subs-msg--info {
    background: #1e3a5f;
    color: #bfdbfe;
    border-color: #334155;
}
html[data-scp-theme="dark"] .smartcore-subs__btn,
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-subs__btn {
    background-color: #1e293b;
    border-color: #334155;
    color: #e5e7eb;
}
html[data-scp-theme="dark"] .smartcore-subs__btn--primary,
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-subs__btn--primary {
    background-color: #2563eb;
    border-color: #2563eb;
    color: #fff;
    box-shadow: 0 1px 2px rgba(37, 99, 235, 0.35);
}
html[data-scp-theme="dark"] .smartcore-subs__btn--ghost,
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-subs__btn--ghost {
    border-color: #334155;
    color: #e5e7eb;
}
html[data-scp-theme="dark"] .smartcore-subs__btn--ghost:hover,
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-subs__btn--ghost:hover {
    background-color: #334155;
}
html[data-scp-theme="dark"] .smartcore-subs__btn--primary:hover,
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-subs__btn--primary:hover {
    background-color: #1d4ed8;
}
html[data-scp-theme="dark"] .smartcore-subs__btn--danger,
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-subs__btn--danger {
    background-color: #450a0a;
    border-color: #991b1b;
    color: #fecaca;
}
html[data-scp-theme="dark"] .smartcore-subs__btn--danger:hover,
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-subs__btn--danger:hover {
    background-color: #7f1d1d;
}
html[data-scp-theme="dark"] .smartcore-subs__table th,
html[data-scp-theme="dark"] .smartcore-subs__table td,
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-subs__table th,
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-subs__table td {
    border-bottom-color: #334155;
    color: #e5e7eb;
}
html[data-scp-theme="dark"] .smartcore-subs__table th,
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-subs__table th {
    background-color: #0f172a;
    color: #94a3b8;
}
html[data-scp-theme="dark"] .smartcore-subs__reason,
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-subs__reason {
    background-color: #0f172a;
    border-color: #334155;
    color: #e5e7eb;
}
html[data-scp-theme="dark"] .smartcore-subs__bookrow,
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-subs__bookrow {
    border-bottom-color: #334155;
}
html[data-scp-theme="dark"] .smartcore-subs__booktitle,
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-subs__booktitle {
    color: #e5e7eb;
}
html[data-scp-theme="dark"] .smartcore-subs__hero--edit,
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-subs__hero--edit {
    border-bottom-color: #334155;
}
html[data-scp-theme="dark"] .smartcore-subs__title--edit,
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-subs__title--edit {
    color: #f1f5f9;
}
html[data-scp-theme="dark"] .smartcore-inv--edit {
    color: #e5e7eb;
}
html[data-scp-theme="dark"] .smartcore-inv__hero--edit {
    border-bottom-color: #334155;
}
html[data-scp-theme="dark"] .smartcore-inv__title--edit {
    color: #f1f5f9;
}
html[data-scp-theme="dark"] .smartcore-inv__meta {
    color: #94a3b8;
}
html[data-scp-theme="dark"] .smartcore-inv__card--edit {
    background: #111827;
    border-color: #334155;
    box-shadow: none;
}
html[data-scp-theme="dark"] .smartcore-inv__h2 {
    background-color: #0f172a;
    border-bottom-color: #334155;
    color: #94a3b8;
}
html[data-scp-theme="dark"] .smartcore-inv__empty-title {
    color: #e2e8f0;
}
html[data-scp-theme="dark"] .smartcore-inv__empty-text {
    color: #94a3b8;
}
html[data-scp-theme="dark"] .smartcore-inv__table th,
html[data-scp-theme="dark"] .smartcore-inv__table td {
    border-bottom-color: #334155;
    color: #e5e7eb;
}
html[data-scp-theme="dark"] .smartcore-inv__table th {
    background-color: #0f172a;
    color: #94a3b8;
}
html[data-scp-theme="dark"] .smartcore-inv__link {
    color: #93c5fd;
}
html[data-scp-theme="dark"] .smartcore-inv__extra {
    background-color: #0f172a;
    border-color: #475569;
    color: #cbd5e1;
}

/* ============================================================
 * 4. BrainConex LMS (.smartcore-lms-* + .sclms-*)
 *    LMS hat eigene Dark-Logik per data-lms-color-scheme – wir
 *    ueberschreiben nur, wo die nicht greift (Editor, Student-Dashboard,
 *    CCT-Forms). Den Kursfolien-Player lassen wir unberuehrt, weil er
 *    bereits eine Theme-Logik mitbringt.
 * ============================================================ */
html[data-scp-theme="dark"] .smartcore-lms-cct-form,
html[data-scp-theme="dark"] .smartcore-lms-startscreen,
html[data-scp-theme="dark"] .smartcore-lms-start-success,
html[data-scp-theme="dark"] .sclms-dashboard,
html[data-scp-theme="dark"] .sclms-card,
html[data-scp-theme="dark"] .sclms-panel,
html[data-scp-theme="dark"] .sclms-widget {
    background-color: #111827;
    color: #e5e7eb;
    border-color: #1f2937;
}
html[data-scp-theme="dark"] .smartcore-lms-cct-field label,
html[data-scp-theme="dark"] .sclms-card label,
html[data-scp-theme="dark"] .sclms-widget label {
    color: #cbd5e1;
}
html[data-scp-theme="dark"] .smartcore-lms-cct-field input,
html[data-scp-theme="dark"] .smartcore-lms-cct-field textarea,
html[data-scp-theme="dark"] .smartcore-lms-cct-field select,
html[data-scp-theme="dark"] .sclms-dashboard input,
html[data-scp-theme="dark"] .sclms-dashboard textarea,
html[data-scp-theme="dark"] .sclms-dashboard select {
    background-color: #0f172a;
    color: #e5e7eb;
    border-color: #334155;
}
html[data-scp-theme="dark"] .sclms-muted,
html[data-scp-theme="dark"] .sclms-hint,
html[data-scp-theme="dark"] .smartcore-lms-start-success p {
    color: #94a3b8;
}

/* LMS: Kurs-Workspace (Router), Meine Kurse, Einreichungen, Tabellen — editor-form.css ist light-first */
html[data-scp-theme="dark"] .smartcore-lms-my-courses {
    color: #e5e7eb;
}
html[data-scp-theme="dark"] .smartcore-lms-kicker,
html[data-scp-theme="dark"] .smartcore-lms-subline {
    color: #94a3b8;
}
html[data-scp-theme="dark"] .smartcore-lms-dashboard-head h2,
html[data-scp-theme="dark"] .smartcore-lms-drilldown-head h2 {
    color: #f1f5f9;
}
html[data-scp-theme="dark"] .smartcore-lms-metric {
    background: #0f172a;
    border-color: #334155;
}
html[data-scp-theme="dark"] .smartcore-lms-metric-value {
    color: #f1f5f9;
}
html[data-scp-theme="dark"] .smartcore-lms-metric-label {
    color: #94a3b8;
}
html[data-scp-theme="dark"] .smartcore-lms-search,
html[data-scp-theme="dark"] .smartcore-lms-sort {
    background-color: #0f172a;
    color: #e5e7eb;
    border-color: #334155;
}
html[data-scp-theme="dark"] .smartcore-lms-option-tile {
    background-color: #111827;
    border-color: #334155;
    color: #e5e7eb;
    box-shadow: none;
}
html[data-scp-theme="dark"] .smartcore-lms-option-tile:hover {
    background-color: #1e293b;
    border-color: #3b82f6;
}
html[data-scp-theme="dark"] .smartcore-lms-course-card {
    background-color: #111827;
    border-color: #334155;
    box-shadow: none;
}
html[data-scp-theme="dark"] .smartcore-lms-course-thumb {
    background-color: #0f172a;
}
html[data-scp-theme="dark"] .smartcore-lms-course-thumb-placeholder {
    color: #e5e7eb;
    background: #1e293b;
}
html[data-scp-theme="dark"] .smartcore-lms-course-body h3 {
    color: #f1f5f9;
}
html[data-scp-theme="dark"] .smartcore-lms-course-description {
    color: #94a3b8;
}
html[data-scp-theme="dark"] .smartcore-lms-badge {
    background-color: #1e3a8a;
    border-color: #3b82f6;
    color: #93c5fd;
}
html[data-scp-theme="dark"] .smartcore-lms-badge.is-key {
    background-color: #1e293b;
    border-color: #334155;
    color: #cbd5e1;
}
html[data-scp-theme="dark"] .smartcore-lms-course-actions.is-secondary {
    border-top-color: #334155;
}
html[data-scp-theme="dark"] .smartcore-lms-workspace-router {
    background: #111827;
    border-color: #334155;
    color: #e5e7eb;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}
html[data-scp-theme="dark"] .scp-layout-content,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-layout-content {
    background: #0f172a;
    border-color: #1f2937;
    color: #e5e7eb;
}
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-lms-workspace-router {
    background: #111827;
    border-color: #334155;
    color: #e5e7eb;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}
html[data-scp-theme="dark"] .smartcore-lms-workspace-head h3 {
    color: #f1f5f9;
}
html[data-scp-theme="dark"] .smartcore-lms-workspace-breadcrumb {
    color: #94a3b8;
}
html[data-scp-theme="dark"] .smartcore-lms-workspace-breadcrumb a {
    color: #cbd5e1;
}
html[data-scp-theme="dark"] .smartcore-lms-back-btn {
    background-color: #0f172a;
    border-color: #334155;
    color: #e5e7eb;
}
html[data-scp-theme="dark"] .smartcore-lms-workspace-sub {
    color: #94a3b8;
}
html[data-scp-theme="dark"] .smartcore-lms-quiz-context-label {
    color: #e2e8f0;
}
html[data-scp-theme="dark"] .smartcore-lms-quiz-context-sep {
    color: #64748b;
}
html[data-scp-theme="dark"] .smartcore-lms-quiz-context-body {
    color: #cbd5e1;
}
html[data-scp-theme="dark"] .smartcore-lms-tab {
    background-color: #0f172a;
    border-color: #334155;
    color: #e5e7eb;
}
html[data-scp-theme="dark"] .smartcore-lms-tab.is-active {
    background-color: #1e3a8a;
    border-color: #3b82f6;
    color: #dbeafe;
}
html[data-scp-theme="dark"] .smartcore-lms-workspace-empty {
    border-color: #475569;
    color: #94a3b8;
}
html[data-scp-theme="dark"] .smartcore-lms-workspace-card {
    border-color: #334155;
    background-color: #0f172a;
}
html[data-scp-theme="dark"] .smartcore-lms-workspace-list h4 {
    color: #e2e8f0;
}
html[data-scp-theme="dark"] .smartcore-lms-course-section--flat {
    border-bottom-color: #334155;
}
html[data-scp-theme="dark"] .smartcore-lms-course-section-heading {
    color: #e2e8f0;
}
html[data-scp-theme="dark"] .smartcore-lms-slide-card {
    background-color: #111827;
    border-color: #334155;
    box-shadow: none;
}
html[data-scp-theme="dark"] .smartcore-lms-slide-title {
    color: #f1f5f9;
}
html[data-scp-theme="dark"] .smartcore-lms-slide-summary {
    color: #94a3b8;
}
html[data-scp-theme="dark"] .smartcore-lms-slide-hero {
    background-color: #0f172a;
    border-bottom-color: #334155;
}
html[data-scp-theme="dark"] .smartcore-lms-slide-hero-fallback {
    color: #94a3b8;
}
html[data-scp-theme="dark"] .smartcore-lms-slide-thumb {
    border-color: #334155;
}
html[data-scp-theme="dark"] .smartcore-lms-slide-thumb-placeholder {
    border-color: #475569;
    color: #94a3b8;
}
html[data-scp-theme="dark"] .smartcore-lms-quiz-card .smartcore-lms-slide-hero {
    background: #1e293b;
    border-bottom-color: #334155;
}
html[data-scp-theme="dark"] .smartcore-lms-submissions-toolbar__label,
html[data-scp-theme="dark"] .smartcore-lms-analytics-check {
    color: #e5e7eb;
}
html[data-scp-theme="dark"] .smartcore-lms-submissions-filter,
html[data-scp-theme="dark"] .smartcore-lms-submissions-toolbar .smartcore-lms-submissions-range {
    background-color: #0f172a;
    color: #e5e7eb;
    border-color: #334155;
}
html[data-scp-theme="dark"] .smartcore-lms-stat,
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-lms-stat {
    background: #1e293b;
    border-color: #334155;
    color: #e5e7eb;
}
html[data-scp-theme="dark"] .smartcore-lms-stat span,
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-lms-stat span {
    color: #94a3b8;
}
html[data-scp-theme="dark"] .smartcore-lms-stat strong,
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-lms-stat strong {
    color: #f1f5f9;
}
html[data-scp-theme="dark"] .smartcore-lms-results-table th,
html[data-scp-theme="dark"] .smartcore-lms-results-table td {
    border-color: #334155;
    color: #e5e7eb;
}
html[data-scp-theme="dark"] .smartcore-lms-results-table th {
    background-color: #0f172a;
}
html[data-scp-theme="dark"] .smartcore-lms-results-table tbody tr {
    background-color: #111827;
}
html[data-scp-theme="dark"] .smartcore-lms-results-table tbody tr:nth-child(even) {
    background-color: #0f172a;
}
html[data-scp-theme="dark"] .smartcore-lms-btn {
    background-color: #1e293b;
    border-color: #334155;
    color: #e5e7eb;
}
html[data-scp-theme="dark"] .smartcore-lms-btn:hover {
    background-color: #334155;
    border-color: #475569;
}
html[data-scp-theme="dark"] .smartcore-lms-course-actions:not(.is-secondary) .smartcore-lms-btn:first-child {
    color: #fff;
}
html[data-scp-theme="dark"] .smartcore-lms-course-topline .smartcore-lms-btn--copy-participant.is-copied {
    border-color: #166534;
    background-color: #064e3b;
    color: #bbf7d0;
}
html[data-scp-theme="dark"] .smartcore-lms-help {
    color: #94a3b8;
}
html[data-scp-theme="dark"] .smartcore-lms-notice.is-success {
    background-color: #064e3b;
    color: #d1fae5;
}
html[data-scp-theme="dark"] .smartcore-lms-notice.is-error {
    background-color: #7f1d1d;
    color: #fecaca;
}
html[data-scp-theme="dark"] .smartcore-lms-analytics-exec {
    background: #0f172a;
    border-color: #334155;
}
html[data-scp-theme="dark"] .smartcore-lms-analytics-exec__label {
    color: #94a3b8;
}
html[data-scp-theme="dark"] .smartcore-lms-analytics-exec__card {
    background-color: #111827;
    border-color: #334155;
}
html[data-scp-theme="dark"] .smartcore-lms-analytics-exec__card h6 {
    color: #94a3b8;
}
html[data-scp-theme="dark"] .smartcore-lms-analytics-exec__card strong {
    color: #f1f5f9;
}
html[data-scp-theme="dark"] .smartcore-lms-analytics-exec__card small.is-neutral,
html[data-scp-theme="dark"] .smartcore-lms-analytics-exec__card small {
    color: #94a3b8;
}
html[data-scp-theme="dark"] .smartcore-lms-analytics-exec__card small.is-up {
    color: #4ade80;
}
html[data-scp-theme="dark"] .smartcore-lms-analytics-exec__card small.is-down {
    color: #f87171;
}
html[data-scp-theme="dark"] .smartcore-lms-analytics-storage {
    background-color: #0f172a;
    border-color: #334155;
}
html[data-scp-theme="dark"] .smartcore-lms-analytics-storage h5 {
    color: #f1f5f9;
}
html[data-scp-theme="dark"] .smartcore-lms-analytics-subhead {
    color: #cbd5e1;
}
html[data-scp-theme="dark"] .smartcore-lms-submission-detail-modal__panel {
    background-color: #111827;
    border-color: #334155;
    color: #e5e7eb;
}
html[data-scp-theme="dark"] .smartcore-lms-submission-detail-modal__title {
    color: #f1f5f9;
}
html[data-scp-theme="dark"] .smartcore-lms-submission-detail-modal__head {
    border-bottom-color: #334155;
}
html[data-scp-theme="dark"] .smartcore-lms-submission-detail-modal__close {
    background-color: #0f172a;
    color: #e5e7eb;
}
html[data-scp-theme="dark"] .smartcore-lms-submission-detail-modal__close:hover {
    background-color: #1e293b;
}
html[data-scp-theme="dark"] .smartcore-lms-submission-detail-section__title {
    color: #94a3b8;
}
html[data-scp-theme="dark"] .smartcore-lms-submission-tech-details {
    border-color: #334155;
    background-color: #0f172a;
}
html[data-scp-theme="dark"] .smartcore-lms-submission-tech-details__content {
    border-top-color: #334155;
}
html[data-scp-theme="dark"] .smartcore-lms-submission-detail-kv__k {
    color: #94a3b8;
}
html[data-scp-theme="dark"] .smartcore-lms-submission-detail-kv__v {
    color: #e5e7eb;
}
html[data-scp-theme="dark"] .smartcore-lms-submission-detail-qa-wrap {
    border-color: #334155;
    background-color: #0f172a;
}
html[data-scp-theme="dark"] .smartcore-lms-quiz-einzel-table--modal {
    background-color: #111827;
}
html[data-scp-theme="dark"] .smartcore-lms-submission-detail-raw > summary {
    color: #94a3b8;
}
html[data-scp-theme="dark"] .smartcore-lms-backup-card {
    background-color: #111827;
    border-color: #334155;
    color: #e5e7eb;
    box-shadow: none;
}
html[data-scp-theme="dark"] .smartcore-lms-backup-preset-help,
html[data-scp-theme="dark"] .smartcore-lms-backup-last dt {
    color: #94a3b8;
}
html[data-scp-theme="dark"] .smartcore-lms-backup-last {
    background-color: #0f172a;
    border-color: #334155;
}
html[data-scp-theme="dark"] .smartcore-lms-backup-last dd {
    color: #e5e7eb;
}
html[data-scp-theme="dark"] .smartcore-lms-media-preview--course-drop {
    background-color: #0f172a;
    border-color: #475569;
}
html[data-scp-theme="dark"] .smartcore-lms-media-preview--course-drop:hover {
    background-color: #1e293b;
    border-color: #64748b;
}
html[data-scp-theme="dark"] .smartcore-lms-media-preview--course-drop.is-drag-over {
    background-color: #1e3a8a;
    border-color: #3b82f6;
}
html[data-scp-theme="dark"] .sclms-course-image-drop-hint__title {
    color: #f1f5f9;
}
html[data-scp-theme="dark"] .sclms-course-image-drop-hint__sub {
    color: #94a3b8;
}

/* Datensicherung / Zertifikate (scp-tb-hub) */
html[data-scp-theme="dark"] .scp-tb-hub,
html[data-scp-theme="dark"] .scp-tb-section,
html[data-scp-theme="dark"] .scp-tb-fieldset,
html[data-scp-theme="dark"] .scp-tb-details__body,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-tb-hub,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-tb-section,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-tb-fieldset,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-tb-details__body {
    color: #e5e7eb;
}
html[data-scp-theme="dark"] .scp-tb-section,
html[data-scp-theme="dark"] .scp-tb-fieldset,
html[data-scp-theme="dark"] .scp-tb-details__body,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-tb-section,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-tb-fieldset,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-tb-details__body {
    border-color: #334155;
}
html[data-scp-theme="dark"] .scp-tb-section__title,
html[data-scp-theme="dark"] .scp-tb-hub__subtitle,
html[data-scp-theme="dark"] .scp-tb-wizard-step.is-active,
html[data-scp-theme="dark"] .scp-tb-dl dt,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-tb-section__title,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-tb-hub__subtitle,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-tb-wizard-step.is-active,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-tb-dl dt {
    color: #f1f5f9;
}
html[data-scp-theme="dark"] .scp-tb-section__lead,
html[data-scp-theme="dark"] .scp-tb-muted,
html[data-scp-theme="dark"] .scp-tb-status,
html[data-scp-theme="dark"] .scp-tb-dest-note,
html[data-scp-theme="dark"] .scp-tb-wizard-steps,
html[data-scp-theme="dark"] .scp-tb-dl dd,
html[data-scp-theme="dark"] .scp-tb-grid label span,
html[data-scp-theme="dark"] .scp-tb-year-wrap label span,
html[data-scp-theme="dark"] .scp-tb-compliance-hints,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-tb-section__lead,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-tb-muted,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-tb-status,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-tb-dest-note,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-tb-wizard-steps,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-tb-dl dd,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-tb-grid label span,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-tb-year-wrap label span,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-tb-compliance-hints {
    color: #94a3b8;
}
html[data-scp-theme="dark"] .scp-tb-btn--secondary,
html[data-scp-theme="dark"] .scp-tb-btn--quiet,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-tb-btn--secondary,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-tb-btn--quiet {
    background: #1e293b;
    border-color: #475569;
    color: #e2e8f0;
}
html[data-scp-theme="dark"] .scp-tb-table th,
html[data-scp-theme="dark"] .scp-tb-table td,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-tb-table th,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-tb-table td {
    border-color: #334155;
    color: #cbd5e1;
}
html[data-scp-theme="dark"] .scp-tb-table th,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-tb-table th {
    background: #0f172a;
}
html[data-scp-theme="dark"] .scp-tb-grid input[type="text"],
html[data-scp-theme="dark"] .scp-tb-grid input[type="url"],
html[data-scp-theme="dark"] .scp-tb-grid input[type="email"],
html[data-scp-theme="dark"] .scp-tb-grid input[type="number"],
html[data-scp-theme="dark"] .scp-tb-grid input[type="password"],
html[data-scp-theme="dark"] .scp-tb-grid select,
html[data-scp-theme="dark"] .scp-tb-year-select,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-tb-grid input[type="text"],
.smartcore-platform-layout[data-scp-theme="dark"] .scp-tb-grid input[type="url"],
.smartcore-platform-layout[data-scp-theme="dark"] .scp-tb-grid input[type="email"],
.smartcore-platform-layout[data-scp-theme="dark"] .scp-tb-grid input[type="number"],
.smartcore-platform-layout[data-scp-theme="dark"] .scp-tb-grid input[type="password"],
.smartcore-platform-layout[data-scp-theme="dark"] .scp-tb-grid select,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-tb-year-select {
    background: #0f172a;
    border-color: #475569;
    color: #e5e7eb;
}
html[data-scp-theme="dark"] .scp-tb-details summary,
html[data-scp-theme="dark"] .scp-tb-link,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-tb-details summary,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-tb-link {
    color: #93c5fd;
}
html[data-scp-theme="dark"] .smartcore-settings-hub__title,
html[data-scp-theme="dark"] .smartcore-settings-hub__muted,
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-settings-hub__title,
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-settings-hub__muted {
    color: #e5e7eb;
}
html[data-scp-theme="dark"] .smartcore-settings-hub__muted,
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-settings-hub__muted {
    color: #94a3b8;
}
html[data-scp-theme="dark"] .smartcore-settings-hub__muted a,
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-settings-hub__muted a {
    color: #93c5fd;
}

/* ============================================================
 * 5. BrainConex Survey Builder (.csb-*)
 *
 * Eigene CSS-Variablen (Dark-Tokens), damit Komponenten im Builder
 * (Fragenbloecke, Drag-States etc.) konsistent aussehen.
 * ============================================================ */
html[data-scp-theme="dark"] .csb-dashboard:not(.csb-dashboard--theme-light),
.smartcore-platform-layout[data-scp-theme="dark"] .csb-dashboard:not(.csb-dashboard--theme-light) {
    --csb-question-bg: #1f2028;
    --csb-question-border: #3a3b46;
    --csb-question-radius: 10px;
    --csb-dragging-bg: rgba(59, 130, 246, 0.18);
    --csb-dragging-border: #3b82f6;
    --csb-status-saving: #93c5fd;
    --csb-status-success: #34d399;
    --csb-status-error: #fca5a5;
}

html[data-scp-theme="dark"] .scp-layout-content .csb-dashboard:not(.csb-dashboard--theme-light),
.smartcore-platform-layout[data-scp-theme="dark"] .scp-layout-content .csb-dashboard:not(.csb-dashboard--theme-light) {
    background-color: #16161c;
    border-color: #2e2e38;
    color: #e8e8ed;
}

/* Flaechen, Formulare, Tabellen: csb-frontend.css (Modul-Dashboard-Theme) */

/* ============================================================
 * 5b. Shared Module Analytics (.bcx-mod-analytics)
 *    HR-Stammdaten, Consens, Risk Awareness (identisches Inline-Markup)
 * ============================================================ */
html[data-scp-theme="dark"] .bcx-mod-analytics__hero,
.smartcore-platform-layout[data-scp-theme="dark"] .bcx-mod-analytics__hero {
    border-color: #334155;
    background: #111827;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

html[data-scp-theme="dark"] .bcx-mod-analytics__eyebrow,
.smartcore-platform-layout[data-scp-theme="dark"] .bcx-mod-analytics__eyebrow {
    color: #93c5fd;
}

html[data-scp-theme="dark"] .bcx-mod-analytics__title,
.smartcore-platform-layout[data-scp-theme="dark"] .bcx-mod-analytics__title {
    color: #f1f5f9;
}

html[data-scp-theme="dark"] .bcx-mod-analytics__lead,
html[data-scp-theme="dark"] .bcx-mod-analytics__empty,
html[data-scp-theme="dark"] .bcx-mod-analytics__kpi-label,
.smartcore-platform-layout[data-scp-theme="dark"] .bcx-mod-analytics__lead,
.smartcore-platform-layout[data-scp-theme="dark"] .bcx-mod-analytics__empty,
.smartcore-platform-layout[data-scp-theme="dark"] .bcx-mod-analytics__kpi-label {
    color: #94a3b8;
}

html[data-scp-theme="dark"] .bcx-mod-analytics__kpi,
.smartcore-platform-layout[data-scp-theme="dark"] .bcx-mod-analytics__kpi {
    border-color: #334155;
    background: #111827;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

html[data-scp-theme="dark"] .bcx-mod-analytics__kpi-value,
.smartcore-platform-layout[data-scp-theme="dark"] .bcx-mod-analytics__kpi-value {
    color: #f1f5f9;
}

html[data-scp-theme="dark"] .bcx-mod-analytics__panel,
.smartcore-platform-layout[data-scp-theme="dark"] .bcx-mod-analytics__panel {
    border-color: #334155;
    background: #111827;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
    color: #e5e7eb;
}

html[data-scp-theme="dark"] .bcx-mod-analytics__panel h3,
.smartcore-platform-layout[data-scp-theme="dark"] .bcx-mod-analytics__panel h3 {
    color: #f1f5f9;
}

html[data-scp-theme="dark"] .bcx-mod-analytics__bar-head,
.smartcore-platform-layout[data-scp-theme="dark"] .bcx-mod-analytics__bar-head {
    color: #cbd5e1;
}

html[data-scp-theme="dark"] .bcx-mod-analytics__bar-track,
.smartcore-platform-layout[data-scp-theme="dark"] .bcx-mod-analytics__bar-track {
    background: #334155;
}

html[data-scp-theme="dark"] .bcx-mod-analytics__links a,
.smartcore-platform-layout[data-scp-theme="dark"] .bcx-mod-analytics__links a {
    color: #60a5fa;
}

html[data-scp-theme="dark"] .bcx-mod-analytics__links a:hover,
.smartcore-platform-layout[data-scp-theme="dark"] .bcx-mod-analytics__links a:hover {
    color: #93c5fd;
}

/* ============================================================
 * 6. Generische BrainConex-Module (Task-Manager, Zeiterfassung,
 *    Ticket-System, Event-Slot-Manager, Local-Legends).
 *    Diese haben oft Inline-Styles oder keine dedizierten Praefixes.
 *    Wir targeten gemeinsame Patterns ueber den Layout-Content.
 * ============================================================ */
html[data-scp-theme="dark"] .scp-layout-content .notice,
html[data-scp-theme="dark"] .scp-layout-content .card,
html[data-scp-theme="dark"] .scp-layout-content .panel,
html[data-scp-theme="dark"] .scp-layout-content .box,
html[data-scp-theme="dark"] .scp-layout-content table {
    background-color: #111827;
    color: #e5e7eb;
    border-color: #1f2937;
}
html[data-scp-theme="dark"] .scp-layout-content table th {
    background-color: #1e293b;
    color: #e5e7eb;
    border-color: #1f2937;
}
html[data-scp-theme="dark"] .scp-layout-content table td {
    border-color: #1f2937;
}
html[data-scp-theme="dark"] .scp-layout-content input[type="text"],
html[data-scp-theme="dark"] .scp-layout-content input[type="email"],
html[data-scp-theme="dark"] .scp-layout-content input[type="url"],
html[data-scp-theme="dark"] .scp-layout-content input[type="number"],
html[data-scp-theme="dark"] .scp-layout-content input[type="search"],
html[data-scp-theme="dark"] .scp-layout-content input[type="tel"],
html[data-scp-theme="dark"] .scp-layout-content input[type="date"],
html[data-scp-theme="dark"] .scp-layout-content input[type="time"],
html[data-scp-theme="dark"] .scp-layout-content input[type="datetime-local"],
html[data-scp-theme="dark"] .scp-layout-content input[type="password"],
html[data-scp-theme="dark"] .scp-layout-content textarea,
html[data-scp-theme="dark"] .scp-layout-content select {
    background-color: #0f172a;
    color: #e5e7eb;
    border-color: #334155;
}
html[data-scp-theme="dark"] .scp-layout-content input:focus,
html[data-scp-theme="dark"] .scp-layout-content textarea:focus,
html[data-scp-theme="dark"] .scp-layout-content select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px #1e3a8a;
    outline: none;
}
html[data-scp-theme="dark"] .scp-layout-content hr {
    border-color: #1f2937;
}
html[data-scp-theme="dark"] .scp-layout-content a {
    color: #60a5fa;
}
html[data-scp-theme="dark"] .scp-layout-content a:hover {
    color: #93c5fd;
}

/* 6a. Umfragen-Dashboard (Dunkel/Auto): Abschnitt-6-Generika nicht erzwingen — Modul-CSS */
html[data-scp-theme="dark"] .scp-layout-content .csb-dashboard:not(.csb-dashboard--theme-light) .notice,
html[data-scp-theme="dark"] .scp-layout-content .csb-dashboard:not(.csb-dashboard--theme-light) .card,
html[data-scp-theme="dark"] .scp-layout-content .csb-dashboard:not(.csb-dashboard--theme-light) .panel,
html[data-scp-theme="dark"] .scp-layout-content .csb-dashboard:not(.csb-dashboard--theme-light) .box,
html[data-scp-theme="dark"] .scp-layout-content .csb-dashboard:not(.csb-dashboard--theme-light) table,
html[data-scp-theme="dark"] .scp-layout-content .csb-dashboard:not(.csb-dashboard--theme-light) table th,
html[data-scp-theme="dark"] .scp-layout-content .csb-dashboard:not(.csb-dashboard--theme-light) table td,
html[data-scp-theme="dark"] .scp-layout-content .csb-dashboard:not(.csb-dashboard--theme-light) input[type="text"],
html[data-scp-theme="dark"] .scp-layout-content .csb-dashboard:not(.csb-dashboard--theme-light) input[type="email"],
html[data-scp-theme="dark"] .scp-layout-content .csb-dashboard:not(.csb-dashboard--theme-light) input[type="url"],
html[data-scp-theme="dark"] .scp-layout-content .csb-dashboard:not(.csb-dashboard--theme-light) input[type="number"],
html[data-scp-theme="dark"] .scp-layout-content .csb-dashboard:not(.csb-dashboard--theme-light) input[type="search"],
html[data-scp-theme="dark"] .scp-layout-content .csb-dashboard:not(.csb-dashboard--theme-light) input[type="tel"],
html[data-scp-theme="dark"] .scp-layout-content .csb-dashboard:not(.csb-dashboard--theme-light) input[type="date"],
html[data-scp-theme="dark"] .scp-layout-content .csb-dashboard:not(.csb-dashboard--theme-light) input[type="time"],
html[data-scp-theme="dark"] .scp-layout-content .csb-dashboard:not(.csb-dashboard--theme-light) input[type="datetime-local"],
html[data-scp-theme="dark"] .scp-layout-content .csb-dashboard:not(.csb-dashboard--theme-light) input[type="password"],
html[data-scp-theme="dark"] .scp-layout-content .csb-dashboard:not(.csb-dashboard--theme-light) textarea,
html[data-scp-theme="dark"] .scp-layout-content .csb-dashboard:not(.csb-dashboard--theme-light) select,
html[data-scp-theme="dark"] .scp-layout-content .csb-dashboard:not(.csb-dashboard--theme-light) hr,
html[data-scp-theme="dark"] .scp-layout-content .csb-dashboard:not(.csb-dashboard--theme-light) a {
    background-color: unset;
    color: unset;
    border-color: unset;
    box-shadow: unset;
}
html[data-scp-theme="dark"] .scp-layout-content .csb-dashboard:not(.csb-dashboard--theme-light) input:focus,
html[data-scp-theme="dark"] .scp-layout-content .csb-dashboard:not(.csb-dashboard--theme-light) textarea:focus,
html[data-scp-theme="dark"] .scp-layout-content .csb-dashboard:not(.csb-dashboard--theme-light) select:focus {
    border-color: unset;
    box-shadow: unset;
    outline: unset;
}

/* 6a-ii. Risk Awareness & Consens: Modul-CSS hat Vorrang vor Abschnitt-6-Generika */
html[data-scp-theme="dark"] .scp-layout-content .sra-dash table,
html[data-scp-theme="dark"] .scp-layout-content .sra-dash table th,
html[data-scp-theme="dark"] .scp-layout-content .sra-dash table td,
html[data-scp-theme="dark"] .scp-layout-content .sra-dash input,
html[data-scp-theme="dark"] .scp-layout-content .sra-dash textarea,
html[data-scp-theme="dark"] .scp-layout-content .sra-dash select,
html[data-scp-theme="dark"] .scp-layout-content .scons-dash table,
html[data-scp-theme="dark"] .scp-layout-content .scons-dash table th,
html[data-scp-theme="dark"] .scp-layout-content .scons-dash table td,
html[data-scp-theme="dark"] .scp-layout-content .scons-dash input,
html[data-scp-theme="dark"] .scp-layout-content .scons-dash textarea,
html[data-scp-theme="dark"] .scp-layout-content .scons-dash select,
html[data-scp-theme="dark"] .scp-layout-content .scp-hr-stamm-dash table,
html[data-scp-theme="dark"] .scp-layout-content .scp-hr-stamm-dash input,
html[data-scp-theme="dark"] .scp-layout-content .scp-hr-stamm-dash textarea,
html[data-scp-theme="dark"] .scp-layout-content .scp-hr-stamm-dash select {
    background-color: unset;
    color: unset;
    border-color: unset;
    box-shadow: unset;
}

/* 6b. CSB „Hell“ in Plattform-Content: Abschnitt-6-Generika nicht auf helle Umfrage-Flaechen anwenden */
html[data-scp-theme="dark"] .scp-layout-content .csb-dashboard.csb-dashboard--theme-light table,
html[data-scp-theme="dark"] .scp-layout-content .csb-dashboard.csb-dashboard--theme-light .notice,
html[data-scp-theme="dark"] .scp-layout-content .csb-dashboard.csb-dashboard--theme-light .card,
html[data-scp-theme="dark"] .scp-layout-content .csb-dashboard.csb-dashboard--theme-light .panel,
html[data-scp-theme="dark"] .scp-layout-content .csb-dashboard.csb-dashboard--theme-light .box {
    background-color: #ffffff;
    color: #1e293b;
    border-color: #e2e8f0;
}
html[data-scp-theme="dark"] .scp-layout-content .csb-dashboard.csb-dashboard--theme-light table th {
    background-color: #f1f5f9;
    color: #0f172a;
    border-color: #e2e8f0;
}
html[data-scp-theme="dark"] .scp-layout-content .csb-dashboard.csb-dashboard--theme-light table td {
    border-color: #e2e8f0;
}
html[data-scp-theme="dark"] .scp-layout-content .csb-dashboard.csb-dashboard--theme-light table tr:hover td {
    background-color: #f8fafc;
}
html[data-scp-theme="dark"] .scp-layout-content .csb-dashboard.csb-dashboard--theme-light input[type="text"],
html[data-scp-theme="dark"] .scp-layout-content .csb-dashboard.csb-dashboard--theme-light input[type="email"],
html[data-scp-theme="dark"] .scp-layout-content .csb-dashboard.csb-dashboard--theme-light input[type="url"],
html[data-scp-theme="dark"] .scp-layout-content .csb-dashboard.csb-dashboard--theme-light input[type="number"],
html[data-scp-theme="dark"] .scp-layout-content .csb-dashboard.csb-dashboard--theme-light input[type="search"],
html[data-scp-theme="dark"] .scp-layout-content .csb-dashboard.csb-dashboard--theme-light input[type="tel"],
html[data-scp-theme="dark"] .scp-layout-content .csb-dashboard.csb-dashboard--theme-light input[type="date"],
html[data-scp-theme="dark"] .scp-layout-content .csb-dashboard.csb-dashboard--theme-light input[type="time"],
html[data-scp-theme="dark"] .scp-layout-content .csb-dashboard.csb-dashboard--theme-light input[type="datetime-local"],
html[data-scp-theme="dark"] .scp-layout-content .csb-dashboard.csb-dashboard--theme-light input[type="password"],
html[data-scp-theme="dark"] .scp-layout-content .csb-dashboard.csb-dashboard--theme-light textarea,
html[data-scp-theme="dark"] .scp-layout-content .csb-dashboard.csb-dashboard--theme-light select {
    background-color: #ffffff;
    color: #1e293b;
    border-color: #cbd5e1;
}
html[data-scp-theme="dark"] .scp-layout-content .csb-dashboard.csb-dashboard--theme-light input:focus,
html[data-scp-theme="dark"] .scp-layout-content .csb-dashboard.csb-dashboard--theme-light textarea:focus,
html[data-scp-theme="dark"] .scp-layout-content .csb-dashboard.csb-dashboard--theme-light select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
    outline: none;
}
html[data-scp-theme="dark"] .scp-layout-content .csb-dashboard.csb-dashboard--theme-light hr {
    border-color: #e2e8f0;
}
html[data-scp-theme="dark"] .scp-layout-content .csb-dashboard.csb-dashboard--theme-light a {
    color: #2563eb;
}
html[data-scp-theme="dark"] .scp-layout-content .csb-dashboard.csb-dashboard--theme-light a:hover {
    color: #1d4ed8;
}

html[data-scp-theme="dark"] .scp-layout-content .csb-analytics-insights input[type="text"],
html[data-scp-theme="dark"] .scp-layout-content .csb-analytics-insights input[type="date"],
html[data-scp-theme="dark"] .scp-layout-content .csb-analytics-insights input[type="search"],
html[data-scp-theme="dark"] .scp-layout-content .csb-analytics-insights select,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-layout-content .csb-analytics-insights input[type="text"],
.smartcore-platform-layout[data-scp-theme="dark"] .scp-layout-content .csb-analytics-insights input[type="date"],
.smartcore-platform-layout[data-scp-theme="dark"] .scp-layout-content .csb-analytics-insights input[type="search"],
.smartcore-platform-layout[data-scp-theme="dark"] .scp-layout-content .csb-analytics-insights select {
    background-color: #0f172a !important;
    color: #e2e8f0 !important;
    border-color: #334155 !important;
    color-scheme: dark;
}

html[data-scp-theme="dark"] .scp-layout-content .csb-analytics-insights input[type="date"]::-webkit-calendar-picker-indicator,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-layout-content .csb-analytics-insights input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(0.85);
}


html[data-scp-theme="dark"] .scp-pv-admin__title,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-pv-admin__title {
    color: #f1f5f9;
}
html[data-scp-theme="dark"] .scp-pv-admin__lead,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-pv-admin__lead {
    color: #94a3b8;
}

html[data-scp-theme="dark"] .scp-vwz,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-vwz {
    color: #e5e7eb;
}
html[data-scp-theme="dark"] .scp-vwz-header,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-vwz-header {
    border-bottom-color: #334155;
}
html[data-scp-theme="dark"] .scp-vwz-kicker,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-vwz-kicker {
    color: #94a3b8;
}
html[data-scp-theme="dark"] .scp-vwz-title,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-vwz-title {
    color: #f1f5f9;
}
html[data-scp-theme="dark"] .scp-vwz-sub,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-vwz-sub {
    color: #94a3b8;
}
html[data-scp-theme="dark"] .scp-vwz-badge,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-vwz-badge {
    background: #312e81;
    color: #c7d2fe;
    border-color: #4f46e5;
}
html[data-scp-theme="dark"] .scp-vwz-body,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-vwz-body {
    background: #111827;
    border-color: #334155;
    box-shadow: none;
}
html[data-scp-theme="dark"] .scp-vwz-back,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-vwz-back,
html[data-scp-theme="dark"] .scp-back-link,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-back-link {
    background: #1e293b;
    color: #e2e8f0;
    border-color: #475569;
}
html[data-scp-theme="dark"] .scp-vwz-back:hover,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-vwz-back:hover,
html[data-scp-theme="dark"] .scp-back-link:hover,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-back-link:hover {
    background: #334155;
    color: #f8fafc;
    border-color: #64748b;
}
html[data-scp-theme="dark"] .scp-vwz-footer,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-vwz-footer {
    background: #0f172a;
    border-color: #475569;
}
html[data-scp-theme="dark"] .scp-vwz-footer-text,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-vwz-footer-text {
    color: #94a3b8;
}
html[data-scp-theme="dark"] .scp-vwz-footer a,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-vwz-footer a {
    color: #93c5fd;
}

html[data-scp-theme="dark"] .scp-vwz-body .smartcore-ca__hero--edit,
html[data-scp-theme="dark"] .scp-vwz-body .smartcore-ca__hero--compact,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-vwz-body .smartcore-ca__hero--edit,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-vwz-body .smartcore-ca__hero--compact {
    background: #0f172a;
    border-color: #334155;
}
html[data-scp-theme="dark"] .scp-vwz-body .scp-rmperm__hero,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-vwz-body .scp-rmperm__hero {
    background: #0f172a;
    border-color: #334155;
}
html[data-scp-theme="dark"] .scp-vwz-body .scp-pmc__hero,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-vwz-body .scp-pmc__hero {
    border-bottom-color: #334155;
}
html[data-scp-theme="dark"] .scp-vwz-body section.smartcore-platform-settings > h3,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-vwz-body section.smartcore-platform-settings > h3 {
    color: #cbd5e1 !important;
}
html[data-scp-theme="dark"] .scp-vwz-body .smartcore-platform-settings fieldset,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-vwz-body .smartcore-platform-settings fieldset {
    background: #111827 !important;
    border-color: #334155 !important;
}

html[data-scp-theme="dark"] .smartcore-settings-hub__plat-subnav,
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-settings-hub__plat-subnav {
    background: #1e293b;
    border-color: #334155;
}
html[data-scp-theme="dark"] .smartcore-settings-hub__plat-subnav-link,
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-settings-hub__plat-subnav-link {
    color: #cbd5e1;
}
html[data-scp-theme="dark"] .smartcore-settings-hub__plat-subnav-link:hover,
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-settings-hub__plat-subnav-link:hover {
    background: #334155;
    color: #f1f5f9;
    border-color: #475569;
}
html[data-scp-theme="dark"] .smartcore-settings-hub__plat-subnav-link.is-active,
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-settings-hub__plat-subnav-link.is-active {
    background: #1e3a5f;
    color: #bfdbfe;
    border-color: #3b82f6;
    box-shadow: 0 1px 3px rgba(37, 99, 235, 0.25);
}

html[data-scp-theme="dark"] .smartcore-role-manager,
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-role-manager {
    color: #e5e7eb;
}
html[data-scp-theme="dark"] .smartcore-role-manager__hero,
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-role-manager__hero {
    border-bottom-color: #334155;
}
html[data-scp-theme="dark"] .smartcore-role-manager__lead,
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-role-manager__lead {
    color: #94a3b8;
}
html[data-scp-theme="dark"] .smartcore-role-manager__card,
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-role-manager__card {
    background: #111827;
    border-color: #334155;
    box-shadow: none;
}
html[data-scp-theme="dark"] .smartcore-role-manager__card--warn,
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-role-manager__card--warn {
    background: #422006;
    border-color: #b45309;
}
html[data-scp-theme="dark"] .smartcore-role-manager__card-hint,
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-role-manager__card-hint {
    color: #94a3b8;
}
html[data-scp-theme="dark"] .smartcore-role-manager__field label,
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-role-manager__field label {
    color: #94a3b8;
}
html[data-scp-theme="dark"] .smartcore-role-manager__field input[type="text"],
html[data-scp-theme="dark"] .smartcore-role-manager__field select,
html[data-scp-theme="dark"] .smartcore-role-manager__cap-toolbar input[type="search"],
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-role-manager__field input[type="text"],
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-role-manager__field select,
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-role-manager__cap-toolbar input[type="search"] {
    background: #0f172a;
    border-color: #334155;
    color: #e5e7eb;
}
html[data-scp-theme="dark"] .smartcore-role-manager__btn-ghost,
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-role-manager__btn-ghost {
    background: #1e293b;
    border-color: #334155;
    color: #e5e7eb;
}
html[data-scp-theme="dark"] .smartcore-role-manager__btn-ghost:hover,
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-role-manager__btn-ghost:hover {
    background: #334155;
}
html[data-scp-theme="dark"] .smartcore-role-manager__table-wrap,
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-role-manager__table-wrap {
    background: #111827;
    border-color: #334155;
}
html[data-scp-theme="dark"] .smartcore-role-manager thead th,
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-role-manager thead th {
    background: #0f172a;
    color: #94a3b8;
    border-bottom-color: #334155;
}
html[data-scp-theme="dark"] .smartcore-role-manager tbody td,
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-role-manager tbody td {
    border-bottom-color: #334155;
    color: #e5e7eb;
}
html[data-scp-theme="dark"] .smartcore-role-manager__cap-scroll,
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-role-manager__cap-scroll {
    background: #0f172a;
    border-color: #334155;
}
html[data-scp-theme="dark"] .smartcore-role-manager__cap-item,
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-role-manager__cap-item {
    color: #cbd5e1;
}
html[data-scp-theme="dark"] .smartcore-role-manager__link,
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-role-manager__link {
    color: #93c5fd;
}

html[data-scp-theme="dark"] .scp-pmc,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-pmc {
    color: #e5e7eb;
}
html[data-scp-theme="dark"] .scp-pmc__crumb,
html[data-scp-theme="dark"] .scp-pmc__index-lead,
html[data-scp-theme="dark"] .scp-pmc__empty,
html[data-scp-theme="dark"] .scp-pmc__slug,
html[data-scp-theme="dark"] .scp-pmc__panel-summary-meta,
html[data-scp-theme="dark"] .scp-pmc__mod-cell-meta,
html[data-scp-theme="dark"] .scp-pmc__hint,
html[data-scp-theme="dark"] .scp-pmc .scp-pmc__marketing-drop-text,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-pmc__crumb,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-pmc__index-lead,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-pmc__empty,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-pmc__slug,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-pmc__panel-summary-meta,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-pmc__mod-cell-meta,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-pmc__hint,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-pmc .scp-pmc__marketing-drop-text {
    color: #94a3b8;
}
html[data-scp-theme="dark"] .scp-pmc__title,
html[data-scp-theme="dark"] .scp-pmc__index-h,
html[data-scp-theme="dark"] .scp-pmc__mod-cell-title,
html[data-scp-theme="dark"] .scp-pmc__panel-title,
html[data-scp-theme="dark"] .scp-pmc__panel-summary-main,
html[data-scp-theme="dark"] .scp-pmc__subhead,
html[data-scp-theme="dark"] .scp-pmc__h3,
html[data-scp-theme="dark"] .scp-pmc__h4,
html[data-scp-theme="dark"] .scp-pmc__field--check .scp-pmc__check,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-pmc__title,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-pmc__index-h,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-pmc__mod-cell-title,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-pmc__panel-title,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-pmc__panel-summary-main,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-pmc__subhead,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-pmc__h3,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-pmc__h4,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-pmc__field--check .scp-pmc__check {
    color: #f1f5f9;
}
html[data-scp-theme="dark"] .scp-pmc__lead,
html[data-scp-theme="dark"] .scp-pmc__edit-context,
html[data-scp-theme="dark"] .scp-pmc__bulk-lead,
html[data-scp-theme="dark"] .scp-pmc__mod-cell-tarife,
html[data-scp-theme="dark"] .scp-pmc__lead--footer,
html[data-scp-theme="dark"] .scp-pmc__label,
html[data-scp-theme="dark"] .scp-pmc__quota-key,
html[data-scp-theme="dark"] .scp-pmc__buchbar-summary,
html[data-scp-theme="dark"] .scp-pmc__landing-summary,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-pmc__lead,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-pmc__edit-context,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-pmc__bulk-lead,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-pmc__mod-cell-tarife,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-pmc__lead--footer,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-pmc__label,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-pmc__quota-key,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-pmc__buchbar-summary,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-pmc__landing-summary {
    color: #cbd5e1;
}
html[data-scp-theme="dark"] .scp-pmc__tools-link,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-pmc__tools-link {
    color: #93c5fd;
}
html[data-scp-theme="dark"] .scp-pmc__edit-context code,
html[data-scp-theme="dark"] .scp-pmc__slug code,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-pmc__edit-context code,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-pmc__slug code {
    background: #1e293b;
    color: #e2e8f0;
}
html[data-scp-theme="dark"] .scp-pmc__bulk-details,
html[data-scp-theme="dark"] .scp-pmc__footer-details,
html[data-scp-theme="dark"] .scp-pmc__landing-details,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-pmc__bulk-details,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-pmc__footer-details,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-pmc__landing-details {
    background: #0f172a;
    border-color: #334155;
}
html[data-scp-theme="dark"] .scp-pmc__bulk-details[open] .scp-pmc__bulk-summary,
html[data-scp-theme="dark"] .scp-pmc__footer-details[open] .scp-pmc__footer-summary,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-pmc__bulk-details[open] .scp-pmc__bulk-summary,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-pmc__footer-details[open] .scp-pmc__footer-summary {
    background: #111827;
    border-bottom-color: #334155;
}
html[data-scp-theme="dark"] .scp-pmc__bulk-summary,
html[data-scp-theme="dark"] .scp-pmc__footer-summary,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-pmc__bulk-summary,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-pmc__footer-summary {
    color: #e5e7eb;
}
html[data-scp-theme="dark"] .scp-pmc__bulk,
html[data-scp-theme="dark"] .scp-pmc__footer-details-body,
html[data-scp-theme="dark"] .scp-pmc__mod-table-wrap,
html[data-scp-theme="dark"] .scp-pmc__panel,
html[data-scp-theme="dark"] .scp-pmc__buchbar-bundle,
html[data-scp-theme="dark"] .scp-pmc__landing,
html[data-scp-theme="dark"] .scp-pmc__landing-details[open],
.smartcore-platform-layout[data-scp-theme="dark"] .scp-pmc__bulk,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-pmc__footer-details-body,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-pmc__mod-table-wrap,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-pmc__panel,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-pmc__buchbar-bundle,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-pmc__landing,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-pmc__landing-details[open] {
    background: #111827;
    border-color: #334155;
    box-shadow: none;
}
html[data-scp-theme="dark"] .scp-pmc__mod-table th,
html[data-scp-theme="dark"] .scp-pmc__mod-table td,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-pmc__mod-table th,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-pmc__mod-table td {
    border-bottom-color: #334155;
}
html[data-scp-theme="dark"] .scp-pmc__mod-table th,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-pmc__mod-table th {
    background: #0f172a;
    color: #94a3b8;
}
html[data-scp-theme="dark"] .scp-pmc__panel-tarife-line,
html[data-scp-theme="dark"] .scp-pmc__panel-summary,
html[data-scp-theme="dark"] .scp-pmc__panel-details[open] > .scp-pmc__panel-summary,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-pmc__panel-tarife-line,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-pmc__panel-summary,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-pmc__panel-details[open] > .scp-pmc__panel-summary {
    background: #0f172a;
    border-color: #334155;
    color: #cbd5e1;
}
html[data-scp-theme="dark"] .scp-pmc__panel-head,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-pmc__panel-head {
    background: #0f172a;
    border-bottom-color: #334155;
}
html[data-scp-theme="dark"] .scp-pmc__catalog-shell,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-pmc__catalog-shell {
    background: #0f172a;
    border-bottom-color: #334155;
}
html[data-scp-theme="dark"] .scp-pmc .scp-pmc__marketing-drop,
html[data-scp-theme="dark"] .scp-pmc__ext-card,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-pmc .scp-pmc__marketing-drop,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-pmc__ext-card {
    background: #0f172a;
    border-color: #475569;
}
html[data-scp-theme="dark"] .scp-pmc .scp-pmc__marketing-drop.is-dragover,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-pmc .scp-pmc__marketing-drop.is-dragover {
    border-color: #3b82f6 !important;
    background: #1e3a5f !important;
}
html[data-scp-theme="dark"] .scp-pmc__input,
html[data-scp-theme="dark"] .scp-pmc__textarea,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-pmc__input,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-pmc__textarea {
    background: #0f172a;
    border-color: #334155;
    color: #e5e7eb;
}
html[data-scp-theme="dark"] .scp-pmc__pill,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-pmc__pill {
    background: #1e3a5f;
    color: #93c5fd;
}
html[data-scp-theme="dark"] .scp-pmc__pill--muted,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-pmc__pill--muted {
    background: #334155;
    color: #cbd5e1;
}
html[data-scp-theme="dark"] .scp-pmc__buchbar-body,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-pmc__buchbar-body {
    border-top-color: #475569;
}

html[data-scp-theme="dark"] #scp-plattform-verkaufsartikel .scp-tc-dash-embed,
html[data-scp-theme="dark"] .scp-settings-hub .scp-tc-dash-embed,
.smartcore-platform-layout[data-scp-theme="dark"] #scp-plattform-verkaufsartikel .scp-tc-dash-embed,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-settings-hub .scp-tc-dash-embed {
    color: #e5e7eb;
}
html[data-scp-theme="dark"] #scp-plattform-verkaufsartikel .scp-tc-dash-embed .scp-tc-dash-catalog-shell,
html[data-scp-theme="dark"] #scp-plattform-verkaufsartikel .scp-tc-dash-embed .scp-tc-dash-orders-shell,
html[data-scp-theme="dark"] .scp-settings-hub .scp-tc-dash-embed .scp-tc-dash-catalog-shell,
html[data-scp-theme="dark"] .scp-settings-hub .scp-tc-dash-embed .scp-tc-dash-orders-shell,
.smartcore-platform-layout[data-scp-theme="dark"] #scp-plattform-verkaufsartikel .scp-tc-dash-embed .scp-tc-dash-catalog-shell,
.smartcore-platform-layout[data-scp-theme="dark"] #scp-plattform-verkaufsartikel .scp-tc-dash-embed .scp-tc-dash-orders-shell,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-settings-hub .scp-tc-dash-embed .scp-tc-dash-catalog-shell,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-settings-hub .scp-tc-dash-embed .scp-tc-dash-orders-shell {
    background: #111827;
    border-color: #334155;
}
html[data-scp-theme="dark"] #scp-plattform-verkaufsartikel .scp-tc-dash-embed .scp-tc-dash-catalog-shell h3,
html[data-scp-theme="dark"] #scp-plattform-verkaufsartikel .scp-tc-dash-embed .scp-tc-dash-orders-shell h3,
html[data-scp-theme="dark"] .scp-settings-hub .scp-tc-dash-embed .scp-tc-dash-catalog-shell h3,
html[data-scp-theme="dark"] .scp-settings-hub .scp-tc-dash-embed .scp-tc-dash-orders-shell h3,
.smartcore-platform-layout[data-scp-theme="dark"] #scp-plattform-verkaufsartikel .scp-tc-dash-embed .scp-tc-dash-catalog-shell h3,
.smartcore-platform-layout[data-scp-theme="dark"] #scp-plattform-verkaufsartikel .scp-tc-dash-embed .scp-tc-dash-orders-shell h3,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-settings-hub .scp-tc-dash-embed .scp-tc-dash-catalog-shell h3,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-settings-hub .scp-tc-dash-embed .scp-tc-dash-orders-shell h3 {
    color: #f1f5f9;
}
html[data-scp-theme="dark"] #scp-plattform-verkaufsartikel .scp-tc-dash-embed .scp-tc-dash-catalog-shell h3 + p,
html[data-scp-theme="dark"] #scp-plattform-verkaufsartikel .scp-tc-dash-embed .scp-tc-dash-orders-shell h3 + p,
html[data-scp-theme="dark"] .scp-settings-hub .scp-tc-dash-embed .scp-tc-dash-catalog-shell h3 + p,
html[data-scp-theme="dark"] .scp-settings-hub .scp-tc-dash-embed .scp-tc-dash-orders-shell h3 + p,
.smartcore-platform-layout[data-scp-theme="dark"] #scp-plattform-verkaufsartikel .scp-tc-dash-embed .scp-tc-dash-catalog-shell h3 + p,
.smartcore-platform-layout[data-scp-theme="dark"] #scp-plattform-verkaufsartikel .scp-tc-dash-embed .scp-tc-dash-orders-shell h3 + p,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-settings-hub .scp-tc-dash-embed .scp-tc-dash-catalog-shell h3 + p,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-settings-hub .scp-tc-dash-embed .scp-tc-dash-orders-shell h3 + p {
    color: #94a3b8;
}
html[data-scp-theme="dark"] #scp-plattform-verkaufsartikel .scp-tc-dash-embed .form-table th,
html[data-scp-theme="dark"] .scp-settings-hub .scp-tc-dash-embed .form-table th,
.smartcore-platform-layout[data-scp-theme="dark"] #scp-plattform-verkaufsartikel .scp-tc-dash-embed .form-table th,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-settings-hub .scp-tc-dash-embed .form-table th {
    color: #94a3b8;
}
html[data-scp-theme="dark"] #scp-plattform-verkaufsartikel .scp-tc-dash-embed .scp-tc-mand strong,
html[data-scp-theme="dark"] .scp-settings-hub .scp-tc-dash-embed .scp-tc-mand strong,
.smartcore-platform-layout[data-scp-theme="dark"] #scp-plattform-verkaufsartikel .scp-tc-dash-embed .scp-tc-mand strong,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-settings-hub .scp-tc-dash-embed .scp-tc-mand strong {
    color: #f1f5f9;
}
html[data-scp-theme="dark"] #scp-plattform-verkaufsartikel .scp-tc-dash-embed .scp-tc-dash-orders-shell h4,
html[data-scp-theme="dark"] .scp-settings-hub .scp-tc-dash-embed .scp-tc-dash-orders-shell h4,
.smartcore-platform-layout[data-scp-theme="dark"] #scp-plattform-verkaufsartikel .scp-tc-dash-embed .scp-tc-dash-orders-shell h4,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-settings-hub .scp-tc-dash-embed .scp-tc-dash-orders-shell h4 {
    color: #f1f5f9;
}
html[data-scp-theme="dark"] #scp-plattform-verkaufsartikel .scp-tc-dash-embed .scp-panel__head,
html[data-scp-theme="dark"] .scp-settings-hub .scp-tc-dash-embed .scp-panel__head,
.smartcore-platform-layout[data-scp-theme="dark"] #scp-plattform-verkaufsartikel .scp-tc-dash-embed .scp-panel__head,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-settings-hub .scp-tc-dash-embed .scp-panel__head {
    color: #f1f5f9;
}
html[data-scp-theme="dark"] #scp-plattform-verkaufsartikel .scp-tc-dash-embed input.regular-text,
html[data-scp-theme="dark"] #scp-plattform-verkaufsartikel .scp-tc-dash-embed select,
html[data-scp-theme="dark"] #scp-plattform-verkaufsartikel .scp-tc-dash-embed textarea,
html[data-scp-theme="dark"] .scp-settings-hub .scp-tc-dash-embed input.regular-text,
html[data-scp-theme="dark"] .scp-settings-hub .scp-tc-dash-embed select,
html[data-scp-theme="dark"] .scp-settings-hub .scp-tc-dash-embed textarea,
.smartcore-platform-layout[data-scp-theme="dark"] #scp-plattform-verkaufsartikel .scp-tc-dash-embed input.regular-text,
.smartcore-platform-layout[data-scp-theme="dark"] #scp-plattform-verkaufsartikel .scp-tc-dash-embed select,
.smartcore-platform-layout[data-scp-theme="dark"] #scp-plattform-verkaufsartikel .scp-tc-dash-embed textarea,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-settings-hub .scp-tc-dash-embed input.regular-text,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-settings-hub .scp-tc-dash-embed select,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-settings-hub .scp-tc-dash-embed textarea {
    background: #0f172a;
    border-color: #334155;
    color: #e5e7eb;
}
html[data-scp-theme="dark"] #scp-plattform-verkaufsartikel .scp-tc-dash-embed table.widefat th,
html[data-scp-theme="dark"] #scp-plattform-verkaufsartikel .scp-tc-dash-embed table.widefat td,
html[data-scp-theme="dark"] .scp-settings-hub .scp-tc-dash-embed table.widefat th,
html[data-scp-theme="dark"] .scp-settings-hub .scp-tc-dash-embed table.widefat td,
.smartcore-platform-layout[data-scp-theme="dark"] #scp-plattform-verkaufsartikel .scp-tc-dash-embed table.widefat th,
.smartcore-platform-layout[data-scp-theme="dark"] #scp-plattform-verkaufsartikel .scp-tc-dash-embed table.widefat td,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-settings-hub .scp-tc-dash-embed table.widefat th,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-settings-hub .scp-tc-dash-embed table.widefat td {
    color: #e5e7eb;
    border-color: #334155;
}
html[data-scp-theme="dark"] #scp-plattform-verkaufsartikel .scp-tc-dash-embed table.widefat thead th,
html[data-scp-theme="dark"] .scp-settings-hub .scp-tc-dash-embed table.widefat thead th,
.smartcore-platform-layout[data-scp-theme="dark"] #scp-plattform-verkaufsartikel .scp-tc-dash-embed table.widefat thead th,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-settings-hub .scp-tc-dash-embed table.widefat thead th {
    background: #0f172a;
    color: #94a3b8;
}

html[data-scp-theme="dark"] .smartcore-platform-strings--dashboard h1,
html[data-scp-theme="dark"] .smartcore-platform-strings--dashboard h2,
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-platform-strings--dashboard h1,
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-platform-strings--dashboard h2 {
    color: #f1f5f9;
}
html[data-scp-theme="dark"] .smartcore-platform-strings--dashboard .description,
html[data-scp-theme="dark"] .smartcore-platform-strings--dashboard p,
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-platform-strings--dashboard .description,
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-platform-strings--dashboard p {
    color: #94a3b8;
}
html[data-scp-theme="dark"] .smartcore-platform-strings--dashboard table,
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-platform-strings--dashboard table {
    background: #111827;
}
html[data-scp-theme="dark"] .smartcore-platform-strings--dashboard th,
html[data-scp-theme="dark"] .smartcore-platform-strings--dashboard td,
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-platform-strings--dashboard th,
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-platform-strings--dashboard td {
    border-color: #334155;
    color: #e5e7eb;
}
html[data-scp-theme="dark"] .smartcore-platform-strings--dashboard thead th,
.smartcore-platform-layout[data-scp-theme="dark"] .smartcore-platform-strings--dashboard thead th {
    background: #0f172a;
    color: #94a3b8;
}
html[data-scp-theme="dark"] .scp-string-catalog-toolbar,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-string-catalog-toolbar {
    background: #1e3a5f !important;
    border-color: #334155 !important;
    color: #bfdbfe;
}

html[data-scp-theme="dark"] .scp-dvh-card,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-dvh-card {
    background: #111827;
    border-color: #334155;
    color: #e5e7eb;
}
html[data-scp-theme="dark"] .scp-dvh-card:hover,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-dvh-card:hover {
    background: #1e293b;
    border-color: #3b82f6;
    box-shadow: 0 6px 22px rgba(37, 99, 235, 0.15);
}
html[data-scp-theme="dark"] .scp-dvh-card-title,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-dvh-card-title {
    color: #f1f5f9;
}
html[data-scp-theme="dark"] .scp-dvh-card-desc,
html[data-scp-theme="dark"] .scp-dvh-card-tag,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-dvh-card-desc,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-dvh-card-tag {
    color: #94a3b8;
}

html[data-scp-theme="dark"] .scp-pto__picker,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-pto__picker {
    background: #111827 !important;
    border-color: #334155 !important;
    color: #e5e7eb;
}
html[data-scp-theme="dark"] .scp-pto__jump-link,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-pto__jump-link {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #93c5fd !important;
}

html[data-scp-theme="dark"] .scp-kl-qext h2,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-kl-qext h2 {
    color: #f1f5f9;
}
html[data-scp-theme="dark"] .scp-kl-qext label,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-kl-qext label {
    color: #94a3b8;
}
html[data-scp-theme="dark"] .scp-kl-qext__row,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-kl-qext__row {
    background: #111827 !important;
    border-color: #334155 !important;
}
html[data-scp-theme="dark"] .scp-kl-qext__input,
html[data-scp-theme="dark"] .scp-kl-qext select,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-kl-qext__input,
.smartcore-platform-layout[data-scp-theme="dark"] .scp-kl-qext select {
    background: #0f172a !important;
    border-color: #334155 !important;
    color: #e5e7eb !important;
}

/* ============================================================
 * 7. Opt-Out: Plugins, die eigene Dark-Logik haben, koennen diesen
 *    Block ueber eine Klasse am Wrapper unterdruecken:
 *    .scp-no-dark  => unbeeinflusst vom System-Dark-Mode
 * ============================================================ */
html[data-scp-theme="dark"] .scp-no-dark,
html[data-scp-theme="dark"] .scp-no-dark * {
    background-color: revert;
    color: revert;
    border-color: revert;
}
