/* OMAS Night: site-wide contrast and surface refinements. */
@media screen{
html[data-omasdark="on"][data-bs-theme="dark"] {--bs-link-color-rgb:117,224,212;--bs-link-hover-color-rgb:173,255,243;--bs-emphasis-color-rgb:247,251,255;--bs-secondary-color-rgb:181,198,214;--bs-tertiary-color:#a7bacb;--bs-tertiary-color-rgb:167,186,203;}
html[data-omasdark="on"][data-bs-theme="dark"] :is(input[type="search"],input[type="email"],input[type="number"],input[type="date"],input[type="password"],input[type="text"],input[type="url"],input[type="tel"],textarea,select):not([disabled]){background-color:var(--night-field)!important;color:var(--night-text)!important;border-color:var(--night-border)!important;color-scheme:dark;}
html[data-omasdark="on"][data-bs-theme="dark"] :is(input,textarea)::placeholder{color:var(--night-subtext)!important;opacity:1;}
html[data-omasdark="on"][data-bs-theme="dark"] :is(input,textarea,select):disabled{background-color:var(--night-inset)!important;color:var(--night-subtext)!important;opacity:.75;}
html[data-omasdark="on"][data-bs-theme="dark"] :is(input[type="checkbox"],input[type="radio"]){accent-color:var(--night-accent);}
html[data-omasdark="on"][data-bs-theme="dark"] :is(a,button,input,select,textarea,summary,[tabindex]):focus-visible{outline:2px solid var(--night-focus)!important;outline-offset:3px;}
html[data-omasdark="on"][data-bs-theme="dark"] :is(.bg-white,.bg-light,.bg-body,.bg-body-secondary,.bg-body-tertiary){background-color:var(--night-card)!important;}
html[data-omasdark="on"][data-bs-theme="dark"] :is(.modal-header,.modal-footer,.popover-header,.toast-header){background:var(--night-inset)!important;color:var(--night-text)!important;border-color:var(--night-border)!important;}
html[data-omasdark="on"][data-bs-theme="dark"] :is(.modal-body,.popover-body,.toast-body,.dropdown-header){color:var(--night-text)!important;}
html[data-omasdark="on"][data-bs-theme="dark"] .btn-close{filter:invert(1) grayscale(1) brightness(1.7);}
html[data-omasdark="on"][data-bs-theme="dark"] :is(.pagination .page-link,.btn-light,.btn-secondary){background:var(--night-card)!important;color:var(--night-text)!important;border-color:var(--night-border)!important;}
html[data-omasdark="on"][data-bs-theme="dark"] :is(.pagination .active>.page-link,.pagination .page-link:hover){background:var(--night-hover)!important;color:var(--night-accent)!important;}
html[data-omasdark="on"][data-bs-theme="dark"] :is(.table,.generaltable){--bs-table-bg:var(--night-card);--bs-table-color:var(--night-text);--bs-table-striped-color:var(--night-text);--bs-table-hover-color:var(--night-text);--bs-table-hover-bg:var(--night-hover);}
html[data-omasdark="on"][data-bs-theme="dark"] :is(.table,.generaltable) tbody tr:hover>td{background:var(--night-hover)!important;}
html[data-omasdark="on"][data-bs-theme="dark"] :is(.alert-success,.alert-info,.alert-warning,.alert-danger) a{color:inherit!important;text-decoration:underline;}
html[data-omasdark="on"][data-bs-theme="dark"] :is(.que .outcome,.que .comment,.que .generalfeedback){background:#26364a!important;color:var(--night-text)!important;border-color:var(--night-border)!important;}
html[data-omasdark="on"][data-bs-theme="dark"] :is(.que .correct,.que .incorrect,.que .partiallycorrect){border-radius:6px;}
html[data-omasdark="on"][data-bs-theme="dark"] .que .correct{background-color:#163e32!important;color:#c9f7dd!important;}
html[data-omasdark="on"][data-bs-theme="dark"] .que .incorrect{background-color:#48282f!important;color:#ffd2d8!important;}
html[data-omasdark="on"][data-bs-theme="dark"] .que .partiallycorrect{background-color:#443a23!important;color:#ffedbc!important;}
html[data-omasdark="on"][data-bs-theme="dark"] :is(.omascoach-card,.omascoach-statstrip,.omassuivi-card,.omas-shortcut,.oma-independent-form,.oma-create-independent,.oma-option-row,.oma-choice,.oma-bulk-item,.oma-library-empty){background:var(--night-card)!important;color:var(--night-text)!important;border-color:var(--night-border)!important;}
html[data-omasdark="on"][data-bs-theme="dark"] :is(.omascoach-muted,.omaspr-ue-numbers,.oma-card-meta,.oma-library-count,.oma-library-title p,.oma-footer,.oma-tip,.oma-help){color:var(--night-subtext)!important;}
html[data-omasdark="on"][data-bs-theme="dark"] .oma-shell :is(.oma-brand b,.oma-brand small,.oma-course-card strong,.oma-section-title h2,.oma-panel label,.oma-titlebar p,.oma-option-heading b){color:var(--night-text)!important;}
html[data-omasdark="on"][data-bs-theme="dark"] .oma-shell :is(.oma-searchbox,.oma-card-icon,.oma-section-title>span,.oma-option-heading b){background:var(--night-inset)!important;color:var(--night-accent)!important;border-color:var(--night-border)!important;}
html[data-omasdark="on"][data-bs-theme="dark"] .oma-shell .oma-topnav a.active{background:var(--night-hover)!important;color:var(--night-accent)!important;}
html[data-omasdark="on"][data-bs-theme="dark"] body.omas-tempo-app :is(.omaspr-app,.omaspr-ue-course){--p8-ink:var(--night-text);--p8-muted:var(--night-subtext);--p8-card:var(--night-card);--p8-soft:var(--night-inset);--p8-line:var(--night-border);--p8-hero-left:#203b43;--p8-hero-right:#223247;--v7-ink:var(--night-text);--v7-muted:var(--night-subtext);--v7-card:var(--night-card);--v7-line:var(--night-border);color:var(--night-text);}
html[data-omasdark="on"][data-bs-theme="dark"] body.omas-tempo-app :is(.omaspr-ue-tile,.omaspr-subject-hero,.omaspr-panel,.omaspr-mixed-question,.omaspr-course-switch[open]){background:var(--night-card)!important;border-color:var(--night-border)!important;color:var(--night-text)!important;box-shadow:0 5px 18px #0002!important;}
html[data-omasdark="on"][data-bs-theme="dark"] body.omas-tempo-app :is(.omaspr-ue-tile strong,.omaspr-ue-intro h1,.omaspr-hero h2,.omaspr-panel h2,.omaspr-panel h3){color:var(--night-text)!important;}
html[data-omasdark="on"][data-bs-theme="dark"] body.omas-tempo-app :is(.omaspr-ue-search,.omaspr-course-switch summary){background:var(--night-inset)!important;color:var(--night-subtext)!important;border-color:var(--night-border)!important;}
html[data-omasdark="on"][data-bs-theme="dark"] :is(.btn-primary,.oma-btn.oma-primary,.omascoach-mainbutton,.omaspr-start-button){color:#fff!important;}
}
