:root,
html[data-bs-theme="light"] {
    --bg: #f6f7f9;
    --surface: #ffffff;
    --surface-elevated: #ffffff;
    --surface-muted: #f8fafc;
    --surface-subtle: #f1f5f9;
    --text: #172033;
    --text-strong: #0f172a;
    --text-muted: #64748b;
    --border: #e5e7eb;
    --border-strong: #cbd5e1;
    --success-surface: #dcfce7;
    --success-text: #166534;
    --warning-surface: #fef3c7;
    --warning-text: #92400e;
    --danger-surface: #fee2e2;
    --danger-text: #991b1b;
    --info-surface: #dbeafe;
    --info-text: #1d4ed8;
    --violet-surface: #ede9fe;
    --violet-text: #6d28d9;
    --pink-surface: #fce7f3;
    --pink-text: #9d174d;
    --app-shadow: 0 18px 50px rgba(15, 23, 42, .12);
    color-scheme: light;
}

html[data-bs-theme="dark"] {
    --bg: #0b1120;
    --surface: #111827;
    --surface-elevated: #172033;
    --surface-muted: #151e2f;
    --surface-subtle: #1e293b;
    --text: #dbe4f0;
    --text-strong: #f8fafc;
    --text-muted: #94a3b8;
    --border: #2b3748;
    --border-strong: #475569;
    --success-surface: #0d352c;
    --success-text: #86efac;
    --warning-surface: #3a2d08;
    --warning-text: #fde68a;
    --danger-surface: #3b111b;
    --danger-text: #fca5a5;
    --info-surface: #122b4f;
    --info-text: #8db2ff;
    --violet-surface: #2b1b4f;
    --violet-text: #c4b5fd;
    --pink-surface: #42162d;
    --pink-text: #f9a8d4;
    --app-shadow: 0 20px 60px rgba(0, 0, 0, .42);
    --bs-body-color: var(--text);
    --bs-body-bg: var(--bg);
    --bs-secondary-color: var(--text-muted);
    --bs-tertiary-bg: var(--surface-muted);
    --bs-border-color: var(--border);
    --bs-heading-color: var(--text-strong);
    --bs-link-color: #7aa2ff;
    --bs-link-hover-color: #a8c0ff;
    color-scheme: dark;
}

body {
    background: var(--bg);
    color: var(--text);
}

.theme-toggle {
    min-width: 38px;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border-color: var(--border);
}

.public-theme-toggle {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 20;
    padding-inline: 12px;
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    box-shadow: 0 8px 28px rgba(15, 23, 42, .10);
    backdrop-filter: blur(12px);
}

.public-form-page .login-page {
    min-height: calc(100vh - 80px);
}

.auth-brand {
    margin-bottom: 26px;
    display: grid;
    justify-items: center;
    text-align: center;
}

.auth-logo {
    width: 52px;
    height: 52px;
    flex-basis: 52px;
    border-radius: 16px;
    font-size: 25px;
    box-shadow: 0 12px 28px rgba(37, 99, 235, .24);
}

.auth-slogan {
    max-width: 310px;
    margin: 5px 0 0;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.5;
}

.auth-form-heading {
    margin-bottom: 22px;
    text-align: center;
}

.auth-form-heading h1 {
    margin: 0;
    color: var(--text-strong);
    font-size: 23px;
}

.auth-form-heading p {
    margin: 7px 0 0;
    color: var(--text-muted);
}

.auth-status-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 18px;
    display: grid;
    place-items: center;
    color: #2563eb;
    background: color-mix(in srgb, #2563eb 14%, var(--surface));
    border-radius: 15px;
    font-size: 22px;
}

