/* Verified desktop audit: semantic contrast, fixed grade columns and icon alignment. */
@media screen {
html:root body .mgs .mgs-email h3 {color:#5d2e80!important}
html:root body .mgs .mgs-email p {color:#30273a!important}
html:root body.light-theme .seh-card h2,html:root body.light-theme .seh-card h2 a {color:#624092!important}
html:root body.light-theme .saved-grade-sheet {--sg-bg:#fff;--sg-line:#b6a9c8;--sg-head:#ede8f4;--sg-muted:#5b526b;--sg-text:#272231;--sg-alt:#f5f2fa;--sg-total:#e7dcf7;background:#fff!important;color:var(--sg-text)!important}
html:root body.light-theme .protected-grading .saved-grade-sheet table {background:#fff!important;color:var(--sg-text)!important}
html:root body.light-theme .protected-grading .saved-grade-sheet :is(th,td,.sg-name button) {color:var(--sg-text)!important}
html:root body.light-theme .protected-grading .saved-grade-sheet thead th {background:var(--sg-head)!important}
html:root body.light-theme .saved-grade-sheet :is(.sg-region-labels span,.sg-record-count,.sg-pass-unknown) {color:#68418b!important}
html:root body.light-theme .saved-grade-sheet .sg-region-labels {background:var(--sg-head)!important}
html:root body.light-theme .protected-grading .saved-grade-sheet .sg-total {color:#59317e!important}
html:root body.light-theme .protected-grading .saved-grade-sheet .sg-total.sg-held {color:#785000!important}
html:root body.light-theme .saved-grade-sheet :is(.sg-missing,.sg-failing) {color:#a51e38!important}
html:root body.light-theme .saved-grade-sheet td:has(.sg-missing),html:root body.light-theme .saved-grade-sheet td:has(.sg-failing) {background:#fff0f2!important}
html:root body.light-theme .saved-grade-sheet .sg-selected>:is(td,th) {background:#e9dff6!important}
html:root body.light-theme .saved-grade-sheet .sg-selected>.sg-total {background:#ddcef1!important}
html:root body.light-theme .saved-grade-sheet .sg-region-labels span {color:#59317e!important}
html:root body.light-theme :is(div,span,strong,b,p,small,td,th)[style*="color: rgb(237, 228, 251)"] {color:#594374!important}
html:root body.light-theme :is(div,span,strong,b,p,small,td,th)[style*="color: rgb(230, 126, 34)"] {color:#87500d!important}
html:root body.light-theme :is(div,span,strong,b,p,small,td,th)[style*="color: rgb(52, 152, 219)"] {color:#245f8b!important}
html:root body.light-theme :is(div,span,strong,b,p,small,td,th)[style*="color: rgb(39, 174, 96)"] {color:#176b48!important}
html:root body.light-theme :is(div,span,strong,b,p,small,td,th)[style*="color: rgb(149, 165, 166)"] {color:#57616a!important}
html:root body.light-theme :is(div,span,strong,b,p,small,td,th)[style*="color: rgb(155, 89, 182)"] {color:#74418b!important}
html:root body:not(.light-theme) :is(div,span,strong,b,p,small,td,th)[style*="color: rgb(155, 89, 182)"] {color:#c296e2!important}
html:root body:not(.light-theme) :is(div,span,strong,b,p,small,td,th)[style*="color: rgb(231, 76, 60)"] {color:#ff9690!important}
html:root body .sap-bar i b {background:var(--sap-panel,#1b1f27);color:var(--sap-text,#efedf8)!important;border-radius:3px;padding:1px 3px}
html:root body.light-theme .sap-bar i b {background:#fff;color:#302539!important}
}

@media screen {
html:root body.light-theme :is(div,span,strong,b,p,small,td,th)[style*="color: rgb(232, 168, 56)"],html:root body.light-theme :is(div,span,strong,b,p,small,td,th)[style*="color: rgb(240, 173, 78)"]{color:#80500b!important}
html:root body.light-theme :is(div,span,strong,b,p,small,td,th)[style*="color: rgb(220, 53, 69)"]{color:#a62539!important}
html:root body.light-theme .ag-combined #enrollment-workspace-panel .er-register button.er-student-trigger {background:#fff!important;background-image:none!important;color:#302539!important}
html:root body.light-theme .er-student-trigger>span,html:root body.light-theme .er-picker-chevron {color:#302539!important}
html:root body.light-theme .er-student-trigger small {color:#5b526b!important}
}

@media screen{html:root body.light-theme .sd-photo label{color:#fff!important}html:root body.light-theme .sm-main [style*="color: rgb(114, 68, 175)"]{color:#624092!important}}
@media screen {
html:root body .sm-side button[aria-label]:has(>span>svg[data-nav-icon]) {padding:8px 20px!important;min-height:56px;gap:12px!important;align-items:center!important}
html:root body .sm-side button[aria-label]>span:has(>svg[data-nav-icon]) {width:32px!important;height:32px!important;flex:0 0 32px!important;display:inline-grid!important;place-items:center!important}
}
@media screen {
/* Legacy inline panels must change surface along with their light-theme text. */
html:root body.light-theme .sm-main :is(div,section,article,aside)[style*="background: rgb(27, 31, 39)"],
html:root body.light-theme .sm-main :is(div,section,article,aside)[style*="background: rgb(36, 42, 52)"] {background-color:#fff!important;color:#272231}
html:root body.light-theme .sm-main :is(div,span,strong,b,p,small)[style*="color: rgb(213, 204, 250)"] {color:#624092!important}
html:root body.light-theme .sm-main :is(div,span,strong,b,p,small)[style*="color: rgb(236, 236, 246)"]:not(button *) {color:#272231!important}
html:root body.light-theme .sm-main span[style*="background: rgb(36, 42, 52)"] {background:#ede8f4!important;color:#59317e!important}
}
@media screen {
html:root body.light-theme .sm-main :is(div,span,strong,b,p,small)[style*="color: rgb(241, 155, 156)"] {color:#a62539!important}
html:root body.light-theme .sm-main :is(div,span,strong,b,p,small)[style*="color: rgb(114, 198, 159)"] {color:#176b48!important}
html:root body.light-theme .sm-main :is(div,span,strong,b,p,small)[style*="color: rgb(178, 164, 241)"]:not(button *) {color:#624092!important}
}
