@font-face{font-family:"Inter";src:url("theme/uploaded-fonts/inter-400.woff2") format("woff2");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"Inter";src:url("theme/uploaded-fonts/inter-500.woff2") format("woff2");font-weight:500;font-style:normal;font-display:swap}
@font-face{font-family:"Inter";src:url("theme/uploaded-fonts/inter-700.woff2") format("woff2");font-weight:700;font-style:normal;font-display:swap}
@font-face{font-family:"Lora";src:url("theme/uploaded-fonts/lora-500.woff2") format("woff2");font-weight:500;font-style:normal;font-display:swap}
@font-face{font-family:"Lora";src:url("theme/uploaded-fonts/lora-600.woff2") format("woff2");font-weight:600;font-style:normal;font-display:swap}
@font-face{font-family:"Lora";src:url("theme/uploaded-fonts/lora-700.woff2") format("woff2");font-weight:700;font-style:normal;font-display:swap}
@font-face{font-family:"Manrope";src:url("theme/uploaded-fonts/manrope-400.woff2") format("woff2");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"Manrope";src:url("theme/uploaded-fonts/manrope-500.woff2") format("woff2");font-weight:500;font-style:normal;font-display:swap}
@font-face{font-family:"Manrope";src:url("theme/uploaded-fonts/manrope-700.woff2") format("woff2");font-weight:700;font-style:normal;font-display:swap}
@font-face{font-family:"Plus Jakarta Sans";src:url("theme/uploaded-fonts/plus-jakarta-sans-500.woff2") format("woff2");font-weight:500;font-style:normal;font-display:swap}
@font-face{font-family:"Plus Jakarta Sans";src:url("theme/uploaded-fonts/plus-jakarta-sans-600.woff2") format("woff2");font-weight:600;font-style:normal;font-display:swap}
@font-face{font-family:"Plus Jakarta Sans";src:url("theme/uploaded-fonts/plus-jakarta-sans-700.woff2") format("woff2");font-weight:700;font-style:normal;font-display:swap}
@font-face{font-family:"Poppins";src:url("theme/uploaded-fonts/poppins-500.woff2") format("woff2");font-weight:500;font-style:normal;font-display:swap}
@font-face{font-family:"Poppins";src:url("theme/uploaded-fonts/poppins-600.woff2") format("woff2");font-weight:600;font-style:normal;font-display:swap}
@font-face{font-family:"Poppins";src:url("theme/uploaded-fonts/poppins-700.woff2") format("woff2");font-weight:700;font-style:normal;font-display:swap}
@font-face{font-family:"Source Sans 3";src:url("theme/uploaded-fonts/source-sans-3-400.woff2") format("woff2");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"Source Sans 3";src:url("theme/uploaded-fonts/source-sans-3-600.woff2") format("woff2");font-weight:600;font-style:normal;font-display:swap}
@font-face{font-family:"Source Sans 3";src:url("theme/uploaded-fonts/source-sans-3-700.woff2") format("woff2");font-weight:700;font-style:normal;font-display:swap}
@font-face{font-family:"Space Grotesk";src:url("theme/uploaded-fonts/space-grotesk-500.woff2") format("woff2");font-weight:500;font-style:normal;font-display:swap}
@font-face{font-family:"Space Grotesk";src:url("theme/uploaded-fonts/space-grotesk-600.woff2") format("woff2");font-weight:600;font-style:normal;font-display:swap}
@font-face{font-family:"Space Grotesk";src:url("theme/uploaded-fonts/space-grotesk-700.woff2") format("woff2");font-weight:700;font-style:normal;font-display:swap}

/*
 * Live CSS overrides for legacy (non-MFE) LMS pages -- read fresh off disk
 * on every request by legacy_theme_map.py and served at
 * GET /ui_configuration/legacy-theme.css, injected into every LMS/CMS page
 * by middleware.LegacyThemeInjectionMiddleware. Write plain CSS here, no
 * Python needed -- just use one of the placeholders below anywhere a rule
 * should track a live, admin-configured value instead of a fixed one.
 * Everything else you write stays exactly as static CSS.
 *
 * IMPORTANT: this comment block is protected from substitution (only the
 * CSS rules that follow it get live values swapped in), so the placeholder
 * names below are always shown literally, even in the CSS this app
 * actually serves -- don't remove this header when adding new rules;
 * future edits should follow the same convention.
 *
 * Color placeholders (see legacy_theme_map.LEGACY_STYLE_COLOR_PLACEHOLDERS):
 *   #0F8F2F -> Brand Color
 *   #FFFFFF -> Theme White Color
 * Need a rule to track a different live color (e.g. Secondary Color)? Add a
 * new placeholder -> field mapping there; pick an unused, obviously-not-a-
 * real-color hex and use that instead.
 *
 * Font placeholder (see legacy_theme_map.LEGACY_STYLE_FONT_PLACEHOLDER):
 *   'UiConfigurationLiveFont' -> the admin-uploaded custom font
 *   (ColorScheme.font), if one is configured. Write it quoted, with your
 *   own fallback family after it, e.g.:
 *     font-family: 'UiConfigurationLiveFont', sans-serif !important;
 *   If no font is configured, the placeholder name is left as literal text
 *   -- since it's never a real font, the browser just falls through to
 *   your own fallback, same graceful behavior as an unset color
 *   placeholder.
 */
.xmodule_display.xmodule_ProblemBlock div.problem .action .submit-attempt-container .submit, body.indigo-dark-theme .xmodule_display.xmodule_ProblemBlock div.problem .action .submit-attempt-container .submit {
    background: #EB5939 !important;
    border-color: #EB5939 !important;
    color: #FFFFFF !important;
}
.wrap-instructor-info a.instructor-info-action {
    background: #EB5939 !important;
    border-color: #EB5939 !important;
    color: #FFFFFF !important;
}
.wrap-instructor-info a.instructor-info-action:hover,
.wrap-instructor-info a.instructor-info-action:focus {
    color: #FFFFFF !important;
}
.xmodule_display.xmodule_ProblemBlock div.problem .action .problem-action-btn,
.xmodule_display.xmodule_ProblemBlock div.problem button.btn-default,
.xmodule_display.xmodule_ProblemBlock div.problem .action .problem-action-btn:hover, .xmodule_display.xmodule_ProblemBlock div.problem .action .problem-action-btn:focus, .xmodule_display.xmodule_ProblemBlock div.problem .action .problem-action-btn:active{
    color: #EB5939 !important;
}
/* Hint / Save / Show answer / Reset are link buttons as in the Learning MFE. Studio lacks the
   LMS `.btn-link` rule, so they kept the browser's grey button box there. Pixels: Studio's root
   font size is 10px. */
.xmodule_display.xmodule_ProblemBlock div.problem .action .problem-action-btn {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 1px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.48 !important;
    text-decoration: underline !important;
    cursor: pointer;
}
.xmodule_display.xmodule_ProblemBlock div.problem .action .problem-action-btn:hover,
.xmodule_display.xmodule_ProblemBlock div.problem .action .problem-action-btn:focus {
    background: transparent !important;
    text-decoration-thickness: 2px !important;
}

.xmodule_display.xmodule_ProblemBlock div.problem .choicegroup input:focus+label, .xmodule_display.xmodule_ProblemBlock div.problem .choicetextgroup input:focus+label, .xmodule_display.xmodule_ProblemBlock div.problem .choicegroup input:hover+label, .xmodule_display.xmodule_ProblemBlock div.problem .choicetextgroup input:hover+label {
    border: 2px solid #EB5939 !important;
}
/* Not inside the site design system (css/site.css: .s-page, .s-footer, the header) nor the Control
   Hub: there links and link-buttons have their own hover colors from the design tokens. */
a:hover:not(.btn):not(:where(.s-page, .s-footer, header.global-header, .hub) *), a:focus:not(.btn):not(:where(.s-page, .s-footer, header.global-header, .hub) *),
.btn-link, .view-student-notes .note-group .note .wrapper-note-excerpts .note-excerpt-more-link, .view-student-notes .note-group .note .reference .wrapper-reference-content a.reference-meta, .edx-notes-wrapper .annotator-adder button::after, .edx-notes-wrapper .annotator-viewer .annotator-controls .annotator-edit::before, .edx-notes-wrapper .annotator-viewer .annotator-controls .annotator-delete::before, .edx-notes-wrapper .annotator-viewer .annotator-controls .annotator-close::before, .edx-notes-wrapper .annotator-wrapper .annotator-editor.annotator-outer button.annotator-cancel, .view-student-notes .wrapper-tabs .tab-list .tab .tab-label, .view-student-notes .wrapper-tabs .tab-list .tab .action-close {
    color: #EB5939 !important;
}
a:not(.btn):not(:where(.s-page, .s-footer, header.global-header, .hub) *):hover, a:not(.btn):not(:where(.s-page, .s-footer, header.global-header, .hub) *):focus, a:visited:not(.btn):not(:where(.s-page, .s-footer, header.global-header, .hub) *):hover, a:visited:not(.btn):not(:where(.s-page, .s-footer, header.global-header, .hub) *):focus{
    color: #EB5939 !important;
}
.xmodule_display.xmodule_VideoBlock .video .subtitles .subtitles-menu li,
.xmodule_display.xmodule_VideoBlock .video .subtitles a,
.openassessment .submission__answer__file__block a{
    color: #EB5939 !important;
}
.openassessment .openassessment__steps__step.is--in-progress .step__status__value{
    background: #EB5939 !important;
    color: #FFFFFF !important;
}
.openassessment .is--in-progress.openassessment__steps__step {
    border-top-color: #EB5939 !important;
}
.step--response .delete__uploaded__file, .step--response .action--upload, .openassessment .action--submit, .openassessment .step--self-assessment .self-assessment__assessment .action--save, .openassessment .step--peer-assessment .peer-assessment__assessment .action--save, .openassessment .step--response .response__submission__actions .action--save, .openassessment .step--response .response__submission__content .action--save{
    border: 1px solid #EB5939 !important;
    color: #EB5939 !important;
}
.step--response .delete__uploaded__file:hover, .step--response .action--upload:hover, .openassessment .action--submit:hover, .openassessment .step--self-assessment .self-assessment__assessment .action--save:hover, .openassessment .step--peer-assessment .peer-assessment__assessment .action--save:hover, .openassessment .step--response .response__submission__actions .action--save:hover, .openassessment .step--response .response__submission__content .action--save:hover, .step--response .delete__uploaded__file:active, .step--response .action--upload:active, .openassessment .action--submit:active, .openassessment .step--self-assessment .self-assessment__assessment .action--save:active, .openassessment .step--peer-assessment .peer-assessment__assessment .action--save:active, .openassessment .step--response .response__submission__actions .action--save:active, .openassessment .step--response .response__submission__content .action--save:active, .step--response .delete__uploaded__file:focus, .step--response .action--upload:focus, .openassessment .action--submit:focus, .openassessment .step--self-assessment .self-assessment__assessment .action--save:focus, .openassessment .step--peer-assessment .peer-assessment__assessment .action--save:focus, .openassessment .step--response .response__submission__actions .action--save:focus, .openassessment .step--response .response__submission__content .action--save:focus{
    background: #EB5939 !important;
    border-color: #EB5939 !important;
    color: #FFFFFF !important;
}
.openassessment .list--actions .action--submit, .openassessment .openassessment_student_info_form .action--submit-username{
    background: #EB5939 !important;
    border: 1px solid #EB5939 !important;
    color: #FFFFFF !important;
}
.wrapper--openassessment .wrapper--staff-area .wrapper--staff-toolbar .ui-staff__button:hover {
    color: #FFFFFF !important;
    background-color: #EB5939 !important;
}
[class*="view-"] .wrapper .wrapper-xblock .wrapper-xblock .header-actions .actions-list .action-item .action-button {
    color: #EB5939 !important;
}
[class*="view-"] .wrapper .wrapper-xblock .wrapper-xblock .header-actions .actions-list .action-item .action-button:hover,
[class*="view-"] .wrapper .wrapper-xblock .wrapper-xblock .header-actions .actions-list .action-item .action-button:focus {
    background-color: #EB5939 !important;
    color: #FFFFFF !important;
}
.xmodule_display.xmodule_AboutBlock p, .xmodule_display.xmodule_CourseInfoBlock p, .xmodule_display.xmodule_HtmlBlock p, .xmodule_display.xmodule_StaticTabBlock p,
.wrapper--xblock .message .message__content p, .course-wrapper .course-content p, .course-wrapper .courseware-results-wrapper p{
    font-family: 'UiConfigurationLiveFont', sans-serif !important;
}
/* Studio unit page (the component frame of the authoring MFE): the edit pencils take the button's
   color like the actions icon, and the actions menu items use the brand color instead of
   Paragon's navy when pressed. */