.auth-status-icon.is-danger {
    color: #ef4444;
    background: color-mix(in srgb, #ef4444 14%, var(--surface));
}

.turnstile-shell {
    min-height: 66px;
    margin-bottom: 16px;
    display: grid;
    place-items: center;
}

.turnstile-shell > div,
.turnstile-shell iframe {
    max-width: 100%;
}

html[data-bs-theme="dark"] #sidebar,
html[data-bs-theme="dark"] .app-topbar,
html[data-bs-theme="dark"] .bottom-nav,
html[data-bs-theme="dark"] .card,
html[data-bs-theme="dark"] .stat-card,
html[data-bs-theme="dark"] .login-card,
html[data-bs-theme="dark"] .app-offcanvas,
html[data-bs-theme="dark"] .offcanvas,
html[data-bs-theme="dark"] .modal-content,
html[data-bs-theme="dark"] .dropdown-menu,
html[data-bs-theme="dark"] .topbar-popover,
html[data-bs-theme="dark"] .global-search-results,
html[data-bs-theme="dark"] .report-catalog,
html[data-bs-theme="dark"] .report-workspace-head,
html[data-bs-theme="dark"] .report-kpi,
html[data-bs-theme="dark"] .report-panel,
html[data-bs-theme="dark"] .workflow-palette,
html[data-bs-theme="dark"] .workflow-properties,
html[data-bs-theme="dark"] .workflow-node,
html[data-bs-theme="dark"] .module-card,
html[data-bs-theme="dark"] .platform-links a,
html[data-bs-theme="dark"] .audit-kpis > div,
html[data-bs-theme="dark"] .form-builder-workspace,
html[data-bs-theme="dark"] .builder-field,
html[data-bs-theme="dark"] .public-form-card,
html[data-bs-theme="dark"] .module-inspector,
html[data-bs-theme="dark"] .module-inspector-actions,
html[data-bs-theme="dark"] .ticket-card,
html[data-bs-theme="dark"] .ticket-column-head,
html[data-bs-theme="dark"] .opportunity-column-head,
html[data-bs-theme="dark"] .opportunity-card,
html[data-bs-theme="dark"] .kanban-task,
html[data-bs-theme="dark"] .task-count,
html[data-bs-theme="dark"] .wip-badge,
html[data-bs-theme="dark"] .subtask-row,
html[data-bs-theme="dark"] .attachment-row,
html[data-bs-theme="dark"] .task-comment {
    background-color: var(--surface) !important;
    border-color: var(--border) !important;
    color: var(--text);
}

html[data-bs-theme="dark"] .app-main,
html[data-bs-theme="dark"] .public-form-page,
html[data-bs-theme="dark"] .workflow-canvas,
html[data-bs-theme="dark"] .neural-shell {
    background-color: var(--bg) !important;
}

html[data-bs-theme="dark"] .kanban-column,
html[data-bs-theme="dark"] .opportunity-column,
html[data-bs-theme="dark"] .form-builder-toolbox,
html[data-bs-theme="dark"] .form-builder-properties,
html[data-bs-theme="dark"] .module-meta-grid div,
html[data-bs-theme="dark"] .module-relation-list > div,
html[data-bs-theme="dark"] .report-catalog-note,
html[data-bs-theme="dark"] .notification-preference-head,
html[data-bs-theme="dark"] .quick-create-grid i {
    background-color: var(--surface-muted) !important;
    border-color: var(--border) !important;
}

html[data-bs-theme="dark"] #sidebar a {
    color: var(--text-muted);
}

html[data-bs-theme="dark"] #sidebar a:hover,
html[data-bs-theme="dark"] #sidebar a.active,
html[data-bs-theme="dark"] .report-catalog-item:hover {
    color: var(--text-strong);
    background: var(--surface-subtle);
}

html[data-bs-theme="dark"] :is(
    .page-head h1,
    .login-card h1,
    .report-workspace-title h2,
    .report-panel-head h3,
    .report-kpi strong,
    .report-catalog-head span,
    .module-inspector-empty strong,
    .module-inspector-head h2
) {
    color: var(--text-strong) !important;
}

