/* V14.8 — global dark-mode contrast patch. Screen-only, excludes printable output. */
@media screen {
html[data-lti-theme="dark"] :is(.page,.page-header,.panel,.card,.info-card,.stat-card,.metric-card,.lti-v135-owner-actions,.lti-v135-action-grid,.lti-qb-panel,.lti-partner-banner,.modal,.modal-body,.modal-header,.detail-item,.table-wrapper,.data-table,.lti-document-notice-box) {
  background-color:#192638!important;color:#f1f5f9!important;border-color:#526780!important;
}
html[data-lti-theme="dark"] :is(.page,.panel,.card,.info-card,.stat-card,.metric-card,.modal,.modal-body,.lti-v135-owner-actions,.lti-qb-panel) :is(h1,h2,h3,h4,h5,h6,strong,b,label,legend,th) {color:#f8fafc!important;opacity:1!important;}
html[data-lti-theme="dark"] :is(.page,.panel,.card,.info-card,.stat-card,.metric-card,.modal,.modal-body,.lti-v135-owner-actions,.lti-qb-panel) :is(p,small,span,td,li,dt,dd,.muted,.subtitle,.description,.eyebrow) {color:#dbe5f1!important;opacity:1!important;}
html[data-lti-theme="dark"] :is(.data-table,table) :is(td,th,tr) {background-color:#1c2a3e!important;color:#f1f5f9!important;border-color:#526780!important;}
html[data-lti-theme="dark"] :is(input,textarea,select) {background-color:#24364b!important;color:#fff!important;border:1px solid #8193a9!important;}
html[data-lti-theme="dark"] input::placeholder,html[data-lti-theme="dark"] textarea::placeholder {color:#cbd5e1!important;opacity:1!important;}
html[data-lti-theme="dark"] :is(.btn,button,[role="button"],a.btn) {opacity:1!important;}
html[data-lti-theme="dark"] :is(.btn.secondary,button.secondary) {background-color:#dce9f8!important;color:#142536!important;border-color:#8ba7c7!important;}
html[data-lti-theme="dark"] :is(.btn.primary,button.primary) {background-color:#0b73ad!important;color:white!important;}
html[data-lti-theme="dark"] a:not(.btn) {text-decoration-thickness:1px;text-underline-offset:2px;}
html[data-lti-theme="dark"] :is(.lti-v135-owner-actions,.lti-v135-owner-actions *,.lti-qb-panel,.lti-qb-panel *) {text-shadow:none!important;}
}