.action-edit .edit-button.action-button::before,
.btn-default.action-edit.title-edit-button::before {
    background-color: currentColor !important;
}
[class*="view-"] .wrapper .wrapper-xblock .xblock-header-primary .header-actions .nav-dd .nav-sub .nav-item:active {
    background-color: #EB5939 !important;
}
[class*="view-"] .wrapper .wrapper-xblock .xblock-header-primary .header-actions .nav-dd .nav-sub .nav-item:active a {
    color: #FFFFFF !important;
}
[class*="view-"] .wrapper .wrapper-xblock .xblock-header-primary .header-actions .nav-dd .nav-sub .nav-item a:focus-visible {
    outline: 2px solid #EB5939 !important;
    outline-offset: -2px;
}
/* Studio problem bank (and other components that hold components: library content, split test)
   in the authoring MFE's component frames, plus Studio's settings editor. White like the other
   component cards, one muted text color, brand color for links and buttons (was Studio blue/gray). */
.studio-xblock-wrapper .wrapper-xblock .xblock-message-area {
    background-color: #FFFFFF !important;
}
.studio-xblock-wrapper .xblock-header-secondary {
    background-color: #FFFFFF !important;
    border-top: 1px solid #E9E6E4 !important;
    color: #454545 !important;
}
.studio-xblock-wrapper .xblock-header-secondary .meta-info {
    font-style: normal !important;
    color: #454545 !important;
}
.studio-xblock-wrapper .xblock-header-secondary .action-view .action-button,
.studio-xblock-wrapper .xblock-header-secondary .action-view .action-button:visited {
    color: #EB5939 !important;
    font-weight: 600 !important;
}
.studio-xblock-wrapper .xblock-header-secondary .action-view .action-button:hover,
.studio-xblock-wrapper .xblock-header-secondary .action-view .action-button:focus {
    color: #EB5939 !important;
    text-decoration: underline !important;
}
/* Studio's frame bundle (course-unit-mfe-iframe) gives this "View →" button a blue (and, under
   [class*="view-"], navy) background on hover: a light brand tint instead. */