html[data-bs-theme="dark"] :is(
    .page-head p,
    .task-meta,
    .kanban-task p,
    .report-workspace-title p,
    .report-panel-head p,
    .report-kpi small,
    .report-kpi em,
    .report-catalog-item small,
    .report-catalog-note,
    .module-description,
    .module-meta-grid small,
    .module-relation-list small
) {
    color: var(--text-muted) !important;
}

html[data-bs-theme="dark"] .table {
    --bs-table-bg: transparent;
    --bs-table-color: var(--text);
    --bs-table-border-color: var(--border);
    --bs-table-striped-bg: rgba(255, 255, 255, .025);
    --bs-table-hover-bg: rgba(122, 162, 255, .07);
}

html[data-bs-theme="dark"] .btn-light {
    --bs-btn-color: var(--text);
    --bs-btn-bg: var(--surface-muted);
    --bs-btn-border-color: var(--border);
    --bs-btn-hover-color: var(--text-strong);
    --bs-btn-hover-bg: var(--surface-subtle);
    --bs-btn-hover-border-color: var(--border-strong);
}

html[data-bs-theme="dark"] .global-search-shortcut {
    color: var(--text-muted);
    background: var(--surface-muted);
    border-color: var(--border);
}

html[data-bs-theme="dark"] .neural-shell {
    background-image: radial-gradient(
        circle at 50% 45%,
        #172033 0,
        #111827 45%,
        #0b1120 100%) !important;
}

html[data-bs-theme="dark"] .module-inspector {
    background: rgba(17, 24, 39, .96) !important;
}

html[data-bs-theme="dark"] .workflow-canvas {
    background-image: radial-gradient(#334155 1px, transparent 1px) !important;
}

html[data-bs-theme="dark"] .ql-toolbar.ql-snow,
html[data-bs-theme="dark"] .ql-container.ql-snow {
    border-color: var(--border);
}

html[data-bs-theme="dark"] .ql-editor,
html[data-bs-theme="dark"] .ql-toolbar {
    color: var(--text);
    background: var(--surface);
}

@media (max-width: 575.98px) {
    .public-theme-toggle [data-theme-label] {
        display: none;
    }

    .public-theme-toggle {
        width: 40px;
        padding-inline: 0;
    }

    .login-card {
        padding: 28px 22px;
    }
}

/* Sprint 08 UI Fix 06 - Complete dark dashboard surfaces */
html[data-bs-theme="dark"] .dashboard-page {
    color: var(--text);
}

html[data-bs-theme="dark"] .dashboard-welcome h1,
html[data-bs-theme="dark"] .dashboard-panel-head h2,
html[data-bs-theme="dark"] .dashboard-kpi-content strong,
html[data-bs-theme="dark"] .dashboard-task-main strong,
html[data-bs-theme="dark"] .dashboard-agenda-item strong,
html[data-bs-theme="dark"] .dashboard-ticket-item strong,
html[data-bs-theme="dark"] .dashboard-project-risk-item strong,
html[data-bs-theme="dark"] .dashboard-document-item strong,
html[data-bs-theme="dark"] .dashboard-recent-item strong,
html[data-bs-theme="dark"] .dashboard-empty strong,
html[data-bs-theme="dark"] .dashboard-project-risk-meta strong {
    color: var(--text-strong) !important;
}

html[data-bs-theme="dark"] .dashboard-welcome p,
html[data-bs-theme="dark"] .dashboard-updated,
html[data-bs-theme="dark"] .dashboard-panel-head p,
html[data-bs-theme="dark"] .dashboard-kpi-content small,
html[data-bs-theme="dark"] .dashboard-kpi-content em,
html[data-bs-theme="dark"] .dashboard-task-main small,
html[data-bs-theme="dark"] .dashboard-agenda-item small,
html[data-bs-theme="dark"] .dashboard-ticket-item small,
html[data-bs-theme="dark"] .dashboard-project-risk-item small,
html[data-bs-theme="dark"] .dashboard-document-item small,
html[data-bs-theme="dark"] .dashboard-recent-item small,
html[data-bs-theme="dark"] .dashboard-empty,
html[data-bs-theme="dark"] .dashboard-empty span,
html[data-bs-theme="dark"] .dashboard-pipeline-row > small,
html[data-bs-theme="dark"] .dashboard-bar-item small,
html[data-bs-theme="dark"] .dashboard-bar-value,
html[data-bs-theme="dark"] .dashboard-recent-item time,
html[data-bs-theme="dark"] .dashboard-document-item time,
html[data-bs-theme="dark"] .dashboard-agenda-item > time,
html[data-bs-theme="dark"] .dashboard-task-row time {
    color: var(--text-muted) !important;
}

html[data-bs-theme="dark"] .dashboard-kpi-card,
html[data-bs-theme="dark"] .dashboard-panel {
    color: var(--text);
    background: linear-gradient(145deg, #111d32 0%, #0f192b 100%) !important;
    border-color: #263a58 !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .18);
}

html[data-bs-theme="dark"] .dashboard-kpi-card:hover {
    color: var(--text);
    border-color: #3b5b86 !important;
    box-shadow: 0 16px 38px rgba(0, 0, 0, .30);
}

html[data-bs-theme="dark"] .dashboard-scope-switch {
    background: #0d1728 !important;
    border-color: #263a58 !important;
}

html[data-bs-theme="dark"] .dashboard-scope-switch a {
    color: var(--text-muted);
}

html[data-bs-theme="dark"] .dashboard-scope-switch a:hover {
    color: var(--text-strong);
    background: rgba(122, 162, 255, .08);
}

html[data-bs-theme="dark"] .dashboard-scope-switch a.active {
    color: #f8fafc;
    background: #1a2a44 !important;
    box-shadow: inset 0 0 0 1px #334e73, 0 4px 12px rgba(0, 0, 0, .18);
}

html[data-bs-theme="dark"] .dashboard-task-row,
html[data-bs-theme="dark"] .dashboard-agenda-item,
html[data-bs-theme="dark"] .dashboard-ticket-item,
html[data-bs-theme="dark"] .dashboard-project-risk-item,
html[data-bs-theme="dark"] .dashboard-document-item,
html[data-bs-theme="dark"] .dashboard-recent-item {
    color: var(--text);
    border-bottom-color: #22344f !important;
}

html[data-bs-theme="dark"] .dashboard-task-row:hover,
html[data-bs-theme="dark"] .dashboard-agenda-item:hover,
html[data-bs-theme="dark"] .dashboard-ticket-item:hover,
html[data-bs-theme="dark"] .dashboard-project-risk-item:hover,
html[data-bs-theme="dark"] .dashboard-document-item:hover,
html[data-bs-theme="dark"] .dashboard-recent-item:hover {
    background: rgba(122, 162, 255, .055);
}

html[data-bs-theme="dark"] .dashboard-task-check,
html[data-bs-theme="dark"] .dashboard-empty i,
html[data-bs-theme="dark"] .dashboard-widget-handle {
    color: #7890b3 !important;
}

html[data-bs-theme="dark"] .dashboard-agenda-icon,
html[data-bs-theme="dark"] .dashboard-document-icon,
html[data-bs-theme="dark"] .dashboard-recent-icon {
    color: #8db2ff;
    background: #162b4b !important;
    border: 1px solid #28466f;
}

html[data-bs-theme="dark"] .dashboard-project-progress,
html[data-bs-theme="dark"] .dashboard-progress,
html[data-bs-theme="dark"] .dashboard-bar-track {
    background: #1d2c43 !important;
}

html[data-bs-theme="dark"] .dashboard-mini-stat {
    color: #c6d4e8;
    background: #17263d !important;
    border: 1px solid #2a405f;
}

html[data-bs-theme="dark"] .dashboard-editing .dashboard-widget {
    outline-color: #5d8fe8;
}

html[data-bs-theme="dark"] .widget-ghost {
    background: #17345d !important;
    border-color: #5d8fe8 !important;
}

html[data-bs-theme="dark"] .dashboard-quick-actions .btn-light,
html[data-bs-theme="dark"] .dashboard-panel-head .btn-light {
    color: var(--text);
    background: #15233a !important;
    border-color: #2b4263 !important;
}

html[data-bs-theme="dark"] .dashboard-quick-actions .btn-light:hover,
html[data-bs-theme="dark"] .dashboard-panel-head .btn-light:hover {
    color: var(--text-strong);
    background: #1d3150 !important;
    border-color: #42658f !important;
}

html[data-bs-theme="dark"] .dashboard-kpi-icon.bg-primary-subtle,
html[data-bs-theme="dark"] .dashboard-kpi-icon.bg-info-subtle,
html[data-bs-theme="dark"] .dashboard-kpi-icon.bg-secondary-subtle {
    background: #122b4f !important;
}

html[data-bs-theme="dark"] .dashboard-kpi-icon.bg-success-subtle {
    background: #0d352c !important;
}

html[data-bs-theme="dark"] .dashboard-kpi-icon.bg-warning-subtle {
    background: #3a2d08 !important;
}

html[data-bs-theme="dark"] .dashboard-kpi-icon.bg-danger-subtle {
    background: #3b111b !important;
}


/* Sprint 08 UI Fix 07 - Global dark surface consistency */
html[data-bs-theme="dark"] {
    --bs-emphasis-color: var(--text-strong);
    --bs-secondary-bg: var(--surface-muted);
    --bs-tertiary-bg: var(--surface-subtle);
    --bs-card-bg: var(--surface);
    --bs-card-color: var(--text);
    --bs-card-border-color: var(--border);
    --bs-form-valid-color: #86efac;
    --bs-form-invalid-color: #fca5a5;
}

html[data-bs-theme="dark"] :is(
    .crm-stat-card,
    .app-data-footer,
    .app-list-footer,
    .app-list-card > .app-list-footer,
    .report-pagination-card,
    .notification-preference-panel,
    .ngp-toolbar,
    .ngp-inspector,
    .ngp-empty ol,
    .ngp-detail,
    .module-inspector-actions
) {
    color: var(--text);
    background: var(--surface) !important;
    border-color: var(--border) !important;
}

html[data-bs-theme="dark"] :is(
    .crm-stat-card span,
    .crm-filter-card .form-label,
    .crm-list-meta,
    .app-data-footer,
    .app-list-footer,
    .app-list-card > .app-list-footer,
    .app-data-summary,
    .app-list-summary,
    .app-page-size-form label,
    .ngp-filter-area small,
    .ngp-filter-summary,
    .ngp-empty,
    .ngp-detail-title code
) {
    color: var(--text-muted) !important;
}

html[data-bs-theme="dark"] :is(
    .crm-stat-card strong,
    .crm-record-link,
    .crm-form-section-title,
    .crm-detail-card-title,
    .crm-notes-content,
    .ngp-empty strong,
    .ngp-detail-title h2
) {
    color: var(--text-strong) !important;
}

html[data-bs-theme="dark"] .crm-record-link:hover {
    color: #8db2ff !important;
}

html[data-bs-theme="dark"] :is(
    .crm-table thead th,
    .table thead th,
    .report-detail-table th,
    .notification-preference-head
) {
    color: var(--text-muted) !important;
    background: var(--surface-muted) !important;
    border-color: var(--border) !important;
}

html[data-bs-theme="dark"] :is(
    .crm-table tbody td,
    .table tbody td,
    .report-detail-table td
) {
    color: var(--text) !important;
    background-color: transparent !important;
    border-color: var(--border) !important;
}

html[data-bs-theme="dark"] .table tbody tr:hover > * {
    background-color: rgba(122, 162, 255, .06) !important;
    color: var(--text-strong) !important;
}

html[data-bs-theme="dark"] :is(
    .form-control,
    .form-select,
    .input-group-text,
    .form-control:disabled,
    .form-select:disabled
) {
    color: var(--text) !important;
    background-color: var(--surface-muted) !important;
    border-color: var(--border-strong) !important;
}

html[data-bs-theme="dark"] :is(
    .form-control,
    .form-select
)::placeholder {
    color: #7f93b2 !important;
    opacity: 1;
}

html[data-bs-theme="dark"] :is(
    .form-control:focus,
    .form-select:focus
) {
    color: var(--text-strong) !important;
    background-color: #132038 !important;
    border-color: #5d8fe8 !important;
    box-shadow: 0 0 0 .2rem rgba(93, 143, 232, .16) !important;
}

html[data-bs-theme="dark"] :is(
    .input-group-text.bg-white,
    .bg-white
) {
    color: var(--text) !important;
    background-color: var(--surface-muted) !important;
    border-color: var(--border-strong) !important;
}

html[data-bs-theme="dark"] .bg-light {
    color: var(--text) !important;
    background-color: var(--surface-muted) !important;
}

html[data-bs-theme="dark"] .text-dark {
    color: var(--text-strong) !important;
}

html[data-bs-theme="dark"] :is(
    .text-body,
    .text-body-secondary
) {
    color: var(--text) !important;
}

html[data-bs-theme="dark"] .text-secondary {
    color: var(--text-muted) !important;
}

html[data-bs-theme="dark"] :is(
    .page-link,
    .app-pagination-link
) {
    color: var(--text);
    background: var(--surface-muted) !important;
    border-color: var(--border) !important;
}

html[data-bs-theme="dark"] :is(
    .page-link:hover,
    .app-pagination-link:hover
) {
    color: var(--text-strong);
    background: var(--surface-subtle) !important;
    border-color: var(--border-strong) !important;
}

html[data-bs-theme="dark"] :is(
    .page-item.active .page-link,
    .app-pagination-item.active .app-pagination-link
) {
    color: #fff !important;
    background: #2563eb !important;
    border-color: #2563eb !important;
}

html[data-bs-theme="dark"] :is(
    .page-item.disabled .page-link,
    .app-pagination-item.disabled .app-pagination-link
) {
    color: #64748b !important;
    background: #101a2c !important;
    border-color: var(--border) !important;
}

html[data-bs-theme="dark"] :is(
    .btn-outline-secondary,
    .btn-outline-dark
) {
    color: var(--text-muted);
    border-color: var(--border-strong);
}

html[data-bs-theme="dark"] :is(
    .btn-outline-secondary:hover,
    .btn-outline-dark:hover
) {
    color: var(--text-strong);
    background: var(--surface-subtle);
    border-color: #5d7494;
}

html[data-bs-theme="dark"] :is(
    .dropdown-divider,
    hr,
    .nav-tabs,
    .crm-detail-list > div,
    .report-project-row,
    .report-stage-row,
    .report-series-block + .report-series-block
) {
    border-color: var(--border) !important;
}

html[data-bs-theme="dark"] :is(
    .empty-state,
    .report-empty-inline,
    .builder-empty
) {
    color: var(--text-muted) !important;
}

html[data-bs-theme="dark"] :is(
    .empty-state h1,
    .empty-state h2,
    .empty-state h3,
    .empty-state h4,
    .empty-state strong
) {
    color: var(--text-strong) !important;
}

html[data-bs-theme="dark"] :is(
    .nav-tabs .nav-link,
    .nav-pills .nav-link
) {
    color: var(--text-muted);
}

html[data-bs-theme="dark"] :is(
    .nav-tabs .nav-link.active,
    .nav-pills .nav-link.active
) {
    color: var(--text-strong);
    background: var(--surface-subtle);
    border-color: var(--border) var(--border) var(--surface-subtle);
}

html[data-bs-theme="dark"] :is(
    .list-group-item,
    .accordion-item,
    .accordion-button
) {
    color: var(--text);
    background: var(--surface) !important;
    border-color: var(--border) !important;
}

html[data-bs-theme="dark"] .accordion-button:not(.collapsed) {
    color: var(--text-strong);
    background: var(--surface-muted) !important;
}

html[data-bs-theme="dark"] :is(
    .report-detail-table tbody tr:hover,
    .crm-table tr.is-archived > td
) {
    background: rgba(122, 162, 255, .05) !important;
}

html[data-bs-theme="dark"] :is(
    .report-mini-bar-row > div,
    .report-progress,
    .report-probability,
    .report-workload-score,
    .report-project-progress
) {
    background: #1d2c43 !important;
}

html[data-bs-theme="dark"] :is(
    .ngp-shell,
    .ngp-canvas-wrap
) {
    background: #0d1728 !important;
    border-color: var(--border) !important;
}

html[data-bs-theme="dark"] .ngp-info {
    color: #b8cae4 !important;
    background: #102542 !important;
    border-color: #24466f !important;
}

html[data-bs-theme="dark"] .ngp-empty ol {
    background: var(--surface-muted) !important;
}

html[data-bs-theme="dark"] .ngp-detail-icon {
    background: color-mix(in srgb, var(--ngp-module-color) 18%, #111827) !important;
}

html[data-bs-theme="dark"] .calendar-loading {
    color: var(--text-strong);
    background: rgba(11, 17, 32, .82) !important;
}

/* Sprint 08 UI Fix 12 - Kolay logo integration */
.brand-image {
    display: block;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
}

.brand-image-dark {
    display: none;
}

html[data-bs-theme="dark"] .brand-image-light {
    display: none;
}

html[data-bs-theme="dark"] .brand-image-dark {
    display: block;
}

#sidebar .sidebar-brand {
    width: 100%;
    min-height: 54px;
    margin: 0 0 24px;
    padding: 0 4px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: visible;
    border-radius: 0;
    background: transparent;
}

#sidebar .sidebar-brand:hover,
#sidebar .sidebar-brand:focus-visible {
    color: inherit;
    background: transparent;
}

.sidebar-brand-expanded {
    width: 176px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.sidebar-brand-collapsed {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
}

.sidebar-brand-logo-full {
    width: 168px;
    max-height: 52px;
}

.sidebar-brand-logo-mark {
    width: 39px;
    height: 39px;
}

.sidebar-collapsed #sidebar .sidebar-brand {
    padding-inline: 0;
    justify-content: center;
}

.sidebar-collapsed .sidebar-brand-expanded {
    display: none;
}

.sidebar-collapsed .sidebar-brand-collapsed {
    display: flex;
}

.auth-brand-mark {
    width: min(240px, 100%);
    min-height: 76px;
    display: grid;
    place-items: center;
    filter: drop-shadow(0 12px 20px rgba(37, 99, 235, .18));
}

.auth-brand-logo {
    width: min(230px, 100%);
    height: auto;
    max-height: 78px;
    object-fit: contain;
}

.public-brand {
    width: max-content;
    margin: 0 auto 18px;
    display: grid;
    place-items: center;
}

.public-brand-logo {
    width: 64px;
    height: 63px;
    filter: drop-shadow(0 10px 18px rgba(37, 99, 235, .16));
}

@media (max-width: 767.98px) {
    .auth-brand-mark {
        width: min(205px, 100%);
        min-height: 66px;
    }

    .auth-brand-logo {
        width: min(198px, 100%);
        height: auto;
        max-height: 68px;
    }

    .public-brand-logo {
        width: 56px;
        height: 55px;
    }
}
