:root {
    --fw-brand: var(--fw-primary-color, #2563eb);
    --fw-primary: #2563eb;
    --fw-primary-dark: #1d4ed8;
    --fw-primary-light: #3b82f6;
    --fw-navbar-black: #000000;
    --fw-navbar-black-light: #1f1f1f;
    --fw-bg: #f2f5f9;
    --fw-surface: #ffffff;
    --fw-surface-elevated: #ffffff;
    --fw-surface-muted: #f6f8fb;
    --fw-text: #111827;
    --fw-text-muted: #667085;
    --fw-card-border: #dde3eb;
    --fw-dropdown-hover: #f1f3f5;
    --fw-dropdown-active: #e9ecef;
    --fw-yellow: #f2c94c;
    --fw-radius: 0.45rem;
    --fw-radius-lg: 0.5rem;
    --fw-shadow-sm: 0 0.35rem 1rem rgba(16, 24, 40, 0.06);
    --fw-shadow-md: 0 0.85rem 2.2rem rgba(16, 24, 40, 0.12);
}

/* Anlaesse: Schichtplanung/Ressourcenuebersicht im Dark Theme lesbar halten. */
body[data-theme="dark"] .event-resource-table tbody td {
    background: var(--fw-surface-elevated) !important;
    border-color: var(--fw-card-border) !important;
    color: var(--fw-text) !important;
}

body[data-theme="dark"] .event-resource-table tbody tr.is-missing td {
    background: rgba(245, 158, 11, .12) !important;
}

body[data-theme="dark"] .event-resource-table tbody tr.is-covered td {
    background: rgba(34, 197, 94, .08) !important;
}

body[data-theme="dark"] .event-resource-table tbody tr.is-missing td:first-child {
    border-left-color: #f59e0b !important;
}

body[data-theme="dark"] .event-resource-table tbody tr.is-covered td:first-child {
    border-left-color: #22c55e !important;
}

body[data-theme="dark"] .event-resource-table tbody strong,
body[data-theme="dark"] .event-resource-table .text-center {
    color: #f8fafc !important;
}

body[data-theme="dark"] .event-resource-status.is-open {
    background: rgba(245, 158, 11, .22) !important;
    color: #fcd34d !important;
}

body[data-theme="dark"] .event-resource-status.is-complete {
    background: rgba(34, 197, 94, .18) !important;
    color: #86efac !important;
}

body[data-theme="dark"] .event-shift-assignees {
    color: var(--fw-text-muted) !important;
}

body[data-theme="dark"] .event-shift-assignees summary {
    color: #dbeafe !important;
}

body[data-theme="dark"] .event-shift-assignees summary span,
body[data-theme="dark"] .event-shift-assignees ul {
    background: var(--fw-surface-muted) !important;
    border-color: var(--fw-card-border) !important;
    color: var(--fw-text) !important;
}

@media (prefers-color-scheme: dark) {
    body[data-theme="auto"] .event-resource-table tbody td {
        background: var(--fw-surface-elevated) !important;
        border-color: var(--fw-card-border) !important;
        color: var(--fw-text) !important;
    }

    body[data-theme="auto"] .event-resource-table tbody tr.is-missing td {
        background: rgba(245, 158, 11, .12) !important;
    }

    body[data-theme="auto"] .event-resource-table tbody tr.is-covered td {
        background: rgba(34, 197, 94, .08) !important;
    }

    body[data-theme="auto"] .event-resource-table tbody tr.is-missing td:first-child {
        border-left-color: #f59e0b !important;
    }

    body[data-theme="auto"] .event-resource-table tbody tr.is-covered td:first-child {
        border-left-color: #22c55e !important;
    }

    body[data-theme="auto"] .event-resource-table tbody strong,
    body[data-theme="auto"] .event-resource-table .text-center {
        color: #f8fafc !important;
    }

    body[data-theme="auto"] .event-resource-status.is-open {
        background: rgba(245, 158, 11, .22) !important;
        color: #fcd34d !important;
    }

    body[data-theme="auto"] .event-resource-status.is-complete {
        background: rgba(34, 197, 94, .18) !important;
        color: #86efac !important;
    }

    body[data-theme="auto"] .event-shift-assignees {
        color: var(--fw-text-muted) !important;
    }

    body[data-theme="auto"] .event-shift-assignees summary {
        color: #dbeafe !important;
    }

    body[data-theme="auto"] .event-shift-assignees summary span,
    body[data-theme="auto"] .event-shift-assignees ul {
        background: var(--fw-surface-muted) !important;
        border-color: var(--fw-card-border) !important;
        color: var(--fw-text) !important;
    }
}

.checklist-status-pill {
    align-items: center;
    border: 1px solid transparent;
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1;
    min-height: 1.75rem;
    padding: 0.38rem 0.7rem;
    white-space: nowrap;
}

.checklist-status-pill.is-open {
    background: rgba(148, 163, 184, 0.16);
    border-color: rgba(148, 163, 184, 0.38);
    color: #cbd5e1;
}

.checklist-status-pill.is-progress {
    background: rgba(37, 99, 235, 0.14);
    border-color: rgba(96, 165, 250, 0.42);
    color: #93c5fd;
}

.checklist-status-pill.is-done {
    background: rgba(16, 185, 129, 0.14);
    border-color: rgba(52, 211, 153, 0.42);
    color: #86efac;
}

.checklist-run-item {
    align-items: flex-start;
    display: flex;
    gap: 0.6rem;
}

.checklist-toggle {
    align-items: center;
    background: rgba(15, 23, 42, 0.58);
    border: 1px solid rgba(148, 163, 184, 0.55);
    border-radius: 0.45rem;
    color: transparent;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 0;
    height: 1.65rem;
    justify-content: center;
    margin-top: 0.05rem;
    padding: 0;
    position: relative;
    transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
    width: 1.65rem;
}

.checklist-toggle:hover:not(:disabled),
.checklist-toggle:focus-visible {
    border-color: rgba(96, 165, 250, 0.86);
    box-shadow: 0 0 0 0.18rem rgba(37, 99, 235, 0.18);
}

.checklist-toggle.is-done {
    background: #059669;
    border-color: #10b981;
}

.checklist-toggle.is-done::after {
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    content: "";
    height: 0.72rem;
    margin-top: -0.12rem;
    transform: rotate(45deg);
    width: 0.36rem;
}

.checklist-toggle:not(.is-done)::after {
    background: rgba(148, 163, 184, 0.78);
    border-radius: 50%;
    content: "";
    height: 0.36rem;
    width: 0.36rem;
}

.checklist-toggle:disabled {
    cursor: not-allowed;
    opacity: 0.62;
}

body:not([data-theme="dark"]):not([data-theme="auto"]) .checklist-status-pill.is-open {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #334155;
}

body:not([data-theme="dark"]):not([data-theme="auto"]) .checklist-status-pill.is-progress {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
}

body:not([data-theme="dark"]):not([data-theme="auto"]) .checklist-status-pill.is-done {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #047857;
}

body:not([data-theme="dark"]):not([data-theme="auto"]) .checklist-toggle {
    background: #ffffff;
    border-color: #94a3b8;
}

html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 15px;
    }
}

body {
    min-height: 100vh;
    margin: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0, rgba(255, 255, 255, 0) 16rem),
        linear-gradient(180deg, var(--fw-bg), #e9eef5);
    color: var(--fw-text);
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* Allgemeiner Fokus */
.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-select:focus,
.form-check-input:focus {
    border-color: var(--fw-primary-light);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.18);
}

