/* Loaded after page-level Blade styles so account pages share one reliable theme. */
html[data-theme="dark"] body,
body.dark,
body.dark-mode { background:#101318!important; color:#f4f7fb!important; color-scheme:dark; }

html[data-theme="dark"] :is(.dash-main,.dash-inner,.main,.page-content,.page,.content),
body.dark :is(.dash-main,.dash-inner,.main,.page-content,.page,.content),
body.dark-mode :is(.dash-main,.dash-inner,.main,.page-content,.page,.content) { background-color:#101318!important; color:#f4f7fb!important; }

html[data-theme="dark"] :is(.card,.panel,.modal,.modal-content,.content-card,.form-card,.table-card,.page-card,.conv-list,.conv-item,.conversation-list,.conversation-item,.request-card,.subscription-card),
body.dark :is(.card,.panel,.modal,.modal-content,.content-card,.form-card,.table-card,.page-card,.conv-list,.conv-item,.conversation-list,.conversation-item,.request-card,.subscription-card),
body.dark-mode :is(.card,.panel,.modal,.modal-content,.content-card,.form-card,.table-card,.page-card,.conv-list,.conv-item,.conversation-list,.conversation-item,.request-card,.subscription-card) { background-color:#1b2028!important; border-color:#353d48!important; color:#f4f7fb!important; }

html[data-theme="dark"] :is(input,select,textarea),
body.dark :is(input,select,textarea), body.dark-mode :is(input,select,textarea) { background:#20252d!important; border-color:#424b58!important; color:#f4f7fb!important; color-scheme:dark; }

html[data-theme="dark"] :is(h1,h2,h3,h4,h5,h6,label,th,strong,.title,.heading),
body.dark :is(h1,h2,h3,h4,h5,h6,label,th,strong,.title,.heading), body.dark-mode :is(h1,h2,h3,h4,h5,h6,label,th,strong,.title,.heading) { color:#f4f7fb!important; }
html[data-theme="dark"] :is(p,li,td,small,.muted,.text-muted),
body.dark :is(p,li,td,small,.muted,.text-muted), body.dark-mode :is(p,li,td,small,.muted,.text-muted) { color:#aeb7c5!important; }

html[data-theme="dark"] :is(table th,table td),
body.dark :is(table th,table td), body.dark-mode :is(table th,table td) { border-color:#353d48!important; }

/* Bespoke university dashboard surfaces, after the generic account rules. */
html[data-theme="dark"] .cw-account-portal,
body.dark.cw-account-portal,
body.dark-mode.cw-account-portal { background:#101318!important; color:#f4f7fb!important; }

html[data-theme="dark"] .dash-sidebar,
body.dark .dash-sidebar, body.dark-mode .dash-sidebar { background:#181c22!important; border-color:#353d48!important; }
html[data-theme="dark"] .dash-topbar,
body.dark .dash-topbar, body.dark-mode .dash-topbar { background:rgba(16,19,24,.96)!important; border-color:#353d48!important; }
html[data-theme="dark"] :is(.dash-main,.dash-inner),
body.dark :is(.dash-main,.dash-inner), body.dark-mode :is(.dash-main,.dash-inner) { background:#101318!important; color:#f4f7fb!important; }

html[data-theme="dark"] .dash-inner :is(h1,h2,h3,h4,h5,h6,label,th,strong),
body.dark .dash-inner :is(h1,h2,h3,h4,h5,h6,label,th,strong),
body.dark-mode .dash-inner :is(h1,h2,h3,h4,h5,h6,label,th,strong) { color:#f4f7fb!important; }

html[data-theme="dark"] .dash-inner :is(.stat-card,.learning-pulse-metric,.learning-pulse-support,.dashboard-table-wrap,.empty-dash),
body.dark .dash-inner :is(.stat-card,.learning-pulse-metric,.learning-pulse-support,.dashboard-table-wrap,.empty-dash),
body.dark-mode .dash-inner :is(.stat-card,.learning-pulse-metric,.learning-pulse-support,.dashboard-table-wrap,.empty-dash) { background:#1b2028!important; border-color:#353d48!important; color:#f4f7fb!important; }

html[data-theme="dark"] .dash-inner .learning-pulse-panel,
body.dark .dash-inner .learning-pulse-panel, body.dark-mode .dash-inner .learning-pulse-panel { background:linear-gradient(135deg,#151d31,#202b47)!important; border-color:#3b4d70!important; }

html[data-theme="dark"] .dash-inner .dashboard-table th,
body.dark .dash-inner .dashboard-table th, body.dark-mode .dash-inner .dashboard-table th { background:#252b34!important; color:#cbd5e1!important; border-color:#353d48!important; }
html[data-theme="dark"] .dash-inner .dashboard-table td,
body.dark .dash-inner .dashboard-table td, body.dark-mode .dash-inner .dashboard-table td { background:#1b2028!important; color:#e5e7eb!important; border-color:#353d48!important; }

html[data-theme="dark"] .dash-sidebar :is(a,.brand-text,.brand-sub),
html[data-theme="dark"] .dash-topbar :is(a,span),
body.dark .dash-sidebar :is(a,.brand-text,.brand-sub), body.dark .dash-topbar :is(a,span),
body.dark-mode .dash-sidebar :is(a,.brand-text,.brand-sub), body.dark-mode .dash-topbar :is(a,span) { color:#f4f7fb!important; }
html[data-theme="dark"] .dash-sidebar :is(.sidebar-uni-name,.sidebar-uni-role,.nav-section-label),
body.dark .dash-sidebar :is(.sidebar-uni-name,.sidebar-uni-role,.nav-section-label),
body.dark-mode .dash-sidebar :is(.sidebar-uni-name,.sidebar-uni-role,.nav-section-label) { color:#e5e7eb!important; }
html[data-theme="dark"] .dash-sidebar .sidebar-uni-role,
body.dark .dash-sidebar .sidebar-uni-role,
body.dark-mode .dash-sidebar .sidebar-uni-role { color:#aeb7c5!important; }
html[data-theme="dark"] .dash-sidebar .nav-link.active,
body.dark .dash-sidebar .nav-link.active,
body.dark-mode .dash-sidebar .nav-link.active { background:#263e5c!important; color:#f8fafc!important; }
html[data-theme="dark"] .dash-sidebar .nav-link.active i,
body.dark .dash-sidebar .nav-link.active i,
body.dark-mode .dash-sidebar .nav-link.active i { color:#b9d8ff!important; }
html[data-theme="dark"] .sidebar :is(a.is-active,a.active),
body.dark .sidebar :is(a.is-active,a.active),
body.dark-mode .sidebar :is(a.is-active,a.active) { background:#3a251d!important; color:#fff7ed!important; }
html[data-theme="dark"] .sidebar :is(a.is-active,a.active) i,
body.dark .sidebar :is(a.is-active,a.active) i,
body.dark-mode .sidebar :is(a.is-active,a.active) i { color:#ffb38a!important; }
html[data-theme="dark"] .sidebar a[href*="university/dashboard"],
body.dark .sidebar a[href*="university/dashboard"],
body.dark-mode .sidebar a[href*="university/dashboard"] { background:#3a251d!important; color:#fff7ed!important; -webkit-text-fill-color:#fff7ed!important; }
html[data-theme="dark"] .sidebar a[href*="university/dashboard"] *,
body.dark .sidebar a[href*="university/dashboard"] *,
body.dark-mode .sidebar a[href*="university/dashboard"] * { color:#fff7ed!important; -webkit-text-fill-color:#fff7ed!important; }
html[data-theme="dark"] .sidebar .sidebar-desktop-copy strong,
body.dark .sidebar .sidebar-desktop-copy strong,
body.dark-mode .sidebar .sidebar-desktop-copy strong { color:#f7f7f8!important; -webkit-text-fill-color:#f7f7f8!important; }
html[data-theme="dark"] .sidebar .sidebar-desktop-copy span,
body.dark .sidebar .sidebar-desktop-copy span,
body.dark-mode .sidebar .sidebar-desktop-copy span { color:#c8d0dc!important; -webkit-text-fill-color:#c8d0dc!important; }
html[data-theme="dark"] .directory-page :is(.dir-header h1,.dir-header p,.dir-main,.dir-main strong,.dir-main span),
body.dark .directory-page :is(.dir-header h1,.dir-header p,.dir-main,.dir-main strong,.dir-main span),
body.dark-mode .directory-page :is(.dir-header h1,.dir-header p,.dir-main,.dir-main strong,.dir-main span) { color:#f4f7fb!important; }

html[data-theme="dark"] .dashboard-theme-toggle,
body.dark .dashboard-theme-toggle, body.dark-mode .dashboard-theme-toggle { background:#252b34!important; border-color:#424b58!important; color:#f4f7fb!important; }
