/* GENERATED by scripts/gen_dark_css.py from source.css; hand-written overrides live in dark-overrides.css. */
html[data-theme="dark"] .ase-sidebar { border-right: 1px solid rgba(205,205,218,.2); background: #030347; }
html[data-theme="dark"] .ase-sidebar-logo { border-bottom: 1px solid rgba(205,205,218,.2); }
html[data-theme="dark"] .ase-sidebar-link, html[data-theme="dark"] .ase-admin-menu > summary { background: #16164b; color: #fff; }
html[data-theme="dark"] .ase-sidebar-link:hover { background: #16164b; }
html[data-theme="dark"] .ase-admin-menu { border-top: 1px solid rgba(205,205,218,.2); }
html[data-theme="dark"] .ase-admin-menu[open] > summary { background: #16164b; }
html[data-theme="dark"] .ase-admin-links a { color: #fff; }
html[data-theme="dark"] .ase-admin-links a[aria-current='page'] { color: #b093ff; }
html[data-theme="dark"] .ase-topbar { border-bottom: 1px solid rgba(205,205,218,.2); background: #030347; }
html[data-theme="dark"] .ase-menu-toggle::before { background: #030347; }
html[data-theme="dark"] .ase-user-menu > summary { color: #fff; }
html[data-theme="dark"] .ase-user-avatar { color: #fff; }
html[data-theme="dark"] .ase-user-menu-items { border: 1px solid rgba(205,205,218,.2); background: #030347; }
html[data-theme="dark"] .ase-user-menu-items a:hover, html[data-theme="dark"] .ase-user-menu-items button:hover { background: #16164b; }
html[data-theme="dark"] .ase-user-identity { border-bottom: 1px solid rgba(205,205,218,.2); }
html[data-theme="dark"] .ase-user-identity small { color: #b9bce0; }
html[data-theme="dark"] .ase-footer { color: #b9bce0; }
html[data-theme="dark"] .ase-menu-toggle { color: #fff; }
html[data-theme="dark"] .course-breadcrumb { color: #fff; }
html[data-theme="dark"] .course-breadcrumb a { color: #b9bce0; }
html[data-theme="dark"] .course-breadcrumb a:hover { color: #b093ff; }
html[data-theme="dark"] .course-breadcrumb span[aria-hidden] { color: #b9bce0; }
html[data-theme="dark"] .course-catalog-card { background: #030347; border: 1px solid rgba(205,205,218,.2); }
html[data-theme="dark"] .course-card-title { color: #fff; }
html[data-theme="dark"] .course-card-chips { border: 1px solid rgba(205,205,218,.2); }
html[data-theme="dark"] .course-card-chips > span { border-right: 1px solid rgba(205,205,218,.2); color: #b093ff; }
html[data-theme="dark"] .course-card-audience { background: #16164b; color: #fff; }
html[data-theme="dark"] .course-card-audience strong { color: #b093ff; }
html[data-theme="dark"] .course-card-progress { color: #fff; }
html[data-theme="dark"] .course-card-progress > div { background: #16164b; }
html[data-theme="dark"] .course-card-action-outline { background: #030347; }
html[data-theme="dark"] .course-card-action-outline:hover { background: #16164b; }
html[data-theme="dark"] .course-card-completed { border-top: 2px solid rgba(205,205,218,.2); color: rgba(255,255,255,.65); }
html[data-theme="dark"] .course-overview-description { color: #e1e3f5; }
html[data-theme="dark"] .course-module > summary::after { color: #b9bce0; }
html[data-theme="dark"] .cf-card { background: #030347; color: #fff; border: 1px solid rgba(205,205,218,.2); }
html[data-theme="dark"] .cf-searchbox { border: 0.5px solid rgba(205,205,218,.2); background: #030347; color: rgba(255,255,255,.65); }
html[data-theme="dark"] .cf-searchbox input { color: #fff; }
html[data-theme="dark"] .cf-searchbox input::placeholder { color: rgba(255,255,255,.65); }
html[data-theme="dark"] .cf-dd > summary { border: 1px solid rgba(205,205,218,.2); color: #fff; }
html[data-theme="dark"] .cf-dd > summary:hover { background: #16164b; }
html[data-theme="dark"] .cf-dd[data-active] > summary, html[data-theme="dark"] .cf-dd[open] > summary { background: #16164b; }
html[data-theme="dark"] .cf-menu { background: #030347; }
html[data-theme="dark"] .cf-option { color: #fff; }
html[data-theme="dark"] .cf-option:hover { background: #16164b; }
html[data-theme="dark"] .cf-option input { color: #b093ff; }
html[data-theme="dark"] .cf-search { border: 0.5px solid rgba(205,205,218,.2); }
html[data-theme="dark"] .cf-custom input { color: #b093ff; }
html[data-theme="dark"] .cf-refresh { color: #fff; }
html[data-theme="dark"] .cf-refresh:hover { background: #16164b; }
html[data-theme="dark"] .cf-clear { color: #fff; }
html[data-theme="dark"] .ase-slide-surface { background: #030347; color: #fff; }
html[data-theme="dark"] .ase-slide-kicker { color: #e1e3f5; }
html[data-theme="dark"] .ase-slide-code-header { background: #16164b; }
html[data-theme="dark"] .ase-slide-side-image .ase-slide-media { background: linear-gradient(180deg, #02032d, #dce1ee); }
html[data-theme="dark"] .course-overview-title { color: #fff; }
html[data-theme="dark"] .course-panel { background: #030347; }
html[data-theme="dark"] .course-panel-title { color: #fff; }
html[data-theme="dark"] .course-preview-stats p { color: #fff; }
html[data-theme="dark"] .course-module-title { color: #fff; }
html[data-theme="dark"] .course-lesson { color: #fff; }
html[data-theme="dark"] a.course-lesson:hover { background: #16164b; }
html[data-theme="dark"] .course-lesson-check { background: #030347; }
html[data-theme="dark"] .course-lesson-time { color: #e1e3f5; }
html[data-theme="dark"] .course-hero .course-fav { background: #16164b; }
html[data-theme="dark"] .favorites-lists { background: #030347; border: 1px solid rgba(205,205,218,.2); }
html[data-theme="dark"] .favorites-lists h2 { color: #fff; }
html[data-theme="dark"] .favorites-lists nav > a, html[data-theme="dark"] .favorites-list-row { color: #fff; }
html[data-theme="dark"] .favorites-lists nav > a[aria-current], html[data-theme="dark"] .favorites-list-row.is-current { background: #16164b; }
html[data-theme="dark"] .favorites-search { border: .5px solid rgba(205,205,218,.2); background: #16164b; }
html[data-theme="dark"] .favorites-search input { color: #fff; }
html[data-theme="dark"] .favorites-empty { color: #fff; }
html[data-theme="dark"] .profile-card { background: #030347; color: #fff; border: 1px solid rgba(205,205,218,.2); }
html[data-theme="dark"] .profile-nav a { color: #fff; }
html[data-theme="dark"] .profile-nav a svg { color: #b093ff; }
html[data-theme="dark"] .profile-nav a.is-active svg circle:last-of-type, html[data-theme="dark"] .profile-nav a.is-active svg path { fill: #b093ff; }
html[data-theme="dark"] .profile-panel { background: #030347; color: #fff; border: 1px solid rgba(205,205,218,.2); }
html[data-theme="dark"] .profile-field input { background: #16164b; color: #fff; }
html[data-theme="dark"] .profile-switch::after { background: #030347; }
html[data-theme="dark"] .course-info-card { border: .5px solid rgba(205,205,218,.2); background: #030347; }
html[data-theme="dark"] .course-info-layout .course-panel { border: .5px solid rgba(205,205,218,.2); }
html[data-theme="dark"] .course-info-modules .course-module-meta { color: rgba(255,255,255,.65); }
html[data-theme="dark"] .journeys-head h1 { color: #fff; }
html[data-theme="dark"] .journeys-select { color: #fff; }
html[data-theme="dark"] .journeys-dd > summary { background: #16164b; color: #fff; }
html[data-theme="dark"] .journeys-dd-value.is-placeholder { color: rgba(255,255,255,.65); }
html[data-theme="dark"] .journeys-dd-menu { background: #030347; }
html[data-theme="dark"] .journeys-dd-item { color: #fff; }
html[data-theme="dark"] .journeys-dd-item + .journeys-dd-item { border-top: 1px solid rgba(205,205,218,.2); }
html[data-theme="dark"] .journeys-dd-item:hover { background: #16164b; }
html[data-theme="dark"] .journey-card { background: #030347; }
html[data-theme="dark"] .journey-card-media { background: #16164b; }
html[data-theme="dark"] .journey-card-role { background: #16164b; color: #fff; }
html[data-theme="dark"] .journey-card-title { color: #fff; }
html[data-theme="dark"] .journey-card-kind { background: #16164b; color: #fff; }
html[data-theme="dark"] .journey-card-desc { color: #fff; }
html[data-theme="dark"] .journey-card-progress { color: #e1e3f5; }
html[data-theme="dark"] .journey-card-progress > div { background: #16164b; }
html[data-theme="dark"] .journey-card-foot { border-top: 1px solid rgba(205,205,218,.2); }
html[data-theme="dark"] .journey-card-go { color: #fff; }
html[data-theme="dark"] .ase-user-label { color: #fff; }
html[data-theme="dark"] .lesson-shell { background: #030347; border: 1px solid rgba(205,205,218,.2); }
html[data-theme="dark"] .lesson-title { color: #fff; }
html[data-theme="dark"] .lesson-rate { color: #fff; }
html[data-theme="dark"] .lesson-rate span { color: #fff; }
html[data-theme="dark"] .lesson-progress { background: radial-gradient(closest-side, #030347 70%, transparent 73%), conic-gradient(#00da9f calc(var(--p) * 1%), #16164b 0); color: #fff; }
html[data-theme="dark"] .lesson-sidebar-toggle { color: #fff; }
html[data-theme="dark"] .lesson-nav { border-top: 1px solid rgba(205,205,218,.2); }
html[data-theme="dark"] .lesson-sidebar-head h2 { color: #fff; }
html[data-theme="dark"] .lesson-sidebar .course-lesson-time { color: #fff; }
html[data-theme="dark"] .lesson-overview-tab { background: #16164b; color: #fff; }
html[data-theme="dark"] .lesson-overview { border: .5px solid rgba(205,205,218,.2); color: #fff; }
html[data-theme="dark"] .ai-quiz { color: #fff; }
html[data-theme="dark"] .ai-quiz-card { border: .5px solid rgba(205,205,218,.2); }
html[data-theme="dark"] .ai-quiz-source { border: 1px solid rgba(205,205,218,.2); background: #030347; color: #fff; }
html[data-theme="dark"] .ai-quiz .cm-editor { border: 1px solid rgba(205,205,218,.2); background: #030347; color: #fff; }
html[data-theme="dark"] .ai-quiz .cm-gutters { border-right: 1px solid rgba(205,205,218,.2); background: #16164b; color: rgba(255,255,255,.65); }
html[data-theme="dark"] .ai-quiz .cm-activeLine, html[data-theme="dark"] .ai-quiz .cm-activeLineGutter { background: #16164b; }
html[data-theme="dark"] .ai-quiz-pill-green { color: #fff; }
html[data-theme="dark"] .ai-quiz-hints li { border-bottom: 1px solid rgba(205,205,218,.2); background: #16164b; }
html[data-theme="dark"] .ai-quiz-explanation { border-bottom: 1px solid rgba(205,205,218,.2); background: #16164b; }
html[data-theme="dark"] .ai-quiz-dialog { background: #030347; color: #fff; }
html[data-theme="dark"] .ai-quiz :is(.cm-activeLine, html[data-theme="dark"] .cm-activeLineGutter) { background: #16164b; }
html[data-theme="dark"] .ai-quiz .ai-quiz-pill-green { color: #fff; }
html[data-theme="dark"] .dash-title { color: #fff; }
html[data-theme="dark"] .dash-card { background: #030347; color: #fff; border: 1px solid rgba(205,205,218,.2); }
html[data-theme="dark"] .dash-browse { color: #fff; }
html[data-theme="dark"] .dash-ach-grid .achievement { background: #16164b; color: #fff; }
html[data-theme="dark"] .dash-ach-grid .achievement strong { background: #030347; }
html[data-theme="dark"] .dash-personalize { color: #b093ff; }
html[data-theme="dark"] .lab-card { background: #030347; color: #fff; border: 1px solid rgba(205,205,218,.2); }
html[data-theme="dark"] .journey-detail { color: #fff; }
html[data-theme="dark"] .journey-progress-card { background: #030347; }
html[data-theme="dark"] .journey-progress-media { background: #16164b; }
html[data-theme="dark"] .journey-progress-role { background: #16164b; }
html[data-theme="dark"] .journey-progress-bar > div { background: #16164b; }
html[data-theme="dark"] .report-tab-active { background: #16164b; color: #fff; }
html[data-theme="dark"] .af-label { color: #fff; }
html[data-theme="dark"] .af-input { border: 1px solid rgba(205,205,218,.2); background: #16164b; color: #fff; }
html[data-theme="dark"] .af-input::placeholder { color: #b9bce0; }
html[data-theme="dark"] .af-btn-outline { background: #030347; color: #fff; }
html[data-theme="dark"] .af-round { color: #fff; }
html[data-theme="dark"] .af-info { color: #fff; }
html[data-theme="dark"] .af-pill { background: #030347; border: 1px solid rgba(205,205,218,.2); }
html[data-theme="dark"] .af-pill label { color: #fff; }
html[data-theme="dark"] .af-pill label:has(input:checked) { background: #16164b; }
html[data-theme="dark"] .af-dd > summary { background: #030347; color: #fff; }
html[data-theme="dark"] .af-dd-menu { background: #030347; }
html[data-theme="dark"] .af-course-list { border: 1px solid rgba(205,205,218,.2); }
html[data-theme="dark"] .af-course-row { border-top: 1px solid rgba(205,205,218,.2); }
html[data-theme="dark"] .af-chips { background: #030347; }
html[data-theme="dark"] .af-chips span { color: #b093ff; }
html[data-theme="dark"] .af-ms-box { border: 1px solid rgba(205,205,218,.2); background: #16164b; }
html[data-theme="dark"] .af-ms-box input { color: #fff; }
html[data-theme="dark"] .af-ms-chip { color: #fff; }
html[data-theme="dark"] .af-ms-menu { background: #030347; }
html[data-theme="dark"] .af-ms-menu [role=option] { color: #fff; }
html[data-theme="dark"] .af-ms-menu [role=option]:hover, html[data-theme="dark"] .af-ms-menu [role=option][aria-selected=true] { background: #16164b; }
html[data-theme="dark"] .af-ms-menu [role=option][aria-selected=true]::after { color: #b093ff; }
html[data-theme="dark"] .af-bc { color: #fff; }
html[data-theme="dark"] .af-bc a { color: #b9bce0; }
html[data-theme="dark"] .af-bc a:hover { color: #b093ff; }
html[data-theme="dark"] .af-bc span[aria-hidden] { color: #b9bce0; }
html[data-theme="dark"] .admin-table { background: #030347; }
html[data-theme="dark"] .admin-table th { background: #030347; color: rgba(255,255,255,0.65); }
html[data-theme="dark"] .admin-table td { color: #fff; }
html[data-theme="dark"] .admin-table .admin-table-more td { color: rgba(255,255,255,0.65); }
html[data-theme="dark"] .chmp-title { color: #fff; }
html[data-theme="dark"] .chmp-tabs { background: #030347; }
html[data-theme="dark"] .chmp-tab { color: #fff; }
html[data-theme="dark"] .chmp-tab:hover { background: #16164b; }
html[data-theme="dark"] .chmp-tab[aria-current='page'] { background: #16164b; }
html[data-theme="dark"] .chmp-card { background: #030347; color: #fff; border: 1px solid rgba(205,205,218,.2); }
html[data-theme="dark"] .chmp-progress-label { color: rgba(255,255,255,.65); }
html[data-theme="dark"] .chmp-table-wrap { border: 1px solid rgba(205,205,218,.2); background: #030347; }
html[data-theme="dark"] .chmp-table th { border-bottom: 1px solid rgba(205,205,218,.2); background: #030347; color: rgba(255,255,255,.65); }
html[data-theme="dark"] .chmp-table td { border-bottom: 1px solid rgba(205,205,218,.2); color: #fff; }
html[data-theme="dark"] .chmp-team-row:hover > td { background: #16164b; }
html[data-theme="dark"] .chmp-team-row:has([aria-expanded='true']) > td { background: #16164b; }
html[data-theme="dark"] .chmp-detail { color: #b093ff; }
html[data-theme="dark"] .chmp-panel-row > td { background: #02032d !important; }
html[data-theme="dark"] .chmp-panel-title { color: #fff; }
html[data-theme="dark"] .chmp-loading { color: #fff; }
html[data-theme="dark"] .chmp-inner-table td, html[data-theme="dark"] .chmp-inner-table th { background: #030347; }
html[data-theme="dark"] .chmp-empty { color: #fff; }
html[data-theme="dark"] .chmp-btn-green { color: #fff; }
html[data-theme="dark"] .chmp-search { border: 1px solid rgba(205,205,218,.2); background: #030347; color: rgba(255,255,255,.65); }
html[data-theme="dark"] .chmp-search input { color: #fff; }
html[data-theme="dark"] .chmp-search input::placeholder { color: rgba(255,255,255,.65); }
html[data-theme="dark"] .chmp-dialog { background: #030347; color: #fff; }
html[data-theme="dark"] .chmp-dialog-header { border-bottom: 1px solid rgba(205,205,218,.2); }
html[data-theme="dark"] .chmp-user-list { background: #16164b; }
html[data-theme="dark"] .chmp-user:hover { border-color: rgba(205,205,218,.2); }
html[data-theme="dark"] .chmp-dot { border: 1px solid rgba(205,205,218,.2); }
html[data-theme="dark"] .chmp-teams-list { background: #16164b; }
html[data-theme="dark"] .chmp-team-option input { color: #b093ff; }
html[data-theme="dark"] .chmp-select select { background: #16164b; color: #fff; }
html[data-theme="dark"] .chmp-info-line { border: 1px solid rgba(205,205,218,.2); }
html[data-theme="dark"] .chmp-level-head { background: #030347; }
html[data-theme="dark"] .chmp-level-title { color: #fff; }
html[data-theme="dark"] .chmp-feed-card { background: #030347; color: #fff; border: 1px solid rgba(205,205,218,.2); }
html[data-theme="dark"] .chmp-news-chip { color: #fff; }
html[data-theme="dark"] .chmp-fallback { color: #fff; }
html[data-theme="dark"] .chmp-tag-input { border: 1px solid rgba(205,205,218,.2); background: #030347; }
html[data-theme="dark"] .chmp-tag { background: #16164b; }
html[data-theme="dark"] .chmp-tag button { color: #fff; }
html[data-theme="dark"] .chmp-hint { color: #fff; }
html[data-theme="dark"] .uprof { color: #fff; }
html[data-theme="dark"] .uprof-email { border: 0.5px solid rgba(205,205,218,.2); background: #16164b; }
html[data-theme="dark"] .uprof-download-menu { background: #030347; }
html[data-theme="dark"] .uprof-download-menu button:hover { background: #16164b; }
html[data-theme="dark"] .uprof-card { border: 0.5px solid rgba(205,205,218,.2); background: #030347; }
html[data-theme="dark"] .uprof-select select { border: 1px solid rgba(205,205,218,.2); background: #16164b; color: #fff; }
html[data-theme="dark"] .uprof-day-course { border-top: 1px solid rgba(205,205,218,.2); }
html[data-theme="dark"] .uprof-tabs { border: 1px solid rgba(205,205,218,.2); background: #030347; }
html[data-theme="dark"] .uprof-tabs button { color: #fff; }
html[data-theme="dark"] .uprof-tabs button[aria-selected='true'] { background: #16164b; }
html[data-theme="dark"] .uprof-table-wrap { border: 1px solid rgba(205,205,218,.2); background: #030347; }
html[data-theme="dark"] .uprof-table th { border-bottom: 1px solid rgba(205,205,218,.2); background: #030347; color: rgba(255,255,255,.65); }
html[data-theme="dark"] .uprof-table td { border-bottom: 1px solid rgba(205,205,218,.2); color: #fff; }
html[data-theme="dark"] .uprof-stat { color: #fff; }
html[data-theme="dark"] .uprof-stat-value { color: #b093ff; }
html[data-theme="dark"] .uprof-recent { border: 0.5px solid rgba(205,205,218,.2); background: #030347; }
html[data-theme="dark"] .uprof-recent-head { border-bottom: 1px solid rgba(205,205,218,.2); }
html[data-theme="dark"] .uprof-badge { background: #16164b; color: #fff; }
html[data-theme="dark"] .ase-loader-label { color: #fff; }
html[data-theme="dark"] .ase-loader-inline > span { color: #fff; }
html[data-theme="dark"] .ase-progress { background: #030347; }
html[data-theme="dark"] .ma-card { background: #030347; border: 1px solid rgba(205,205,218,.2); }
html[data-theme="dark"] .ma-title { color: #fff; }
html[data-theme="dark"] .ma-table-wrap { background: #030347; }
html[data-theme="dark"] .ma-table { color: #fff; }
html[data-theme="dark"] .ma-table th { color: rgba(255,255,255,0.65); }
html[data-theme="dark"] .ma-pages { color: #b093ff; }
html[data-theme="dark"] .ma-info-name { color: #fff; }
html[data-theme="dark"] .ma-courses th { background: #030347; }
html[data-theme="dark"] .ma-unavailable h1 { color: #fff; }
html[data-theme="dark"] .activity-heatmap { border: 1px solid rgba(205,205,218,.2); }
html[data-theme="dark"] .activity-months { color: #b9bce0; }
html[data-theme="dark"] .activity-cell { background: #16164b; }
html[data-theme="dark"] .activity-legend { color: #b9bce0; }
html[data-theme="dark"] .dash-atable th { border-bottom: 1px solid rgba(205,205,218,.2); background: #030347; color: #fff; }
html[data-theme="dark"] .dash-atable tbody tr:hover { background: #16164b; }
html[data-theme="dark"] .dash-atable-bar { background: #16164b; }
html[data-theme="dark"] .dash-atable-go a { color: #b093ff; }
html[data-theme="dark"] .eu-dialog { background: #030347; color: #fff; }
html[data-theme="dark"] .eu-dialog-head { border-bottom: 1px solid rgba(205,205,218,.2); }
html[data-theme="dark"] .eu-field :is(input, html[data-theme="dark"] select) { border: 1px solid rgba(205,205,218,.2); background: #16164b; color: #fff; }
html[data-theme="dark"] .eu-info { border: 1px solid rgba(205,205,218,.2); }
html[data-theme="dark"] .eu-btn-secondary { color: #fff; }
html[data-theme="dark"] .eu-file { border: 1px solid rgba(205,205,218,.2); }
html[data-theme="dark"] .eu-file-clear { color: #fff; }
html[data-theme="dark"] .eu-file-meta { color: #fff; }
html[data-theme="dark"] .eu-formats { color: #e1e3f5; }
html[data-theme="dark"] .eu-search input { border: 1px solid rgba(205,205,218,.2); background: #030347; color: #fff; }
html[data-theme="dark"] .eu-search svg { fill: rgba(255,255,255,.65); }
html[data-theme="dark"] .eu-table { border: 1px solid rgba(205,205,218,.2); }
html[data-theme="dark"] .eu-table th { background: #030347; color: rgba(255,255,255,.65); }
html[data-theme="dark"] .eu-table td { border-top: 1px solid rgba(205,205,218,.2); }
html[data-theme="dark"] .eu-dialog-close { background: #030347; color: #fff; }
html[data-theme="dark"] .us-title { color: #fff; }
html[data-theme="dark"] .us-card { background: #030347; color: #fff; border: 1px solid rgba(205,205,218,.2); }
html[data-theme="dark"] .us-toolbar { border-bottom: 1px solid rgba(205,205,218,.2); }
html[data-theme="dark"] .us-intro + form { border-top: 1px solid rgba(205,205,218,.2); }
html[data-theme="dark"] .us-field { border: 1px solid rgba(205,205,218,.2); }
html[data-theme="dark"] .us-input { border: 1px solid rgba(205,205,218,.2); background-color: #16164b; color: #fff; }
html[data-theme="dark"] .us-chips { border: 1px solid rgba(205,205,218,.2); background: #16164b; }
html[data-theme="dark"] .us-chips input { color: #fff; }
html[data-theme="dark"] .us-chip { color: #fff; }
html[data-theme="dark"] .us-hint { color: #b9bce0; }
html[data-theme="dark"] .us-remove span { background: #030347; }
html[data-theme="dark"] .us-add span::before, html[data-theme="dark"] .us-add span::after { background: #030347; }
html[data-theme="dark"] .us-pill-green { color: #fff; }
html[data-theme="dark"] .us-pill-outline { background: #030347; color: #fff; }
html[data-theme="dark"] .us-dialog { background: #030347; color: #fff; }
html[data-theme="dark"] .ase-notifications h1 { color: #fff; }
html[data-theme="dark"] .ase-notification-toolbar { background: #030347; border: 1px solid rgba(205,205,218,.2); }
html[data-theme="dark"] .ase-notification-tabs a[aria-current=page] { color: #fff; }
html[data-theme="dark"] .ase-notification-toolbar button, html[data-theme="dark"] .ase-notification-row button { color: #fff; background: #030347; }
html[data-theme="dark"] .ase-notification-list { background: #030347; border: 1px solid rgba(205,205,218,.2); }
html[data-theme="dark"] .ase-notification-row.is-unread { background: #16164b; }
html[data-theme="dark"] .ase-notification-copy strong { color: #fff; }
html[data-theme="dark"] .ase-notification-empty { background: #030347; color: #fff; border: 1px solid rgba(205,205,218,.2); }
:root { border: rgba(205,205,218,.2); }
html[data-theme="dark"] .aa-profile-menu { background: #030347; }
html[data-theme="dark"] .aa-user-email { color: #e1e3f5; }
html[data-theme="dark"] .aa-menu-item svg { color: #e1e3f5; }
html[data-theme="dark"] .aa-menu-item:hover { background: #16164b; }
html[data-theme="dark"] .aa-history { background: #030347; }
html[data-theme="dark"] .aa-history-item:hover, html[data-theme="dark"] .aa-history-item.is-current { background: #16164b; }
html[data-theme="dark"] .aa-card { background: #030347; }
html[data-theme="dark"] .aa-export { background: #030347; }
html[data-theme="dark"] .aa-thinking { background: linear-gradient(135deg,#16164b,#16164b,#16164b); }
html[data-theme="dark"] .aa-md blockquote { background: #16164b; }
html[data-theme="dark"] .aa-composer { background: #030347; }
html[data-theme="dark"] .aa-input { background: #030347; }
html[data-theme="dark"] .aa-chip { background: #030347; }
html[data-theme="dark"] .aa-chip:hover:not(:disabled) { background: #16164b; }
html[data-theme="dark"] .aa-footer { background: #030347; }
/* Hand-written dark-theme layer (palette from the original app's .body--dark). Appended to dark.css by scripts/gen_dark_css.py. */
html[data-theme="dark"] { color-scheme: dark; }
html[data-theme="dark"] body { background: #02032d; color: #fff; }

/* Tailwind utilities used by the templates */
html[data-theme="dark"] .bg-white,
html[data-theme="dark"] .bg-\[\#030347\] { background-color: #030347; }
html[data-theme="dark"] .bg-\[\#edf1fa\] { background-color: #02032d; }
html[data-theme="dark"] :is(.bg-slate-50, .bg-slate-100, .bg-\[\#eef1f8\], .bg-\[\#f8f8fb\], .bg-\[\#f3f3f8\], .bg-\[\#f5f6fb\]) { background-color: #16164b; }
html[data-theme="dark"] :is(.bg-slate-200, .bg-\[\#e0e4ed\]) { background-color: #34356b; }
html[data-theme="dark"] :is(.border-slate-100, .border-slate-200, .border-slate-300, .border-\[\#e0e4ed\], .divide-slate-200 > :not(:last-child)) { border-color: rgba(205,205,218,.2); }
html[data-theme="dark"] :is(.text-\[\#030347\], .text-\[\#101344\], .text-slate-900, .text-slate-700, .text-black) { color: #fff; }
html[data-theme="dark"] :is(.text-slate-600, .text-slate-500) { color: #b9bce0; }
html[data-theme="dark"] :is(.text-\[\#4a14e8\], .text-\[\#6600ff\]) { color: #a98bff; }
html[data-theme="dark"] .hover\:bg-slate-50:hover { background-color: #16164b; }
html[data-theme="dark"] .hover\:bg-\[\#edf1fa\]:hover { background-color: #16164b; }
html[data-theme="dark"] .shadow, html[data-theme="dark"] .shadow-sm, html[data-theme="dark"] .shadow-md, html[data-theme="dark"] .shadow-lg { --tw-shadow-color: rgba(0,0,0,.45); }

/* Form controls */
html[data-theme="dark"] :is(input, select, textarea):not([type="checkbox"], [type="radio"], [type="range"], [type="color"]) { background-color: #16164b; color: #fff; border-color: rgba(255,255,255,.28); }
html[data-theme="dark"] ::placeholder { color: #9a9dc9; opacity: 1; }
html[data-theme="dark"] option { background: #16164b; color: #fff; }

/* Sidebar hover has to read against the raised surface */
html[data-theme="dark"] .ase-sidebar-link:hover { background: #2a2b66; }
html[data-theme="dark"] .ase-sidebar-link.is-active { color: #fff; }

/* Theme toggle in the topbar */
.ase-theme-toggle { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 20px; background: transparent; color: #030347; cursor: pointer; }
.ase-theme-toggle:hover { background: #f3f3f8; }
.ase-theme-toggle:focus-visible { outline: 2px solid #6600ff; outline-offset: 2px; }
.ase-theme-toggle svg { width: 24px; height: 24px; fill: currentColor; }
.ase-theme-toggle .icon-sun { display: none; }
html[data-theme="dark"] .ase-theme-toggle { color: #fff; }
html[data-theme="dark"] .ase-theme-toggle:hover { background: #16164b; }
html[data-theme="dark"] .ase-theme-toggle .icon-sun { display: block; }
html[data-theme="dark"] .ase-theme-toggle .icon-moon { display: none; }

/* The original ships a dedicated dark-mode logo (appsec_logo_dark.svg) */
.ase-logo-dark { display: none; }
html[data-theme="dark"] .ase-logo-light { display: none; }
html[data-theme="dark"] .ase-logo-dark { display: inline-block; }

/* Card surfaces: bordered like the original's q-card--dark */
html[data-theme="dark"] :is(.dash-card, .course-catalog-card, .cf-card) { border: 1px solid rgba(205,205,218,.2); box-shadow: none; }
html[data-theme="dark"] .dash-achievements { background-color: #16164b; }
html[data-theme="dark"] .achievement,
html[data-theme="dark"] .dash-ach-grid .achievement { background: #030347; border: 1px solid rgba(205,205,218,.2); color: #fff; }
html[data-theme="dark"] .achievement strong,
html[data-theme="dark"] .dash-ach-grid .achievement strong { background: #fff; }
html[data-theme="dark"] .cf-searchbox, html[data-theme="dark"] .cf-search { background: #16164b; border-color: rgba(205,205,218,.2); }
html[data-theme="dark"] :is(.course-card-audience, .course-card-chips) { background: #1a1b43; border: 1px solid rgba(205,205,218,.2); }
html[data-theme="dark"] .dash-atable-wrap, html[data-theme="dark"] .dash-assignments:has(.dash-atable-wrap) { border: 1px solid rgba(255,255,255,.28); background: #030347; }
html[data-theme="dark"] .cf-searchbox { color: rgba(255,255,255,.65); }
html[data-theme="dark"] .cf-searchbox input { color: #fff; }
html[data-theme="dark"] .course-overview-description { color: #fff; }
html[data-theme="dark"] .text-\[\#030347\]\/40 { color: rgba(255,255,255,.55); }
html[data-theme="dark"] .text-\[\#030347\]\/60 { color: rgba(255,255,255,.75); }

/* Admin AI Assistant (standalone page, variable-driven) */
html[data-theme="dark"] { --aa-bg: #02032d; --aa-card: #030347; --aa-border: rgba(205,205,218,.2); --aa-muted: #b9bce0; }
html[data-theme="dark"] :is(.aa-history-item a, .aa-md, .aa-input) { color: #fff; }
html[data-theme="dark"] .aa-header { background: #030347; border-bottom: 1px solid rgba(205,205,218,.2); }
html[data-theme="dark"] .us-chip { background: #3a3a66; }
html[data-theme="dark"] .us-remove span,
html[data-theme="dark"] .us-add span::before,
html[data-theme="dark"] .us-add span::after { background: #fff; }