/* Floating Labels */
.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* Navigation */
.fw-navbar {
    background: linear-gradient(105deg, #08090c 0%, #171d28 70%, #0f1f3d 100%);
    min-height: 76px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.fw-brand {
    display: flex;
    align-items: center;
    padding-top: 0;
    padding-bottom: 0;
}

.fw-logo {
    height: 52px;
    max-width: 260px;
    object-fit: contain;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.88);
    font-weight: 650;
    padding-left: 0.9rem;
    padding-right: 0.9rem;
    border-radius: var(--fw-radius);
}

    .navbar-dark .navbar-nav .nav-link:hover,
    .navbar-dark .navbar-nav .nav-link:focus {
        color: #ffffff;
        background: rgba(255, 255, 255, 0.1);
    }

/* Dropdowns */
.dropdown-menu {
    color: var(--fw-text);
    background-color: var(--fw-surface-elevated);
    border: 1px solid var(--fw-card-border);
    border-radius: var(--fw-radius-lg);
    box-shadow: var(--fw-shadow-md);
    backdrop-filter: blur(12px);
    padding: 0.5rem;
}

.dropdown-item {
    color: var(--fw-text);
    border-radius: var(--fw-radius);
    padding: 0.55rem 0.8rem;
}

    .dropdown-item:hover,
    .dropdown-item:focus {
        background-color: var(--fw-dropdown-hover);
        color: #212529;
    }

    .dropdown-item.active,
    .dropdown-item:active {
        background-color: var(--fw-dropdown-active);
        color: #212529;
    }

/* Layout */
.page-container {
    flex: 1;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.page-container > main {
    max-width: 1760px;
    margin-left: auto;
    margin-right: auto;
}

h1 {
    font-weight: 800;
    color: var(--fw-text);
    letter-spacing: 0;
}

h2,
h3,
h4,
h5,
h6 {
    letter-spacing: 0;
}

/* Cards */
.card {
    border: 1px solid var(--fw-card-border);
    border-radius: var(--fw-radius-lg);
    background-color: var(--fw-surface-elevated);
    color: var(--fw-text);
    box-shadow: 0 1px 0 rgba(16, 24, 40, 0.02);
}

.card-header {
    background-color: var(--fw-surface-muted);
    border-bottom: 1px solid var(--fw-card-border);
    border-radius: var(--fw-radius-lg) var(--fw-radius-lg) 0 0 !important;
    padding: 0.85rem 1rem;
}

.card-body {
    padding: 1rem;
}

.card-footer {
    background-color: var(--fw-surface-muted);
    border-top-color: var(--fw-card-border);
}

.shadow-sm {
    box-shadow: var(--fw-shadow-sm) !important;
}

/* Buttons */
.btn-primary {
    background-color: var(--fw-primary);
    border-color: var(--fw-primary);
    color: #ffffff;
    box-shadow: 0 0.35rem 0.85rem rgba(37, 99, 235, 0.18);
}

    .btn-primary:hover,
    .btn-primary:focus {
        background-color: var(--fw-primary-dark);
        border-color: var(--fw-primary-dark);
        color: #ffffff;
    }

.btn-outline-primary {
    color: var(--fw-primary);
    border-color: var(--fw-primary);
}

    .btn-outline-primary:hover,
    .btn-outline-primary:focus {
        background-color: var(--fw-primary);
        border-color: var(--fw-primary);
        color: #ffffff;
    }

.btn-outline-secondary {
    color: var(--fw-primary-light);
    border-color: #adb5bd;
}

    .btn-outline-secondary:hover,
    .btn-outline-secondary:focus {
        background-color: #e9ecef;
        border-color: #adb5bd;
        color: #212529;
    }

.btn {
    border-radius: var(--fw-radius);
    font-weight: 650;
    letter-spacing: 0;
    min-height: 2.35rem;
}

.btn-sm {
    border-radius: calc(var(--fw-radius) - 0.05rem);
}

/* Formulare */
.form-control,
.form-select {
    color: var(--fw-text);
    background-color: var(--fw-surface-elevated);
    border-color: #cfd6df;
    border-radius: var(--fw-radius);
    min-height: 2.45rem;
}

    .form-control:focus,
    .form-select:focus {
        border-color: var(--fw-primary-light);
        box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.18);
    }

/* Tabellen */
.table {
    --bs-table-bg: var(--fw-surface-elevated);
    --bs-table-color: var(--fw-text);
    --bs-table-border-color: var(--fw-card-border);
    background-color: var(--fw-surface-elevated);
    color: var(--fw-text);
    vertical-align: middle;
}

    .table thead th {
        background-color: var(--fw-surface-muted);
        color: var(--fw-text);
        font-weight: 700;
        border-bottom-width: 1px;
    }

    .table > :not(caption) > * > * {
        padding: 0.72rem 0.8rem;
    }

.table-hover tbody tr:hover {
    background-color: #f8fafc;
}

.table tbody tr {
    transition: background-color 120ms ease;
}

/* Badges */
.badge.bg-success {
    background-color: #198754 !important;
}

.badge.bg-warning {
    background-color: var(--fw-yellow) !important;
}

/* Footer */
.fw-footer {
    margin-top: auto;
    padding: 1rem 0;
    color: rgba(255, 255, 255, 0.82);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(90deg, #111827, #1f2937);
    font-size: 0.95rem;
    font-weight: 650;
}
/* Responsive Modulnavigation
   Unterhalb von 1400px wird die Modulnavigation in das Bootstrap-Menü
   zusammengefasst, damit die rechte Kopfzeile nicht mit den Modulmenüs kollidiert. */
@media (max-width: 1399.98px) {
    .module-navbar .container-fluid {
        gap: 0.75rem;
    }

    .module-navbar .navbar-toggler {
        display: inline-flex;
        align-items: center;
        gap: 0.45rem;
        border-color: rgba(255, 255, 255, 0.35);
        color: #ffffff;
        padding: 0.45rem 0.7rem;
        border-radius: 0.65rem;
    }

    .module-navbar .navbar-toggler::after {
        content: "Menü";
        color: #ffffff;
        font-size: 0.95rem;
        font-weight: 700;
        line-height: 1;
    }

    .module-navbar .navbar-collapse {
        margin-top: 0.85rem;
        padding: 0.85rem;
        border-radius: 0.9rem;
        background: rgba(0, 0, 0, 0.18);
    }

    .module-navbar .navbar-nav {
        align-items: stretch !important;
    }

    .module-navbar .navbar-nav .nav-link {
        padding: 0.7rem 0.9rem;
        border-radius: 0.65rem;
    }

    .module-navbar .navbar-nav .nav-link:hover,
    .module-navbar .navbar-nav .nav-link:focus {
        background: rgba(255, 255, 255, 0.12);
    }

    .module-navbar .navbar-nav.ms-auto {
        margin-top: 0.6rem;
        padding-top: 0.6rem;
        border-top: 1px solid rgba(255, 255, 255, 0.16);
    }

    .module-navbar .dropdown-menu {
        margin-top: 0.2rem;
    }
}

@media (min-width: 1400px) {
    .module-navbar .navbar-nav.ms-auto {
        margin-left: auto !important;
    }
}

/* Einheitliche Ausrichtung der eingeklappten Modulmenüs
   Bootstrap-Klassen wie ms-auto, dropdown-menu-end oder align-items-lg-center
   führen im Collapsed-Modus sonst je nach Layout zu gemischter Links-/Zentrierung. */
@media (max-width: 1399.98px) {
    .module-navbar .navbar-collapse {
        width: 100%;
    }

    .module-navbar .navbar-collapse .navbar-nav {
        width: 100%;
        margin-left: 0 !important;
        margin-right: 0 !important;
        align-items: stretch !important;
        text-align: left;
    }

    .module-navbar .navbar-collapse .nav-item,
    .module-navbar .navbar-collapse .dropdown {
        width: 100%;
        text-align: left;
    }

    .module-navbar .navbar-collapse .nav-link,
    .module-navbar .navbar-collapse .dropdown-toggle {
        width: 100%;
        justify-content: flex-start;
        text-align: left;
    }

    .module-navbar .navbar-collapse .dropdown-menu,
    .module-navbar .navbar-collapse .dropdown-menu-end {
        position: static !important;
        inset: auto !important;
        transform: none !important;
        width: 100%;
        min-width: 100%;
        margin-left: 0 !important;
        margin-right: 0 !important;
        text-align: left;
    }

    .module-navbar .navbar-collapse .dropdown-item {
        text-align: left;
    }
}

/* Projektweit keine erklärenden Eingabe-Hinweise unter Formularfeldern anzeigen.
   Validierungs- und Fehlermeldungen bleiben sichtbar, da diese nicht .form-text verwenden. */
.form-text {
    display: none !important;
}

/* Wiederverwendbare Dashboard-Bausteine */
.fw-page-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.fw-page-header h1 {
    margin-bottom: 0.25rem;
}

.fw-page-header-actions,
.fw-action-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    align-items: center;
}

.fw-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.fw-kpi-card,
.fw-filter-card,
.fw-empty-state,
.fw-tile-card {
    border: 1px solid var(--fw-card-border);
    border-radius: var(--fw-radius-lg);
    background: var(--fw-surface-elevated);
    color: var(--fw-text);
    box-shadow: var(--fw-shadow-sm);
}

.fw-kpi-card {
    padding: 1rem;
    min-height: 5.85rem;
}

.fw-kpi-label {
    color: var(--fw-text-muted);
    font-size: 0.85rem;
    font-weight: 700;
}

.fw-kpi-value {
    margin-top: 0.2rem;
    font-size: clamp(1.65rem, 3vw, 2.35rem);
    line-height: 1;
    font-weight: 850;
}

.fw-filter-card {
    padding: 1rem;
    margin-bottom: 1rem;
}

.fw-empty-state {
    padding: 1.35rem;
    color: var(--fw-text-muted);
}

.fw-tile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.fw-tile-card {
    display: block;
    height: 100%;
    padding: 1rem;
    transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.fw-tile-card:hover,
.fw-tile-card:focus-within,
.fw-tile-card.is-active {
    border-color: #64748b;
    box-shadow: inset 4px 0 0 #64748b, var(--fw-shadow-sm);
}

.fw-tile-card:hover {
    transform: translateY(-1px);
}

.fw-wizard-rail {
    border: 1px solid var(--fw-card-border);
    border-radius: var(--fw-radius-lg);
    overflow: hidden;
    background: var(--fw-surface-elevated);
}

.fw-wizard-step {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.85rem 1rem;
    color: var(--fw-text-muted);
    border-bottom: 1px solid var(--fw-card-border);
}

.fw-wizard-step:last-child {
    border-bottom: 0;
}

.fw-wizard-step.is-active {
    background: var(--fw-surface-muted);
    color: var(--fw-text);
    font-weight: 750;
}

.fw-wizard-step.is-done {
    color: var(--fw-text);
}

.fw-wizard-step-number {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    background: var(--fw-surface-muted);
    color: var(--fw-text);
    border: 1px solid var(--fw-card-border);
    font-weight: 800;
}

.fw-wizard-step.is-active .fw-wizard-step-number,
.fw-wizard-step.is-done .fw-wizard-step-number {
    background: var(--fw-primary);
    border-color: var(--fw-primary);
    color: #ffffff;
}

.rich-mail-template {
    border: 1px solid var(--fw-card-border);
    border-radius: var(--fw-radius-lg);
    background: var(--fw-surface-elevated);
    overflow: hidden;
}

.rich-mail-template-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    padding: 0.45rem;
    background: var(--fw-surface-muted);
    border-bottom: 1px solid var(--fw-card-border);
}

.rich-mail-template-toolbar .btn {
    min-height: 2rem;
    min-width: 2.15rem;
    padding: 0.2rem 0.55rem;
    font-weight: 800;
}

.rich-mail-template-editor {
    min-height: 13rem;
    padding: 0.85rem 1rem;
    outline: none;
    background: var(--fw-surface-elevated);
    color: var(--fw-text);
}

.rich-mail-template-editor:focus {
    box-shadow: inset 0 0 0 0.2rem rgba(37, 99, 235, 0.12);
}

.rich-mail-template-editor p {
    margin: 0 0 0.75rem;
}

.rich-mail-template-editor p:last-child {
    margin-bottom: 0;
}

.rich-mail-template-editor ul,
.rich-mail-template-editor ol {
    margin-bottom: 0.75rem;
    padding-left: 1.4rem;
}

/* Einheitliche Grundoptik für Dashboards und Arbeitsflächen */
.text-muted {
    color: var(--fw-text-muted) !important;
}

.bg-white,
.bg-light {
    background-color: var(--fw-surface-elevated) !important;
    color: var(--fw-text) !important;
}

.alert-light {
    background-color: var(--fw-surface-muted);
    color: var(--fw-text);
    border-color: var(--fw-card-border);
}

.alert {
    border-radius: var(--fw-radius-lg);
}

.badge,
.badge.rounded-pill {
    font-weight: 750;
    letter-spacing: 0;
}

.page-container > main > .row,
.page-container > main > .card,
.page-container > main > form > .row,
.page-container > main > form > .card {
    max-width: 1680px;
}

.card.text-center .display-4,
.card.text-center .display-5,
.card.text-center .display-6 {
    line-height: 1;
    letter-spacing: 0;
}

.card.text-center .display-5 {
    font-size: clamp(2rem, 4vw, 3rem);
}

.card.text-center .display-6 {
    font-size: clamp(1.65rem, 3vw, 2.35rem);
}

.card .card-body > .row.g-3,
.card .card-body > .row.g-2 {
    align-items: stretch;
}

.table-responsive {
    border-radius: var(--fw-radius-lg);
    border: 1px solid var(--fw-card-border);
    background: var(--fw-surface-elevated);
}

.table-responsive > .table {
    margin-bottom: 0;
}

@media (min-width: 768px) {
    .fw-page-header {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
    }
}

@media (max-width: 575.98px) {
    .fw-kpi-grid,
    .fw-tile-grid {
        gap: 0.75rem;
    }

    .fw-kpi-card,
    .fw-filter-card,
    .fw-empty-state,
    .fw-tile-card {
        padding: 0.85rem;
    }
}

.theme-choice {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
}

.theme-choice .btn {
    min-height: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.profile-page {
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
}

.profile-card {
    overflow: hidden;
}

.profile-card .card-header {
    background-color: var(--fw-surface-muted);
    color: var(--fw-text);
}

.profile-identity {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.profile-avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--fw-primary);
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 800;
    flex: 0 0 auto;
}

.profile-facts {
    display: grid;
    gap: 0.75rem;
}

.profile-facts div {
    padding-top: 0.75rem;
    border-top: 1px solid var(--fw-card-border);
}

.profile-facts dt {
    color: var(--fw-text-muted);
    font-size: 0.85rem;
    font-weight: 700;
}

.profile-facts dd {
    margin-bottom: 0;
    overflow-wrap: anywhere;
}

.profile-setting-form .theme-choice .btn {
    font-weight: 600;
}

.profile-signature-preview {
    background-color: #ffffff !important;
    color: #212529 !important;
}

.profile-signature-preview .text-muted {
    color: #6c757d !important;
}

.as-signature-pad {
    position: relative;
    overflow: hidden;
    min-height: 220px;
    border: 2px dashed #8aa99a;
    border-radius: var(--fw-radius-lg);
    background: #ffffff;
}

.as-signature-pad.has-ink {
    border-style: solid;
    border-color: #146c43;
}

.as-signature-canvas {
    display: block;
    width: 100%;
    height: 220px;
    cursor: crosshair;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
}

.as-signature-hint {
    position: absolute;
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.55rem;
    color: #6c757d;
    text-align: center;
    pointer-events: none;
    transition: opacity 0.15s ease;
}

.as-signature-pad.has-ink .as-signature-hint {
    opacity: 0;
}

body[data-theme="dark"] .profile-avatar {
    background: #3b82f6;
    color: #ffffff;
}

body[data-theme="dark"] .as-signature-pad {
    color: #212529;
}

@media (max-width: 575.98px) {
    .page-container {
        padding-left: 0.85rem;
        padding-right: 0.85rem;
    }

    .theme-choice {
        grid-template-columns: 1fr;
    }

    .as-signature-pad,
    .as-signature-canvas {
        min-height: 190px;
        height: 190px;
    }
}

body[data-theme="dark"] {
    --fw-bg: #10151c;
    --fw-surface: #151b23;
    --fw-surface-elevated: #1b222c;
    --fw-surface-muted: #222b36;
    --fw-text: #edf2f7;
    --fw-text-muted: #a8b3c2;
    --fw-card-border: #303b49;
    --fw-dropdown-hover: #26313f;
    --fw-dropdown-active: #313c4b;
    --fw-primary: #60a5fa;
    --fw-primary-dark: #3b82f6;
    --fw-primary-light: #93c5fd;
    --fw-shadow-sm: 0 0.45rem 1.35rem rgba(0, 0, 0, 0.28);
    --fw-shadow-md: 0 1rem 2.4rem rgba(0, 0, 0, 0.38);
}

body[data-theme="dark"] {
    background:
        linear-gradient(180deg, rgba(31, 41, 55, 0.75) 0, rgba(31, 41, 55, 0) 16rem),
        linear-gradient(180deg, var(--fw-bg), #0b1017);
}

body[data-theme="dark"] .navbar-dark,
body[data-theme="dark"] .fw-navbar {
    background: linear-gradient(90deg, #06080c, #131922);
}

body[data-theme="dark"] .form-control,
body[data-theme="dark"] .form-select {
    border-color: #3a4451;
}

body[data-theme="dark"] .form-control::placeholder {
    color: #7f8a96;
}

body[data-theme="dark"] .btn-outline-secondary {
    color: #c4ccd5;
    border-color: #566273;
}

body[data-theme="dark"] .btn-outline-secondary:hover,
body[data-theme="dark"] .btn-outline-secondary:focus {
    background-color: #29313b;
    border-color: #667386;
    color: #ffffff;
}

body[data-theme="dark"] .btn-outline-primary {
    color: #bfdbfe;
    border-color: #3b82f6;
}

body[data-theme="dark"] .btn-outline-primary:hover,
body[data-theme="dark"] .btn-outline-primary:focus {
    background-color: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
}

body[data-theme="dark"] .btn-primary {
    background-color: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
}

body[data-theme="dark"] .dropdown-item:hover,
body[data-theme="dark"] .dropdown-item:focus,
body[data-theme="dark"] .dropdown-item.active,
body[data-theme="dark"] .dropdown-item:active {
    color: #ffffff;
}

body[data-theme="dark"] .table-hover tbody tr:hover {
    --bs-table-bg: #222932;
}

body[data-theme="dark"] .table-responsive {
    background: var(--fw-surface-elevated);
}

body[data-theme="dark"] .modal-content,
body[data-theme="dark"] .list-group-item {
    background-color: var(--fw-surface);
    color: var(--fw-text);
    border-color: var(--fw-card-border);
}

body[data-theme="dark"] code {
    color: #f1d88b;
}

body[data-theme="dark"] .module-navbar,
body[data-theme="dark"] .fw-navbar {
    background: linear-gradient(105deg, #06080c 0%, #131922 72%, #0b1b35 100%) !important;
}

body[data-theme="dark"] .fw-footer,
body[data-theme="dark"] .event-footer,
body[data-theme="dark"] .cash-footer,
body[data-theme="dark"] .feedback-footer,
body[data-theme="dark"] .as-footer,
body[data-theme="dark"] .public-home-admin-footer {
    background: linear-gradient(90deg, #111827, #1f2937) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: rgba(255, 255, 255, 0.82) !important;
}

body[data-theme="dark"] .cash-total-row td,
body[data-theme="dark"] .cash-result-row td,
body[data-theme="dark"] .cash-settlement-summary > div,
body[data-theme="dark"] .cash-settlement-summary-result {
    background: var(--fw-surface-muted) !important;
    color: var(--fw-text) !important;
    border-color: var(--fw-card-border) !important;
}

body[data-theme="dark"] .cash-settlement-summary span,
body[data-theme="dark"] .cash-denomination-title,
body[data-theme="dark"] .cash-denomination-row label {
    color: var(--fw-text-muted) !important;
}

body[data-theme="dark"] .event-footer,
body[data-theme="dark"] .cash-footer,
body[data-theme="dark"] .feedback-footer,
body[data-theme="dark"] .as-footer {
    margin-top: auto;
}

body[data-theme="dark"] .org-type-card {
    background: var(--fw-surface-muted) !important;
    border-color: var(--fw-card-border) !important;
    color: var(--fw-text) !important;
}

body[data-theme="dark"] .org-type-card.is-active {
    border-color: #64748b !important;
    box-shadow: inset 4px 0 0 #64748b, var(--fw-shadow-sm) !important;
}

body[data-theme="dark"] .event-dashboard-stat,
body[data-theme="dark"] .event-empty-state,
body[data-theme="dark"] .event-overview-card,
body[data-theme="dark"] .event-management-card,
body[data-theme="dark"] .event-filter-bar,
body[data-theme="dark"] .event-status-filter-pill,
body[data-theme="dark"] .event-page-container .card,
body[data-theme="dark"] .event-management-meta,
body[data-theme="dark"] .event-wizard-step,
body[data-theme="dark"] .event-form-section,
body[data-theme="dark"] .event-type-card,
body[data-theme="dark"] .event-choice-card,
body[data-theme="dark"] .event-sticky-actions,
body[data-theme="dark"] .event-wizard-actions,
body[data-theme="dark"] .event-detail-hero,
body[data-theme="dark"] .event-content-card,
body[data-theme="dark"] .event-detail-shell,
body[data-theme="dark"] .event-tab-nav,
body[data-theme="dark"] .event-quick-stat,
body[data-theme="dark"] .event-setup-step,
body[data-theme="dark"] .event-info-grid div,
body[data-theme="dark"] .event-setting-list div,
body[data-theme="dark"] .event-invitation-summary div,
body[data-theme="dark"] .event-checklist-item,
body[data-theme="dark"] .event-category-chip,
body[data-theme="dark"] .event-shift-day,
body[data-theme="dark"] .event-shift-row,
body[data-theme="dark"] .event-standard-field,
body[data-theme="dark"] .event-question-card,
body[data-theme="dark"] .event-invitee-list,
body[data-theme="dark"] .event-invitee-row,
body[data-theme="dark"] .event-resource-overview,
body[data-theme="dark"] .event-resource-overview-header,
body[data-theme="dark"] .event-resource-table th,
body[data-theme="dark"] .event-resource-empty,
body[data-theme="dark"] .event-reminder-rule-list,
body[data-theme="dark"] .event-mail-card,
body[data-theme="dark"] .event-mail-template-card,
body[data-theme="dark"] .event-reminder-card {
    background: var(--fw-surface-elevated) !important;
    border-color: var(--fw-card-border) !important;
    color: var(--fw-text) !important;
}

body[data-theme="dark"] .event-page-container .card-header,
body[data-theme="dark"] .event-page-container .card-footer,
body[data-theme="dark"] .event-page-container .bg-white,
body[data-theme="dark"] .event-shift-day-heading,
body[data-theme="dark"] .event-tab-button.is-active,
body[data-theme="dark"] .event-setup-step > span,
body[data-theme="dark"] .event-question-order,
body[data-theme="dark"] .event-invitee-avatar {
    background: var(--fw-surface-muted) !important;
    border-color: var(--fw-card-border) !important;
    color: var(--fw-text) !important;
}

body[data-theme="dark"] .event-page-container .text-muted {
    color: var(--fw-text-muted) !important;
}

body[data-theme="dark"] .event-page-container .table {
    --bs-table-bg: var(--fw-surface-elevated);
    --bs-table-color: var(--fw-text);
    --bs-table-border-color: var(--fw-card-border);
}

body[data-theme="dark"] .event-management-meta,
body[data-theme="dark"] .event-readonly-pill,
body[data-theme="dark"] .event-status-badge,
body[data-theme="dark"] .event-type-pill,
body[data-theme="dark"] .event-form-section-number,
body[data-theme="dark"] .event-tab-button > span,
body[data-theme="dark"] .event-category-label,
body[data-theme="dark"] .event-category-chip > span,
body[data-theme="dark"] .event-standard-field > span,
body[data-theme="dark"] .event-registration-status,
body[data-theme="dark"] .event-status-filter-pill.is-active,
body[data-theme="dark"] .event-status-filter-pill:hover {
    background: var(--fw-surface-muted) !important;
    border-color: var(--fw-card-border) !important;
    color: var(--fw-text) !important;
}

body[data-theme="dark"] .event-tab-button {
    color: var(--fw-text-muted) !important;
}

body[data-theme="dark"] .event-dashboard-stat-label,
body[data-theme="dark"] .event-dashboard-stat small,
body[data-theme="dark"] .event-empty-state p,
body[data-theme="dark"] .event-overview-date span,
body[data-theme="dark"] .event-overview-location,
body[data-theme="dark"] .event-status-dot,
body[data-theme="dark"] .event-status-badge,
body[data-theme="dark"] .event-management-meta span,
body[data-theme="dark"] .event-info-grid span,
body[data-theme="dark"] .event-setting-list span,
body[data-theme="dark"] .event-description-block > span,
body[data-theme="dark"] .event-type-card-text,
body[data-theme="dark"] .event-choice-card small,
body[data-theme="dark"] .event-detail-subtitle,
body[data-theme="dark"] .event-detail-hero-meta,
body[data-theme="dark"] .event-quick-stat > span,
body[data-theme="dark"] .event-quick-stat > small,
body[data-theme="dark"] .event-setup-step small,
body[data-theme="dark"] .event-shift-time span,
body[data-theme="dark"] .event-shift-details,
body[data-theme="dark"] .event-shift-occupancy small,
body[data-theme="dark"] .event-standard-field > small,
body[data-theme="dark"] .event-question-options,
body[data-theme="dark"] .event-question-condition,
body[data-theme="dark"] .event-invitation-summary span,
body[data-theme="dark"] .event-invitee-person > span,
body[data-theme="dark"] .event-resource-overview-header p,
body[data-theme="dark"] .event-resource-table td,
body[data-theme="dark"] .event-reminder-stats,
body[data-theme="dark"] .event-content-card-header p,
body[data-theme="dark"] .event-panel-toolbar p,
body[data-theme="dark"] .event-mail-card-header p,
body[data-theme="dark"] .event-mail-template-card > summary small,
body[data-theme="dark"] .event-reminder-card p {
    color: var(--fw-text-muted) !important;
}

body[data-theme="dark"] .event-dashboard-stat strong,
body[data-theme="dark"] .event-quick-stat > strong,
body[data-theme="dark"] .event-invitation-summary strong,
body[data-theme="dark"] .event-shift-time strong,
body[data-theme="dark"] .event-shift-day-date > span,
body[data-theme="dark"] .event-tab-button.is-active,
body[data-theme="dark"] .event-overview-open,
body[data-theme="dark"] .event-status-filter-pill.is-active,
body[data-theme="dark"] .event-status-filter-pill:hover,
body[data-theme="dark"] .event-type-pill,
body[data-theme="dark"] .event-form-section-number {
    color: #cbd5e1 !important;
}

body[data-theme="dark"] .event-card-progress .progress,
body[data-theme="dark"] .event-shift-occupancy .progress,
body[data-theme="dark"] .event-setup-step > span {
    background: #334155 !important;
}

body[data-theme="dark"] .event-card-progress .progress-bar,
body[data-theme="dark"] .event-shift-occupancy .progress-bar {
    background: #64748b !important;
}

body[data-theme="dark"] .event-management-card.is-published,
body[data-theme="dark"] .event-overview-card.is-published,
body[data-theme="dark"] .event-setup-step.is-done > span,
body[data-theme="dark"] .event-checklist-item.is-done > span {
    border-top-color: #64748b !important;
    border-color: #64748b !important;
    background: #64748b !important;
    color: #fff !important;
}

body[data-theme="dark"] .event-management-card.is-published,
body[data-theme="dark"] .event-overview-card.is-published {
    background: linear-gradient(180deg, #1d2734 0%, #17212d 100%) !important;
    border-color: rgba(96, 165, 250, .34) !important;
    border-top-color: #60a5fa !important;
    color: var(--fw-text) !important;
}

body[data-theme="dark"] .event-overview-card.is-published:hover,
body[data-theme="dark"] .event-management-card.is-published:hover {
    border-color: rgba(147, 197, 253, .55) !important;
    box-shadow: 0 .9rem 2rem rgba(2, 6, 23, .34) !important;
}

body[data-theme="dark"] .event-overview-card.is-published h2,
body[data-theme="dark"] .event-management-card.is-published h2,
body[data-theme="dark"] .event-overview-card.is-published .event-overview-date strong {
    color: #f8fafc !important;
}

body[data-theme="dark"] .event-overview-card.is-published .event-overview-date span,
body[data-theme="dark"] .event-overview-card.is-published .event-overview-location,
body[data-theme="dark"] .event-overview-card.is-published .event-status-dot {
    color: #dbeafe !important;
}

body[data-theme="dark"] .event-overview-card.is-published .event-type-pill {
    background: rgba(15, 23, 42, .72) !important;
    border-color: rgba(147, 197, 253, .24) !important;
    color: #e0f2fe !important;
}

body[data-theme="dark"] .event-overview-card.is-published .event-overview-open {
    color: #bfdbfe !important;
}

body[data-theme="dark"] .event-management-card.is-draft,
body[data-theme="dark"] .event-overview-card.is-draft,
body[data-theme="dark"] .event-management-card.is-closed,
body[data-theme="dark"] .event-overview-card.is-closed,
body[data-theme="dark"] .event-management-card.is-completed,
body[data-theme="dark"] .event-overview-card.is-completed {
    border-top-color: #475569 !important;
}

@media (prefers-color-scheme: dark) {
    body[data-theme="auto"] {
        --fw-bg: #10151c;
        --fw-surface: #151b23;
        --fw-surface-elevated: #1b222c;
        --fw-surface-muted: #222b36;
        --fw-text: #edf2f7;
        --fw-text-muted: #a8b3c2;
        --fw-card-border: #303b49;
        --fw-dropdown-hover: #26313f;
        --fw-dropdown-active: #313c4b;
        --fw-primary: #60a5fa;
        --fw-primary-dark: #3b82f6;
        --fw-primary-light: #93c5fd;
        --fw-shadow-sm: 0 0.45rem 1.35rem rgba(0, 0, 0, 0.28);
        --fw-shadow-md: 0 1rem 2.4rem rgba(0, 0, 0, 0.38);
    }

    body[data-theme="auto"] {
        background:
            linear-gradient(180deg, rgba(31, 41, 55, 0.75) 0, rgba(31, 41, 55, 0) 16rem),
            linear-gradient(180deg, var(--fw-bg), #0b1017);
    }

    body[data-theme="auto"] .navbar-dark,
    body[data-theme="auto"] .fw-navbar {
        background: linear-gradient(90deg, #06080c, #131922);
    }

    body[data-theme="auto"] .form-control,
    body[data-theme="auto"] .form-select {
        border-color: #3a4451;
    }

    body[data-theme="auto"] .form-control::placeholder {
        color: #7f8a96;
    }

    body[data-theme="auto"] .btn-outline-secondary {
        color: #c4ccd5;
        border-color: #566273;
    }

    body[data-theme="auto"] .btn-outline-secondary:hover,
    body[data-theme="auto"] .btn-outline-secondary:focus {
        background-color: #29313b;
        border-color: #667386;
        color: #ffffff;
    }

    body[data-theme="auto"] .btn-outline-primary {
        color: #bfdbfe;
        border-color: #3b82f6;
    }

    body[data-theme="auto"] .btn-outline-primary:hover,
    body[data-theme="auto"] .btn-outline-primary:focus {
        background-color: #2563eb;
        border-color: #2563eb;
        color: #ffffff;
    }

    body[data-theme="auto"] .btn-primary {
        background-color: #2563eb;
        border-color: #2563eb;
        color: #ffffff;
    }

    body[data-theme="auto"] .dropdown-item:hover,
    body[data-theme="auto"] .dropdown-item:focus,
    body[data-theme="auto"] .dropdown-item.active,
    body[data-theme="auto"] .dropdown-item:active {
        color: #ffffff;
    }

    body[data-theme="auto"] .table-hover tbody tr:hover {
        --bs-table-bg: #222932;
    }

    body[data-theme="auto"] .table-responsive {
        background: var(--fw-surface-elevated);
    }

    body[data-theme="auto"] .modal-content,
    body[data-theme="auto"] .list-group-item {
        background-color: var(--fw-surface);
        color: var(--fw-text);
        border-color: var(--fw-card-border);
    }

    body[data-theme="auto"] code {
        color: #f1d88b;
    }

    body[data-theme="auto"] .module-navbar,
    body[data-theme="auto"] .fw-navbar {
        background: linear-gradient(105deg, #06080c 0%, #131922 72%, #0b1b35 100%) !important;
    }

    body[data-theme="auto"] .fw-footer,
    body[data-theme="auto"] .event-footer,
    body[data-theme="auto"] .cash-footer,
    body[data-theme="auto"] .feedback-footer,
    body[data-theme="auto"] .as-footer,
    body[data-theme="auto"] .public-home-admin-footer {
        background: linear-gradient(90deg, #111827, #1f2937) !important;
        border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
        color: rgba(255, 255, 255, 0.82) !important;
    }

    body[data-theme="auto"] .cash-total-row td,
    body[data-theme="auto"] .cash-result-row td,
    body[data-theme="auto"] .cash-settlement-summary > div,
    body[data-theme="auto"] .cash-settlement-summary-result {
        background: var(--fw-surface-muted) !important;
        color: var(--fw-text) !important;
        border-color: var(--fw-card-border) !important;
    }

    body[data-theme="auto"] .cash-settlement-summary span,
    body[data-theme="auto"] .cash-denomination-title,
    body[data-theme="auto"] .cash-denomination-row label {
        color: var(--fw-text-muted) !important;
    }

    body[data-theme="auto"] .org-type-card {
        background: var(--fw-surface-muted) !important;
        border-color: var(--fw-card-border) !important;
        color: var(--fw-text) !important;
    }

    body[data-theme="auto"] .org-type-card.is-active {
        border-color: #64748b !important;
        box-shadow: inset 4px 0 0 #64748b, var(--fw-shadow-sm) !important;
    }

    body[data-theme="auto"] .event-dashboard-stat,
    body[data-theme="auto"] .event-empty-state,
    body[data-theme="auto"] .event-overview-card,
    body[data-theme="auto"] .event-management-card,
    body[data-theme="auto"] .event-filter-bar,
    body[data-theme="auto"] .event-status-filter-pill,
    body[data-theme="auto"] .event-page-container .card,
    body[data-theme="auto"] .event-management-meta,
    body[data-theme="auto"] .event-wizard-step,
    body[data-theme="auto"] .event-form-section,
    body[data-theme="auto"] .event-type-card,
    body[data-theme="auto"] .event-choice-card,
    body[data-theme="auto"] .event-sticky-actions,
    body[data-theme="auto"] .event-wizard-actions,
    body[data-theme="auto"] .event-detail-hero,
    body[data-theme="auto"] .event-content-card,
    body[data-theme="auto"] .event-detail-shell,
    body[data-theme="auto"] .event-tab-nav,
    body[data-theme="auto"] .event-quick-stat,
    body[data-theme="auto"] .event-setup-step,
    body[data-theme="auto"] .event-info-grid div,
    body[data-theme="auto"] .event-setting-list div,
    body[data-theme="auto"] .event-invitation-summary div,
    body[data-theme="auto"] .event-checklist-item,
    body[data-theme="auto"] .event-category-chip,
    body[data-theme="auto"] .event-shift-day,
    body[data-theme="auto"] .event-shift-row,
    body[data-theme="auto"] .event-standard-field,
    body[data-theme="auto"] .event-question-card,
    body[data-theme="auto"] .event-invitee-list,
    body[data-theme="auto"] .event-invitee-row,
    body[data-theme="auto"] .event-resource-overview,
    body[data-theme="auto"] .event-resource-overview-header,
    body[data-theme="auto"] .event-resource-table th,
    body[data-theme="auto"] .event-resource-empty,
    body[data-theme="auto"] .event-reminder-rule-list,
    body[data-theme="auto"] .event-mail-card,
    body[data-theme="auto"] .event-mail-template-card,
    body[data-theme="auto"] .event-reminder-card {
        background: var(--fw-surface-elevated) !important;
        border-color: var(--fw-card-border) !important;
        color: var(--fw-text) !important;
    }

    body[data-theme="auto"] .event-page-container .card-header,
    body[data-theme="auto"] .event-page-container .card-footer,
    body[data-theme="auto"] .event-page-container .bg-white,
    body[data-theme="auto"] .event-shift-day-heading,
    body[data-theme="auto"] .event-tab-button.is-active,
    body[data-theme="auto"] .event-setup-step > span,
    body[data-theme="auto"] .event-question-order,
    body[data-theme="auto"] .event-invitee-avatar {
        background: var(--fw-surface-muted) !important;
        border-color: var(--fw-card-border) !important;
        color: var(--fw-text) !important;
    }

    body[data-theme="auto"] .event-page-container .text-muted {
        color: var(--fw-text-muted) !important;
    }

    body[data-theme="auto"] .event-page-container .table {
        --bs-table-bg: var(--fw-surface-elevated);
        --bs-table-color: var(--fw-text);
        --bs-table-border-color: var(--fw-card-border);
    }

    body[data-theme="auto"] .event-management-meta,
    body[data-theme="auto"] .event-readonly-pill,
    body[data-theme="auto"] .event-status-badge,
    body[data-theme="auto"] .event-type-pill,
    body[data-theme="auto"] .event-form-section-number,
    body[data-theme="auto"] .event-tab-button > span,
    body[data-theme="auto"] .event-category-label,
    body[data-theme="auto"] .event-category-chip > span,
    body[data-theme="auto"] .event-standard-field > span,
    body[data-theme="auto"] .event-registration-status,
    body[data-theme="auto"] .event-status-filter-pill.is-active,
    body[data-theme="auto"] .event-status-filter-pill:hover {
        background: var(--fw-surface-muted) !important;
        border-color: var(--fw-card-border) !important;
        color: var(--fw-text) !important;
    }

    body[data-theme="auto"] .event-tab-button {
        color: var(--fw-text-muted) !important;
    }

    body[data-theme="auto"] .event-dashboard-stat-label,
    body[data-theme="auto"] .event-dashboard-stat small,
    body[data-theme="auto"] .event-empty-state p,
    body[data-theme="auto"] .event-overview-date span,
    body[data-theme="auto"] .event-overview-location,
    body[data-theme="auto"] .event-status-dot,
    body[data-theme="auto"] .event-status-badge,
    body[data-theme="auto"] .event-management-meta span,
    body[data-theme="auto"] .event-info-grid span,
    body[data-theme="auto"] .event-setting-list span,
    body[data-theme="auto"] .event-description-block > span,
    body[data-theme="auto"] .event-type-card-text,
    body[data-theme="auto"] .event-choice-card small,
    body[data-theme="auto"] .event-detail-subtitle,
    body[data-theme="auto"] .event-detail-hero-meta,
    body[data-theme="auto"] .event-quick-stat > span,
    body[data-theme="auto"] .event-quick-stat > small,
    body[data-theme="auto"] .event-setup-step small,
    body[data-theme="auto"] .event-shift-time span,
    body[data-theme="auto"] .event-shift-details,
    body[data-theme="auto"] .event-shift-occupancy small,
    body[data-theme="auto"] .event-standard-field > small,
    body[data-theme="auto"] .event-question-options,
    body[data-theme="auto"] .event-question-condition,
    body[data-theme="auto"] .event-invitation-summary span,
    body[data-theme="auto"] .event-invitee-person > span,
    body[data-theme="auto"] .event-resource-overview-header p,
    body[data-theme="auto"] .event-resource-table td,
    body[data-theme="auto"] .event-reminder-stats,
    body[data-theme="auto"] .event-content-card-header p,
    body[data-theme="auto"] .event-panel-toolbar p,
    body[data-theme="auto"] .event-mail-card-header p,
    body[data-theme="auto"] .event-mail-template-card > summary small,
    body[data-theme="auto"] .event-reminder-card p {
        color: var(--fw-text-muted) !important;
    }

    body[data-theme="auto"] .event-dashboard-stat strong,
    body[data-theme="auto"] .event-quick-stat > strong,
    body[data-theme="auto"] .event-invitation-summary strong,
    body[data-theme="auto"] .event-shift-time strong,
    body[data-theme="auto"] .event-shift-day-date > span,
    body[data-theme="auto"] .event-tab-button.is-active,
    body[data-theme="auto"] .event-overview-open,
    body[data-theme="auto"] .event-status-filter-pill.is-active,
    body[data-theme="auto"] .event-status-filter-pill:hover,
    body[data-theme="auto"] .event-type-pill,
    body[data-theme="auto"] .event-form-section-number {
        color: #cbd5e1 !important;
    }

    body[data-theme="auto"] .event-card-progress .progress,
    body[data-theme="auto"] .event-shift-occupancy .progress,
    body[data-theme="auto"] .event-setup-step > span {
        background: #334155 !important;
    }

    body[data-theme="auto"] .event-card-progress .progress-bar,
    body[data-theme="auto"] .event-shift-occupancy .progress-bar {
        background: #64748b !important;
    }

    body[data-theme="auto"] .event-management-card.is-published,
    body[data-theme="auto"] .event-overview-card.is-published,
    body[data-theme="auto"] .event-setup-step.is-done > span,
    body[data-theme="auto"] .event-checklist-item.is-done > span {
        border-top-color: #64748b !important;
        border-color: #64748b !important;
        background: #64748b !important;
        color: #fff !important;
    }

    body[data-theme="auto"] .event-management-card.is-published,
    body[data-theme="auto"] .event-overview-card.is-published {
        background: linear-gradient(180deg, #1d2734 0%, #17212d 100%) !important;
        border-color: rgba(96, 165, 250, .34) !important;
        border-top-color: #60a5fa !important;
        color: var(--fw-text) !important;
    }

    body[data-theme="auto"] .event-overview-card.is-published:hover,
    body[data-theme="auto"] .event-management-card.is-published:hover {
        border-color: rgba(147, 197, 253, .55) !important;
        box-shadow: 0 .9rem 2rem rgba(2, 6, 23, .34) !important;
    }

    body[data-theme="auto"] .event-overview-card.is-published h2,
    body[data-theme="auto"] .event-management-card.is-published h2,
    body[data-theme="auto"] .event-overview-card.is-published .event-overview-date strong {
        color: #f8fafc !important;
    }

    body[data-theme="auto"] .event-overview-card.is-published .event-overview-date span,
    body[data-theme="auto"] .event-overview-card.is-published .event-overview-location,
    body[data-theme="auto"] .event-overview-card.is-published .event-status-dot {
        color: #dbeafe !important;
    }

    body[data-theme="auto"] .event-overview-card.is-published .event-type-pill {
        background: rgba(15, 23, 42, .72) !important;
        border-color: rgba(147, 197, 253, .24) !important;
        color: #e0f2fe !important;
    }

    body[data-theme="auto"] .event-overview-card.is-published .event-overview-open {
        color: #bfdbfe !important;
    }

    body[data-theme="auto"] .event-management-card.is-draft,
    body[data-theme="auto"] .event-overview-card.is-draft,
    body[data-theme="auto"] .event-management-card.is-closed,
    body[data-theme="auto"] .event-overview-card.is-closed,
    body[data-theme="auto"] .event-management-card.is-completed,
    body[data-theme="auto"] .event-overview-card.is-completed {
        border-top-color: #475569 !important;
    }
}

.public-home-page {
    max-width: 1180px;
}

.public-home-titlebar {
    border-bottom: 1px solid rgba(15, 23, 42, .08);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.public-home-eyebrow {
    letter-spacing: .08em;
    text-transform: uppercase;
    font-size: .78rem;
    font-weight: 700;
    color: #6c757d;
}

.public-home-card {
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 1.15rem;
    box-shadow: 0 .45rem 1.35rem rgba(15, 23, 42, .06);
}

.public-home-post-body {
    white-space: pre-line;
}

.public-home-meta {
    font-size: .875rem;
    color: #6c757d;
}
.wiki-content h2,
.wiki-content h3 {
    margin-top: 1.4rem;
    margin-bottom: .75rem;
}

.wiki-content p,
.wiki-content li,
.wiki-guide-step {
    line-height: 1.65;
}

.wiki-content ul {
    padding-left: 1.35rem;
}

.wiki-guide-step h2 {
    margin-bottom: 1rem;
}

.wiki-editor-toolbar {
    padding: .35rem;
    border: 1px solid var(--bs-border-color);
    border-radius: .5rem;
    background: var(--bs-tertiary-bg);
}

.wiki-editor-toolbar .btn {
    min-width: 2.25rem;
}

.validation-summary-valid.alert {
    display: none;
}

/* Modul-Dark-Mode-Nachzug fuer eigenstaendige CSS-Dateien */
body[data-theme="dark"] .as-page-container .card,
body[data-theme="dark"] .as-page-container .list-group-item,
body[data-theme="dark"] .as-person-suggestion,
body[data-theme="dark"] .as-signature-step,
body[data-theme="dark"] .as-station-lock-note,
body[data-theme="dark"] .cash-page-container .card,
body[data-theme="dark"] .cash-settlement-summary > div,
body[data-theme="dark"] .cash-revision-signature-preview,
body[data-theme="dark"] .feedback-page-container .card,
body[data-theme="dark"] .feedback-public-container .card,
body[data-theme="dark"] .feedback-public-card,
body[data-theme="dark"] .feedback-rating label,
body[data-theme="dark"] .event-public-container .card,
body[data-theme="dark"] .event-public-container .shift-card,
body[data-theme="dark"] .event-public-container .bg-light-subtle,
body[data-theme="dark"] .as-public-container .card,
body[data-theme="dark"] .public-home-admin-page .card,
body[data-theme="dark"] .public-home-admin-page .list-group-item,
body[data-theme="dark"] .public-home-card,
body[data-theme="dark"] .public-contact-panel,
body[data-theme="dark"] .go-live-check,
body[data-theme="dark"] .pdf-field-navigator-list,
body[data-theme="dark"] .pdf-field-navigator-item,
body[data-theme="dark"] .pdf-rich-text-toolbar,
body[data-theme="dark"] .pdf-rich-text-editor,
body[data-theme="dark"] .pdf-editor-sidebar,
body[data-theme="dark"] .pdf-editor-sidebar > .card-body,
body[data-theme="dark"] .neutral-admin-page .card,
body[data-theme="dark"] .neutral-admin-page .list-group-item {
    background: var(--fw-surface-elevated) !important;
    border-color: var(--fw-card-border) !important;
    color: var(--fw-text) !important;
}

body[data-theme="dark"] .as-page-container .card-header,
body[data-theme="dark"] .as-page-container .card-footer,
body[data-theme="dark"] .as-page-container .bg-white,
body[data-theme="dark"] .cash-page-container .card-header,
body[data-theme="dark"] .cash-page-container .card-footer,
body[data-theme="dark"] .cash-page-container .bg-white,
body[data-theme="dark"] .feedback-page-container .card-header,
body[data-theme="dark"] .feedback-page-container .card-footer,
body[data-theme="dark"] .feedback-page-container .bg-white,
body[data-theme="dark"] .feedback-public-container .card-header,
body[data-theme="dark"] .feedback-public-container .card-footer,
body[data-theme="dark"] .feedback-public-container .bg-white,
body[data-theme="dark"] .event-public-container .card-header,
body[data-theme="dark"] .event-public-container .card-footer,
body[data-theme="dark"] .event-public-container .bg-white,
body[data-theme="dark"] .event-public-container .bg-light,
body[data-theme="dark"] .as-public-container .card-header,
body[data-theme="dark"] .as-public-container .card-footer,
body[data-theme="dark"] .as-public-container .bg-white,
body[data-theme="dark"] .public-home-admin-page .card-header,
body[data-theme="dark"] .public-home-admin-page .card-footer,
body[data-theme="dark"] .public-home-admin-page .bg-white,
body[data-theme="dark"] .neutral-admin-page .card-header,
body[data-theme="dark"] .neutral-admin-page .card-footer,
body[data-theme="dark"] .neutral-admin-page .bg-white {
    background: var(--fw-surface-muted) !important;
    border-color: var(--fw-card-border) !important;
    color: var(--fw-text) !important;
}

body[data-theme="dark"] .pdf-editor-sidebar > .card-header,
body[data-theme="dark"] .pdf-editor-sidebar > .card-footer {
    background: var(--fw-surface-muted) !important;
    border-color: var(--fw-card-border) !important;
    color: var(--fw-text) !important;
}

body[data-theme="dark"] .pdf-toolbox-section,
body[data-theme="dark"] .pdf-toolbox-section:first-of-type {
    border-color: var(--fw-card-border) !important;
}

body[data-theme="dark"] .pdf-toolbox-section-header {
    background: transparent !important;
    color: var(--fw-text) !important;
}

body[data-theme="dark"] .pdf-toolbox-section-header:hover,
body[data-theme="dark"] .pdf-toolbox-section-header:focus-visible {
    background: var(--fw-dropdown-hover) !important;
    color: var(--fw-text) !important;
}

body[data-theme="dark"] .pdf-toolbox-section-chevron,
body[data-theme="dark"] .pdf-toolbox-section-title {
    color: var(--fw-text) !important;
}

body[data-theme="dark"] .pdf-toolbox-section-count {
    background: #334155 !important;
    color: #e2e8f0 !important;
}

body[data-theme="dark"] .pdf-editor-sidebar .form-label,
body[data-theme="dark"] .pdf-editor-sidebar label,
body[data-theme="dark"] .pdf-editor-sidebar .small {
    color: var(--fw-text) !important;
}

body[data-theme="dark"] .pdf-editor-sidebar .text-muted {
    color: var(--fw-text-muted) !important;
}

body[data-theme="dark"] .pdf-editor-sidebar .btn-outline-secondary {
    border-color: #64748b !important;
    color: #e2e8f0 !important;
}

body[data-theme="dark"] .pdf-editor-sidebar .btn-outline-secondary:hover,
body[data-theme="dark"] .pdf-editor-sidebar .btn-outline-secondary:focus-visible {
    background: #334155 !important;
    color: #fff !important;
}

body[data-theme="dark"] .pdf-editor-sidebar .btn-outline-warning {
    border-color: #facc15 !important;
    color: #fde68a !important;
}

body[data-theme="dark"] .pdf-editor-sidebar .btn-outline-warning:hover,
body[data-theme="dark"] .pdf-editor-sidebar .btn-outline-warning:focus-visible {
    background: rgba(250, 204, 21, .18) !important;
    color: #fff7ed !important;
}

body[data-theme="dark"] .pdf-editor-sidebar .btn:disabled,
body[data-theme="dark"] .pdf-editor-sidebar .btn.disabled {
    border-color: #475569 !important;
    background: #1f2937 !important;
    color: #94a3b8 !important;
    opacity: 1 !important;
}

body[data-theme="dark"] .as-page-container .text-muted,
body[data-theme="dark"] .as-station-lock-note,
body[data-theme="dark"] .as-signature-hint,
body[data-theme="dark"] .cash-page-container .text-muted,
body[data-theme="dark"] .cash-settlement-summary span,
body[data-theme="dark"] .cash-denomination-title,
body[data-theme="dark"] .cash-denomination-row label,
body[data-theme="dark"] .feedback-page-container .text-muted,
body[data-theme="dark"] .feedback-public-container .text-muted,
body[data-theme="dark"].feedback-public-body footer.text-muted,
body[data-theme="dark"] .feedback-rating .caption,
body[data-theme="dark"] .event-public-container .text-muted,
body[data-theme="dark"] .as-public-container .text-muted,
body[data-theme="dark"] .public-home-admin-page .text-muted,
body[data-theme="dark"] .public-home-eyebrow,
body[data-theme="dark"] .public-home-meta,
body[data-theme="dark"] .neutral-admin-page .text-muted,
body[data-theme="dark"] .navigator-item-sample,
body[data-theme="dark"] .pdf-rich-color-label {
    color: var(--fw-text-muted) !important;
}

body[data-theme="dark"] .as-timer,
body[data-theme="dark"] .as-person-suggestion-action,
body[data-theme="dark"] .cash-kpi,
body[data-theme="dark"] .cash-settlement-summary strong,
body[data-theme="dark"] .feedback-kpi,
body[data-theme="dark"] .public-home-card h2,
body[data-theme="dark"] .public-home-card h3 {
    color: var(--fw-text) !important;
}

body[data-theme="dark"] .event-public-container .badge.bg-light,
body[data-theme="dark"] .event-public-container .badge.bg-white,
body[data-theme="dark"] .event-public-container .text-dark {
    color: var(--fw-text) !important;
}

body[data-theme="dark"] .event-public-container .badge.bg-light,
body[data-theme="dark"] .event-public-container .badge.bg-white {
    background-color: var(--fw-surface-muted) !important;
    border-color: var(--fw-card-border) !important;
}

body[data-theme="dark"] .event-public-container .text-warning-emphasis {
    color: #facc15 !important;
}

body[data-theme="dark"] .event-public-container .event-public-shift-day-heading {
    background: rgba(96, 165, 250, .14) !important;
    border-color: rgba(147, 197, 253, .28) !important;
    color: #dbeafe !important;
}

body[data-theme="dark"] .event-public-container .event-public-shift-meta {
    color: #bfdbfe !important;
}

body[data-theme="dark"] .as-page-container .table,
body[data-theme="dark"] .cash-page-container .table,
body[data-theme="dark"] .feedback-page-container .table,
body[data-theme="dark"] .feedback-public-container .table,
body[data-theme="dark"] .event-public-container .table,
body[data-theme="dark"] .as-public-container .table,
body[data-theme="dark"] .public-home-admin-page .table,
body[data-theme="dark"] .neutral-admin-page .table {
    --bs-table-bg: var(--fw-surface-elevated);
    --bs-table-color: var(--fw-text);
    --bs-table-border-color: var(--fw-card-border);
    --bs-table-striped-bg: var(--fw-surface-muted);
    --bs-table-striped-color: var(--fw-text);
    --bs-table-hover-bg: var(--fw-dropdown-hover);
    --bs-table-hover-color: var(--fw-text);
}

body[data-theme="dark"] .as-page-container .table thead th,
body[data-theme="dark"] .cash-page-container .table thead th,
body[data-theme="dark"] .feedback-page-container .table thead th,
body[data-theme="dark"] .feedback-public-container .table thead th,
body[data-theme="dark"] .event-public-container .table thead th,
body[data-theme="dark"] .as-public-container .table thead th,
body[data-theme="dark"] .public-home-admin-page .table thead th,
body[data-theme="dark"] .neutral-admin-page .table thead th {
    background: var(--fw-surface-muted) !important;
    color: var(--fw-text) !important;
    border-color: var(--fw-card-border) !important;
}

body[data-theme="dark"] .cash-total-row td,
body[data-theme="dark"] .cash-result-row td,
body[data-theme="dark"] .cash-settlement-summary-result,
body[data-theme="dark"] .rating-bar,
body[data-theme="dark"] .pdf-field-navigator-item:hover,
body[data-theme="dark"] .pdf-field-navigator-item.active,
body[data-theme="dark"] .pdf-rich-text-toolbar,
body[data-theme="dark"] .pdf-editor-scroll {
    background: var(--fw-surface-muted) !important;
    border-color: var(--fw-card-border) !important;
    color: var(--fw-text) !important;
}

body[data-theme="dark"] .feedback-rating input:checked + label,
body[data-theme="dark"] .as-person-suggestion.list-group-item-action:hover,
body[data-theme="dark"] .as-person-suggestion.list-group-item-action:focus,
body[data-theme="dark"] .as-person-suggestion.is-active,
body[data-theme="dark"] .as-signature-step.is-complete {
    background: var(--fw-surface-muted) !important;
    border-color: #64748b !important;
    color: var(--fw-text) !important;
}

body[data-theme="dark"] .as-signature-pad,
body[data-theme="dark"] .as-saved-signature,
body[data-theme="dark"] .pdf-page-stage,
body[data-theme="dark"] .pdf-rich-color-label input[type="color"] {
    background: #fff !important;
    color: #111827 !important;
}

body[data-theme="dark"] .pdf-page-stage .pdf-editor-text-block {
    color: #111827;
}

body[data-theme="dark"] .public-hero {
    background: linear-gradient(135deg, rgba(96, 165, 250, .12), rgba(15, 23, 42, .18)) !important;
    border-color: var(--fw-card-border) !important;
}

body[data-theme="dark"] .public-emergency-card {
    background: rgba(127, 29, 29, .28) !important;
    border-color: #ef4444 !important;
    color: #fecaca !important;
}

body[data-theme="dark"] .public-status-draft,
body[data-theme="dark"] .public-status-planned,
body[data-theme="dark"] .public-status-visible,
body[data-theme="dark"] .public-status-expired {
    background: var(--fw-surface-muted) !important;
    color: var(--fw-text) !important;
}

body[data-theme="dark"] .go-live-check-ok,
body[data-theme="dark"] .go-live-check-warning,
body[data-theme="dark"] .go-live-check-danger {
    background: var(--fw-surface-elevated) !important;
}

body[data-theme="dark"] .cash-positive {
    color: #86efac !important;
}

body[data-theme="dark"] .cash-negative {
    color: #fca5a5 !important;
}

/* Dark-Theme-Audit: generische Nachzuege fuer helle Bootstrap-/Modulfragmente */
body[data-theme="dark"] .card:not(.profile-signature-preview),
body[data-theme="dark"] .modal-content,
body[data-theme="dark"] .offcanvas,
body[data-theme="dark"] .accordion-item,
body[data-theme="dark"] .dropdown-menu,
body[data-theme="dark"] .list-group-item,
body[data-theme="dark"] .table-responsive,
body[data-theme="dark"] .bg-light,
body[data-theme="dark"] .bg-light-subtle,
body[data-theme="dark"] .text-bg-light,
body[data-theme="dark"] .border.bg-light,
body[data-theme="dark"] .border.bg-light-subtle,
body[data-theme="dark"] .form-check.bg-light,
body[data-theme="dark"] .form-check.bg-light-subtle,
body[data-theme="dark"] .event-question-card,
body[data-theme="dark"] .event-choice-card,
body[data-theme="dark"] .event-review-card,
body[data-theme="dark"] .event-content-card,
body[data-theme="dark"] .event-mail-card,
body[data-theme="dark"] .event-mail-template-card,
body[data-theme="dark"] .event-reminder-card,
body[data-theme="dark"] .event-resource-overview,
body[data-theme="dark"] .event-resource-empty,
body[data-theme="dark"] .event-resource-table th,
body[data-theme="dark"] .event-standard-field,
body[data-theme="dark"] .event-invitee-list,
body[data-theme="dark"] .event-invitee-row,
body[data-theme="dark"] .event-management-meta,
body[data-theme="dark"] .event-setup-step,
body[data-theme="dark"] .event-info-grid div,
body[data-theme="dark"] .event-setting-list div,
body[data-theme="dark"] .as-signature-step:not(.as-saved-signature),
body[data-theme="dark"] .as-person-suggestion,
body[data-theme="dark"] .cash-settlement-summary > div,
body[data-theme="dark"] .feedback-rating label,
body[data-theme="dark"] .wiki-editor-toolbar {
    background: var(--fw-surface-elevated) !important;
    border-color: var(--fw-card-border) !important;
    color: var(--fw-text) !important;
}

body[data-theme="dark"] .card-header,
body[data-theme="dark"] .card-footer,
body[data-theme="dark"] .modal-header,
body[data-theme="dark"] .modal-footer,
body[data-theme="dark"] .accordion-button,
body[data-theme="dark"] .input-group-text,
body[data-theme="dark"] .dropdown-header,
body[data-theme="dark"] .sticky-bottom.bg-white,
body[data-theme="dark"] .event-shift-day-heading,
body[data-theme="dark"] .event-panel-toolbar,
body[data-theme="dark"] .event-resource-overview-header,
body[data-theme="dark"] .event-mail-template-card > summary,
body[data-theme="dark"] .cash-total-row td,
body[data-theme="dark"] .cash-result-row td,
body[data-theme="dark"] .cash-settlement-summary-result {
    background: var(--fw-surface-muted) !important;
    border-color: var(--fw-card-border) !important;
    color: var(--fw-text) !important;
}

body[data-theme="dark"] .table {
    --bs-table-bg: var(--fw-surface-elevated);
    --bs-table-color: var(--fw-text);
    --bs-table-border-color: var(--fw-card-border);
    --bs-table-striped-bg: var(--fw-surface-muted);
    --bs-table-striped-color: var(--fw-text);
    --bs-table-hover-bg: var(--fw-dropdown-hover);
    --bs-table-hover-color: var(--fw-text);
}

body[data-theme="dark"] .table thead th,
body[data-theme="dark"] .table thead td {
    background: var(--fw-surface-muted) !important;
    color: var(--fw-text) !important;
    border-color: var(--fw-card-border) !important;
}

body[data-theme="dark"] .text-dark,
body[data-theme="dark"] .text-body,
body[data-theme="dark"] .badge.bg-light,
body[data-theme="dark"] .badge.bg-white,
body[data-theme="dark"] .badge.text-bg-light {
    color: var(--fw-text) !important;
}

body[data-theme="dark"] .badge.bg-light,
body[data-theme="dark"] .badge.bg-white,
body[data-theme="dark"] .badge.text-bg-light,
body[data-theme="dark"] .badge.bg-info.text-dark,
body[data-theme="dark"] .badge.bg-warning.text-dark {
    border-color: var(--fw-card-border) !important;
}

body[data-theme="dark"] .badge.bg-info.text-dark {
    background: rgba(96, 165, 250, .24) !important;
    color: #dbeafe !important;
}

body[data-theme="dark"] .badge.bg-warning.text-dark {
    background: rgba(250, 204, 21, .2) !important;
    color: #fde68a !important;
}

body[data-theme="dark"] .btn-outline-secondary,
body[data-theme="dark"] .btn-outline-dark {
    border-color: #64748b !important;
    color: #e2e8f0 !important;
}

body[data-theme="dark"] .btn-outline-secondary:hover,
body[data-theme="dark"] .btn-outline-secondary:focus-visible,
body[data-theme="dark"] .btn-outline-dark:hover,
body[data-theme="dark"] .btn-outline-dark:focus-visible {
    background: #334155 !important;
    color: #ffffff !important;
}

body[data-theme="dark"] .form-control,
body[data-theme="dark"] .form-select,
body[data-theme="dark"] textarea.form-control {
    background-color: var(--fw-surface) !important;
    border-color: var(--fw-card-border) !important;
    color: var(--fw-text) !important;
}

body[data-theme="dark"] .form-control::placeholder,
body[data-theme="dark"] textarea.form-control::placeholder {
    color: #94a3b8 !important;
}

body[data-theme="dark"] .form-control:disabled,
body[data-theme="dark"] .form-select:disabled,
body[data-theme="dark"] .form-control[readonly] {
    background-color: #111827 !important;
    color: #94a3b8 !important;
}

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

body[data-theme="dark"] .dropdown-item:hover,
body[data-theme="dark"] .dropdown-item:focus {
    background: var(--fw-dropdown-hover) !important;
    color: var(--fw-text) !important;
}

body[data-theme="dark"] .as-footer,
body[data-theme="dark"] .cash-footer,
body[data-theme="dark"] .feedback-footer {
    background: #0f172a !important;
    border-color: var(--fw-card-border) !important;
    color: var(--fw-text-muted) !important;
}

body[data-theme="dark"] .pdf-page-stage,
body[data-theme="dark"] .profile-signature-preview,
body[data-theme="dark"] .as-signature-pad,
body[data-theme="dark"] .as-saved-signature,
body[data-theme="dark"] .cash-revision-signature-preview,
body[data-theme="dark"] .pdf-image-source-preview,
body[data-theme="dark"] .pdf-image-source-preview img,
body[data-theme="dark"] img.bg-white,
body[data-theme="dark"] .qr-code-preview,
body[data-theme="dark"] .qr-code-preview img {
    background: #ffffff !important;
    color: #111827 !important;
}

body[data-theme="dark"] .pdf-page-stage .text-muted,
body[data-theme="dark"] .profile-signature-preview .text-muted {
    color: #6b7280 !important;
}

body[data-theme="dark"] .admin-form-card,
body[data-theme="dark"] .permission-set-panel,
body[data-theme="dark"] .permission-set-item,
body[data-theme="dark"] .user-role-group,
body[data-theme="dark"] .user-role-column,
body[data-theme="dark"] .meeting-wizard-steps,
body[data-theme="dark"] .meeting-wizard-step,
body[data-theme="dark"] .wizard-dropzone,
body[data-theme="dark"] .wizard-followup-row td,
body[data-theme="dark"] .wizard-followup-panel,
body[data-theme="dark"] .wizard-followup-textarea,
body[data-theme="dark"] .protocol-table,
body[data-theme="dark"] .protocol-table td,
body[data-theme="dark"] .protocol-pendenz-marked,
body[data-theme="dark"] .protocol-followup-row td,
body[data-theme="dark"] .protocol-followup-panel,
body[data-theme="dark"] .protocol-followup-textarea,
body[data-theme="dark"] .meeting-toolbar,
body[data-theme="dark"] .quality-card,
body[data-theme="dark"] .permission-role-card,
body[data-theme="dark"] .public-nav,
body[data-theme="dark"] .file-viewer-modal,
body[data-theme="dark"] .contact-warning {
    background: var(--fw-surface-elevated) !important;
    border-color: var(--fw-card-border) !important;
    color: var(--fw-text) !important;
}

body[data-theme="dark"] .admin-form-card .card-header,
body[data-theme="dark"] .permission-set-panel-header,
body[data-theme="dark"] .user-role-group-header,
body[data-theme="dark"] .user-role-column-admin,
body[data-theme="dark"] .permission-set-item:has(.form-check-input:checked),
body[data-theme="dark"] .user-role-check:has(.form-check-input:checked),
body[data-theme="dark"] .meeting-wizard-step.is-active,
body[data-theme="dark"] .meeting-wizard-step-number,
body[data-theme="dark"] .wizard-protocol-table textarea:focus,
body[data-theme="dark"] .wizard-protocol-table input:focus,
body[data-theme="dark"] .wizard-vote-input,
body[data-theme="dark"] .wizard-section-row td,
body[data-theme="dark"] .protocol-table th,
body[data-theme="dark"] .protocol-row-section td,
body[data-theme="dark"] .protocol-vote-input,
body[data-theme="dark"] .protocol-input:focus,
body[data-theme="dark"] .protocol-textarea:focus {
    background: var(--fw-surface-muted) !important;
    border-color: var(--fw-card-border) !important;
    color: var(--fw-text) !important;
}

body[data-theme="dark"] .meeting-title,
body[data-theme="dark"] .permission-set-panel-title,
body[data-theme="dark"] .permission-set-title,
body[data-theme="dark"] .user-role-group-header h2,
body[data-theme="dark"] .user-role-column-title,
body[data-theme="dark"] .protocol-row-section .protocol-input,
body[data-theme="dark"] .protocol-row-section .protocol-textarea,
body[data-theme="dark"] .protocol-input,
body[data-theme="dark"] .protocol-textarea,
body[data-theme="dark"] .protocol-followup-label,
body[data-theme="dark"] .protocol-vote-fields label,
body[data-theme="dark"] .wizard-followup-label,
body[data-theme="dark"] .wizard-vote-fields label {
    color: var(--fw-text) !important;
}

body[data-theme="dark"] .meeting-meta,
body[data-theme="dark"] .permission-set-panel-subtitle,
body[data-theme="dark"] .permission-set-description,
body[data-theme="dark"] .user-role-group-kicker,
body[data-theme="dark"] .user-role-group-header span {
    color: var(--fw-text-muted) !important;
}

@media (prefers-color-scheme: dark) {
    body[data-theme="auto"] .as-page-container .card,
    body[data-theme="auto"] .as-page-container .list-group-item,
    body[data-theme="auto"] .as-person-suggestion,
    body[data-theme="auto"] .as-signature-step,
    body[data-theme="auto"] .as-station-lock-note,
    body[data-theme="auto"] .cash-page-container .card,
    body[data-theme="auto"] .cash-settlement-summary > div,
    body[data-theme="auto"] .cash-revision-signature-preview,
    body[data-theme="auto"] .feedback-page-container .card,
    body[data-theme="auto"] .feedback-public-container .card,
    body[data-theme="auto"] .feedback-public-card,
    body[data-theme="auto"] .feedback-rating label,
    body[data-theme="auto"] .event-public-container .card,
    body[data-theme="auto"] .event-public-container .shift-card,
    body[data-theme="auto"] .event-public-container .bg-light-subtle,
    body[data-theme="auto"] .as-public-container .card,
    body[data-theme="auto"] .public-home-admin-page .card,
    body[data-theme="auto"] .public-home-admin-page .list-group-item,
    body[data-theme="auto"] .public-home-card,
    body[data-theme="auto"] .public-contact-panel,
    body[data-theme="auto"] .go-live-check,
    body[data-theme="auto"] .pdf-field-navigator-list,
    body[data-theme="auto"] .pdf-field-navigator-item,
    body[data-theme="auto"] .pdf-rich-text-toolbar,
    body[data-theme="auto"] .pdf-rich-text-editor,
    body[data-theme="auto"] .pdf-editor-sidebar,
    body[data-theme="auto"] .pdf-editor-sidebar > .card-body,
    body[data-theme="auto"] .neutral-admin-page .card,
    body[data-theme="auto"] .neutral-admin-page .list-group-item {
        background: var(--fw-surface-elevated) !important;
        border-color: var(--fw-card-border) !important;
        color: var(--fw-text) !important;
    }

    body[data-theme="auto"] .as-page-container .card-header,
    body[data-theme="auto"] .as-page-container .card-footer,
    body[data-theme="auto"] .as-page-container .bg-white,
    body[data-theme="auto"] .cash-page-container .card-header,
    body[data-theme="auto"] .cash-page-container .card-footer,
    body[data-theme="auto"] .cash-page-container .bg-white,
    body[data-theme="auto"] .feedback-page-container .card-header,
    body[data-theme="auto"] .feedback-page-container .card-footer,
    body[data-theme="auto"] .feedback-page-container .bg-white,
    body[data-theme="auto"] .feedback-public-container .card-header,
    body[data-theme="auto"] .feedback-public-container .card-footer,
    body[data-theme="auto"] .feedback-public-container .bg-white,
    body[data-theme="auto"] .event-public-container .card-header,
    body[data-theme="auto"] .event-public-container .card-footer,
    body[data-theme="auto"] .event-public-container .bg-white,
    body[data-theme="auto"] .event-public-container .bg-light,
    body[data-theme="auto"] .as-public-container .card-header,
    body[data-theme="auto"] .as-public-container .card-footer,
    body[data-theme="auto"] .as-public-container .bg-white,
    body[data-theme="auto"] .public-home-admin-page .card-header,
    body[data-theme="auto"] .public-home-admin-page .card-footer,
    body[data-theme="auto"] .public-home-admin-page .bg-white,
    body[data-theme="auto"] .neutral-admin-page .card-header,
    body[data-theme="auto"] .neutral-admin-page .card-footer,
    body[data-theme="auto"] .neutral-admin-page .bg-white {
        background: var(--fw-surface-muted) !important;
        border-color: var(--fw-card-border) !important;
        color: var(--fw-text) !important;
    }

    body[data-theme="auto"] .pdf-editor-sidebar > .card-header,
    body[data-theme="auto"] .pdf-editor-sidebar > .card-footer {
        background: var(--fw-surface-muted) !important;
        border-color: var(--fw-card-border) !important;
        color: var(--fw-text) !important;
    }

    body[data-theme="auto"] .pdf-toolbox-section,
    body[data-theme="auto"] .pdf-toolbox-section:first-of-type {
        border-color: var(--fw-card-border) !important;
    }

    body[data-theme="auto"] .pdf-toolbox-section-header {
        background: transparent !important;
        color: var(--fw-text) !important;
    }

    body[data-theme="auto"] .pdf-toolbox-section-header:hover,
    body[data-theme="auto"] .pdf-toolbox-section-header:focus-visible {
        background: var(--fw-dropdown-hover) !important;
        color: var(--fw-text) !important;
    }

    body[data-theme="auto"] .pdf-toolbox-section-chevron,
    body[data-theme="auto"] .pdf-toolbox-section-title {
        color: var(--fw-text) !important;
    }

    body[data-theme="auto"] .pdf-toolbox-section-count {
        background: #334155 !important;
        color: #e2e8f0 !important;
    }

    body[data-theme="auto"] .pdf-editor-sidebar .form-label,
    body[data-theme="auto"] .pdf-editor-sidebar label,
    body[data-theme="auto"] .pdf-editor-sidebar .small {
        color: var(--fw-text) !important;
    }

    body[data-theme="auto"] .pdf-editor-sidebar .text-muted {
        color: var(--fw-text-muted) !important;
    }

    body[data-theme="auto"] .pdf-editor-sidebar .btn-outline-secondary {
        border-color: #64748b !important;
        color: #e2e8f0 !important;
    }

    body[data-theme="auto"] .pdf-editor-sidebar .btn-outline-secondary:hover,
    body[data-theme="auto"] .pdf-editor-sidebar .btn-outline-secondary:focus-visible {
        background: #334155 !important;
        color: #fff !important;
    }

    body[data-theme="auto"] .pdf-editor-sidebar .btn-outline-warning {
        border-color: #facc15 !important;
        color: #fde68a !important;
    }

    body[data-theme="auto"] .pdf-editor-sidebar .btn-outline-warning:hover,
    body[data-theme="auto"] .pdf-editor-sidebar .btn-outline-warning:focus-visible {
        background: rgba(250, 204, 21, .18) !important;
        color: #fff7ed !important;
    }

    body[data-theme="auto"] .pdf-editor-sidebar .btn:disabled,
    body[data-theme="auto"] .pdf-editor-sidebar .btn.disabled {
        border-color: #475569 !important;
        background: #1f2937 !important;
        color: #94a3b8 !important;
        opacity: 1 !important;
    }

    body[data-theme="auto"] .as-page-container .text-muted,
    body[data-theme="auto"] .as-station-lock-note,
    body[data-theme="auto"] .as-signature-hint,
    body[data-theme="auto"] .cash-page-container .text-muted,
    body[data-theme="auto"] .cash-settlement-summary span,
    body[data-theme="auto"] .cash-denomination-title,
    body[data-theme="auto"] .cash-denomination-row label,
    body[data-theme="auto"] .feedback-page-container .text-muted,
    body[data-theme="auto"] .feedback-public-container .text-muted,
    body[data-theme="auto"].feedback-public-body footer.text-muted,
    body[data-theme="auto"] .feedback-rating .caption,
    body[data-theme="auto"] .event-public-container .text-muted,
    body[data-theme="auto"] .as-public-container .text-muted,
    body[data-theme="auto"] .public-home-admin-page .text-muted,
    body[data-theme="auto"] .public-home-eyebrow,
    body[data-theme="auto"] .public-home-meta,
    body[data-theme="auto"] .neutral-admin-page .text-muted,
    body[data-theme="auto"] .navigator-item-sample,
    body[data-theme="auto"] .pdf-rich-color-label {
        color: var(--fw-text-muted) !important;
    }

    body[data-theme="auto"] .as-timer,
    body[data-theme="auto"] .as-person-suggestion-action,
    body[data-theme="auto"] .cash-kpi,
    body[data-theme="auto"] .cash-settlement-summary strong,
    body[data-theme="auto"] .feedback-kpi,
    body[data-theme="auto"] .public-home-card h2,
    body[data-theme="auto"] .public-home-card h3 {
        color: var(--fw-text) !important;
    }

    body[data-theme="auto"] .event-public-container .badge.bg-light,
    body[data-theme="auto"] .event-public-container .badge.bg-white,
    body[data-theme="auto"] .event-public-container .text-dark {
        color: var(--fw-text) !important;
    }

    body[data-theme="auto"] .event-public-container .badge.bg-light,
    body[data-theme="auto"] .event-public-container .badge.bg-white {
        background-color: var(--fw-surface-muted) !important;
        border-color: var(--fw-card-border) !important;
    }

    body[data-theme="auto"] .event-public-container .text-warning-emphasis {
        color: #facc15 !important;
    }

    body[data-theme="auto"] .event-public-container .event-public-shift-day-heading {
        background: rgba(96, 165, 250, .14) !important;
        border-color: rgba(147, 197, 253, .28) !important;
        color: #dbeafe !important;
    }

    body[data-theme="auto"] .event-public-container .event-public-shift-meta {
        color: #bfdbfe !important;
    }

    body[data-theme="auto"] .as-page-container .table,
    body[data-theme="auto"] .cash-page-container .table,
    body[data-theme="auto"] .feedback-page-container .table,
    body[data-theme="auto"] .feedback-public-container .table,
    body[data-theme="auto"] .event-public-container .table,
    body[data-theme="auto"] .as-public-container .table,
    body[data-theme="auto"] .public-home-admin-page .table,
    body[data-theme="auto"] .neutral-admin-page .table {
        --bs-table-bg: var(--fw-surface-elevated);
        --bs-table-color: var(--fw-text);
        --bs-table-border-color: var(--fw-card-border);
        --bs-table-striped-bg: var(--fw-surface-muted);
        --bs-table-striped-color: var(--fw-text);
        --bs-table-hover-bg: var(--fw-dropdown-hover);
        --bs-table-hover-color: var(--fw-text);
    }

    body[data-theme="auto"] .as-page-container .table thead th,
    body[data-theme="auto"] .cash-page-container .table thead th,
    body[data-theme="auto"] .feedback-page-container .table thead th,
    body[data-theme="auto"] .feedback-public-container .table thead th,
    body[data-theme="auto"] .event-public-container .table thead th,
    body[data-theme="auto"] .as-public-container .table thead th,
    body[data-theme="auto"] .public-home-admin-page .table thead th,
    body[data-theme="auto"] .neutral-admin-page .table thead th {
        background: var(--fw-surface-muted) !important;
        color: var(--fw-text) !important;
        border-color: var(--fw-card-border) !important;
    }

    body[data-theme="auto"] .cash-total-row td,
    body[data-theme="auto"] .cash-result-row td,
    body[data-theme="auto"] .cash-settlement-summary-result,
    body[data-theme="auto"] .rating-bar,
    body[data-theme="auto"] .pdf-field-navigator-item:hover,
    body[data-theme="auto"] .pdf-field-navigator-item.active,
    body[data-theme="auto"] .pdf-rich-text-toolbar,
    body[data-theme="auto"] .pdf-editor-scroll {
        background: var(--fw-surface-muted) !important;
        border-color: var(--fw-card-border) !important;
        color: var(--fw-text) !important;
    }

    body[data-theme="auto"] .feedback-rating input:checked + label,
    body[data-theme="auto"] .as-person-suggestion.list-group-item-action:hover,
    body[data-theme="auto"] .as-person-suggestion.list-group-item-action:focus,
    body[data-theme="auto"] .as-person-suggestion.is-active,
    body[data-theme="auto"] .as-signature-step.is-complete {
        background: var(--fw-surface-muted) !important;
        border-color: #64748b !important;
        color: var(--fw-text) !important;
    }

    body[data-theme="auto"] .as-signature-pad,
    body[data-theme="auto"] .as-saved-signature,
    body[data-theme="auto"] .pdf-page-stage,
    body[data-theme="auto"] .pdf-rich-color-label input[type="color"] {
        background: #fff !important;
        color: #111827 !important;
    }

    body[data-theme="auto"] .pdf-page-stage .pdf-editor-text-block {
        color: #111827;
    }

    body[data-theme="auto"] .public-hero {
        background: linear-gradient(135deg, rgba(96, 165, 250, .12), rgba(15, 23, 42, .18)) !important;
        border-color: var(--fw-card-border) !important;
    }

    body[data-theme="auto"] .public-emergency-card {
        background: rgba(127, 29, 29, .28) !important;
        border-color: #ef4444 !important;
        color: #fecaca !important;
    }

    body[data-theme="auto"] .public-status-draft,
    body[data-theme="auto"] .public-status-planned,
    body[data-theme="auto"] .public-status-visible,
    body[data-theme="auto"] .public-status-expired {
        background: var(--fw-surface-muted) !important;
        color: var(--fw-text) !important;
    }

    body[data-theme="auto"] .go-live-check-ok,
    body[data-theme="auto"] .go-live-check-warning,
    body[data-theme="auto"] .go-live-check-danger {
        background: var(--fw-surface-elevated) !important;
    }

    body[data-theme="auto"] .cash-positive {
        color: #86efac !important;
    }

    body[data-theme="auto"] .cash-negative {
        color: #fca5a5 !important;
    }

    body[data-theme="auto"] .card:not(.profile-signature-preview),
    body[data-theme="auto"] .modal-content,
    body[data-theme="auto"] .offcanvas,
    body[data-theme="auto"] .accordion-item,
    body[data-theme="auto"] .dropdown-menu,
    body[data-theme="auto"] .list-group-item,
    body[data-theme="auto"] .table-responsive,
    body[data-theme="auto"] .bg-light,
    body[data-theme="auto"] .bg-light-subtle,
    body[data-theme="auto"] .text-bg-light,
    body[data-theme="auto"] .border.bg-light,
    body[data-theme="auto"] .border.bg-light-subtle,
    body[data-theme="auto"] .form-check.bg-light,
    body[data-theme="auto"] .form-check.bg-light-subtle,
    body[data-theme="auto"] .event-question-card,
    body[data-theme="auto"] .event-choice-card,
    body[data-theme="auto"] .event-review-card,
    body[data-theme="auto"] .event-content-card,
    body[data-theme="auto"] .event-mail-card,
    body[data-theme="auto"] .event-mail-template-card,
    body[data-theme="auto"] .event-reminder-card,
    body[data-theme="auto"] .event-resource-overview,
    body[data-theme="auto"] .event-resource-empty,
    body[data-theme="auto"] .event-resource-table th,
    body[data-theme="auto"] .event-standard-field,
    body[data-theme="auto"] .event-invitee-list,
    body[data-theme="auto"] .event-invitee-row,
    body[data-theme="auto"] .event-management-meta,
    body[data-theme="auto"] .event-setup-step,
    body[data-theme="auto"] .event-info-grid div,
    body[data-theme="auto"] .event-setting-list div,
    body[data-theme="auto"] .as-signature-step:not(.as-saved-signature),
    body[data-theme="auto"] .as-person-suggestion,
    body[data-theme="auto"] .cash-settlement-summary > div,
    body[data-theme="auto"] .feedback-rating label,
    body[data-theme="auto"] .wiki-editor-toolbar {
        background: var(--fw-surface-elevated) !important;
        border-color: var(--fw-card-border) !important;
        color: var(--fw-text) !important;
    }

    body[data-theme="auto"] .card-header,
    body[data-theme="auto"] .card-footer,
    body[data-theme="auto"] .modal-header,
    body[data-theme="auto"] .modal-footer,
    body[data-theme="auto"] .accordion-button,
    body[data-theme="auto"] .input-group-text,
    body[data-theme="auto"] .dropdown-header,
    body[data-theme="auto"] .sticky-bottom.bg-white,
    body[data-theme="auto"] .event-shift-day-heading,
    body[data-theme="auto"] .event-panel-toolbar,
    body[data-theme="auto"] .event-resource-overview-header,
    body[data-theme="auto"] .event-mail-template-card > summary,
    body[data-theme="auto"] .cash-total-row td,
    body[data-theme="auto"] .cash-result-row td,
    body[data-theme="auto"] .cash-settlement-summary-result {
        background: var(--fw-surface-muted) !important;
        border-color: var(--fw-card-border) !important;
        color: var(--fw-text) !important;
    }

    body[data-theme="auto"] .table {
        --bs-table-bg: var(--fw-surface-elevated);
        --bs-table-color: var(--fw-text);
        --bs-table-border-color: var(--fw-card-border);
        --bs-table-striped-bg: var(--fw-surface-muted);
        --bs-table-striped-color: var(--fw-text);
        --bs-table-hover-bg: var(--fw-dropdown-hover);
        --bs-table-hover-color: var(--fw-text);
    }

    body[data-theme="auto"] .table thead th,
    body[data-theme="auto"] .table thead td {
        background: var(--fw-surface-muted) !important;
        color: var(--fw-text) !important;
        border-color: var(--fw-card-border) !important;
    }

    body[data-theme="auto"] .text-dark,
    body[data-theme="auto"] .text-body,
    body[data-theme="auto"] .badge.bg-light,
    body[data-theme="auto"] .badge.bg-white,
    body[data-theme="auto"] .badge.text-bg-light {
        color: var(--fw-text) !important;
    }

    body[data-theme="auto"] .badge.bg-light,
    body[data-theme="auto"] .badge.bg-white,
    body[data-theme="auto"] .badge.text-bg-light,
    body[data-theme="auto"] .badge.bg-info.text-dark,
    body[data-theme="auto"] .badge.bg-warning.text-dark {
        border-color: var(--fw-card-border) !important;
    }

    body[data-theme="auto"] .badge.bg-info.text-dark {
        background: rgba(96, 165, 250, .24) !important;
        color: #dbeafe !important;
    }

    body[data-theme="auto"] .badge.bg-warning.text-dark {
        background: rgba(250, 204, 21, .2) !important;
        color: #fde68a !important;
    }

    body[data-theme="auto"] .btn-outline-secondary,
    body[data-theme="auto"] .btn-outline-dark {
        border-color: #64748b !important;
        color: #e2e8f0 !important;
    }

    body[data-theme="auto"] .btn-outline-secondary:hover,
    body[data-theme="auto"] .btn-outline-secondary:focus-visible,
    body[data-theme="auto"] .btn-outline-dark:hover,
    body[data-theme="auto"] .btn-outline-dark:focus-visible {
        background: #334155 !important;
        color: #ffffff !important;
    }

    body[data-theme="auto"] .form-control,
    body[data-theme="auto"] .form-select,
    body[data-theme="auto"] textarea.form-control {
        background-color: var(--fw-surface) !important;
        border-color: var(--fw-card-border) !important;
        color: var(--fw-text) !important;
    }

    body[data-theme="auto"] .form-control::placeholder,
    body[data-theme="auto"] textarea.form-control::placeholder {
        color: #94a3b8 !important;
    }

    body[data-theme="auto"] .form-control:disabled,
    body[data-theme="auto"] .form-select:disabled,
    body[data-theme="auto"] .form-control[readonly] {
        background-color: #111827 !important;
        color: #94a3b8 !important;
    }

    body[data-theme="auto"] .dropdown-item {
        color: var(--fw-text) !important;
    }

    body[data-theme="auto"] .dropdown-item:hover,
    body[data-theme="auto"] .dropdown-item:focus {
        background: var(--fw-dropdown-hover) !important;
        color: var(--fw-text) !important;
    }

    body[data-theme="auto"] .as-footer,
    body[data-theme="auto"] .cash-footer,
    body[data-theme="auto"] .feedback-footer {
        background: #0f172a !important;
        border-color: var(--fw-card-border) !important;
        color: var(--fw-text-muted) !important;
    }

    body[data-theme="auto"] .pdf-page-stage,
    body[data-theme="auto"] .profile-signature-preview,
    body[data-theme="auto"] .as-signature-pad,
    body[data-theme="auto"] .as-saved-signature,
    body[data-theme="auto"] .cash-revision-signature-preview,
    body[data-theme="auto"] .pdf-image-source-preview,
    body[data-theme="auto"] .pdf-image-source-preview img,
    body[data-theme="auto"] img.bg-white,
    body[data-theme="auto"] .qr-code-preview,
    body[data-theme="auto"] .qr-code-preview img {
        background: #ffffff !important;
        color: #111827 !important;
    }

    body[data-theme="auto"] .pdf-page-stage .text-muted,
    body[data-theme="auto"] .profile-signature-preview .text-muted {
        color: #6b7280 !important;
    }

    body[data-theme="auto"] .admin-form-card,
    body[data-theme="auto"] .permission-set-panel,
    body[data-theme="auto"] .permission-set-item,
    body[data-theme="auto"] .user-role-group,
    body[data-theme="auto"] .user-role-column,
    body[data-theme="auto"] .meeting-wizard-steps,
    body[data-theme="auto"] .meeting-wizard-step,
    body[data-theme="auto"] .wizard-dropzone,
    body[data-theme="auto"] .wizard-followup-row td,
    body[data-theme="auto"] .wizard-followup-panel,
    body[data-theme="auto"] .wizard-followup-textarea,
    body[data-theme="auto"] .protocol-table,
    body[data-theme="auto"] .protocol-table td,
    body[data-theme="auto"] .protocol-pendenz-marked,
    body[data-theme="auto"] .protocol-followup-row td,
    body[data-theme="auto"] .protocol-followup-panel,
    body[data-theme="auto"] .protocol-followup-textarea,
    body[data-theme="auto"] .meeting-toolbar,
    body[data-theme="auto"] .quality-card,
    body[data-theme="auto"] .permission-role-card,
    body[data-theme="auto"] .public-nav,
    body[data-theme="auto"] .file-viewer-modal,
    body[data-theme="auto"] .contact-warning {
        background: var(--fw-surface-elevated) !important;
        border-color: var(--fw-card-border) !important;
        color: var(--fw-text) !important;
    }

    body[data-theme="auto"] .admin-form-card .card-header,
    body[data-theme="auto"] .permission-set-panel-header,
    body[data-theme="auto"] .user-role-group-header,
    body[data-theme="auto"] .user-role-column-admin,
    body[data-theme="auto"] .permission-set-item:has(.form-check-input:checked),
    body[data-theme="auto"] .user-role-check:has(.form-check-input:checked),
    body[data-theme="auto"] .meeting-wizard-step.is-active,
    body[data-theme="auto"] .meeting-wizard-step-number,
    body[data-theme="auto"] .wizard-protocol-table textarea:focus,
    body[data-theme="auto"] .wizard-protocol-table input:focus,
    body[data-theme="auto"] .wizard-vote-input,
    body[data-theme="auto"] .wizard-section-row td,
    body[data-theme="auto"] .protocol-table th,
    body[data-theme="auto"] .protocol-row-section td,
    body[data-theme="auto"] .protocol-vote-input,
    body[data-theme="auto"] .protocol-input:focus,
    body[data-theme="auto"] .protocol-textarea:focus {
        background: var(--fw-surface-muted) !important;
        border-color: var(--fw-card-border) !important;
        color: var(--fw-text) !important;
    }

    body[data-theme="auto"] .meeting-title,
    body[data-theme="auto"] .permission-set-panel-title,
    body[data-theme="auto"] .permission-set-title,
    body[data-theme="auto"] .user-role-group-header h2,
    body[data-theme="auto"] .user-role-column-title,
    body[data-theme="auto"] .protocol-row-section .protocol-input,
    body[data-theme="auto"] .protocol-row-section .protocol-textarea,
    body[data-theme="auto"] .protocol-input,
    body[data-theme="auto"] .protocol-textarea,
    body[data-theme="auto"] .protocol-followup-label,
    body[data-theme="auto"] .protocol-vote-fields label,
    body[data-theme="auto"] .wizard-followup-label,
    body[data-theme="auto"] .wizard-vote-fields label {
        color: var(--fw-text) !important;
    }

    body[data-theme="auto"] .meeting-meta,
    body[data-theme="auto"] .permission-set-panel-subtitle,
    body[data-theme="auto"] .permission-set-description,
    body[data-theme="auto"] .user-role-group-kicker,
    body[data-theme="auto"] .user-role-group-header span {
        color: var(--fw-text-muted) !important;
    }
}