.studio-xblock-wrapper .xblock-header-secondary .actions-list .action-item .action-button:hover,
.studio-xblock-wrapper .xblock-header-secondary .actions-list .action-item .action-button:focus,
.studio-xblock-wrapper .xblock-header-secondary .actions-list .action-item .action-button:active,
[class*="view-"] .wrapper .wrapper-xblock .xblock-header-secondary .actions-list .action-item .action-button:hover,
[class*="view-"] .wrapper .wrapper-xblock .xblock-header-secondary .actions-list .action-item .action-button:focus,
[class*="view-"] .wrapper .wrapper-xblock .xblock-header-secondary .actions-list .action-item .action-button:active {
    background-color: color-mix(in srgb, #EB5939 10%, transparent) !important;
    background-image: none !important;
    color: #EB5939 !important;
    box-shadow: none !important;
}
.xblock-author_view-itembank > div > p a:not(.btn),
.xblock-author_view-library_content > div > p a:not(.btn) {
    color: #EB5939 !important;
}
/* "Add components" of a problem bank: the MFE's primary button. */
.problem-bank-v2-add-button.btn-primary,
.problem-bank-v2-add-button.btn-primary:not(:disabled):not(.disabled):active {
    background-color: #EB5939 !important;
    border-color: #EB5939 !important;
    color: #FFFFFF !important;
    font-family: inherit !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
    /* Pixels: Studio pages set the root font size to 10px, so rem would shrink the button. */
    padding: 8px 16px !important;
    font-size: 16px !important;
    line-height: 1.5 !important;
    margin-inline-end: 4px;
    box-shadow: none !important;
}
.problem-bank-v2-add-button.btn-primary:hover,
.problem-bank-v2-add-button.btn-primary:focus {
    background-color: color-mix(in srgb, #EB5939 85%, #000) !important;
    border-color: color-mix(in srgb, #EB5939 85%, #000) !important;
    color: #FFFFFF !important;
}
.problem-bank-v2-add-button.btn-primary:focus-visible {
    outline: 2px solid #EB5939 !important;
    outline-offset: 2px;
}
/* Problem bank page: the "Add components" row under the components is a card of its own. */
.studio-xblock-wrapper.level-page .xblock-author_view-itembank > .xblock-header-secondary,
.wrapper-xblock.level-page .xblock-author_view-itembank > .xblock-header-secondary {
    border: 1px solid #E9E6E4 !important;
    border-radius: 6px !important;
    margin-top: 16px;
}
/* Component headers inside a problem bank: the "Edit title" pencil and the linked-library mark
   take the brand color like the actions button. */
[class*="view-"] .wrapper .wrapper-xblock .header-actions .title-edit-button {
    color: #EB5939 !important;
}
[class*="view-"] .wrapper .wrapper-xblock .header-actions .title-edit-button:hover,
[class*="view-"] .wrapper .wrapper-xblock .header-actions .title-edit-button:focus {
    background-color: #EB5939 !important;
    color: #FFFFFF !important;
}
.studio-xblock-wrapper .xblock-display-title .library-info-icon {
    color: #EB5939 !important;
}
/* Studio's settings editor (pencil of a problem bank and other advanced components): Save is the
   primary button, Cancel the outline one, inputs share one weight and the brand focus ring. */
.edit-xblock-modal .modal-actions .action-save,
.modal-window .modal-actions .action-primary {
    background-color: #EB5939 !important;
    border-color: #EB5939 !important;
    color: #FFFFFF !important;
    box-shadow: none !important;
}
.edit-xblock-modal .modal-actions .action-save:hover,
.edit-xblock-modal .modal-actions .action-save:focus,
.modal-window .modal-actions .action-primary:hover,
.modal-window .modal-actions .action-primary:focus {
    background-color: color-mix(in srgb, #EB5939 85%, #000) !important;
    border-color: color-mix(in srgb, #EB5939 85%, #000) !important;
    color: #FFFFFF !important;
}
.edit-xblock-modal .modal-actions .action-cancel {
    border: 1px solid #EB5939 !important;
    border-radius: 6px !important;
    color: #EB5939 !important;
    background-color: transparent !important;
}
.edit-xblock-modal .modal-actions .action-cancel:hover,
.edit-xblock-modal .modal-actions .action-cancel:focus {
    background-color: color-mix(in srgb, #EB5939 10%, transparent) !important;
    color: #EB5939 !important;
}
.edit-xblock-modal .wrapper-comp-settings .setting-input {
    font-weight: 400 !important;
}
.edit-xblock-modal .wrapper-comp-settings .setting-input:focus {
    border-color: #EB5939 !important;
    box-shadow: 0 0 0 2px color-mix(in srgb, #EB5939 25%, transparent) !important;
    outline: none !important;
}
.modal-window .fullscreen-button,
.edit-xblock-modal .wrapper-comp-setting .setting-clear {
    color: #EB5939 !important;
}

/* Buttons of blocks that bring their own look (Staff Graded Assignment's "Upload your assignment"
   label, Word cloud's "Save") match the problem's Submit button: the brand button, in the LMS and in
   Studio (where Submit is a little smaller and rounder). */
.sga-block #sga-content .upload label,
.sga-block #sga-content a.button.finalize-upload,
.word_cloud .input_cloud_section .action button.save {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 10px 20px !important;
    border: 1px solid #EB5939 !important;
    border-radius: 3px !important;
    background: #EB5939 !important;
    box-shadow: none !important;
    color: #FFFFFF !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
    text-shadow: none !important;
    cursor: pointer !important;
}
.sga-block #sga-content .upload label:hover,
.sga-block #sga-content .upload label:focus-within,
.sga-block #sga-content a.button.finalize-upload:hover,
.sga-block #sga-content a.button.finalize-upload:focus,
.word_cloud .input_cloud_section .action button.save:hover,
.word_cloud .input_cloud_section .action button.save:focus {
    background: color-mix(in srgb, #EB5939 85%, #000) !important;
    border-color: color-mix(in srgb, #EB5939 85%, #000) !important;
    color: #FFFFFF !important;
}
.sga-block #sga-content .upload label:focus-within,
.sga-block #sga-content a.button.finalize-upload:focus-visible,
.word_cloud .input_cloud_section .action button.save:focus-visible {
    outline: 2px solid #EB5939;
    outline-offset: 2px;
}
body.view-container .sga-block #sga-content .upload label,
body.view-container .sga-block #sga-content a.button.finalize-upload,
body.view-container .word_cloud .input_cloud_section .action button.save {
    padding: 6.25px 12.5px !important;
    border-radius: 6px !important;
}

/* The "View History" button of a problem's Submission history dialog: the same brand button. */
.history-modal .submit button,
.history-modal .submit input[type="submit"] {
    padding: 10px 20px !important;
    border: 1px solid #EB5939 !important;
    border-radius: 3px !important;
    background: #EB5939 !important;
    box-shadow: none !important;
    color: #FFFFFF !important;
    font-size: 16px !important;
    text-shadow: none !important;
    cursor: pointer;
}
.history-modal .submit button:hover,
.history-modal .submit button:focus {
    background: color-mix(in srgb, #EB5939 85%, #000) !important;
    border-color: color-mix(in srgb, #EB5939 85%, #000) !important;
}

/* ---- Course content in the LMS in dark mode (Learning MFE unit frame, /xblock/…) ----------------
   site.css gives legacy LMS pages dark text colours (html[data-theme="dark"] body:not(.site-page)
   .content-wrapper …, label / strong !important), which also reach the text inside buttons; and
   indigo's _xblock.scss paints the staff buttons a light blue. These selectors outweigh both. */
html[data-theme="dark"] body:not(.site-page) .content-wrapper :is(button, .btn, [class*="btn-"]) :is(span, strong, b, label) {
    color: inherit !important;
}
html[data-theme="dark"] body:not(.site-page) .content-wrapper .sga-block #sga-content :is(.upload label, a.button.finalize-upload) {
    color: #FFFFFF !important;
}
html[data-theme="dark"] body:not(.site-page) .content-wrapper .problem .submission-feedback,
html[data-theme="dark"] body:not(.site-page) .content-wrapper .problem .submission-feedback * {
    color: var(--s-muted, #9AA7BB) !important;
}
body.indigo-dark-theme .wrap-instructor-info a.instructor-info-action {
    background: #EB5939 !important;
    border-color: #EB5939 !important;
    color: #FFFFFF !important;
}
/* Staff Debug and Submission history dialogs (lean modal): a white panel in a grey box. */
body.indigo-dark-theme .modal.staff-modal,
body.indigo-dark-theme .modal.history-modal {
    background: var(--s-card, #172135) !important;
    border: 1px solid var(--s-line, #2B3A55) !important;
}
body.indigo-dark-theme .modal.staff-modal .inner-wrapper,
body.indigo-dark-theme .modal.history-modal .inner-wrapper {
    background: var(--s-card, #172135) !important;
    border-color: var(--s-line, #2B3A55) !important;
    color: var(--s-text, #CBD5E1) !important;
}
body.indigo-dark-theme .modal.staff-modal :is(hr, table, th, td),
body.indigo-dark-theme .modal.history-modal :is(hr, table, th, td) {
    border-color: var(--s-line, #2B3A55) !important;
}

/* ---- Poll and Survey (xblock-poll) ----------------------------------------------------------
   Submit, "Export results to CSV" and "Download CSV" are the brand button with the same states as
   the other block buttons (hover / focus darker, pressed darker still, a focus ring, disabled
   faded); before, one rule painted every state alike and the platform's .btn-brand hover blue
   showed through elsewhere. Result bars, the top answer and the table lines use brand tints over
   the page colour instead of fixed light greys, so they read in light and dark mode. */
html body .poll-block .submit.btn-brand,
html body .export-results-button-wrapper .btn-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px !important;
    border: 1px solid #EB5939 !important;
    border-radius: 3px !important;
    background: #EB5939 !important;
    box-shadow: none !important;
    color: #FFFFFF !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
    text-shadow: none !important;
    opacity: 1;
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease;
}
html body .poll-block .submit.btn-brand:hover:not(:disabled),
html body .poll-block .submit.btn-brand:focus:not(:disabled),
html body .export-results-button-wrapper .btn-brand:hover:not(:disabled),
html body .export-results-button-wrapper .btn-brand:focus:not(:disabled) {
    background: color-mix(in srgb, #EB5939 85%, #000) !important;
    border-color: color-mix(in srgb, #EB5939 85%, #000) !important;
    color: #FFFFFF !important;
}
html body .poll-block .submit.btn-brand:active:not(:disabled),
html body .export-results-button-wrapper .btn-brand:active:not(:disabled) {
    background: color-mix(in srgb, #EB5939 72%, #000) !important;
    border-color: color-mix(in srgb, #EB5939 72%, #000) !important;
}
html body .poll-block .submit.btn-brand:focus-visible,
html body .export-results-button-wrapper .btn-brand:focus-visible {
    outline: 2px solid #EB5939 !important;
    outline-offset: 2px;
}
html body .poll-block .submit.btn-brand:disabled,
html body .export-results-button-wrapper .btn-brand:disabled {
    opacity: .5;
    cursor: not-allowed;
}
html body .export-results-button-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}
html body .export-results-button-wrapper .error-message:not(.poll-hidden) {
    flex-basis: 100%;
    text-align: end;
}
/* "View results" (shown to staff when results are private): a link button. */
html body .poll-block .view-results-button.btn-link {
    padding: 4px 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #EB5939 !important;
    font-size: 1rem !important;
    font-weight: 600;
    text-decoration: underline;
}
html body .poll-block .view-results-button.btn-link:hover,
html body .poll-block .view-results-button.btn-link:focus {
    text-decoration-thickness: 2px;
}
html body .poll-block .view-results-button.btn-link:focus-visible {
    outline: 2px solid #EB5939;
    outline-offset: 2px;
}
html body .poll-block input[type="radio"] {
    accent-color: #EB5939;
}
/* Result bars: a light brand track, the share filled in a stronger tint. */
html body .poll-block .percentage-gauge-container,
html body .poll-block .percentage-gauge-background,
html body .poll-block .poll-image.result-image {
    background-color: color-mix(in srgb, #EB5939 6%, transparent) !important;
    border-radius: 4px;
    overflow: hidden;
}
html body .poll-block .percentage-gauge {
    background-color: color-mix(in srgb, #EB5939 24%, transparent) !important;
}
html body .poll-block .poll-answer-label {
    color: inherit;
}
/* The top answer's share: the brand pulled towards the text colour, readable on both page colours. */
html body .poll-block .poll-top-choice {
    color: color-mix(in srgb, #EB5939 75%, currentColor) !important;
}
/* Survey: the most chosen answer of each question is a brand-tinted cell in the text colour. */
html body .poll-block .survey-table td.survey-choice {
    background-color: transparent !important;
}
html body .poll-block .survey-table td.survey-choice.poll-top-choice {
    background-color: color-mix(in srgb, #EB5939 18%, transparent) !important;
    color: inherit !important;
}
html body .poll-block .survey-table :is(td, th) {
    border-color: color-mix(in srgb, currentColor 22%, transparent) !important;
}
html body .poll-block .poll-footnote,
html body .poll-block .poll-voting-thanks span,
html body .poll-block .survey-table thead :is(td, th) {
    font-size: 1rem !important;
}
html body .poll-block .poll-voting-thanks span {
    background-color: color-mix(in srgb, #EB5939 12%, transparent) !important;
    color: inherit !important;
    border-radius: 4px;
}
html body .poll-block .poll-feedback-container hr {
    border-color: color-mix(in srgb, currentColor 22%, transparent);
}

/* ---- Staff Graded Assignment (edx-sga) -------------------------------------------------------
   The learner's file box and the instructor's Grade Submissions and Enter Grade dialogs. The block
   ships its own dated styles (grey gradients, 11px Verdana, white table cells, `color: black` written
   on the dialogs) that ignore the theme. These follow the site tokens of css/site.css, so light and
   dark both work; the doubled class outweighs the block's styles and site.css's dark text rules. */

/* Learner: the uploaded file and its status. */
html body .sga-block.sga-block #sga-content .sequential-status-message {
    margin: 12px 0 0;
    padding: 16px 18px;
    border: 1px solid var(--s-line, #E3E6EC) !important;
    border-radius: 12px;
    background: var(--s-card, #FFFFFF) !important;
    color: var(--s-text, #374151) !important;
}
html body .sga-block.sga-block #sga-content .sequential-status-message p {
    margin: 0 0 10px;
    color: var(--s-text, #374151) !important;
}
html body .sga-block.sga-block #sga-content .sequential-status-message p:last-child {
    margin-bottom: 0;
}
html body .sga-block.sga-block #sga-content .sequential-status-message b {
    margin-inline-end: 6px;
    color: var(--s-ink, #111827) !important;
}
html body .sga-block.sga-block #sga-content .sequential-status-message a:not(.button) {
    color: #EB5939 !important;
    overflow-wrap: anywhere;
}
html body .sga-block.sga-block #sga-content .error {
    color: var(--s-danger, #C62828) !important;
}

/* Grade Submissions: a centred dialog as tall as its content (leanModal writes left, margin-left,
   top and max-height inline, hence !important). */
html body .sga-block.sga-block .staff-modal.grade-submission {
    left: 50% !important;
    margin-left: 0 !important;
    transform: translateX(-50%);
    top: max(16px, 6vh) !important;
    width: min(1440px, calc(100vw - 32px)) !important;
    height: auto !important;
    max-height: calc(100vh - 2 * max(16px, 6vh)) !important;
    padding: 0 !important;
    border: 1px solid var(--s-line, #E3E6EC) !important;
    border-radius: 14px;
    background: var(--s-card, #FFFFFF) !important;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    overflow: hidden;
}
html body .sga-block.sga-block .staff-modal.grade-submission .inner-wrapper {
    height: auto !important;
    max-height: calc(100vh - 2 * max(16px, 6vh) - 2px);
    overflow: auto !important;
    padding: 24px !important;
    border: 0 !important;
    background: transparent !important;
    color: var(--s-text, #374151) !important;
}
html body .sga-block.sga-block :is(.grade-submission, .grade-modal) .inner-wrapper > br {
    display: none;
}
html body .sga-block.sga-block :is(.grade-submission, .grade-modal) header {
    margin: 0;
    padding: 0;
    border: 0;
}
html body .sga-block.sga-block :is(.grade-submission, .grade-modal) header h2 {
    margin: 0 0 16px;
    padding: 0;
    text-align: start;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--s-ink, #111827) !important;
}
html body .sga-block.sga-block .grade-submission a.btn-download-all {
    display: inline-flex;
    align-items: center;
    float: none;
    margin: 0;
    padding: 8px 16px;
    border: 1px solid #EB5939 !important;
    border-radius: 3px;
    background: transparent !important;
    box-shadow: none !important;
    color: #EB5939 !important;
    font-size: 1rem;
    font-weight: 600;
    text-shadow: none;
}
html body .sga-block.sga-block .grade-submission a.btn-download-all:hover,
html body .sga-block.sga-block .grade-submission a.btn-download-all:focus {
    background: color-mix(in srgb, #EB5939 12%, transparent) !important;
}
html body .sga-block.sga-block .grade-submission .task-message {
    margin: 10px 0 0;
    padding: 0;
    color: var(--s-muted, #6B7280) !important;
    font-family: inherit;
}
html body .sga-block.sga-block .grade-submission .task-message:empty {
    display: none;
}
html body .sga-block.sga-block .grade-submission .task-message .ready-msg {
    color: var(--s-success, #0F8A5F) !important;
}
html body .sga-block.sga-block .grade-submission .task-message .preparing-msg {
    color: var(--s-danger, #C62828) !important;
}
/* The submissions table scrolls sideways in its own box on narrow screens. */
html body .sga-block.sga-block .grade-submission #grade-info {
    margin-top: 16px;
    overflow-x: auto;
    border: 1px solid var(--s-line, #E3E6EC);
    border-radius: 10px;
    color: var(--s-text, #374151) !important;
}
html body .sga-block.sga-block .grade-submission table.gridtable {
    width: 100%;
    min-width: 980px;
    margin: 0;
    border: 0;
    border-collapse: separate;
    border-spacing: 0;
    font-family: inherit;
    font-size: 1rem;
    color: var(--s-text, #374151) !important;
}
html body .sga-block.sga-block .grade-submission table.gridtable th {
    padding: 10px 12px;
    border: 0 !important;
    border-bottom: 1px solid var(--s-line, #E3E6EC) !important;
    background: color-mix(in srgb, var(--s-ink, #111827) 6%, var(--s-card, #FFFFFF)) !important;
    color: var(--s-ink, #111827) !important;
    font-weight: 600;
    text-align: start;
    vertical-align: bottom;
    white-space: nowrap;
}
/* Only the long "Instructor's comments" title wraps, so the table fits without a scroll bar. */
html body .sga-block.sga-block .grade-submission table.gridtable th:nth-child(7) {
    white-space: normal;
}
html body .sga-block.sga-block .grade-submission table.gridtable th.headerSortDown,
html body .sga-block.sga-block .grade-submission table.gridtable th.headerSortUp {
    background: color-mix(in srgb, #EB5939 14%, var(--s-card, #FFFFFF)) !important;
}
html body .sga-block.sga-block .grade-submission table.gridtable td {
    padding: 10px 12px;
    border: 0 !important;
    border-bottom: 1px solid var(--s-line, #E3E6EC) !important;
    background: var(--s-card, #FFFFFF) !important;
    color: var(--s-text, #374151) !important;
    vertical-align: middle;
}
html body .sga-block.sga-block .grade-submission table.gridtable tr:last-child td {
    border-bottom: 0 !important;
}
html body .sga-block.sga-block .grade-submission table.gridtable tr.not-finalized td {
    background: color-mix(in srgb, var(--s-muted, #6B7280) 10%, var(--s-card, #FFFFFF)) !important;
}
html body .sga-block.sga-block .grade-submission table.gridtable td a:not(.button) {
    color: #EB5939 !important;
    overflow-wrap: anywhere;
}
/* Row actions: "Enter grade" (brand) and "Upload annotated file" (outline). */
html body .sga-block.sga-block .grade-submission table.gridtable a.enter-grade-button,
html body .sga-block.sga-block .grade-submission table.gridtable td .upload label {
    display: inline-flex !important;
    align-items: center;
    margin: 0;
    padding: 6px 14px !important;
    border: 1px solid #EB5939 !important;
    border-radius: 3px !important;
    box-shadow: none !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    text-shadow: none !important;
    white-space: nowrap;
    cursor: pointer;
}
html body .sga-block.sga-block .grade-submission table.gridtable a.enter-grade-button {
    background: #EB5939 !important;
    color: #FFFFFF !important;
}
html body .sga-block.sga-block .grade-submission table.gridtable td .upload {
    height: auto;
    margin: 0;
}
html body .sga-block.sga-block .grade-submission table.gridtable td .upload label {
    background: transparent !important;
    color: #EB5939 !important;
}
html body .sga-block.sga-block .grade-submission table.gridtable a.enter-grade-button:hover,
html body .sga-block.sga-block .grade-submission table.gridtable a.enter-grade-button:focus {
    background: color-mix(in srgb, #EB5939 85%, #000) !important;
}
html body .sga-block.sga-block .grade-submission table.gridtable td .upload label:hover {
    background: color-mix(in srgb, #EB5939 12%, transparent) !important;
}

/* Enter Grade: a centred form dialog. */
html body .sga-block.sga-block .grade-modal {
    left: 50% !important;
    margin-left: 0 !important;
    transform: translateX(-50%);
    top: max(16px, 10vh) !important;
    width: min(560px, calc(100vw - 32px)) !important;
    height: auto !important;
    max-height: calc(100vh - 32px) !important;
    padding: 0 !important;
    border: 1px solid var(--s-line, #E3E6EC) !important;
    border-radius: 14px;
    background: var(--s-card, #FFFFFF) !important;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    overflow: auto;
}
html body .sga-block.sga-block .grade-modal .inner-wrapper {
    height: auto !important;
    padding: 24px !important;
    border: 0 !important;
    background: transparent !important;
    color: var(--s-text, #374151) !important;
}
html body .sga-block.sga-block .grade-modal #enter-grade-form {
    margin: 0;
    padding: 0; /* the LMS gives modal forms 40px side padding */
}
html body .sga-block.sga-block .grade-modal form > div {
    margin: 0 0 16px;
    color: var(--s-text, #374151) !important;
}
html body .sga-block.sga-block .grade-modal #student-name {
    color: var(--s-ink, #111827) !important;
    font-weight: 600;
}
html body .sga-block.sga-block .grade-modal #grade-input,
html body .sga-block.sga-block .grade-modal #comment-input {
    display: block;
    box-sizing: border-box;
    width: 100%;
    margin-top: 6px;
    padding: 10px 12px;
    border: 1px solid var(--s-line, #D1D5DB) !important;
    border-radius: 8px;
    background: var(--s-surface, #FFFFFF) !important;
    box-shadow: none;
    color: var(--s-ink, #111827) !important;
    font: inherit;
    font-size: 1rem;
}
html body .sga-block.sga-block .grade-modal #grade-input {
    max-width: 200px;
}
html body .sga-block.sga-block .grade-modal #grade-input:focus,
html body .sga-block.sga-block .grade-modal #comment-input:focus {
    border-color: #EB5939 !important;
    outline: 2px solid color-mix(in srgb, #EB5939 30%, transparent);
    outline-offset: 1px;
}
html body .sga-block.sga-block .grade-modal .error {
    display: block;
    margin-top: 6px;
    color: var(--s-danger, #C62828) !important;
}
/* The button row (found by its content: browser extensions add elements after it). */
html body .sga-block.sga-block .grade-modal form > div:has(> button) {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 20px 0 0;
}
html body .sga-block.sga-block .grade-modal form button {
    margin: 0;
    padding: 9px 18px;
    border: 1px solid #EB5939;
    border-radius: 3px;
    background: transparent;
    background-image: none;
    box-shadow: none;
    color: #EB5939;
    font: inherit;
    font-size: 1rem;
    font-weight: 600;
    text-shadow: none;
    cursor: pointer;
}
html body .sga-block.sga-block .grade-modal form button[type="submit"] {
    background: #EB5939;
    color: #FFFFFF;
}
html body .sga-block.sga-block .grade-modal form button[type="submit"]:hover,
html body .sga-block.sga-block .grade-modal form button[type="submit"]:focus {
    background: color-mix(in srgb, #EB5939 85%, #000);
}
html body .sga-block.sga-block .grade-modal form button#enter-grade-cancel:hover,
html body .sga-block.sga-block .grade-modal form button#enter-grade-cancel:focus {
    background: color-mix(in srgb, #EB5939 12%, transparent);
}
html body .sga-block.sga-block .grade-modal form button#remove-grade {
    margin-inline-start: auto;
    border-color: var(--s-danger, #C62828);
    color: var(--s-danger, #C62828);
}
html body .sga-block.sga-block .grade-modal form button#remove-grade:hover,
html body .sga-block.sga-block .grade-modal form button#remove-grade:focus {
    background: color-mix(in srgb, var(--s-danger, #C62828) 12%, transparent);
}
/* Dark mode: the danger red of light pages is too dark on the dark panel. */
html[data-theme="dark"] body .sga-block.sga-block .grade-modal form button#remove-grade {
    border-color: #F87171;
    color: #F87171;
}
/* Phones: the dialogs use the width of the screen. */
@media (max-width: 640px) {
    html body .sga-block.sga-block :is(.staff-modal.grade-submission, .grade-modal) {
        width: calc(100vw - 16px) !important;
    }
    html body .sga-block.sga-block :is(.staff-modal.grade-submission, .grade-modal) .inner-wrapper {
        padding: 16px !important;
    }
    html body .sga-block.sga-block .grade-modal form button#remove-grade {
        margin-inline-start: 0;
    }
}

/* ---- Studio unit page in dark mode -------------------------------------------------------------
   The component previews are a Studio page in a frame of the authoring MFE (container_embed). Studio
   has no dark styles; indigo's dark-theme.js puts body.indigo-dark-theme on it from the cookie the
   MFEs share (selected-paragon-theme-variant) and again when the MFE toggles. The colours are the
   MFE's dark tokens: page #111827, raised #1F2937, border #374151, text #F9FAFB, muted #B7BDC6.
   Course content is shown as learners see it in the LMS dark theme. The MFE frame bundle styles these
   with [class*="view-"] .wrapper .wrapper-xblock.level-element …, hence !important. */
body.indigo-dark-theme.view-container {
    color-scheme: dark;
    background: transparent !important;
    color: #F9FAFB !important;
}
body.indigo-dark-theme.view-container .wrapper-content {
    background: transparent !important;
}
body.indigo-dark-theme.view-container .studio-xblock-wrapper,
body.indigo-dark-theme.view-container .wrapper-xblock {
    background-color: #111827 !important;
    border-color: #374151 !important;
    color: #F9FAFB !important;
}
body.indigo-dark-theme.view-container .wrapper-xblock .xblock-header-primary {
    background-color: #111827 !important;
    border-color: #374151 !important;
    color: #F9FAFB !important;
}
body.indigo-dark-theme.view-container .wrapper-xblock .xblock-header-primary .header-details,
body.indigo-dark-theme.view-container .wrapper-xblock .xblock-header-primary .xblock-display-name {
    color: #F9FAFB !important;
}
body.indigo-dark-theme.view-container .xblock-render {
    background-color: #111827 !important;
    color: #F9FAFB !important;
}
/* Video: the player box and its transcript panel. */
body.indigo-dark-theme.view-container .xmodule_display.xmodule_VideoBlock .video {
    background-color: #1F2937 !important;
    color: #F9FAFB !important;
}
/* Course content: Studio gives text fixed dark greys (rgb(49,49,49) and others). Text an author
   coloured inline keeps its colour, and so does text in a box the author gave a background inline
   (call-outs, table headers: light tints made for light pages); links, buttons, icons and correct /
   incorrect marks keep theirs. */
body.indigo-dark-theme.view-container .xblock-render :is(p, li, dt, dd, b, strong, em, i, u, small, span, label, legend, figcaption, blockquote, caption, td, th, h1, h2, h3, h4, h5, h6, pre, code):not([style*="color"]):not([style*="background"]):not(.fa):not([class*="icon"]):not([class*="status"]):not(:where(a, button, .btn, .status, [class*="icon"], [style*="background"]) *) {
    color: #F9FAFB !important;
}
/* The rule under each component title, and the component's actions menu ("⋮"). */
body.indigo-dark-theme.view-container .xblock-header-primary::before {
    background-color: #374151 !important;
}
body.indigo-dark-theme.view-container .nav-sub {
    background-color: #1F2937 !important;
    border-color: #374151 !important;
}
body.indigo-dark-theme.view-container .nav-sub::before {
    border-bottom-color: #374151 !important;
}
body.indigo-dark-theme.view-container .nav-sub::after {
    border-bottom-color: #1F2937 !important;
}
body.indigo-dark-theme.view-container .nav-sub .nav-item a:hover,
body.indigo-dark-theme.view-container .nav-sub .nav-item button:hover {
    background-color: #374151 !important;
}
/* Problems: muted notes, answer boxes, inputs, links in the content. */
body.indigo-dark-theme.view-container .xblock-render .problem-progress,
body.indigo-dark-theme.view-container .xblock-render .submission-feedback,
body.indigo-dark-theme.view-container .xblock-render .submission-feedback * {
    color: #B7BDC6 !important;
}
body.indigo-dark-theme.view-container .xmodule_display.xmodule_ProblemBlock div.problem .choicegroup label,
body.indigo-dark-theme.view-container .xmodule_display.xmodule_ProblemBlock div.problem .choicetextgroup label,
body.indigo-dark-theme.view-container .xmodule_display.xmodule_ProblemBlock div.problem .response-label {
    background-color: #111827 !important;
    border-color: #4B5563 !important;
}
body.indigo-dark-theme.view-container .xblock-render input[type="text"],
body.indigo-dark-theme.view-container .xblock-render input[type="number"],
body.indigo-dark-theme.view-container .xblock-render input:not([type]),
body.indigo-dark-theme.view-container .xblock-render textarea,
body.indigo-dark-theme.view-container .xblock-render select {
    background: #1F2937 !important; /* Studio paints inputs with a light gradient image */
    border-color: #4B5563 !important;
    color: #F9FAFB !important;
}
body.indigo-dark-theme.view-container .xblock-render a:not(.btn):not([class*="btn-"]):not([style*="color"]) {
    color: #EB5939 !important;
}
/* Formula preview under a numerical / formula answer (MathJax draws in the text colour). */
body.indigo-dark-theme.view-container .xblock-render .MathJax_SVG,
body.indigo-dark-theme.view-container .xblock-render .MathJax_SVG_Display {
    background-color: transparent !important;
    color: #F9FAFB !important;
}
/* Open Response: the steps, the response form and its prompt, the editor tool bar, the buttons. */
body.indigo-dark-theme.view-container .openassessment .openassessment__steps__step,
body.indigo-dark-theme.view-container .openassessment .submission__answer__part__prompt {
    background-color: #111827 !important;
    border-color: #374151 !important;
}
body.indigo-dark-theme.view-container .openassessment .step__rubric,
body.indigo-dark-theme.view-container .openassessment .response__submission,
body.indigo-dark-theme.view-container .openassessment .tox .tox-toolbar-overlord,
body.indigo-dark-theme.view-container .openassessment .tox .tox-toolbar__primary,
body.indigo-dark-theme.view-container .openassessment .tox .tox-editor-header,
body.indigo-dark-theme.view-container .openassessment .tox .tox-statusbar {
    background-color: #1F2937 !important;
    border-color: #374151 !important;
}
body.indigo-dark-theme.view-container .openassessment .tox-tinymce {
    border-color: #374151 !important;
}
body.indigo-dark-theme.view-container .openassessment .tox .tox-tbtn svg {
    fill: #F9FAFB !important;
}
body.indigo-dark-theme.view-container .openassessment button.action:not(.action--submit),
body.indigo-dark-theme.view-container .openassessment .openassessment__steps__step:not(.is--in-progress) .step__status__value {
    background: #1F2937 !important;
    border-color: #4B5563 !important;
}
/* Drag and Drop keeps its light board: authors pick the item colours (often black text on no
   background) against it, so a dark board would hide their items. */
body.indigo-dark-theme.view-container .xblock-render .problem-action-btn.btn-default {
    color: #B7BDC6 !important;
}
/* Library content (problem bank): its secondary header and its validation message. */
body.indigo-dark-theme.view-container .wrapper-xblock .xblock-header-secondary {
    background-color: #111827 !important;
    border-color: #374151 !important;
    color: #F9FAFB !important;
}
body.indigo-dark-theme.view-container .xblock-message.validation {
    background-color: rgba(195, 45, 58, 0.18) !important;
    border-color: #C32D3A !important;
    color: #F9FAFB !important;
}
/* Annotation: the highlighted passage. */
body.indigo-dark-theme.view-container .xblock-render .annotatable-wrapper,
body.indigo-dark-theme.view-container .xblock-render .annotation-body,
body.indigo-dark-theme.view-container .xblock-render .annotation-body .block-highlight {
    color: #F9FAFB !important;
}
/* "Done": the off state of its switch. (The Staff Graded Assignment upload button is a brand button
   in both modes, see the buttons above.) */
body.indigo-dark-theme.view-container .xblock-render .done_unmark {
    background-color: #374151 !important;
}
body.indigo-dark-theme.view-container .openassessment .ui-slidable__control__copy,
body.indigo-dark-theme.view-container .openassessment .ui-slidable {
    color: #EB5939 !important;
}
body.indigo-dark-theme.view-container .openassessment .response__submission__label,
body.indigo-dark-theme.view-container .openassessment .tox .tox-tbtn__select-label {
    color: #F9FAFB !important;
}
body.indigo-dark-theme.view-container .wrapper-xblock .xblock-header-secondary .meta-info {
    color: #B7BDC6 !important;
}
/* A box with an inline background (made for light pages) gets dark text unless the author set one. */
body.indigo-dark-theme.view-container .xblock-render [style*="background"]:not([style*="color:"]):not([style*="color :"]) {
    color: #1F2937 !important;
}
/* Problem bank (itembank): the panel that lists the selected components and the "Press View /
   Press Edit" hints. */
body.indigo-dark-theme.view-container .xblock-message-area {
    background-color: #111827 !important;
    border-color: #374151 !important;
    color: #F9FAFB !important;
}
body.indigo-dark-theme.view-container .xblock-author_view-itembank p:has(> .xblock-view-action-button),
body.indigo-dark-theme.view-container .xblock-author_view-itembank p:has(> .edit-button) {
    color: #B7BDC6 !important;
}

/* ---- Component previews (library side panel, component picker): /xblocks/v2/…/embed/ ---------
   Studio's frame bundle gives the page a 560px minimum width; the side panel is narrower, so the
   preview scrolled sideways and cut the answer choices. These pages alone have the wrapper
   .xblock-iframe-content as a child of <body>. */
html body:has(> .wrapper.xblock-iframe-content) {
    min-width: 0 !important;
    overflow-x: hidden;
}
html body:has(> .wrapper.xblock-iframe-content) .problem :is(label, .choicegroup, fieldset) {
    max-width: 100%;
    box-sizing: border-box;
}

/* ---- Open Response Assessment editor (Studio: unit page → ORA → Edit) ------------------------
   ORA ships its own editor look (grey tab pills, navy Save, teal "Add" buttons, help text in
   #E7E7E7 that cannot be read, 11–12px descriptions, Studio-blue links and native blue checks).
   Here: brand tabs and buttons, readable text of at least 14px, one border colour, brand links,
   checkboxes and radios. #openassessment-editor rules of ORA weigh up to 2 ids + 4 classes, so
   these say !important. */
/* Colours of the editor, its dialog and TinyMCE: light here, dark under body.indigo-dark-theme
   (set by indigo's Studio dark-theme.js from the shared theme cookie). */
#openassessment-editor,
.modal-window.modal-type-openassessment,
.tox {
    --oae-ink: #111827;
    --oae-text: #454545;
    --oae-muted: #707070;
    --oae-line: #E9E6E4;
    --oae-field: #C8C9CB;
    --oae-disabled: #8A8F98;
    --oae-soft: #F2F7F8;
    --oae-surface: #FFFFFF;
    --oae-input: #FFFFFF;
}
body.indigo-dark-theme #openassessment-editor,
body.indigo-dark-theme .modal-window.modal-type-openassessment,
body.indigo-dark-theme .tox {
    --oae-ink: #F9FAFB;
    --oae-text: #D1D5DB;
    --oae-muted: #9CA3AF;
    --oae-line: #313B4A;
    --oae-field: #3B4657;
    --oae-disabled: #6B7280;
    --oae-soft: #1F2937;
    --oae-surface: #111827;
    --oae-input: #1F2937;
}
/* Dark mode: ORA's own greys for text (stated before the editor rules below, which keep their
   brand colours on equal weight). */
body.indigo-dark-theme #openassessment-editor :where(h1, h2, h3, h4, h5, h6, p, li, label, legend, span, div, strong, em, td, th) {
    color: var(--oae-text) !important;
}
body.indigo-dark-theme #openassessment-editor :where(h1, h2, h3, h4, .openassessment_container_header_title, .openassessment_criterion_option_name, .openassessment_assessment_module_settings_editor h2) {
    color: var(--oae-ink) !important;
}
/* Dark mode: every white box of the dialog and the editor */
body.indigo-dark-theme .modal-window.modal-type-openassessment,
body.indigo-dark-theme .modal-type-openassessment .modal-content,
body.indigo-dark-theme .modal-type-openassessment .modal-header,
body.indigo-dark-theme .modal-type-openassessment .modal-actions,
body.indigo-dark-theme #openassessment-editor,
body.indigo-dark-theme #openassessment-editor #openassessment_editor_header,
body.indigo-dark-theme #openassessment-editor .oa_editor_content_wrapper,
body.indigo-dark-theme #openassessment-editor li.field,
body.indigo-dark-theme #openassessment-editor .comp-setting-entry,
body.indigo-dark-theme #openassessment-editor .wrapper-comp-settings,
body.indigo-dark-theme #openassessment-editor .openassessment_criterion,
body.indigo-dark-theme #openassessment-editor .openassessment_criterion_option,
body.indigo-dark-theme #openassessment-editor label,
body.indigo-dark-theme #openassessment-editor .openassessment_date_config_radio_container,
body.indigo-dark-theme #openassessment-editor .openassessment_assessment_module_settings_editor,
body.indigo-dark-theme #openassessment-editor .openassessment_training_example,
body.indigo-dark-theme #openassessment-editor .openassessment_editor_buttons {
    background-color: var(--oae-surface) !important;
    border-color: var(--oae-line) !important;
}
body.indigo-dark-theme .modal-type-openassessment {
    border: 1px solid var(--oae-line) !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .45) !important;
}
body.indigo-dark-theme #openassessment-editor select,
body.indigo-dark-theme #openassessment-editor select option,
body.indigo-dark-theme #openassessment-editor input[type="date"],
body.indigo-dark-theme #openassessment-editor input[type="time"] {
    background: var(--oae-input) !important;
    background-image: none !important;
    color: var(--oae-ink) !important;
    color-scheme: dark;
}
/* ORA's warning notes (light yellow) */
body.indigo-dark-theme #openassessment-editor .setting-help[style],
body.indigo-dark-theme #openassessment-editor p.setting-help.warning,
body.indigo-dark-theme #openassessment-editor .openassessment_notice,
body.indigo-dark-theme #openassessment-editor #openassessment_validation_alert {
    background-color: color-mix(in srgb, #F5A524 14%, var(--oae-surface)) !important;
    color: #FDE7B0 !important;
}
/* TinyMCE: toolbar, frame, menus */
body.indigo-dark-theme .tox.tox-tinymce {
    border-color: var(--oae-line) !important;
}
body.indigo-dark-theme .tox .tox-editor-header,
body.indigo-dark-theme .tox .tox-toolbar-overlord,
body.indigo-dark-theme .tox .tox-toolbar,
body.indigo-dark-theme .tox .tox-toolbar__primary,
body.indigo-dark-theme .tox .tox-toolbar__overflow,
body.indigo-dark-theme .tox .tox-menubar,
body.indigo-dark-theme .tox .tox-statusbar,
body.indigo-dark-theme .tox .tox-edit-area,
body.indigo-dark-theme .tox .tox-edit-area__iframe {
    background: var(--oae-soft) !important;
    border-color: var(--oae-line) !important;
}
body.indigo-dark-theme .tox .tox-tbtn,
body.indigo-dark-theme .tox .tox-tbtn__select-label,
body.indigo-dark-theme .tox .tox-split-button,
body.indigo-dark-theme .tox .tox-statusbar a,
body.indigo-dark-theme .tox .tox-statusbar__path-item {
    color: var(--oae-text) !important;
}
body.indigo-dark-theme .tox .tox-tbtn svg,
body.indigo-dark-theme .tox .tox-split-button svg,
body.indigo-dark-theme .tox .tox-collection__item-icon svg,
body.indigo-dark-theme .tox .tox-collection__item-caret svg {
    fill: var(--oae-text) !important;
}
body.indigo-dark-theme .tox .tox-tbtn:hover,
body.indigo-dark-theme .tox .tox-split-button:hover,
body.indigo-dark-theme .tox .tox-tbtn--enabled,
body.indigo-dark-theme .tox .tox-tbtn--enabled:hover {
    background: color-mix(in srgb, #EB5939 22%, var(--oae-soft)) !important;
}
body.indigo-dark-theme .tox .tox-tbtn--disabled svg,
body.indigo-dark-theme .tox .tox-tbtn--disabled .tox-tbtn__select-label {
    fill: var(--oae-disabled) !important;
    color: var(--oae-disabled) !important;
}
body.indigo-dark-theme .tox .tox-toolbar__group:not(:last-of-type) {
    border-color: var(--oae-line) !important;
}
body.indigo-dark-theme .tox .tox-menu,
body.indigo-dark-theme .tox .tox-collection--list,
body.indigo-dark-theme .tox .tox-swatches-menu {
    background: var(--oae-surface) !important;
    border-color: var(--oae-line) !important;
}
body.indigo-dark-theme .tox .tox-collection__item {
    color: var(--oae-text) !important;
}
body.indigo-dark-theme .tox .tox-collection__item--active {
    background: color-mix(in srgb, #EB5939 22%, var(--oae-surface)) !important;
    color: var(--oae-ink) !important;
}

#openassessment-editor {
    color: var(--oae-text) !important;
}
#openassessment-editor #oa_editor_window_title,
#openassessment-editor .openassessment_editor_title {
    color: var(--oae-ink) !important;
    font-size: 20px !important;
    font-weight: 600 !important;
}
/* Tabs */
#openassessment-editor #openassessment_editor_header .editor_tabs .oa_editor_tab {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    height: auto !important;
    margin: 0 0 0 8px !important;
    padding: 0 !important;
    border: 1px solid #EB5939 !important;
    border-radius: 6px !important;
    background: transparent !important;
}
#openassessment-editor #openassessment_editor_header .editor_tabs .oa_editor_tab a {
    padding: 8px 14px !important;
    color: #EB5939 !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    line-height: 20px !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}
#openassessment-editor #openassessment_editor_header .editor_tabs .oa_editor_tab:hover {
    background: color-mix(in srgb, #EB5939 10%, transparent) !important;
}
#openassessment-editor #openassessment_editor_header .editor_tabs .ui-state-active.oa_editor_tab,
#openassessment-editor #openassessment_editor_header .editor_tabs .ui-state-active.ui-state-default.oa_editor_tab:hover {
    background: #EB5939 !important;
}
#openassessment-editor #openassessment_editor_header .editor_tabs .ui-state-active.oa_editor_tab a,
#openassessment-editor #openassessment_editor_header .editor_tabs .ui-state-active.ui-state-default.oa_editor_tab:hover a {
    color: white !important;
}
#openassessment-editor #openassessment_editor_header .editor_tabs .oa_editor_tab a:focus-visible {
    outline: 2px solid #EB5939 !important;
    outline-offset: 2px;
}
/* ORA's dark strip under the tabs showed at the panel's rounded corners. */
#openassessment-editor .openassessment_editor_content_and_tabs > .covered {
    background: transparent !important;
}
/* Panel, instructions, section headers */
#openassessment-editor .oa_editor_content_wrapper {
    border: 1px solid var(--oae-line) !important;
    border-radius: 8px !important;
}
#openassessment-editor .openassessment_tab_instructions {
    padding: 12px 16px !important;
    border-bottom: 1px solid var(--oae-line) !important;
    background: color-mix(in srgb, #EB5939 6%, var(--oae-surface)) !important;
    color: var(--oae-text) !important;
    font-size: 16px !important;
    line-height: 1.5 !important;
}
#openassessment-editor .openassessment_container_header,
#openassessment-editor .openassessment_training_example_header {
    border-bottom: 1px solid var(--oae-line) !important;
}
#openassessment-editor .openassessment_training_example_header_title {
    color: var(--oae-ink) !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    text-transform: none !important;
}
#openassessment-editor .openassessment_assessment_module_settings_editor .openassessment_view_details a {
    font-size: 14px !important;
}
#openassessment-editor .openassessment_container_header_title,
#openassessment-editor .openassessment_schedule_setting_header,
#openassessment-editor .date_config_radio_header,
#openassessment-editor #oa_rubric_editor_wrapper .openassessment_criterion .openassessment_criterion_feedback_wrapper .openassessment_criterion_feedback_header {
    color: var(--oae-ink) !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}
#openassessment-editor .openassessment_container_guide,
#openassessment-editor .setting-help,
#openassessment-editor .openassessment_description,
#openassessment-editor .openassessment_description_closed,
#openassessment-editor .tip {
    color: var(--oae-muted) !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
}
#openassessment-editor .openassessment_assessment_module_settings_editor .openassessment_description {
    color: var(--oae-text) !important;
    font-size: 15px !important;
}
#openassessment-editor label,
#openassessment-editor .setting-label {
    color: var(--oae-text) !important;
}
#openassessment-editor .wrapper-comp-setting.is--disabled .setting-label,
#openassessment-editor .setting-label:has(+ input:disabled),
#openassessment-editor input:disabled + .setting-label {
    color: var(--oae-disabled) !important;
}
/* Remove (×) links */
#openassessment-editor .openassessment_container_remove_button h2,
#openassessment-editor #oa_rubric_editor_wrapper .openassessment_criterion_option .openassessment_option_header .openassessment_option_header_remove h2,
#openassessment-editor #oa_rubric_editor_wrapper .openassessment_criterion_option .openassessment_criterion_option_remove_button h2 {
    color: var(--oae-muted) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
}
#openassessment-editor .openassessment_container_remove_button:not(.is--disabled):hover h2,
#openassessment-editor #oa_rubric_editor_wrapper .openassessment_criterion_option .openassessment_option_header .openassessment_option_header_remove:not(.is--disabled):hover h2 {
    color: #C62828 !important;
}
#openassessment-editor .is--disabled.openassessment_container_remove_button h2,
#openassessment-editor #oa_rubric_editor_wrapper .openassessment_criterion_option .openassessment_option_header .is--disabled.openassessment_option_header_remove h2 {
    color: var(--oae-disabled) !important;
}
/* "Add prompt / criterion / option": dashed brand buttons */
#openassessment-editor .openassessment_container_add_button,
#openassessment-editor #oa_rubric_editor_wrapper .openassessment_criterion .openassessment_criterion_add_option {
    border: 1px dashed #EB5939 !important;
    border-radius: 6px !important;
    background: transparent !important;
    color: #EB5939 !important;
}
#openassessment-editor .openassessment_container_add_button h6,
#openassessment-editor #oa_rubric_editor_wrapper .openassessment_criterion .openassessment_criterion_add_option h2 {
    color: #EB5939 !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    text-transform: none !important;
}
#openassessment-editor .openassessment_container_add_button:not(.is--disabled):hover,
#openassessment-editor #oa_rubric_editor_wrapper .openassessment_criterion .openassessment_criterion_add_option:hover {
    background: color-mix(in srgb, #EB5939 8%, transparent) !important;
}
#openassessment-editor .openassessment_container_add_button.is--disabled,
#openassessment-editor .openassessment_container_add_button.is--disabled:hover {
    border-color: var(--oae-field) !important;
    background: transparent !important;
    cursor: not-allowed;
}
#openassessment-editor .openassessment_container_add_button.is--disabled h6 {
    color: var(--oae-disabled) !important;
}
/* Rubric option header bar, "Feedback for this response" bar */
#openassessment-editor #openassessment_rubric_feedback_header,
#openassessment-editor #oa_rubric_editor_wrapper .openassessment_criterion_option .openassessment_option_header {
    border-radius: 6px !important;
    background: color-mix(in srgb, #EB5939 6%, var(--oae-surface)) !important;
}
#openassessment-editor #openassessment_rubric_feedback_header,
#openassessment-editor #oa_rubric_editor_wrapper .openassessment_criterion_option .openassessment_option_header .openassessment_option_header_title {
    color: var(--oae-ink) !important;
    font-size: 16px !important;
    font-weight: 600 !important;
}
/* Fields */
#openassessment-editor input[type="text"],
#openassessment-editor input[type="number"],
#openassessment-editor input[type="date"],
#openassessment-editor input[type="time"],
#openassessment-editor select,
#openassessment-editor textarea {
    border: 1px solid var(--oae-field) !important;
    border-radius: 6px !important;
    color: var(--oae-ink) !important;
    font-size: 16px !important;
    box-shadow: none !important;
}
/* Studio paints some fields with a grey gradient (Top Responses, option explanations). */
#openassessment-editor input[type="text"],
#openassessment-editor input[type="number"],
#openassessment-editor textarea,
#openassessment-editor #oa_rubric_editor_wrapper .openassessment_criterion_option .openassessment_criterion_option_explanation_wrapper label textarea {
    background: var(--oae-input) !important;
    background-image: none !important;
}
#openassessment-editor input:focus,
#openassessment-editor select:focus,
#openassessment-editor textarea:focus {
    border-color: #EB5939 !important;
    outline: 2px solid color-mix(in srgb, #EB5939 30%, transparent) !important;
    outline-offset: 0;
}
#openassessment-editor input[type="checkbox"],
#openassessment-editor input[type="radio"] {
    accent-color: #EB5939;
}
/* Links */
#openassessment-editor a:not(.button):not(.ui-tabs-anchor),
#openassessment-editor .openassessment_assessment_module_settings_editor .openassessment_view_details a {
    color: #EB5939 !important;
    text-decoration: underline !important;
    text-underline-offset: 2px;
}
/* Assessment steps: card border and a light drag strip */
#openassessment-editor .openassessment_assessment_module_settings_editor {
    border: 1px solid var(--oae-line) !important;
    border-radius: 8px !important;
    overflow: hidden;
}
#openassessment-editor .openassessment_assessment_module_settings_editor .drag-handle {
    background-color: var(--oae-soft) !important;
}
#openassessment-editor .openassessment_assessment_module_settings_editor:hover .drag-handle {
    background-color: color-mix(in srgb, #EB5939 15%, var(--oae-surface)) !important;
}
/* Save / Cancel of the editor */
#openassessment-editor .openassessment_save_button,
#openassessment-editor .openassessment_cancel_button {
    display: inline-flex !important;
    align-items: center;
    min-height: 44px;
    padding: 10px 20px !important;
    border: 1px solid #EB5939 !important;
    border-radius: 6px !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    box-shadow: none !important;
    background-image: none !important;
}
#openassessment-editor .openassessment_save_button {
    background: #EB5939 !important;
    color: white !important;
}
#openassessment-editor .openassessment_save_button:hover,
#openassessment-editor .openassessment_save_button:focus-visible {
    background: color-mix(in srgb, #EB5939 82%, black) !important;
    border-color: color-mix(in srgb, #EB5939 82%, black) !important;
}
#openassessment-editor .openassessment_cancel_button {
    background: transparent !important;
    color: #EB5939 !important;
}
#openassessment-editor .openassessment_cancel_button:hover,
#openassessment-editor .openassessment_cancel_button:focus-visible {
    background: color-mix(in srgb, #EB5939 10%, transparent) !important;
}

/* ORA editor, second pass. Remove (×): ORA paints a dark grey box on hover, also when the
   button is disabled (released assignment), which hid the text. */
#openassessment-editor .openassessment_container_remove_button,
#openassessment-editor .openassessment_container_remove_button:hover,
#openassessment-editor #oa_rubric_editor_wrapper .openassessment_criterion_option .openassessment_option_header .openassessment_option_header_remove,
#openassessment-editor #oa_rubric_editor_wrapper .openassessment_criterion_option .openassessment_option_header .openassessment_option_header_remove:hover,
#openassessment-editor #oa_rubric_editor_wrapper .openassessment_criterion_option .openassessment_criterion_option_remove_button,
#openassessment-editor #oa_rubric_editor_wrapper .openassessment_criterion_option .openassessment_criterion_option_remove_button:hover {
    padding: 4px 8px !important;
    border-radius: 6px !important;
    background: transparent !important;
}
#openassessment-editor .openassessment_container_remove_button:not(.is--disabled):hover,
#openassessment-editor #oa_rubric_editor_wrapper .openassessment_criterion_option .openassessment_option_header .openassessment_option_header_remove:not(.is--disabled):hover,
#openassessment-editor #oa_rubric_editor_wrapper .openassessment_criterion_option .openassessment_criterion_option_remove_button:not(.is--disabled):hover {
    background: color-mix(in srgb, #C62828 10%, transparent) !important;
}
#openassessment-editor .is--disabled.openassessment_container_remove_button,
#openassessment-editor #oa_rubric_editor_wrapper .openassessment_criterion_option .is--disabled.openassessment_option_header_remove,
#openassessment-editor #oa_rubric_editor_wrapper .openassessment_criterion_option .is--disabled.openassessment_criterion_option_remove_button {
    cursor: not-allowed !important;
}
#openassessment-editor .openassessment_criterion_option_remove_button:not(.is--disabled):hover h2,
#openassessment-editor .openassessment_criterion_option_remove_button:not(.is--disabled):hover h2::after,
#openassessment-editor .openassessment_option_header_remove:not(.is--disabled):hover h2::after,
#openassessment-editor .openassessment_container_remove_button:not(.is--disabled):hover h2::after {
    color: #C62828 !important;
}
/* Editor panels never need to scroll sideways; a browser extension (Grammarly) adds an element
   into them while typing that made a horizontal scroll bar. */
#openassessment-editor .oa_editor_content_wrapper {
    overflow-x: hidden !important;
}
/* Full-screen button of the editor dialog: it sat on top of the last tab. Room for it at the end
   of the tab row, and a brand icon button. */
.modal-type-openassessment #openassessment_editor_header {
    padding-right: 52px !important;
}
.modal-window.modal-type-openassessment .fullscreen-button {
    top: 7px !important;
    right: 7px !important;
    width: 38px !important;
    height: 38px !important;
    padding: 0 !important;
    border: 1px solid #EB5939 !important;
    border-radius: 6px !important;
    background: transparent !important;
    color: #EB5939 !important;
    box-shadow: none !important;
}
.modal-window.modal-type-openassessment .fullscreen-button:hover,
.modal-window.modal-type-openassessment .fullscreen-button:focus-visible {
    background: color-mix(in srgb, #EB5939 10%, transparent) !important;
}
.modal-window.modal-type-openassessment .fullscreen-button .icon {
    color: #EB5939 !important;
}

/* ---- TinyMCE dialogs in Studio and the LMS (Insert link / image / media, …) --------------------
   TinyMCE's "oxide" skin: blue Save, grey Cancel, blue tabs and focus, 12-14px labels. */
.tox .tox-dialog,
.tox .tox-dialog__header,
.tox .tox-dialog__body,
.tox .tox-dialog__footer {
    background: var(--oae-surface) !important;
}
.tox .tox-textfield,
.tox .tox-textarea,
.tox .tox-listboxfield .tox-listbox--select,
.tox .tox-selectfield select {
    background: var(--oae-input) !important;
}
body.indigo-dark-theme .tox .tox-dialog-wrap__backdrop {
    background: rgba(0, 0, 0, .55) !important;
}
.tox .tox-dialog {
    border: 1px solid var(--oae-line) !important;
    border-radius: 8px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .18) !important;
}
.tox .tox-dialog__header {
    padding: 16px 20px 8px !important;
}
.tox .tox-dialog__title {
    color: var(--oae-ink) !important;
    font-size: 18px !important;
    font-weight: 600 !important;
}
.tox .tox-dialog__body-content {
    padding: 8px 20px 16px !important;
}
.tox .tox-label,
.tox .tox-dialog__body-content label {
    margin-bottom: 4px !important;
    color: var(--oae-text) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
}
.tox .tox-textfield,
.tox .tox-textarea,
.tox .tox-listboxfield .tox-listbox--select,
.tox .tox-selectfield select {
    min-height: 40px;
    border: 1px solid var(--oae-field) !important;
    border-radius: 6px !important;
    color: var(--oae-ink) !important;
    font-size: 15px !important;
}
.tox .tox-textfield:focus,
.tox .tox-textarea:focus,
.tox .tox-listboxfield .tox-listbox--select:focus,
.tox .tox-selectfield select:focus {
    border-color: #EB5939 !important;
    box-shadow: 0 0 0 2px color-mix(in srgb, #EB5939 30%, transparent) !important;
}
.tox .tox-dialog__body-nav-item {
    color: var(--oae-text) !important;
    font-size: 15px !important;
    border-bottom: 2px solid transparent !important;
}
.tox .tox-dialog__body-nav-item--active,
.tox .tox-dialog__body-nav-item:focus {
    color: #EB5939 !important;
    border-bottom-color: #EB5939 !important;
    background: transparent !important;
}
.tox .tox-dialog__footer {
    padding: 12px 20px !important;
    border-top: 1px solid var(--oae-line) !important;
}
.tox .tox-dialog .tox-button:not(.tox-button--icon):not(.tox-button--naked) {
    min-height: 40px;
    padding: 8px 18px !important;
    border: 1px solid #EB5939 !important;
    border-radius: 6px !important;
    background: #EB5939 !important;
    background-image: none !important;
    color: white !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    box-shadow: none !important;
}
.tox .tox-dialog .tox-button:not(.tox-button--icon):not(.tox-button--naked):not(.tox-button--secondary):hover,
.tox .tox-dialog .tox-button:not(.tox-button--icon):not(.tox-button--naked):not(.tox-button--secondary):focus {
    border-color: color-mix(in srgb, #EB5939 82%, black) !important;
    background: color-mix(in srgb, #EB5939 82%, black) !important;
}
.tox .tox-dialog .tox-button.tox-button--secondary:not(.tox-button--icon):not(.tox-button--naked) {
    background: transparent !important;
    color: #EB5939 !important;
}
.tox .tox-dialog .tox-button.tox-button--secondary:not(.tox-button--icon):not(.tox-button--naked):hover,
.tox .tox-dialog .tox-button.tox-button--secondary:not(.tox-button--icon):not(.tox-button--naked):focus {
    background: color-mix(in srgb, #EB5939 10%, transparent) !important;
}
.tox .tox-dialog .tox-button--icon,
.tox .tox-dialog .tox-button--naked {
    border-radius: 6px !important;
    color: var(--oae-text) !important;
}
.tox .tox-dialog .tox-button--icon:hover,
.tox .tox-dialog .tox-button--naked:hover {
    background: color-mix(in srgb, #EB5939 10%, transparent) !important;
    color: #EB5939 !important;
}
.tox .tox-dialog .tox-button--icon svg,
.tox .tox-dialog .tox-button--naked svg {
    fill: currentColor !important;
}
.tox .tox-dialog .tox-checkbox__icons .tox-checkbox-icon__checked svg,
.tox .tox-dialog .tox-lock.tox-locked svg {
    fill: #EB5939 !important;
}

/* ---- Open Response Assessment, learner and staff view (LMS unit frame) 
   Colours are variables so that dark mode (body.indigo-dark-theme in the LMS frame) only swaps them. */
.openassessment,
.wrapper--ui-staff,
.wrapper--staff-toolbar {
    --ora-ink: #111827;
    --ora-text: #454545;
    --ora-muted: #707070;
    --ora-line: #E9E6E4;
    --ora-field: #C8C9CB;
    --ora-surface: #FFFFFF;
}
body.indigo-dark-theme .openassessment,
body.indigo-dark-theme .wrapper--ui-staff,
body.indigo-dark-theme .wrapper--staff-toolbar {
    --ora-ink: #F1F5F9;
    --ora-text: #CBD5E1;
    --ora-muted: #9AA7BB;
    --ora-line: #2A3549;
    --ora-field: #3A465C;
    --ora-surface: #172135;
}
/* The submit buttons: brand in both modes (dark mode painted them pale blue). */
.openassessment .list--actions .action--submit:not(:disabled),
.openassessment button.action--submit:not(:disabled) {
    border-color: #EB5939 !important;
    background: #EB5939 !important;
    background-image: none !important;
    color: white !important;
}
.openassessment .list--actions .action--submit:not(:disabled):hover,
.openassessment button.action--submit:not(:disabled):focus-visible {
    background: color-mix(in srgb, #EB5939 82%, black) !important;
}
/*
   ORA sets Open Sans and its own greys, an uppercase grey title, 12px uppercase status lines and
   grey uppercase staff buttons. Here: the theme font, the page's ink, readable sizes, the brand
   colour for the prompt bar, links, focus and the staff tool buttons. */
.openassessment,
.openassessment *:not(.icon):not(.fa):not([class*="fa-"]):not(code):not(pre),
.wrapper--staff-toolbar .ui-staff__button {
    font-family: 'UiConfigurationLiveFont', sans-serif !important;
}
.openassessment .openassessment__title {
    color: var(--ora-ink) !important;
    font-size: 20px !important;
    font-weight: 600 !important;
    letter-spacing: normal !important;
    text-transform: none !important;
}
.openassessment .wrapper-openassessment__message,
.openassessment .step__content,
.openassessment .step__instruction,
.openassessment .step__message {
    color: var(--ora-text) !important;
    font-size: 16px !important;
    line-height: 1.5 !important;
}
.openassessment .step__title,
.openassessment .step__title .wrapper--copy,
.openassessment .step__label {
    color: var(--ora-ink) !important;
}
.openassessment .step__status,
.openassessment .step__status .copy {
    font-size: 13px !important;
    letter-spacing: .02em !important;
}
.openassessment .save__submission__label,
.openassessment .response__submission__label {
    color: var(--ora-muted) !important;
    font-size: 14px !important;
    letter-spacing: normal !important;
    text-transform: none !important;
}
/* The prompt: a light brand panel with a brand bar instead of grey on grey. */
.openassessment .submission__answer__part__prompt,
.openassessment .step__prompt {
    border-left-color: #EB5939 !important;
}
.openassessment .submission__answer__part__prompt__copy {
    color: var(--ora-ink) !important;
    background: var(--ora-surface) !important;
}
/* Response fields */
.openassessment textarea,
.openassessment input[type="text"] {
    border: 1px solid var(--ora-field) !important;
    border-radius: 6px !important;
    color: var(--ora-ink) !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    box-shadow: none !important;
}
.openassessment textarea::placeholder {
    color: var(--ora-muted) !important;
    font-weight: 400 !important;
}
.openassessment textarea:focus,
.openassessment input[type="text"]:focus {
    border-color: #EB5939 !important;
    outline: 2px solid color-mix(in srgb, #EB5939 30%, transparent) !important;
    outline-offset: 0;
}
.openassessment input[type="radio"],
.openassessment input[type="checkbox"] {
    accent-color: #EB5939;
}
.openassessment a:not(.button):not(.action):not(.btn) {
    color: #EB5939 !important;
}
/* Staff tools ("Manage individual learners", "View assignment statistics", "View ORA in Studio") */
.wrapper--staff-toolbar .ui-staff__button {
    margin: 0 0 8px 8px !important;
    padding: 8px 14px !important;
    border: 1px solid #EB5939 !important;
    border-radius: 6px !important;
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    color: #EB5939 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    letter-spacing: normal !important;
    text-transform: none !important;
    text-decoration: none !important;
}
.wrapper--staff-toolbar .ui-staff__button:hover,
.wrapper--staff-toolbar .ui-staff__button:focus-visible {
    background: color-mix(in srgb, #EB5939 10%, transparent) !important;
}
.wrapper--staff-toolbar .ui-staff__button.is--active,
.wrapper--staff-toolbar .ui-staff__button[aria-expanded="true"] {
    background: #EB5939 !important;
    color: white !important;
}
/* Staff panels ("Manage individual learners", "View assignment statistics"): ORA draws them as a
   dark slab with a magenta bar; a white card with the brand bar, the page's text and light tables. */
.openassessment .wrapper--ui-staff,
.wrapper--ui-staff {
    border: 1px solid var(--ora-line) !important;
    border-top: 4px solid #EB5939 !important;
    border-radius: 8px !important;
    background: var(--ora-surface) !important;
    color: var(--ora-text) !important;
}
.wrapper--ui-staff *:not(.button):not(button):not(.icon):not(.fa) {
    color: inherit;
}
.wrapper--ui-staff .ui-staff__title,
.wrapper--ui-staff .staff-info__title__copy,
.wrapper--ui-staff h2,
.wrapper--ui-staff h3,
.wrapper--ui-staff caption {
    color: var(--ora-ink) !important;
}
.wrapper--ui-staff .ui-staff__content,
.wrapper--ui-staff .ui-staff__content__section,
.wrapper--ui-staff label,
.wrapper--ui-staff p,
.wrapper--ui-staff td,
.wrapper--ui-staff span {
    color: var(--ora-text) !important;
}
.wrapper--ui-staff .ui-staff_close_button {
    background: transparent !important;
    color: var(--ora-muted) !important;
    box-shadow: none !important;
}
.wrapper--ui-staff .ui-staff_close_button .icon,
.wrapper--ui-staff .ui-staff_close_button .fa {
    color: var(--ora-muted) !important;
}
.wrapper--ui-staff .ui-staff_close_button:hover .icon,
.wrapper--ui-staff .ui-staff_close_button:focus-visible .icon {
    color: #EB5939 !important;
}
.wrapper--ui-staff table {
    border-collapse: collapse !important;
    margin-bottom: 16px !important;
}
.wrapper--ui-staff caption {
    caption-side: top !important;
    padding: 12px 0 8px !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    text-align: start !important;
}
.wrapper--ui-staff th,
.wrapper--ui-staff td {
    border: 1px solid var(--ora-line) !important;
    padding: 8px 12px !important;
}
.wrapper--ui-staff th {
    background: color-mix(in srgb, #EB5939 6%, var(--ora-surface)) !important;
    color: var(--ora-ink) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    letter-spacing: normal !important;
    text-transform: none !important;
}
.wrapper--ui-staff input[type="text"],
.wrapper--ui-staff input[type="email"],
.wrapper--ui-staff textarea,
.wrapper--ui-staff select {
    border: 1px solid var(--ora-field) !important;
    border-radius: 6px !important;
    background: var(--ora-surface) !important;
    color: var(--ora-ink) !important;
    font-size: 16px !important;
}
.wrapper--ui-staff input:focus,
.wrapper--ui-staff textarea:focus,
.wrapper--ui-staff select:focus {
    border-color: #EB5939 !important;
    outline: 2px solid color-mix(in srgb, #EB5939 30%, transparent) !important;
}
.wrapper--ui-staff :is(button, .button, input[type="submit"]):not(.ui-staff_close_button),
.wrapper--ui-staff :is(button, .button):not(.ui-staff_close_button) * {
    color: white !important;
}
/* Step open/close arrows (Studio showed them in its blue). */
.openassessment .ui-slidable .icon,
.openassessment .ui-slidable__icon,
.openassessment .step__header .icon {
    color: #EB5939 !important;
}

/* ORA confirmation dialog (Submit response, Delete uploaded file, Reset): a jQuery UI dialog that
   came out full width with boxed sections, grey gradient buttons and a striped overlay. A centred
   card: title, message, a footer with Cancel (outline) and Confirm (brand, last = right). */
.ora-confirmation-alert {
    --ora-ink: #111827;
    --ora-text: #454545;
    --ora-line: #E9E6E4;
    --ora-surface: #FFFFFF;
}
body.indigo-dark-theme .ora-confirmation-alert {
    --ora-ink: #F1F5F9;
    --ora-text: #CBD5E1;
    --ora-line: #2A3549;
    --ora-surface: #172135;
}
.ui-dialog.ora-confirmation-alert {
    width: min(520px, calc(100vw - 32px)) !important;
    max-width: calc(100vw - 32px);
    padding: 0 !important;
    border: 1px solid var(--ora-line) !important;
    border-radius: 12px !important;
    background: var(--ora-surface) !important;
    box-shadow: 0 12px 32px rgba(15, 23, 42, .25) !important;
    overflow: hidden;
    font-family: 'UiConfigurationLiveFont', sans-serif !important;
}
.ui-dialog.ora-confirmation-alert .ui-dialog-titlebar {
    padding: 20px 24px 8px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
}
.ui-dialog.ora-confirmation-alert .ui-dialog-title {
    float: none !important;
    width: auto !important;
    margin: 0 !important;
    color: var(--ora-ink) !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    white-space: normal !important;
}
.ui-dialog.ora-confirmation-alert .ui-dialog-content {
    min-height: 0 !important;
    padding: 0 24px 20px !important;
    border: 0 !important;
    background: transparent !important;
}
.ui-dialog.ora-confirmation-alert .ui-dialog-content p,
.ui-dialog.ora-confirmation-alert .dialog-text {
    margin: 0 !important;
    color: var(--ora-text) !important;
    font-size: 16px !important;
    line-height: 1.5 !important;
    white-space: pre-line;
}
.ui-dialog.ora-confirmation-alert .ui-dialog-buttonpane {
    margin: 0 !important;
    padding: 12px 24px !important;
    border: 0 !important;
    border-top: 1px solid var(--ora-line) !important;
    background: transparent !important;
}
.ui-dialog.ora-confirmation-alert .ui-dialog-buttonpane .ui-dialog-buttonset {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-start;
    gap: 12px;
    float: none !important;
}
.ui-dialog.ora-confirmation-alert .ui-dialog-buttonset button {
    min-height: 40px;
    margin: 0 !important;
    padding: 8px 20px !important;
    border: 1px solid #EB5939 !important;
    border-radius: 6px !important;
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    color: #EB5939 !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    text-shadow: none !important;
    text-transform: none !important;
}
.ui-dialog.ora-confirmation-alert .ui-dialog-buttonset button .ui-button-text {
    padding: 0 !important;
    color: inherit !important;
}
.ui-dialog.ora-confirmation-alert .ui-dialog-buttonset button:hover,
.ui-dialog.ora-confirmation-alert .ui-dialog-buttonset button:focus-visible {
    background: color-mix(in srgb, #EB5939 10%, transparent) !important;
}
.ui-dialog.ora-confirmation-alert .ui-dialog-buttonset button:first-child {
    background: #EB5939 !important;
    color: white !important;
}
.ui-dialog.ora-confirmation-alert .ui-dialog-buttonset button:first-child:hover,
.ui-dialog.ora-confirmation-alert .ui-dialog-buttonset button:first-child:focus-visible {
    border-color: color-mix(in srgb, #EB5939 82%, black) !important;
    background: color-mix(in srgb, #EB5939 82%, black) !important;
}
.ui-dialog.ora-confirmation-alert .ui-dialog-buttonset button:focus-visible {
    outline: 2px solid #EB5939 !important;
    outline-offset: 2px;
}
body:has(> .ora-confirmation-alert:not([style*="display: none"])) > .ui-widget-overlay {
    background: rgba(15, 23, 42, .5) !important;
    background-image: none !important;
    opacity: 1 !important;
}
