/* Administrator-controlled course appearance. Management deliberately stays light. */
.course-appearance-settings{display:grid;grid-template-columns:minmax(280px,1fr) minmax(250px,.9fr);align-items:center;gap:40px;padding:28px;margin:32px 0;border:1px solid #dce5e0;border-radius:12px;background:#fff}.course-appearance-settings h2{font-size:22px;margin:0 0 8px}.course-appearance-settings p{font-size:14px;color:#62766b;line-height:1.6}.course-appearance-settings form{max-width:360px}.course-appearance-settings form>.button{margin:8px 0 12px}.course-theme-preview{margin:0;overflow:hidden;border:1px solid #dce5e0;border-radius:10px;background:#fff}.course-theme-preview.dark{background:#000}.course-theme-preview img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:contain}.course-theme-preview figcaption{font-size:12px;padding:10px 16px;border-top:1px solid #e4eae7;color:#536a5c}.course-theme-preview.dark figcaption{color:#b8d2c8;border-color:#23352d}
@media(max-width:760px){.course-appearance-settings{grid-template-columns:minmax(0,1fr);gap:24px;padding:20px}}
html[data-theme=dark]{color-scheme:dark;--muted:#a7b5b1;--line:#2b3733;--ui-ink:#eef5f2;--ui-muted:#a7b5b1;--ui-border:#2b3733;background:#000;color:#eef5f2}
html[data-theme=dark] body,html[data-theme=dark] body.entry-screen,html[data-theme=dark] body:has(.auth),html[data-theme=dark] body:has(.personal-access){background:#000!important;color:#eef5f2}
html[data-theme=dark] body::before{opacity:.22!important}
html[data-theme=dark] :is(.header,.footer){background:transparent!important;color:#b5c7bf}
html[data-theme=dark] :is(h1,h2,h3,.intro h1 em,.course-headline,.access-course-name,.access-identity h1,.field>span,.question-page h1,.question-number){color:#eef5f2!important}
html[data-theme=dark] :is(.auth,.intro,.entry-layout .intro,.access-entry,.personal-access){background:transparent!important;border-color:transparent!important;box-shadow:none!important}
html[data-theme=dark] :is(.intro-description,.intro-tag,.access-purpose,.access-instruction,.auth-intro,.auth-footnote,.auth-options,.summary-intro,.password-rule,.loading,.eyebrow,.manager-course-subtitle,.question-heading,.glossary-item p,.term-context,.term-origin){color:#b5c7bf!important}
html[data-theme=dark] :is(.entry-art,.entry-loop,.entry-chart-animation){mix-blend-mode:normal!important}
html[data-theme=dark] .intro h1 em:after{background:#244534}
html[data-theme=dark] .header-name{background:#19382f;border-color:#285444;color:#c6eadb}
html[data-theme=dark] .header-actions .quiet-button,html[data-theme=dark] .quiet-button,html[data-theme=dark] .password-toggle{color:#b6d1c5}
html[data-theme=dark] :is(.field input,.field select,.field textarea,.glossary-search input,.link-box){background:#111714!important;color:#eef5f2!important;border-color:#3a5045!important;box-shadow:none}
html[data-theme=dark] .field input[readonly]{background:#0b100e!important;color:#b6c9c0!important}
html[data-theme=dark] input::placeholder,html[data-theme=dark] textarea::placeholder{color:#81988c!important;opacity:1}
html[data-theme=dark] select option{background:#111714;color:#eef5f2}
html[data-theme=dark] .button:not(.secondary){background:#26764f!important;border-color:#369266!important;color:#fff!important}
html[data-theme=dark] .button:not(.secondary):hover{background:#2d895c!important}
html[data-theme=dark] .button.secondary{background:#131e19!important;border-color:#365746!important;color:#d7e8df!important}
html[data-theme=dark] :is(.side-back,.side-next,.nav-icon){background:#173426!important;border-color:#39704d!important;color:#dff5e7!important;box-shadow:0 4px 20px #0008!important}
html[data-theme=dark] .button:disabled,html[data-theme=dark] #download-certificate:disabled{background:#1e2522!important;border-color:#303b35!important;color:#8d9f94!important;opacity:.65}
html[data-theme=dark] .course-tags .module-tag{background:#102b37!important;color:#99cee8!important}
html[data-theme=dark] .course-tags .question-tag{background:#192e20!important;color:#a6d7a0!important}
html[data-theme=dark] .course-tags .pass-tag{background:#142c2b!important;color:#84d1c2!important}
html[data-theme=dark] :is(.youtube-player,.youtube-player iframe){background:#000}
html[data-theme=dark] :is(.video-close,.fullscreen-button){background:#15201b!important;color:#daebe1!important;border-color:#355443!important}
html[data-theme=dark] .answer{color:#e4efe8!important;background:transparent!important;border-color:#34463b!important;box-shadow:none!important}
html[data-theme=dark] .answer:hover{background:#12271a!important;border-color:#72b886!important;box-shadow:0 0 0 2px #72b88615!important}
html[data-theme=dark] .answer:is(.is-selected,:has(input:checked)){background:#163e29!important;border-color:#8cc79a!important;box-shadow:0 0 0 3px #8cc79a20!important;color:#f3fff6!important}
html[data-theme=dark] .answer-letter{color:#bdd7c6!important;background:#14251a!important;border-color:#405d48!important}
html[data-theme=dark] .answer:has(input:checked) .answer-letter{background:#3d7d53!important;color:#fff!important}
html[data-theme=dark] :is(.summary-stat,.summary-module,.summary-reinforcement,.correct-item,.correct-review,.cutoff-note){background:#0f1712!important;border-color:#2c4936!important;box-shadow:none!important;color:#e4efe8}
html[data-theme=dark] .summary-stat.success strong,html[data-theme=dark] .summary-module.success .summary-module-end{color:#91d39e!important}
html[data-theme=dark] .summary-stat.danger strong,html[data-theme=dark] .summary-module.danger .summary-module-end{color:#eda19e!important}
html[data-theme=dark] .summary-stat.info strong{color:#8fcddd!important}
html[data-theme=dark] :is(.summary-stat span,.summary-module p,.summary-module small,.reinforcement-copy p,.reinforcement-eyebrow,.glossary-item summary small){color:#a6bcaf!important}
html[data-theme=dark] .summary-module-icon{background:#1c3324!important;color:#b4ddbe!important}
html[data-theme=dark] .summary-footer{background:#000f!important;border-color:#273a2e!important;box-shadow:0 -12px 24px #0008!important}
html[data-theme=dark] #review-wrong{background:#1c5966!important;border-color:#347d8d!important;color:#f3fbff!important}
html[data-theme=dark] .header-progress-track{background:#1c3029!important}
html[data-theme=dark] :is(.computing,.finance-animation){background:#000!important;color:#edf7f2}
html[data-theme=dark] dialog#modal,html[data-theme=dark] dialog#modal>.modal-close-bar,html[data-theme=dark] dialog#modal>#modal-content{background:#0d1510!important;color:#e9f3ed;border-color:#2c4434!important}
html[data-theme=dark] dialog#modal::backdrop{background:#000b}
html[data-theme=dark] dialog#modal>.modal-close-bar>#close-modal{background:#17261c!important;color:#d3e7d9!important;border-color:#385b43!important;box-shadow:none}
html[data-theme=dark] .glossary-item{border-color:#2b4433}
html[data-theme=dark] .glossary-item summary>span:first-child{color:#e5efe7}
html[data-theme=dark] .filter{background:transparent!important;color:#b1c7b8;border-color:#35513f}
html[data-theme=dark] .filter.active{background:#1b3e27!important;color:#c9ebd0;border-color:#74b483}
html[data-theme=dark] .term-context strong{color:#b6dfbf}
html[data-theme=dark] :is(.notice,.request-success-check){background:#13331f!important;color:#b9dfc2!important;border-color:#2d6540!important}
html[data-theme=dark] .error:not(:empty){background:#371d20;color:#f0b3b3;border-color:#754047}
html[data-theme=dark] #toast.toast{background:#142a3b;color:#c6e3f7;border-color:#34566d}
html[data-theme=dark] #toast.toast[data-tone=error]{background:#3b2024;color:#f5c1be;border-color:#8a4f51}
html[data-theme=dark] :is(.report-tooltip,.tip-popover){background:#17271c;color:#deeee1;border-color:#43674b}
html[data-theme=dark] :where(button,a,input,select,textarea):focus-visible{outline-color:#83c9b4}
html[data-theme=dark] :is(.header-progress-label,.reinforcement-copy h2,.reinforcement-copy p,.page-controls,.term-context a,.expand){color:#b8d5c5!important}

html[data-theme=dark] body:has(.auth)::before{filter:grayscale(1) invert(1);opacity:.45!important}html[data-theme=dark] body:has(.auth) .entry-art{mix-blend-mode:lighten!important}

/* Match the light backdrop with the same softly inverted waves throughout dark mode. */
html[data-theme=dark] body{isolation:isolate}
html[data-theme=dark] body::before,html[data-theme=dark] body:has(.auth)::before{content:'';position:fixed;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(#ffffffb8,#ffffffb8),url('assets/login-wave-background.webp?v=130') center/cover no-repeat;filter:grayscale(1) invert(1);opacity:1!important}
html[data-theme=dark] body .entry-art{mix-blend-mode:lighten!important}
/* Dark management workspace: semantic status colors remain visible. */
html[data-theme=dark] body.management-page{color:#dce8e1}
html[data-theme=dark] .management-workspace .header{background:#080c0af5!important;border-color:#24362a!important}
html[data-theme=dark] :is(.admin-menu,.participant-card,.administrator-list>article,.course-appearance-settings,.business-units-settings,.data-tool-card,.admin-data-tools>div>article,.insight-panel,.insight-kpi,.insight-filters,.insight-section-tabs,.question-editor-slide,.editor-video-settings,.editor-publication-note,.detail-identity,.notification-request,.import-preview,.import-results-table){background:#101813!important;color:#dce8e1!important;border-color:#2a3e30!important;box-shadow:none!important}
html[data-theme=dark] :is(.admin-menu a,.admin-menu a[aria-current=page]){color:#b5cbbb!important;background:transparent!important}
html[data-theme=dark] .admin-menu a[aria-current=page]{color:#a5e1ba!important;border-color:#5ca67b!important}
html[data-theme=dark] :is(.admin-menu a:hover,.participant-card:hover,.insight-table tbody tr:hover){background:#16251b!important}
html[data-theme=dark] :is(.admin p,.admin small,.participant-card-email,.participant-position,.compact-progress,.participant-detail dt,.participant-detail .detail-label,.notification-list p,.notification-list small,.insight-note,.insight-updated,.insight-kpi-label,.insight-kpi small,.insight-legend,.insight-legend li,.insight-time-list dt,.unit-rank-context,.administrator-state){color:#a9bfb0!important}
html[data-theme=dark] :is(.admin label,.admin label>span,.participant-detail dd,.participant-detail .detail-value,.participant-detail h2,.compact-progress strong,.insight-table td,.insight-donut>strong,.insight-time-pair strong,.insight-time-total strong,.insight-time-list dd,.unit-rank-name strong,.notification-heading h2){color:#e2eee5!important}
html[data-theme=dark] :is(.admin input,.admin select,.admin textarea,.insight-filters select,.insight-question-controls select,.insight-question-controls input,.participant-search input){background-color:#0a110c!important;color:#e2eee5!important;border-color:#36523e!important}
html[data-theme=dark] :is(.stat-participants,.status-cyan){background:#102b34!important;border-color:#285265!important}
html[data-theme=dark] :is(.stat-participants strong,.status-cyan strong){color:#9ed9e9!important}
html[data-theme=dark] :is(.stat-completed,.status-green){background:#142d1d!important;border-color:#315d3f!important}
html[data-theme=dark] :is(.stat-completed strong,.status-green strong){color:#a5ddad!important}
html[data-theme=dark] :is(.stat-failed,.status-red){background:#341e24!important;border-color:#69404a!important}
html[data-theme=dark] :is(.stat-failed strong,.status-red strong){color:#f0aeb5!important}
html[data-theme=dark] :is(.stat-unfinished,.status-amber){background:#302917!important;border-color:#625232!important}
html[data-theme=dark] :is(.stat-unfinished strong,.status-amber strong){color:#e7c78b!important}
html[data-theme=dark] :is(.stat-pending,.status-gray){background:#202729!important;border-color:#3c484c!important}
html[data-theme=dark] :is(.stat-pending strong,.status-gray strong){color:#bbc8cd!important}
html[data-theme=dark] :is(.stat,.insight-status-card)>span,html[data-theme=dark] .insight-status-card span{color:#d6e4da!important}
html[data-theme=dark] .insight-status-card small{color:#afc3b5!important}
html[data-theme=dark] .insight-donut:before{background:#101813!important;box-shadow:inset 0 0 0 8px #16241b!important}
html[data-theme=dark] .insight-meter,html[data-theme=dark] .insight-time-track{background:#23352a!important}
html[data-theme=dark] :is(.insight-chip,.insight-summary-strip,.insight-question-controls label,.insight-detail-button,.editor-count-range,.editor-page-tabs button,.editor-theme-tabs button){background:#17271d!important;color:#bed3c4!important;border-color:#34533e!important}
html[data-theme=dark] :is(.insight-table td,.insight-table th,.detail-row,.participant-detail .detail-identity,.participant-access,.notification-request){border-color:#2a4031!important}
html[data-theme=dark] :is(.insight-table th,.insight-table td small,.insight-question-table p,.insight-question-rank p,.insight-filters label>span,.insight-question-controls label>span){color:#aac2b2!important}
html[data-theme=dark] :is(.insight-table thead,.insight-table tbody tr:nth-child(even)){background:#142019!important}
html[data-theme=dark] :is(.insight-text-action,.insight-detail-button,.unit-rank-name b,.cell-positive){color:#96d7ba!important}
html[data-theme=dark] .cell-negative{color:#efadb2!important}
html[data-theme=dark] .participant-actions .button,html[data-theme=dark] .participant-actions .participant-more{background:transparent!important;border-color:#34533e!important;color:#b6d7c7!important}
html[data-theme=dark] .participant-actions [data-report],html[data-theme=dark] .participant-actions [data-user-link]{color:#9ed9e9!important;border-color:#326375!important}
html[data-theme=dark] .participant-actions [data-certificate]{color:#a5ddad!important;border-color:#426b4c!important}
html[data-theme=dark] .participant-actions [data-certificate]:disabled{color:#73897b!important;border-color:#2d3d33!important;background:#151e18!important}
html[data-theme=dark] .bu-tag{background:transparent!important;filter:brightness(1.55) saturate(.75)}
html[data-theme=dark] :is(.status-filter,.status-filter[aria-pressed=true]){background:transparent!important;border-color:currentColor!important;box-shadow:none!important}
html[data-theme=dark] :is(.status-filter.completed,.participant-status-icon.completed){color:#a5ddad!important}
html[data-theme=dark] :is(.status-filter.failed,.participant-status-icon.failed){color:#efadb2!important}
html[data-theme=dark] :is(.status-filter.unfinished,.participant-status-icon.unfinished){color:#e7c78b!important}
html[data-theme=dark] :is(.status-filter.pending,.participant-status-icon.pending){color:#bbc8cd!important}
html[data-theme=dark] .editor-approval-target>strong{background:#183a26!important;color:#b3dfbe!important}
html[data-theme=dark] .participant-access,html[data-theme=dark] .home-access-notice{background:#101813!important}
html[data-theme=dark] .course-theme-preview.light{background:#fff}
/* Lighter outline icons, without filled badges or icon backplates. */
html[data-theme=dark] :is(.motion-icon,.summary-module-icon,.reinforcement-symbol,.admin-profile-badge,.participant-status-icon,.tip-trigger,.side-back,.side-next,.nav-icon,.video-close,.password-toggle,.notification-bell,.unit-rank-position){background:transparent!important;box-shadow:none!important;filter:none}
html[data-theme=dark] :is(.motion-icon,.reinforcement-symbol,.summary-module-icon,.password-toggle,.notification-bell){color:#b2dfd2!important}
html[data-theme=dark] .admin-profile-badge{color:#e9d38e!important;border-color:#796b3e!important}
html[data-theme=dark] :is(button,a,.reinforcement-symbol,.admin-profile-badge,.participant-status-icon) svg :is(path,rect,circle,ellipse,polygon,polyline),html[data-theme=dark] .motion-icon :is(path,rect,circle,ellipse,polygon,polyline){fill:none!important;stroke:currentColor!important}
html[data-theme=dark] .tip-trigger{border-color:#608e76!important;color:#c2e0cf!important}
html[data-theme=dark] :is(.unit-rank-position,.insight-panel [class$="-label"]){color:#b8d8c5!important}
html[data-theme=dark] .unit-rank-position.rank-leader{color:#a5ddad!important}

html[data-theme=dark] .data-tool-symbol{background:transparent!important;color:#b2dfd2!important;box-shadow:none!important}

html[data-theme=dark] body.entry-screen .intro .course-tags>span{background:transparent!important;border:0!important;box-shadow:none!important}
html[data-theme=dark] body.management-workspace .manager-tools .status-filter,html[data-theme=dark] body.management-workspace .manager-tools .status-filter[aria-pressed=true]{background:transparent!important;border:0!important;box-shadow:none!important}

html[data-theme=dark] .summary-approval-status{background:#281d18;border-color:#684636}html[data-theme=dark] .summary-approval-count>strong,html[data-theme=dark] .summary-approval-explanation .summary-pending-modules{color:#edb39c}html[data-theme=dark] .summary-approval-count>span,html[data-theme=dark] .summary-approval-count strong small,html[data-theme=dark] .summary-approval-explanation>small{color:#c7ac9d}html[data-theme=dark] .summary-approval-explanation>p{color:#ead0c1}html[data-theme=dark] .summary-approval-status.all-approved{background:#14291b;border-color:#315b3e}html[data-theme=dark] .all-approved .summary-approval-count>strong{color:#a5ddad}html[data-theme=dark] .all-approved .summary-approval-count>span,html[data-theme=dark] .all-approved .summary-approval-count strong small,html[data-theme=dark] .all-approved .summary-approval-explanation>p{color:#b7d6bf}html[data-theme=dark] .summary-stat .summary-score-note{color:#a7bfb0}
