/* Variables: */
:root {
    /* Base colour variables */
    /* Lightest shade of the original coral (#e16558) with 4.5:1 contrast against white (WCAG AA). */
    --primary-colour: #D93D2D;
    --primary-colour-RGB: 217, 61, 45;
    --on-primary-colour: #fff;
    --on-primary-colour-RGB: 255, 255, 255;

    /* Lightest shade of the original teal (#2ea88c) with 4.5:1 contrast against white (WCAG AA).
       RGB stays the original teal: it only drives tints (table headers, hover washes), so text on them is checked against the tint. */
    --secondary-colour: #25856F;
    --secondary-colour-RGB: 46, 168, 140;
    --on-secondary-colour: #fff;
    --on-secondary-colour-RGB: 255, 255, 255;
    /* The secondary on white, for a brand whose secondary is a light fill with dark text on it: shades that pass, so its
       fills keep their colour. Text needs 4.5:1; borders, outlines and icons (graphics) 3:1. */
    --secondary-text-colour: var(--secondary-colour);
    --secondary-graphic-colour: var(--secondary-colour);

    --surface-colour: #fff;
    --surface-colour-RGB: 255, 255, 255;
    --on-surface-colour: rgba(0, 0, 0, .87);
    --on-surface-colour-RGB: 0, 0, 0;
    --on-surface-mid-colour: rgba(0, 0, 0, .62);

    --container-radius: 6px;
    --container-colour: #f5f7fa;

    --global-menu-colour: #e16558;
    --global-menu-colour-RGB: 225, 101, 88;
    --on-global-menu-colour: rgba(0, 0, 0, .87);
    --on-global-menu-colour-RGB: 0, 0, 0;

    --button-colour: #0958d9;
    --button-colour-RGB: 9, 88, 217;
    --on-button-colour: #fff;
    --on-button-colour-RGB: 255, 255, 255;
    --button-colour-disabled: #959595;
    --on-button-colour-disabled: #888888;
    --button-colour-disabled-light: #ececec;
    --button-colour-hover: var(--secondary-colour);
    --on-button-colour-hover: var(--on-secondary-colour);
    --button-colour-hover-variant: rgba(0, 0, 0, .06);
    --on-button-hover-variant: rgba(255, 255, 255, 0.2);
    --button-radius: 8px;
    --button-font: 14px;
    --button-font-weight: 500;
    --button-padding: 0 8px;
    --button-hover-scale: scale(100%);
    --button-hover-opacity: .15;
    --button-link-hover-opacity: .75;

    --input-colour: #0958d9;
    --input-colour-RGB: 9, 88, 217;
    --on-input-colour: #fff;
    --on-input-colour-RGB: 255, 255, 255;

    --link-colour: #0958d9;
    --hover-link-colour: #0958d9;
    --hover-bg-colour:  rgb(245, 245, 245);

    /* Font variables */
    --main-font-size: 14px;
    --main-font-family: 'Open Sans', sans-serif;

    /* Variables generated off base colours */
    --focus-on-primary: rgba(var(--on-primary-colour-RGB), .40);
    --hover-on-primary: rgba(var(--on-primary-colour-RGB), .06);
    --borderless-hover-on-primary: rgba(var(--on-primary-colour-RGB), .06);

    --focus-on-secondary: rgba(var(--on-secondary-colour-RGB), .40);
    --hover-on-secondary: rgba(var(--on-secondary-colour-RGB), .06);
    --borderless-hover-on-secondary: rgba(var(--on-secondary-colour-RGB), .06);

    --focus-on-surface: rgba(var(--input-colour-RGB), .68);
    --hover-on-surface: rgba(35, 35, 35, .06);
    --borderless-hover-on-surface: rgba(35, 35, 35, .06);

    --focus-on-global-menu: rgba(var(--on-global-menu-colour-RGB), .40);
    --hover-on-global-menu: rgba(var(--on-global-menu-colour-RGB), .06);
    --borderless-hover-global-menu: rgba(var(--on-global-menu-colour-RGB), .06);

    --focus-on-input: rgba(var(--on-input-colour-RGB), .48);
    --input-border-colour: rgba(0,0,0,0.44);
    --input-radius: 4px;
    --input-focus-size: 3px;
    --input-borderless-focus-size: 3px;

    --focus-primary: rgba(var(--primary-colour-RGB), 0.48);

    --dialog-title-bg-colour: var(--secondary-colour);
    --dnd-title-bg-colour: var(--secondary-colour);
    --dialog-title-font-colour: var(--on-secondary-colour);

    /* Other variables */
    --border-colour: rgba(0, 0, 0, .12);
    --box-shadow-colour: rgba(0, 0, 0, .17);
    --table-header-colour: rgba(var(--secondary-colour-RGB), 0.1);
    --table-row-highlight-colour: rgba(var(--secondary-colour-RGB), 0.06);
    --table-border-darkened-colour: rgba(var(--secondary-colour-RGB), 0.4);
    --table-border-colour: rgba(var(--secondary-colour-RGB), 0.25);
    --divider-colour: rgba(0, 0, 0, .12);
    --light-fill: rgba(0, 0, 0, .04);
    --panel-fill: rgba(0, 0, 0, .04);
    --tooltip-background:rgba(0, 0, 0, 0.74);

    --correct-colour: #8BC34A;
    --incorrect-colour: #F44336;
    --marked-colour: lightBlue;
    --unmarked-colour: #E6E6E6;
    --incomplete-colour: rgba(0,0,0,.24);
    --complete-colour: #2196F3;
    --on-complete-colour: #fff;
    --selected-complete-colour: #B0E0E6;
    --success-colour: #52C41A;
    --on-success-colour: #fff;
    --success-bg-colour: #52C41A22;
    --success-colour-RGB: 82, 196, 26;
    --warning-colour: #BA5B03;
    --warning-bg-colour: #FAAD1422;
    --warning-colour-RGB: 186, 91, 3;
    --error-colour: #F44336;
    --error-colour-RGB: 244, 67, 54;
    --error-bg-colour: #F4433622;
    --danger-colour-RGB: var(--error-colour-RGB);
    --danger-colour: var(--error-colour);
    --note-colour: #757575;
    --note-colour-RGB: 117, 117, 117;
    --note-bg-colour: var(--unmarked-colour);
    --disabled-alpha: .38;
    --icon-colour: #0958d9;

    /* Calendar colours */
    --rbc-event-test-colour: #F57C00;
    --rbc-event-pathway-colour: #2196F3;
    --rbc-event-competition-colour: #8BC34A;

    /* Dimensional */
    --small-spacing-unit: 4px;
    --medium-spacing-unit: 6px;
    --spacing-unit: 8px;
    --large-spacing-unit: 16px;
    --extra-large-spacing-unit: 24px;
    --component-radius: 4px;
    --card-outlined-radius: 8px;
    --header-height: 40px;
    --page-header-height: 96px;
    --nav-compressed-width: 12px;
    --nav-ribbon-width: 68px;
    --nav-contextual-width: 256px;
    --nav-page-width: 200px;
    --menuCompressBtnWidth: 56px;
    --menuChevronBtnWidth: 40px;

    /* Animation */
    --easing: cubic-bezier(0.4, 0.0, 0.2, 1);
    --ani-small: 100ms;
    --ani-mid: 250ms;
    --ani-large: 300ms;
}

.ant {
    --ant-color-primary: var(--primary-colour);
    --ant-color-primary-active: var(--primary-colour);
    --ant-color-primary-hover: rgba(var(--primary-colour-RGB), calc(1 - var(--button-hover-opacity)));
    --ant-color-primary-border: var(--focus-on-surface);
}

.ant.ant-input-number-css-var {
    --ant-input-number-hover-border-color: var(--input-colour);
    --ant-input-number-active-border-color: var(--input-colour);
}
.ant.ant-radio-css-var {
    --ant-color-primary-hover: var(--secondary-colour);
}

.ant-radio-group {
    display: flex;
    text-align: center;
}
.ant-radio-group > * {
    flex: 1;
}
.ant-statistic-content-value, .ant-statistic-content-prefix {
    font-size: var(--main-font-size);
    font-family: var(--main-font-family);
    font-weight: 600;
}
.ch-expired .ant-statistic-content-value {
    color: var(--error-colour);
}
.ant-collapse-item-active .ant-collapse-header {
    color: var(--on-secondary-colour) !important;
    background-color:  var(--secondary-colour) !important;
}

.ant-collapse-item-active .ant-collapse-header .ant-typography {
    color: var(--on-secondary-colour) !important;
}

.ant-collapse-item-active .ant-checkbox {
    --ant-color-primary-border: var(--primary-colour);
}

.ant-collapse-item-active:last-of-type .ant-collapse-header {
    border-radius: 0 !important;
}

.ant-collapse-item-active:first-of-type .ant-collapse-header {
    border-radius: var(--ant-border-radius-lg) var(--ant-border-radius-lg) 0 0 !important;
}
.ant-list-item-meta-avatar svg {color:  var(--secondary-graphic-colour) !important;}

.ant-select-item-option.focused {
    outline: 2px solid var(--focus-on-surface);
    outline-offset: -2px;
}

.ant-select-item-option-selected.ant-select-item-option.focused {
    outline: var(--input-focus-size) solid white;
    outline-offset: -5px;
    border-radius: var(--input-radius);
}

.material-icons {
    font-family: 'Material Icons', serif !important;}


/* Margin styles: */
.margin-l--xs, .margin-x--xs, .margin--xs {margin-left: calc(var(--spacing-unit) / 4);}
.margin-l--s, .margin-x--s, .margin--s {margin-left: calc(var(--spacing-unit) / 2);}
.margin-l--m, .margin-x--m, .margin--m {margin-left: var(--spacing-unit);}
.margin-l--l, .margin-x--l, .margin--l {margin-left: calc(var(--spacing-unit) * 2);}
.margin-l--xl, .margin-x--xl, .margin--xl {margin-left: calc(var(--spacing-unit) * 4);}
.margin-l--rm, .margin-x--rm, .margin--rm {margin-left: 0 !important;}
.margin-l--auto { margin-left: auto; }

.margin-t--xs, .margin-y--xs, .margin--xs {margin-top: calc(var(--spacing-unit) / 4);}
.margin-t--s, .margin-y--s, .margin--s {margin-top: calc(var(--spacing-unit) / 2);}
.margin-t--m, .margin-y--m, .margin--m {margin-top: var(--spacing-unit);}
.margin-t--l, .margin-y--l, .margin--l {margin-top: calc(var(--spacing-unit) * 2);}
.margin-t--xl, .margin-y--xl, .margin--xl {margin-top: calc(var(--spacing-unit) * 4);}
.margin-t--rm, .margin-y--rm, .margin--rm {margin-top: 0 !important;}

.margin-r--xs, .margin-x--xs, .margin--xs {margin-right: calc(var(--spacing-unit) / 4);}
.margin-r--s, .margin-x--s, .margin--s {margin-right: calc(var(--spacing-unit) / 2);}
.margin-r--m, .margin-x--m, .margin--m {margin-right: var(--spacing-unit);}
.margin-r--l, .margin-x--l, .margin--l {margin-right: calc(var(--spacing-unit) * 2);}
.margin-r--xl, .margin-x--xl, .margin--xl {margin-right: calc(var(--spacing-unit) * 4);}
.margin-r--rm, .margin-x--rm, .margin--rm {margin-right: 0 !important;}

.margin-b--xs, .margin-y--xs, .margin--xs {margin-bottom: calc(var(--spacing-unit) / 4);}
.margin-b--s, .margin-y--s, .margin--s {margin-bottom: calc(var(--spacing-unit) / 2);}
.margin-b--m, .margin-y--m, .margin--m {margin-bottom: var(--spacing-unit);}
.margin-b--l, .margin-y--l, .margin--l {margin-bottom: calc(var(--spacing-unit) * 2);}
.margin-b--xl, .margin-y--xl, .margin--xl {margin-bottom: calc(var(--spacing-unit) * 4);}
.margin-b--rm, .margin-y--rm, .margin--rm {margin-bottom: 0 !important;}

/* Padding styles: */
.padding-l--xs, .padding-x--xs, .padding--xs {padding-left: calc(var(--spacing-unit) / 4);}
.padding-l--s, .padding-x--s, .padding--s {padding-left: calc(var(--spacing-unit) / 2);}
.padding-l--m, .padding-x--m, .padding--m {padding-left: var(--spacing-unit);}
.padding-l--l, .padding-x--l, .padding--l {padding-left: calc(var(--spacing-unit) * 2);}
.padding-l--xl, .padding-x--xl, .padding--xl {padding-left: calc(var(--spacing-unit) * 4);}
.padding-l--rm, .padding-x--rm, .padding--rm {padding-left: 0 !important;}

.padding-t--xs, .padding-y--xs, .padding--xs {padding-top: calc(var(--spacing-unit) / 4);}
.padding-t--s, .padding-y--s, .padding--s {padding-top: calc(var(--spacing-unit) / 2);}
.padding-t--m, .padding-y--m, .padding--m {padding-top: var(--spacing-unit);}
.padding-t--l, .padding-y--l, .padding--l {padding-top: calc(var(--spacing-unit) * 2);}
.padding-t--xl, .padding-y--xl, .padding--xl {padding-top: calc(var(--spacing-unit) * 4);}
.padding-t--rm, .padding-y--rm, .padding--rm {padding-top: 0 !important;}

.padding-r--xs, .padding-x--xs, .padding--xs {padding-right: calc(var(--spacing-unit) / 4);}
.padding-r--s, .padding-x--s, .padding--s {padding-right: calc(var(--spacing-unit) / 2);}
.padding-r--m, .padding-x--m, .padding--m {padding-right: var(--spacing-unit);}
.padding-r--l, .padding-x--l, .padding--l {padding-right: calc(var(--spacing-unit) * 2);}
.padding-r--xl, .padding-x--xl, .padding--xl {padding-right: calc(var(--spacing-unit) * 4);}
.padding-r--rm, .padding-x--rm, .padding--rm {padding-right: 0 !important;}

.padding-b--xs, .padding-y--xs, .padding--xs {padding-bottom: calc(var(--spacing-unit) / 4);}
.padding-b--s, .padding-y--s, .padding--s {padding-bottom: calc(var(--spacing-unit) / 2);}
.padding-b--m, .padding-y--m, .padding--m {padding-bottom: var(--spacing-unit);}
.padding-b--l, .padding-y--l, .padding--l {padding-bottom: calc(var(--spacing-unit) * 2);}
.padding-b--xl, .padding-y--xl, .padding--xl {padding-bottom: calc(var(--spacing-unit) * 4);}
.padding-b--rm, .padding-y--rm, .padding--rm {padding-bottom: 0 !important;}

/* Border styles */
.border-l--s, .border-x--s, .border--s {border-left: 1px solid var(--border-colour);}
.border-t--s, .border-y--s, .border--s {border-top: 1px solid var(--border-colour);}
.border-r--s, .border-x--s, .border--s {border-right: 1px solid var(--border-colour);}
.border-b--s, .border-y--s, .border--s {border-bottom: 1px solid var(--border-colour);}

.border-radius-component {border-radius: var(--component-radius);}

.noTransition * {
    -webkit-transition: none !important;
    -moz-transition: none !important;
    -o-transition: none !important;
    transition: none !important;
}

@media print {
    body {overflow: visible !important;}
    .ch-base {position: relative !important;}
    #nav, #nav-r, .ch-title {display: none !important;}
}

/* Flex */
.flex {display: flex;}
.flexMax {display: flex; flex: 1;}
.flexColumn {display: flex; flex-direction: column;}
.flexRow {display: flex; flex-direction: row;}
.flexCentre {display: flex; justify-content: center;}
.flexSpaceAround {display: flex; justify-content: space-around;}
.flexSpaceBetween {display: flex; justify-content: space-between;}
.flexJustifyEnd {display: flex; justify-content: flex-end;}
.flexJustifyStart {display: flex; justify-content: flex-start;}
.flexJustifyBetween {display: flex; justify-content: space-between;}
.flexAlignCentre {display: flex; align-items: center;}
.flexAlignCentreChild > *{display: flex; align-items: center;}
.flexInline {display: inline-flex}
.flexAlignBaseline {display: flex; align-items: baseline;}
.flexAlignEnd {display: flex; align-items: flex-end;}
.flexAlignStart {display: flex; align-items: flex-start;}
.flexWrap {display: flex;flex-wrap: wrap}
.flexNoWrap {display: flex;flex-wrap: nowrap}
.flexWrapReverse {display: flex;flex-wrap: wrap-reverse}
.flex1 {flex:1}
.flex2 {flex:2}
.flex3 {flex:3}
.flex4 {flex:4}
.flex5 {flex:5}
.flex6 {flex:6}
.flex7 {flex:7}
.flex8 {flex:8}
.flex9 {flex:9}
.flex10 {flex:10}

.extraSmallGap {gap:2px}
.smallGap {gap: var(--small-spacing-unit)}
.mediumGap {gap: var(--spacing-unit)}
.largeGap {gap: var(--large-spacing-unit)}
.extraLargeGap {gap: var(--extra-large-spacing-unit)}

/* Semantic text colours (shared) */
.ch-text-success {color: var(--success-colour);}
.ch-text-warning {color: var(--warning-colour);}
.ch-text-danger {color: var(--error-colour);}
.ch-text-unanswered {color: var(--note-colour);}

/* Floats */
.float-start { float: left !important; }
.float-end { float: right !important; }
.float-none { float: none !important; }
.clearfix:after {
    display: block;
    clear: both;
    content: "";
}
.ch-align-top {
    vertical-align: top;
}

/* Colours: */
.ch-surface-bg {background: var(--surface-colour) !important;}
.ch-container {padding: var(--large-spacing-unit); background-color: var(--container-colour);border-radius: var(--container-radius)}

/* Current style overrides: */
.reactNav .cont-nav {
    background-color: unset;
}
.reactNav .cont-nav .appBar-btn img {
    filter: invert(100%);
    opacity: .87;
}
.reactNav .cont-nav .appBar-btn img.demos-icon {
    filter: unset;
    opacity: 1;
}
.reactNav .cont-nav .gen-tab {
    color: var(--on-surface-colour);
    padding: 0 calc(var(--spacing-unit) * 2);
}
.reactNav .cont-nav .gen-tab.sel {
    border-color: var(--secondary-text-colour) !important;
    border-width: 2px;
    color: var(--on-surface-colour) !important;
}
.reactNav .cont-nav-blk:after {
    background-color: var(--surface-colour);
    border-bottom: 1px solid var(--border-colour);
    content: '';
    display: block;
    position: absolute;
    height: 56px;
    transform: translate(0, -100%);
    width: 100%;
}
.cont-nav-blk {
    position: sticky;
    top: 0;
}
.page {
    width: auto !important;
}

.page-bg-cover, .cont-head {
    display: none;
}

.reactNav .cont-body {
    background-color: var(--surface-colour);
    color: var(--on-surface-colour);
    flex: 1;
    display: flex;
    flex-direction: column;
    padding-left: 48px;
}

.cont-body .lesson-content {
    padding: 8px 8px 8px 8px;
    min-height: unset;
}

.reactNav .ch-small-screen .cont-body {
    padding-left: 8px;
}

.cont-template-html .reactNav .cont-body .lesson-content {
    padding-left: 0px;
    padding-right: 0px;
}

.ch-dynamic-content {
    height: 100%;
}

.ch-lesson {
    width: 100%;
}

.ch-lesson-content {
    margin-top: var(--spacing-unit);
}

.ch-lesson-content-body {
    width: 100%;
}

.ch-notebook-notes {
    font-weight: bold;
    margin: 0 0 !important;
}

/* An Exercise tab's Answers / Solutions buttons (TutorialActions.js), on the right as exercises.jsp had them */
.ch-tutorial-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: var(--small-spacing-unit);
    margin-block: var(--spacing-unit);
}
/* Room around an exercise's answers and solutions (the dialog content's own padding is only 8px) */
.ch-tutorial-dialog .ch-dialog-content {
    padding: var(--large-spacing-unit) !important;
}
.ch-tutorial-worksheet-solutions {
    list-style: none;
    margin: 0;
    padding: 0;
}
/* Worksheet names as written ("Solutions to 8G-1"), not title-cased by the text button */
.ch-tutorial-worksheet-solutions .ch-btn-text {
    text-transform: none;
}

.ch-textbook-links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--small-spacing-unit) var(--spacing-unit);
    margin-bottom: var(--spacing-unit);
}
.ch-textbook-link {
    display: inline-flex;
    align-items: center;
    gap: var(--small-spacing-unit);
}

/* Buttons Tutorial.js adds to lesson content ("Teacher note", "Video", "Widget"), with their labels kept as written.
   They sit on whatever background the content's box has (yellow, dark blue, ...), where no one colour has enough
   contrast, so they take the box's own text colour, which the content already makes readable on it. Hover underlines.
   Only the icon takes the brand's colour, so the label stays readable on any box.
   They stand in for margin icons, so they're a little larger than the content's text. Legacy <div> placeholders
   turned into these would stretch to the full width (.ch-button is display:flex), and min-height also undoes
   lessonStyles.css's .widget {min-height:100px} on legacy widget links. */
.ch-btn-text.ch-lesson-content-btn {
    color: inherit;
    fill: currentColor;
    text-transform: none;
    width: fit-content;
    font-size: 16px;
    min-height: 32px;
}
.ch-btn-text.ch-lesson-content-btn:hover {
    color: inherit;
    text-decoration: underline;
}
.ch-btn-text.ch-lesson-content-btn svg {
    width: 24px;
    height: 24px;
    color: var(--primary-colour);
}

/* Tutorial.js's iframe for an embedded widget; the size USA's lessonScripts.js gave the same iframe. */
.ch-embedded-widget-frame {
    display: block;
    width: 499px;
    max-width: 100%;
    height: 459px;
    border: 0;
}

/* The widget dialog (MediaPlayerDialog) gives the widget as much of the screen's height as it can: widgets are built
   to a fixed size (many about 900 x 600), so on a laptop screen the usual dialog margin and padding make it scroll. */
.ch-widget-dialog .MuiDialog-paper:not(.MuiDialog-paperFullScreen) {
    margin: 16px;
    max-height: calc(100% - 32px);
}
.ch-widget-dialog .ch-dialog-content:not(.fullscreen),
.ch-widget-dialog .ch-dialog-content:not(.fullscreen) .widget-block .gsc-blk {
    padding-top: 0;
    padding-bottom: 0;
}

/* The button lessonContentScripts.js puts in a collapsible box's heading (IGCSE .box-type-9); the heading keeps its
   brand look. */
.ch-box-toggle {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    text-align: inherit;
    cursor: pointer;
}

.ch-tutorial #tooltip {
    max-width: 500px;
}
.ch-tutorial #tooltip .tooltipMain {
    text-align: left;
}

/* Tutorial.js focuses the tutorial content when it loads (for screen readers); the app's focus ring instead of the
   browser's default black one. */
.ch-tutorial .tutorialContent:focus-visible {
    outline: var(--input-focus-size) solid var(--focus-on-surface);
    outline-offset: 4px;
    border-radius: 8px;
}

.ch-box-toggle:focus-visible,
.ch-accordion-label:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

/* The label lessonContentScripts.js puts before a .js-accordion block; the brand's .accordion rules give it its look. */
button.ch-accordion-label {
    width: 100%;
    border: 0;
    background: none;
    color: inherit;
    font-family: inherit;
    text-align: left;
}

.ch-teacher-note-trigger {
    float: none !important;
    margin: 0 0 var(--spacing-unit) !important;
    width: auto !important;
    clear: none !important;
    display: block !important;
    /* Brand CSS sizes the note to the legacy margin icon and draws that icon as its background (e.g. EMAC's
       ".teacherNotes {background: url(teacherNotes.svg); height: 38px}"), leaving empty space under the shorter
       "Teacher note" button and repeating the icon behind it across the full-width note. */
    height: auto !important;
    background: none !important;
}

/* Specific enough to beat a course's own !important video icon, e.g. essentialContent.css's ".core-10 .video", which
   would otherwise sit behind the button's SVG icon. */
.ch-tutorial .tutorialContent .video.ch-video-link {
    background-image: none !important;
    width: fit-content !important;
    margin: var(--small-spacing-unit) 0;
}

.video.ch-video-link + .box-example {
    margin-top: var(--small-spacing-unit) !important;
}

.ch-dialog-content.fullscreen .ch-desmos {
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 0;
}
.ch-dialog-content.fullscreen .ch-desmos-player-wrapper {
    flex: 1 1 auto;
    min-height: 0;
}
.ch-dialog-content.fullscreen .ch-desmos-player {
    height: auto;
    flex: 1 1 auto;
    min-height: 0;
}


.ch-video-player video {
    height: auto;
    width: 100%;
}

.ch-widget {
    max-width: 700px;
}
.ch-trail-activity-content .ch-widget {
    max-width: unset;
}

.ch-widget-platyer {
    max-width: unset !important;
    width: 100%;
    height: 100%;
}

.ch-widget-content .widget-block {
    max-width: unset !important;
    width: 100%;
    height: 100%;
}
.ch-widget-content .widget.widgetHolder {
    margin: auto;
}

.ch-desmos-player-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}
.ch-desmos-player {
    width: 100%;
    height: min(500px, 60vh);
}
/* Mount target the Desmos library renders into - fills .ch-desmos-player so the calculator keeps
   the same footprint it had when it was mounted directly into that element. */
.ch-desmos-player-mount {
    width: 100%;
    height: 100%;
}
.ch-desmos-player iframe {
    width: 100%;
    height: 100%;
    border: unset;
}

.ch-survey-4f .ch-survey-4f-options {
    --survey-4f-mark1-colour: #f5222d;
    --survey-4f-mark2-colour: #faad14;
    --survey-4f-mark3-colour: #a0d911;
    --survey-4f-mark4-colour: #52c41a;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 16px 0;
}
.ch-survey-4f .ch-survey-4f--mark {
    background-color: transparent;
    border: none;
    border-radius: 50%;
    padding: 0;
    margin: 0;
    width: 48px;
    height: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    outline: none;
}
.ch-survey-4f .ch-survey-4f--mark svg {
    border-radius: 50%;
    display: flex;
    height: 100%;
    width: 100%;
    transition: fill 0.2s ease, background-color 0.2s ease;
}
.ch-survey-4f .ch-survey-4f--mark-btn {
    cursor: pointer;
}
.ch-survey-4f .ch-survey-4f--mark-btn:hover {
    transform: scale(1.2);
}
.ch-survey-4f .ch-survey-4f--mark-btn:focus-visible {
    box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--focus-on-surface, #1890ff);
}
.ch-survey-4f .mark-1 {--current-mark-color: var(--survey-4f-mark1-colour);}
.ch-survey-4f .mark-2 {--current-mark-color: var(--survey-4f-mark2-colour);}
.ch-survey-4f .mark-3 {--current-mark-color: var(--survey-4f-mark3-colour);}
.ch-survey-4f .mark-4 {--current-mark-color: var(--survey-4f-mark4-colour);}
.ch-survey-4f .ch-survey-4f--mark svg {
    color: var(--current-mark-color);
    fill: var(--current-mark-color);
}
.ch-survey-4f .ch-survey-4f--mark-active svg {
    background-color: var(--current-mark-color);
    fill: #fff;
}
.ch-survey-4f div.ch-survey-4f--mark:not(.ch-survey-4f--mark-active) {
    opacity: 0.4;
    filter: grayscale(100%);
}

.ch-scorcher {
    position: relative;
    height: stretch;
    width: stretch;
}
.ch-scorcher-player-wrapper {
    display: flex;
    width: stretch;
    height: stretch;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* The CMS's React Scorcher wizard (cms/scorcher/ScorcherWizardDialog) */
.ch-scorcher-wizard-question .ant-form-item {
    margin-bottom: calc(var(--spacing-unit) / 2);
}
.ch-scorcher-wizard-question-title {
    margin: 0;
    font-size: 1em;
    font-weight: 600;
}
/* Options A to D down the left, E to H down the right, as the player's answer buttons */
.ch-scorcher-wizard-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(4, auto);
    grid-auto-flow: column;
    column-gap: var(--spacing-unit);
}
@media (max-width: 600px) {
    .ch-scorcher-wizard-options {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: none;
        grid-auto-flow: row;
    }
}
.ch-scorcher-wizard-correct {
    max-width: 320px;
}
/* Multiple choice: the correct option's hint and errors, above the options' radios or checkboxes that set it */
.ch-scorcher-wizard-correct-options .ant-form-item-control-input {
    display: none;
}
/* Fill in the blank and complete the word: the sentence (or word) as the student sees it, its text written in place
   around the answer box */
.ch-scorcher-wizard-sentence {
    font-size: 1.15em;
    line-height: 2.2;
}
.ch-scorcher-wizard-inline-text {
    padding: 2px 4px;
    border-bottom: 1px dashed var(--border-colour);
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    white-space: pre-wrap;
    cursor: text;
}
.ch-scorcher-wizard-inline-text:focus {
    outline: var(--input-focus-size, 2px) solid var(--focus-on-surface);
    border-bottom-color: transparent;
}
.ch-scorcher-wizard-inline-text:empty::before {
    content: attr(data-placeholder);
    color: var(--on-surface-mid-colour);
    font-style: italic;
}
.ch-scorcher-wizard-inline-text[aria-disabled=true] {
    color: var(--on-surface-mid-colour);
    cursor: default;
}
/* As wide as its answer, as the player's box is */
.ch-scorcher-wizard-sentence .ch-scorcher-wizard-answer-box {
    display: inline-block;
    width: calc(var(--ch-answer-length, 4) * 1ch + 28px);
    max-width: 100%;
    margin: 0 4px;
    font-size: inherit;
    text-align: center;
    vertical-align: baseline;
}
.ch-scorcher-wizard-answer-line {
    line-height: normal;
}
.ch-scorcher-wizard-answer-line .ch-scorcher-wizard-answer-box {
    margin: 0;
}
/* Multiple choice: each option written in place, across the rest of its row */
.ch-scorcher-wizard-options .ch-scorcher-wizard-inline-text {
    flex: 1;
    min-width: 0;
    line-height: 1.8;
}
/* Every template's question, written in place as the player shows it */
.ch-scorcher-wizard-question-line .ch-scorcher-wizard-inline-text {
    font-size: 1.05em;
    line-height: 1.8;
}
/* Complete the word: its parts joined as one word, as the player joins them */
.ch-scorcher-wizard-word .ch-scorcher-wizard-inline-text {
    padding: 2px 1px;
}
.ch-scorcher-wizard-word .ch-scorcher-wizard-answer-box {
    margin: 0 1px;
}
/* The player's fixed-size canvas, scaled down to fit a narrower dialog */
.ch-scorcher-wizard-canvas {
    display: block;
    max-width: 100%;
    height: auto;
}

.ch-content-blk-border {
    border:1px solid var(--border-colour);
}

.ui-tabs .ui-tabs-nav {
    padding: 0;
}
html .ui-tabs .ui-tabs-nav .ui-tabs-tab{
    margin: 0;
    padding: 0;
}
html .ui-tabs .ui-tabs-nav .ui-tabs-tab,
html .ui-tabs .ui-tabs-nav .ui-tabs-anchor,
.ntf .gen-sub-tab a {
    background: transparent !important;
    background-color: transparent !important;
    border: none;
    color: var(--on-surface-colour) !important;
    font-weight: normal;
}
html .ui-tabs-panel {
    border-top: 1px solid var(--border-colour) !important;
}
.ntf {
    border-bottom: 1px solid var(--border-colour) !important;
}
.gen-sub-tab a {
    background: var(--border-colour);
    color: var(--on-surface-colour);
}
.gen-sub-tab.sel a {
    background: var(--secondary-colour);
    color: var(--on-secondary-colour);
}
.ntf .gen-sub-tab a {
    background: transparent;
    color: var(--on-surface-colour);
}

/* Focus styles for main */
main {
    box-sizing: border-box;
}

/* Style resets: */
button, a {-webkit-tap-highlight-color: transparent;}

/* Core: */
html, body {
    background-color: var(--surface-colour);
    overflow-x: hidden;
    line-height: 1.43;
}
a {color: var(--link-colour); cursor: pointer}
a:not([disabled]):hover {text-decoration: underline;}
.ch-ribbon-header {
    display: none;
    position: relative;
    height: var(--header-height);
    z-index: 4;
}
.ch-base {
    display: grid;
    grid-template-columns: calc(var(--nav-ribbon-width) + var(--nav-page-width)) auto;
    transition: grid-template-columns var(--ani-mid) var(--easing) 0s;
    -webkit-transition: grid-template-columns var(--ani-mid) var(--easing) 0s;
    bottom: 0;
    left: 0;
    position: absolute;
    height: 100%;
    width: 100%;
    padding: 0;
    margin: 0;
    top: 0;
}
.guideMode .ch-base {
    display: block;
}
.ch-expired-user .ch-base {
    grid-template-columns: var(--nav-ribbon-width) auto;
}
/* The development navigation has nothing on the left for an expired user, so no column for it. */
.ch-nav-development.ch-expired-user .ch-base {
    grid-template-columns: auto;
}
.ch-nav-development.ch-expired-user #nav {
    display: none;
}
.ch-base.compressed {
    grid-template-columns: calc(var(--nav-ribbon-width) + var(--nav-ribbon-width)) auto;
}
#nav {
    position: relative;
    z-index: 10;
}
.ch-nav, .ch-content {
    position: relative;
    height: 100vh;
}
.ch-content {
    overflow: hidden;
    min-width: fit-content;
    width: 100%;
    flex-direction: column;
    flex: 1;
}
.ch-title {
    transform: translate(0, -100%);
    margin-bottom: calc(var(--page-header-height) * -1);
    position: absolute;
    width: 100%;
}
.ch-content-body {
    display: grid;
    grid-template-columns: auto calc(var(--nav-page-width));
    transition: grid-template-columns var(--ani-mid) var(--easing) 0s;
    -webkit-transition: grid-template-columns var(--ani-mid) var(--easing) 0s;
    position: relative;
    height: 100%;
    overflow: hidden;
}
.ch-content-body.ch-nav-r-closed {
    grid-template-columns: auto 0;
}
.ch-content-panel {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: auto;
    height: 100%;
    width: 100%;
}
.ch-content-main {
    min-width: fit-content;
    width: 100%;
}
.ch-content-main-center {
    align-items: center;
}
.ch-content-main-center > * {
    width: 800px;
}

.ch-lesson-width:has(.ch-lesson-content-two-panel) {
    width: -webkit-fill-available;
    width: -moz-available;
    width: stretch;
    flex-basis: auto !important;
}


.ch-lesson-content-two-panel {
    position: relative;
    box-sizing: border-box;
    flex: 1 1 calc(50% - var(--spacing-unit, 8px) * 2);
    min-width: 380px;
    margin: 0;
}

.lesson-content {
    gap: 1rem;
}

.content-loader {
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: center;
    height: 100%;
}

.footer {
    border: none;
    position: relative;
    display: flex;
    min-height: 120px;
    z-index: 1;
}
.footer:after {
    background-color: var(--border-colour);
    display: block;
    content: '';
    height: 1px;
    position: absolute;
    top: 0;
    width: 100%;
}
.ch-nav-r {
    z-index: 4;
    transition: width var(--ani-mid) var(--easing) 0s;
    -webkit-transition: width var(--ani-mid) var(--easing) 0s;
    width: calc(var(--nav-page-width) + var(--menuCompressBtnWidth));
    position: relative;
    overflow: hidden;
    left: calc(var(--menuCompressBtnWidth) * -1);
    padding-left: var(--menuCompressBtnWidth);
    pointer-events: none;
}
.ch-nav-r-closed .ch-nav-r {
    width: 0;
}
.ch-nav-right {
    border-left: 1px solid;
    height: 100%;
    position: relative;
    overflow: hidden;
}
.ch-nav-r-inner {
    height: 100%;
    overflow: auto;
    position: relative;
    width: var(--nav-page-width);
    pointer-events: auto;
}
/* Text: */
strong, .ch-text-b, .ch-text-bold {
    font-weight: 600;
}
.ch-text-small {
    font-size: 12px;
}
.ch-text-large {
    font-size: 18px;
}
.ch-text-tiny {
    font-size: 10px;
}
.text-muted {
    color: var(--on-surface-mid-colour);
}
.text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ch-text-note {
    font-style: italic;
}
.align-right {
    display: flex;
    justify-content: right;
}
.MuiPaper-root {
    color: var(--on-surface-colour);
}

/* Header specific classes: */
.ch-header {
    background: var(--global-menu-colour);
    color: var(--on-global-menu-colour);
    fill: var(--on-global-menu-colour);
    position: fixed;
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.ch-header .ch-header-title {
    color: var(--on-global-menu-colour);
    font-weight: 600;
}
.ch-page-header {
    background-color: var(--surface-colour);
    border-bottom: 1px solid var(--border-colour);
    height: var(--page-header-height);
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.ch-page-header > div {
    display: flex;
    /*flex: 1;*/
    flex-direction: column;
    /*align-items: start;*/
    justify-content: center;
    height: 100%;
}
.ch-page-header-title {
    background-color: rgba(255, 255, 255, .92);
    color: rgba(0, 0, 0, .87);
    font-size: 12px;
    display: inline-flex;
    margin-left: calc(var(--spacing-unit) * 2);
    padding: calc(var(--spacing-unit) / 2) var(--spacing-unit);
}
.ch-page-header-title a.disabled {
    opacity: 0.25;
}

.ch-page-header-title a {
    color: inherit !important;
    text-decoration: none;
    user-select: none;
    position: relative;
    width: 40px;
    height: 40px;
    text-align: center;
    font-size: 25px;
    margin: 0 var(--small-spacing-unit);
}
.ch-page-header-title a:not(.disabled) {
    cursor: pointer;
}
.ch-page-header-title a:hover:not(.disabled) {
    background-color: rgba(255, 255, 255, .2);
    border-radius: 50%;
    text-decoration: none;
}
.ch-page-header-title a:focus-visible
{
    box-shadow: 0 0 0 var(--input-borderless-focus-size) rgba(var(--surface-colour-RGB), .80);
}
.ch-page-header-title-main {
    font-size: 16px;
    font-weight: 600;
    text-align: center;
}
.ch-page-header-title-concept {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 16px;
    font-weight: normal;
    margin: 0 0;
}
.ch-concept-info {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
}
.ch-concept-info *:first-child {
    padding-right: 8px;
}
.ch-page-header-brand {
    display: flex;
    align-items: center;
    padding: 0 calc(var(--spacing-unit) * 2);
    margin-right: calc(var(--spacing-unit) * 4);
    flex-direction: column;
    justify-content: center;
}
/* Nav specific classes: */
.ch-nav-menuCompress {
    --menuCompressBtnIconDeg: 0deg;
    position: absolute;
    height: var(--menuCompressBtnWidth);
    width: var(--menuCompressBtnWidth);
    bottom: 0;
    right: 0;
    transform: translate(100%, 0);
    overflow: hidden;
    pointer-events: none;
    display: flex;
    align-items: center;
}
#nav-r .ch-nav-menuCompress {
    --menuCompressBtnIconDeg: 180deg;
    left: var(--menuCompressBtnWidth);
    transform: translate(-100%, 0) rotate(180deg);
}
.ch-nav-menuCompress-btn {
    background: var(--primary-colour);
    fill: var(--on-primary-colour);
    border: none;
    border-radius: 40px;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    cursor: pointer;
    display: flex;
    height: 40px;
    outline: none;
    pointer-events: none;
    position: relative;
    transform: translate(-15px, 0);
    transition: all var(--ani-small) var(--easing);
    width: 40px;
    pointer-events: visible;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 1px 0 rgba(60,64,67,.3), 0 1px 3px 1px rgba(60,64,67,.15);
}
.ch-nav-menuCompress-btn:hover {
    transform: translate(0, 0);
}
.ch-nav-menuCompress-btn:focus-visible {
    box-shadow: 0 0 0 var(--input-borderless-focus-size) var(--focus-on-surface);
}
.ch-nav-menuCompress-btn svg {
    transform: translate(6px, 0) rotate(calc(var(--menuCompressBtnIconDeg) + 0deg));
    transition: transform var(--ani-small) var(--easing);
}
.ch-nav-menuCompress-open .ch-nav-menuCompress-btn svg {
    transform: translate(6px, 0) rotate(calc(var(--menuCompressBtnIconDeg) + 180deg));
}
.ch-nav-menuCompress-btn:hover svg {
    transform: translate(0, 0) rotate(calc(var(--menuCompressBtnIconDeg) + 0deg));
}
.ch-nav-menuCompress-open .ch-nav-menuCompress-btn:hover svg {
    transform: translate(0, 0) rotate(calc(var(--menuCompressBtnIconDeg) + 180deg));
}

.ch-nav-pull-out {
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ch-nav-pull-out-inner {
    background: var(--button-colour);
    fill: var(--on-button-colour);
    border-radius: 50%;
    cursor: pointer;
    border: 1px solid #fff;
    align-items: center;
    justify-content: center;
    display: flex;
    position: absolute;
    height: 24px;
    width: 24px;
}
.ch-nav-pull-out svg {
    padding-left: 1px;
    transition: transform var(--ani-small) var(--easing) 0ms;
    position: absolute;
}
.ch-nav-pull-out-l svg {
    transform: rotate(180deg);
}
.ch-nav a, .ch-nav-r a, .ch-nav a:hover, .ch-nav-r a:hover {
    text-decoration: none;
}
.ch-nav .ch-nav-pull-out {
    transform: translate(-50%, 62%);
    position: relative;
    margin-right: -40px; /* 100% of width */
    z-index: 3;
}
.ch-nav-r .ch-nav-pull-out {
    left: 0;
    transform: translate(-80%, 80%);
}
.ch-nav-r.ch-nav-r-open .ch-nav-pull-out {
    transform: translate(-60%, 80%);
}
.ch-nav-ssm.ch-nav-hide {
    transform: translateX(-101%);
}
.ch-nav-icon-btn {
    position: relative;
}
.ch-nav-columns {
    display: flex;
    height: 100%;
    flex-direction: row;
}
.ch-nav-column {
    display: flex;
    height: inherit;
    flex-direction: column;
}
.ch-nav-rail-column {
    width: var(--nav-ribbon-width);
    align-items: center;
}

.ch-nav-drawer-menu {
    width: var(--menuChevronBtnWidth);
    align-items: center;
}
.ch-nav-global {
    background: var(--global-menu-colour);
    fill: var(--on-global-menu-colour);
    padding-top: var(--spacing-unit);
    z-index: 4;
}
.ch-nav-global-top {align-items: center;}
.ch-nav-global-bottom {align-items: center;margin-bottom: var(--large-spacing-unit);}
.ch-nav-contextual {
    border-right: 1px solid;
    transform: translateX(0);
    z-index: 1;
}
.ch-nav-contextual .ch-button {
    color: var(--on-surface-colour);
    fill: var(--on-surface-colour);
}
.ch-nav-contextual-head {
    border-bottom: 1px solid var(--border-colour);
    display: flex;
    padding: var(--small-spacing-unit) var(--spacing-unit);
    position: relative;
    justify-content: center;
    align-items: center;
}
.ch-nav-contextual-head.ch-hide-border {
    border-bottom: none;
}
.compressed .ch-nav-contextual-head {
    height: 44px;
}
.ch-nav-contextual-body {
    height: 100%;
    flex: 1;
    flex-direction: column;
    overflow: hidden;
    overflow-y: auto;
}
.ch-page-navigation,
.ch-nav-shortcuts {
    height: max-content;
    position: relative;
    display: block;
    padding: var(--small-spacing-unit) !important;
    transition: width var(--ani-mid) var(--easing) 0ms, padding var(--ani-mid) var(--easing) 0ms;
}

.compressed .ch-nav-shortcuts {
    width: var(--nav-ribbon-width);
}
.compressed .ch-nav-shortcuts {
    transform: translateX(calc(var(--spacing-unit) * -0.5));
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.ch-nav-shortcuts-head {
    border-bottom: 1px solid var(--border-colour);
    padding: var(--spacing-unit);
    position: relative;
    display: flex;
    overflow: hidden;
}
.ch-nav-shortcuts-head-user {
    white-space: nowrap;
    overflow: hidden;
    max-width: 130px;
    font-weight: bold;
}
.ch-nav-shortcuts-head .loader {
    position: unset;
    margin: 0 3px;
}

.ch-list-header {font-weight: bold;}
.compressed .ch-nav-shortcuts .ch-list-item {
    width: 44px;
    height: 44px;
}
.ch-activity-navigation .ch-list-item {font-size: 12px;}
.ch-nav-shortcuts .ch-list-item,
.ch-nav-shortcuts .ch-list-item-icon,
.ch-nav-shortcuts .ch-list-item .ch-icon-sm {
    transition: transform var(--ani-mid) var(--easing) 0ms, height var(--ani-mid) var(--easing) 0ms, width var(--ani-mid) var(--easing) 0ms;
}
.compressed .ch-nav-shortcuts .ch-list-item .ch-icon-sm {
    border-radius: 50%;
}

.compressed .ch-nav-shortcuts .ch-list-item.ch-list-item-active {
    background-color: var(--input-colour);
    border-radius: 50%;
}

.compressed .ch-list-item a {
    padding: 0 0 0 2px;
}

.compressed .ch-nav-shortcuts .ch-list-item a:hover {
    background-color: transparent !important;
}
.compressed .ch-nav-shortcuts .ch-list-item a:focus-visible {
    box-shadow: none !important;
}
.compressed .ch-nav-shortcuts a:hover .ch-icon-sm {
    background-color: var(--borderless-hover-on-surface);
}

.compressed .ch-series-select-icon .ch-menu-icon, .compressed .ch-admin-school-icon .ch-menu-icon {
    border-radius: 50%;
    width: 32px;
    height: 32px;
}
.compressed .ch-series-select-icon:hover .ch-menu-icon, .ch-admin-school-icon:hover .ch-menu-icon {
    background-color: var(--borderless-hover-on-surface);
}
.compressed .ch-series-select:hover, .compressed .ch-admin-school:hover {
    background-color: transparent !important;
}
.compressed .ch-nav-shortcuts a:focus-visible .ch-icon-sm {
    outline: var(--input-borderless-focus-size) solid var(--focus-on-surface);
    outline-offset: 4px;
}
.ch-icon-sm, .ch-icon-small  {
    width: 32px;
    height: 32px;
}
.ch-icon-medium {
    width: 48px;
    height: 48px;
}
.ch-icon-large {
    width: 64px;
    height: 64px;
}
.ch-nav-contextual {
    width: var(--nav-page-width);
    transition: width var(--ani-mid) var(--easing) 0ms, padding var(--ani-mid) var(--easing) 0ms;
}
.compressed .ch-nav-contextual {
    width: var(--nav-ribbon-width);
    overflow: hidden;
    padding: 0 !important;
}

.ch-nav-contextual .ch-list-group {
    background-color: rgba(0, 0, 0, 0.04);
    border-radius: var(--component-radius);
}
.ch-nav-contextual .ch-list-group-indicator {
    margin-right: var(--small-spacing-unit);
}
.ch-nav-contextual .ch-sub-list {
    padding: 0 var(--spacing-unit) var(--spacing-unit);
}
.ch-nav-contextual .ch-sub-list .ch-list-item:last-child {
    margin-bottom: 0;
}
.ch-page-navigation .ch-list-group {
    /*width: calc(var(--nav-page-width) - (var(--spacing-unit) * 2));*/
}
.ch-page-navigation .ch-list-group .ch-list-group {
    width: 100%;
}
.ch-page-navigation .ch-list-group .ch-list-group .ch-list-group-head {
    font-weight: 600;
    font-size: 12px;
}

.ch-page-navigation .ch-list-group > button.ch-list-group-head {
    background: transparent;
    border: none;
    margin: 0;
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    text-align: left;
    cursor: pointer;
    display: flex;
    flex-direction: row;
    outline: none;
    padding: 6px var(--small-spacing-unit);
    border-radius: var(--input-radius);
    width: 100%;
    font-weight: bold;
}

.ch-page-navigation .ch-list-group > button.ch-list-group-head:hover:not(:disabled) {
    background-color: var(--borderless-hover-on-surface) !important;
}

.ch-page-navigation .ch-list-group > button.ch-list-group-head:focus-visible {
    outline: var(--input-borderless-focus-size) solid var(--focus-on-surface);
    outline-offset: -2px;
}

.ch-nav-contextual, .ch-nav-right {
    background-color: #f8f8f8;
    color: var(--on-surface-colour);
    fill: var(--on-surface-colour);
    border-color: var(--border-colour);
}
.ch-nav-menu {
    left: 44px;
    top: 0;
    display: none;
    position: absolute;
    min-width: 200px;
}
.ch-nav-menu-inner,
.ch-menuWidget {
    border-radius: var(--component-radius);
    padding: var(--spacing-unit);
    position: relative;
    overflow-y: auto;
    box-shadow: 0 16px 32px 0 rgba(0, 0, 0, .08), 0 4px 16px 0 rgba(0, 0, 0, .24);
    border: 1px solid var(--border-colour);
}
.ch-nav-menu-arrow {
    position: absolute;
    height: 32px;
    width: 9px;
    top: 0;
    left: 1px;
    transform: translate(-100%, 0%);
    overflow: hidden;
}
.ch-nav-arrow-inner {
    width: 14px;
    height: 14px;
    transform: rotate(45deg) translate(-50%, -50%);
    border-radius: 0 0 0 2px;
    margin: 3px 0 0 3px;
    position: relative;
    top: 50%;
    left: 0;
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, .24);
    border: 1px solid var(--border-colour);
}
.ch-nav-menu-inner,
.ch-nav-arrow-inner,
.ch-menuWidget {
    background-color: var(--surface-colour);
    color: var(--on-surface-colour);
    fill: var(--on-surface-colour);
}
.ch-nav-menu-visible {
    display: block;
    z-index: 1;
}
.ch-nav-drawer {
    z-index: 3;
    opacity: 0;
    visibility: hidden;
}
.ch-nav-drawer-visible {
    visibility: visible;
    opacity: 1;
    transition: opacity var(--ani-mid) var(--easing) 0s;
}
.ch-nav-drawer-inner {
    position: absolute;
    left: 68px;
    max-width: 100vw;
}
.ch-series-drawer {
    position: relative;
    visibility: hidden;
    width: 0;
}
.ch-series-drawer-visible {
    visibility: visible;
}
.ch-series-drawer-hidden input,
.ch-series-drawer-hidden .ant-select {
    display: none;
}
.ch-series-drawer-content {
    border-right: 1px solid var(--border-colour);
    display: flex;
    flex-direction: column;
    position: absolute;
    height: 100%;
    width: 800px;
}
.ch-nav-drawer-inner, .ch-series-drawer, .ch-series-drawer-content {
    background: var(--surface-colour);
    display: flex;
    color: var(--on-surface-colour);
    fill: var(--on-surface-colour);
    transform: translateX(-101%);
    transition: transform var(--ani-mid) var(--easing) 0s;
}
.ch-nav-drawer-visible .ch-nav-drawer-inner, .ch-series-drawer-visible .ch-series-drawer-content {
    transform: translateX(0);
    margin-left: 0;
}

.ch-series-drawer-visible .ch-nav-column {
    visibility: visible;
    background-color: var(--surface-colour);
}

.ch-nav-drawer-content {
    flex: 1 1 0;
    max-width: 840px;
    overflow: auto;
}
.ch-nav-drawer-content-large {
    flex: 1 1 0;
    max-width: 720px;
}
.ch-nav-drawer-blk {
    padding: 12px 0;
}
.ch-nav-contextual-head .ch-series-select {
    background-color: transparent;
    color: var(--on-surface-colour);
    fill: var(--on-surface-colour);
    border: none;
    border-radius: var(--input-radius);
    padding: var(--spacing-unit) calc(var(--spacing-unit) + 24px) var(--spacing-unit) var(--spacing-unit);
    position: relative;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5rem;
    display: flex;
    width: 100%;
}
.ch-series-select-title {
    width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0 3px 0 0px;
    /*white-space: nowrap;*/
}
.ch-admin-school {
    background-color: transparent;
    color: var(--on-surface-colour);
    fill: var(--on-surface-colour);
    border: none;
    border-radius: var(--input-radius);
    position: relative;
    font-weight: 600;
    line-height: 1.5rem;
    display: flex;
    width: 100%;
    justify-content: center;
}
.ch-admin-school-title {
    max-width: 154px;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0 18px 0 0;
    white-space: nowrap;
}
.ch-no-school .ch-admin-school-title {
    margin: 0;
}
.ch-series-select-icon, .ch-admin-school-icon {
    display: flex;
    position: absolute;
    top: 50%;
    right: 0;
    transform: translate(0, -50%);
}
.ch-admin-school-icon .ch-menu-icon {
    border-radius: 50%;
    cursor: pointer;
}
.compressed .ch-series-select-icon {
    right: 18px;
}
.compressed .ch-admin-school-icon {
    right: 12px;
}
.ch-series-select-icon.pull-out-l svg {
    transform: rotate(180deg);
}
.ch-series-menu-body {
    flex: 1;
    position: relative;
}
.ch-series-menu-body > div {
    display: flex;
    flex-basis: 1px;
    flex-grow: inherit;
    overflow: hidden;
}
.ch-series-nav-head, .ch-series-menu-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
}

.ch-series-menu-topics-concepts {
    display: flex;
    height: 100%;
    flex-direction: row;
    overflow: hidden;
}

.ch-series-menu-group {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.ch-series-menu-show-all {
    padding: 3px 3px;
    margin: 6px 6px;
    border-bottom: 1px solid var(--border-colour);
}

.ch-series-menu-topics {
    border-right: 1px solid var(--border-colour);
}
.ch-series-menu-topics, .ch-series-menu-concepts {
    height: 100%;
    width: 50%;
    display: flex;
    flex-direction: column;
    overflow: auto;
    padding: 3px var(--spacing-unit);
}
.ch-content-main .ch-series-menu-topics {
    padding: 0 var(--spacing-unit) 0 0;
}
.ch-content-main .ch-series-menu-concepts {
    padding: 0 0 0 var(--spacing-unit);
}
.ch-series-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ch-admin-cms-switch {
    border-bottom: 1px solid var(--border-colour);
}

/* Reusable classes: */
.ch-table-minCell {
    position: relative;
    width: 1px;
}
.ch-table-noWrap {
    white-space: nowrap;
}
.ch-dataTable .ant-table table {
    border: 1px solid var(--border-colour);
    border-radius: var(--component-radius);
    overflow: hidden;
    table-layout: fixed;
    width: 100%;
}
.ch-dataTable-error .ant-table table {
    border-color: var(--error-colour);
}
.ch-dataTable .ant-table td {
    flex: 1;
}
.ch-dataTable .ant-table .ant-table-thead th,
.ch-dataTable .ant-table .ant-table-row td {
    padding: var(--spacing-unit);
}
.ch-dataTable .ant-table-thead th {
    background: rgba(var(--border-colour), .2)
}
.ch-dataTable .ant-table .ant-table-thead > tr > th:not(:last-child):not(.ant-table-selection-column):not(.ant-table-row-expand-icon-cell):not([colspan])::before {
    background-color: var(--border-colour);
}
.ch-dataTable-error .ant-table .ant-table-thead > tr > th:not(:last-child):not(.ant-table-selection-column):not(.ant-table-row-expand-icon-cell):not([colspan])::before {
    background-color: rgba(var(--error-colour-RGB), .2);
}
.ch-dataTable .ant-table .ant-table-thead > tr > th {
    border-color: rgba(0,0,0,.04);
}
.ch-dataTable-error .ant-table .ant-table-thead > tr > th {
    border-color: rgba(var(--error-colour-RGB), .2);
}
.ch-dataTable .ant-table .ant-table-thead > tr:first-child > *:first-child {
    border-start-start-radius: var(--component-radius);
}
.ch-dataTable .ant-table .ant-table-thead > tr:first-child > *:last-child {
    border-start-end-radius: var(--component-radius);
}
.ch-dataTable .ant-table .ant-table-tbody > tr:last-child > *:first-child {
    border-end-start-radius: var(--component-radius);
}
.ch-dataTable .ant-table .ant-table-tbody > tr:last-child > *:last-child {
    border-end-end-radius: var(--component-radius);
}
.ch-dataTable .ant-table .ant-table-thead th {
    background: rgba(var(--secondary-colour-RGB), .2);
}
.ch-dataTable-error .ant-table .ant-table-thead th {
    background: rgba(var(--error-colour-RGB), .2);
}
.ch-dataTable .ant-table .ant-table-tbody tr td {
    border-color: rgba(0,0,0,.04);
}
.ch-dataTable-error .ant-table .ant-table-tbody tr td {
    border-color: rgba(var(--error-colour-RGB), .04);
}
.ch-dataTable .ant-table-row:last-child td,
.ch-dataTable .ant-table-placeholder:last-child td {
    border-bottom: none;
}
.ch-dataTable .ant-table-row:hover td {
    background: transparent !important;
}
.ch-dataTable .ant-table-footer {
    background: rgba(0,0,0,0.02);
    border-top: 1px solid var(--border-colour);
}
.ch-dataTable .ch-dataTable-highlight {
    background: var(--primary-colour);
    color: var(--on-primary-colour);
}
.ch-upload {
    display: flex;
}
.ch-upload .ant-upload-list {
    width: fit-content;
}

.ch-sticky {
    background-color: var(--surface-colour);
    border-bottom: 1px solid var(--border-colour);
    position: sticky;
    top: 0;
    transition: box-shadow 0.2s ease-in-out;
    z-index: 1;
}
.ch-sticky-bottom {
    border-top: 1px solid var(--border-colour);
    border-bottom: unset;
    top: unset;
    bottom: 0;
}
/* StickyBlock bordered={false}: no edge border */
.ch-sticky.ch-sticky-borderless {
    border-top: none;
    border-bottom: none;
}

.ch-alert-success {
    background: var(--success-bg-colour);
    border-color: var(--success-colour);
}
.ch-alert-success .anticon {
    color: var(--success-colour);
}
.ch-alert-info {
    background: rgba(24, 144, 255, 0.1);
    border-color: var(--input-colour);
}
.ch-alert-info .anticon {
    color: var(--input-colour);
}
.ch-alert-warning {
    background: var(--warning-bg-colour);
    border-color: var(--warning-colour);
}
.ch-alert-warning .anticon {
    color: var(--warning-colour);
}
.ch-no-test-questions-notice {
    border-width: 1px;
    border-style: solid;
    border-radius: 4px;
    padding: var(--small-spacing-unit);
    margin-bottom: var(--small-spacing-unit);
}
/* A boxed message outside an antd Alert; add ch-alert-info, -warning etc. for its colours. */
.ch-notice {
    border-width: 1px;
    border-style: solid;
    border-radius: 4px;
    padding: var(--small-spacing-unit);
    margin-bottom: var(--small-spacing-unit);
}
.ch-alert-error {
    background: var(--error-bg-colour);
    border-color: var(--error-colour);
}
.ch-alert-error .anticon {
    color: var(--error-colour);
}
[class*="ch-alert-"] .ant .anticon {
    color: unset;
}
.ch-alert-success-fade {
    background-color: var(--success-bg-colour);
    animation: fadeOut 1.5s forwards;
}
@keyframes fadeOut {
    from {
        background-color: var(--success-bg-colour);
    }
    to {
        background-color: transparent;
    }
}

.custom-pagination {
    margin: var(--spacing-unit) !important;
}
.custom-pagination li {
    border: none;
    margin: 0;
}
.ch-page-button {
    background: transparent;
    border: none;
    outline: none;
    height: 32px;
    min-width: 32px;
}

/* -- Form items: */
.ch-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-unit);
    margin-bottom: var(--spacing-unit);
}
.ch-form,
.ch-form .ch-formGap,
.ch-form .ant-form-item,
.ch-form .ant-space {
    gap: var(--spacing-unit);
}

/*.ant-form-vertical .ant-form-item:not(.ant-form-item-horizontal) .ant-form-item-label, .ant-form-vertical .ant-form-item:not(.ant-form-item-horizontal) .ant-col-24.ant-form-item-label, .ant-form-vertical .ant-form-item:not(.ant-form-item-horizontal) .ant-col-xl-24.ant-form-item-label {*/

.ch-form .ant-form-item-label {
    font-size: 14px;
    font-weight: 600;
}
.ch-form.ant-form-vertical .ant-form-item .ant-form-item-label {
    padding: var(--small-spacing-unit) 0;
}
.ch-form-large {
    gap: calc(var(--medium-spacing-unit) * 2);
}
.ch-form-large .ant-row {
    gap: calc(var(--medium-spacing-unit) * 3);
}
/* A single-column form page at a readable width. */
.ch-form-narrow {
    max-width: 600px;
}
.ch-form-narrow > p {
    margin-bottom: var(--spacing-unit);
}
/* Small print under or between fields. */
.ch-form-note {
    font-size: 12px;
}
/* A bulleted list in a form, e.g. password rules. */
.ch-form-list {
    list-style-type: disc;
    margin: 0 0 0 20px;
    padding: 0;
}
/* -- End form items */

.material-font {
    font-family: 'Material Icons Round';
}
.ch-textField,
.ch-select,
.ch-checkbox-wrapper,
.ch-radio-wrapper {
    margin-bottom: calc(var(--spacing-unit) * 1);
}
.ch-textField:last-child,
.ch-select:last-child,
.ch-checkbox-wrapper:last-child,
.ch-radio-wrapper:last-child {
    margin-bottom: 0;
}
.ch-helper-text {
    font-weight: 400;
}
.ch-helper-text-error {
    color: var(--error-colour);
}

.ch-radioGroup,
.ch-checkboxGroup {
    display: flex;
    flex-direction: column;
}
.ch-radioGroup-hoz,
.ch-checkboxGroup-hoz {
    align-items: baseline;
    flex-direction: row;
}
.ch-checkbox-wrapper,
.ch-radio-wrapper {
    display: flex;
    align-items: center;
    position: relative;
    cursor: pointer;
    width: fit-content;
}
.ch-radioGroup-hoz .ch-check-radio-wrapper,
.ch-checkboxGroup-hoz .ch-check-radio-wrapper {
    margin-bottom: 0;
}
.ch-checkbox,
.ch-radio {
    box-shadow: 0 0 0 0 transparent;
    transition: box-shadow var(--ani-small) var(--easing) 0ms;
    position: relative;
}
.ch-checkbox-inner,
.ch-radio-inner {
    display: flex;
    position: relative;
    width: 18px;
    height: 18px;
}
.ch-checkbox {
    border-radius: var(--input-radius);
}
.ch-checkbox-inner {
    background-color: transparent;
    border: 1px solid var(--input-border-colour);
    border-radius: inherit;
}
input:focus+.ch-checkbox .ch-checkbox-inner {
    border-color: var(--input-colour);
}
input:checked+.ch-checkbox .ch-checkbox-inner {
    background-color: var(--input-colour);
    background-repeat: no-repeat;
    background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16'><path fill='rgb(255,255,255)' d='M12 5c-.28 0-.53.11-.71.29L7 9.59l-2.29-2.3a1.003 1.003 0 00-1.42 1.42l3 3c.18.18.43.29.71.29s.53-.11.71-.29l5-5A1.003 1.003 0 0012 5z'/></svg>");
    border-color: var(--input-colour);
}
.ch-radio {
    border-radius: 50%;
}
.ch-radio-inner {
    box-shadow: 0 0 0 1px var(--input-border-colour) inset;
    border-radius: inherit;
    transition: border-color var(--ani-small) var(--easing) 0ms, box-shadow var(--ani-small) var(--easing) 0ms;
}
input:focus+.ch-radio .ch-radio-inner {
    box-shadow: 0 0 0 1px var(--input-colour) inset;
}
input:checked+.ch-radio .ch-radio-inner {
    box-shadow: 0 0 0 5px var(--input-colour) inset;
}
.ch-check-radio-wrapper input[type=radio],
.ch-check-radio-wrapper input[type=checkbox] {
    position: absolute;
    line-height: unset;
    inset: 0;
    margin: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}
span.ch-checkbox+*,
span.ch-radio+* {
    padding-right: var(--spacing-unit);
    padding-left: var(--spacing-unit);
}


.ch-textField .ch-textField__input,
.ch-textarea,
.ch-select .ch-select__control {
    background: #fff;
    border: 1px solid var(--input-border-colour);
    border-radius: var(--input-radius);
    transition: box-shadow var(--ani-small) var(--easing) 0ms;
    min-height: 38px;
    display: flex;
    align-items: center;
    outline: none;
}
.ch-textField .ch-textField__input:focus,
.ch-textarea:focus,
.ch-select .ch-select__control.ch-select__control--is-focused {
    border-color: var(--input-colour);
}
.ch-select-borderless .ch-select__control,
.ch-select-borderless .ch-select__control--is-focused {
    border: none;
}
.ch-select .ch-select__single-value,
.ch-select .ch-select__input {
    color: inherit;
}
.ch-select__menu-portal {
    z-index: 1301;
}
.ch-select .ch-select__menu-list {
    border-color: var(--input-border-colour);
    border-radius: var(--input-radius);
    color: inherit;
    padding: 8px 0;
}
.ch-select .ch-select__option--is-focused {
    background-color: var(--borderless-hover-on-surface);
}
.ch-select .ch-select__option--is-selected {
    background-color: var(--input-colour);
    color: var(--on-input-colour);
    fill: var(--on-input-colour);
}
.ch-select .ch-select__indicator-separator {
    display: none;
}
.ch-select-indicator {
    display: flex;
    padding: 8px;
    box-sizing: border-box;
}
.ch-select-indicator svg {
    transition: transform var(--ani-small) var(--easing) 0ms;
}
.ch-select__control--menu-is-open .ch-select-indicator svg {
    transform: rotate(180deg);
}
.ch-textField .ch-textField__input {
    color: inherit;
    font-size: 16px;
    outline: none;
    padding: 2px 8px;
    margin: 0;
    width: inherit;
}
.ch-textarea {
    display: flex;
    padding: var(--spacing-unit);
    resize: none;
    width: 100%;
}
.ch-button-select {
    position: relative;
    display: flex;
}

.ch-button-select .ch-button {
    justify-items: flex-start;
    padding-right: 12px;
}
.ch-button-select .ch-btn-text {
    color: var(--on-surface-colour);
    fill: var(--on-surface-colour);
    font-weight: initial;
}
.ch-button-select .ch-btn-text:hover {
    background: transparent;
}

.ch-btn-text-underline{
    text-decoration: underline;
}

.ch-button-select-menu {
    bottom: 0;
    height: 0;
    position: absolute !important;
    width: 100%;
    z-index: 2;
    white-space: nowrap;
}
.ch-button-select-menu div {
    cursor: pointer;
}
.ch-button-select.ch-button-select-right {
    justify-content: flex-end;
}
.ch-button-select span {
    transition: transform var(--ani-small) var(--easing) 0ms;
    left: 8px;
    position: relative;
}
.ch-button-select .is-open span {
    transform: rotate(180deg);
}

.ch-button-select.ch-button-select-right .ch-borderless-select {
    justify-content: flex-end;
}
.ch-borderless-select .ch-borderless-select__control {
    height: 0;
    min-height: 0;
    width: 0;
    opacity: 0;
    overflow: hidden;
    position: absolute;
}
.ch-switch .Mui-checked .MuiSwitch-thumb {
    background: var(--input-colour);
}
.ch-switch .Mui-checked+ .MuiSwitch-track {
    background-color: var(--input-border-colour);
}
.ch-menu {
    background: var(--surface-colour);
}
.ch-menuItem {
    color: var(--on-surface-colour);
}


.ch-button-column {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.ch-button-column .ch-button {
    margin-top: var(--small-spacing-unit);
    margin-bottom: var(--small-spacing-unit);
}

.ch-button-row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin: var(--spacing-unit) var(--medium-spacing-unit);
}

.ch-button-character {
    cursor: pointer;
    padding: var(--small-spacing-unit) var(--spacing-unit);
    font-weight: 600;
    margin: 0 var(--small-spacing-unit);
    border-radius: var(--input-radius);
    transition: background-color 0.3s;
    border: none;
}

.ch-button-character.ch-active, .ch-button-character:hover {
    color:  var(--on-button-colour);
    background-color: var(--button-colour);
    fill: var(--button-colour);
}

.ch-button-character:focus-visible {
    outline: 2px solid var(--focus-on-surface);
    outline-offset: 2px;
    border-radius: 2px;
}

.ch-item-focus {
    outline: 2px solid var(--focus-on-surface);
    outline-offset: 2px;
    border-radius: 2px;
}

.ant-popover-message-icon span[aria-label="exclamation-circle"]{
    color: orange;
}

.ant-popover-message-title{
    display: inline-block;
    padding-left: 10px;
}

.ant-popover-buttons .ant-btn-default{
    border: none;
    color: var(--secondary-text-colour);
}

.ant-popover-buttons .ant-btn-default:hover{
    background: var(--button-colour-hover-variant);
}

.ant-popconfirm-buttons {
    display: flex;
    margin-top: 8px;
    justify-content: flex-end;
}

.ant-popconfirm-buttons > button:first-of-type {
    margin-left: 0;
}

.ch-button.ch-activated{
    background: unset;
    color: var(--button-colour);
    border: 2px solid var(--button-colour);
}

.ch-button:not(.ch-mathjax) span {display: flex;}
.ch-modal {
    background: var(--surface-colour);
    color: var(--on-surface-colour);
    font-size: 14px;
}
.ch-modal > .ch-modal-block:not(:first-child) {
    padding-top: 0;
}
.ch-modal-head {
    font-size: 20px;
    font-weight: 600;
    padding: var(--spacing-unit) var(--large-spacing-unit);
}
.ch-modal-content {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: var(--spacing-unit) var(--large-spacing-unit);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.ch-modal-actions {
    position: relative;
}
.ch-modal-actions .ch-loader {
    margin: 2px;
}

/* Common styles: */
@media(hover: hover) and (pointer: fine) {
    .ch-checkbox-wrapper:hover .ch-checkbox,
    .ch-radio-wrapper:hover .ch-radio,
    .ch-textField__input:hover,
    .ch-textarea:hover,
    .ch-select .ch-select__control:hover {
        box-shadow: 0 0 0 var(--input-focus-size) var(--hover-on-surface);
    }
}
.ch-checkbox-wrapper input:focus + .ch-checkbox,
.ch-radio-wrapper input:focus + .ch-radio,
.ch-textField__input:focus,
.ch-textarea:focus,
.ch-select .ch-select__control.ch-select__control--is-focused,
.ch-switch .Mui-focusVisible + .MuiSwitch-track {
    box-shadow: 0 0 0 var(--input-focus-size) var(--focus-on-surface);
}

.ch-checkbox-wrapper .label {
    text-align: left
}
/* -- Other: */
.no-wrap {
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ch-emph-block {
    background: rgba(0, 0, 0, 0.04);
    border-radius: var(--container-radius);
}
.ch-emph-block hr {
    border-color: var(--border-colour);
    width: 100%;
}
.MuiTooltip-tooltip.ch-tooltip {
    background-color: var(--tooltip-background);
    font-size: 12px;
    font-weight: 400;
}
.MuiTooltip-tooltip.ch-tooltip .MuiTooltip-arrow {
    color: var(--tooltip-background);
}
/* Matches the MuiTooltip .ch-tooltip sizing above, for AntD's Tooltip (withTooltip.js) - otherwise noticeably larger by default */
.ant-tooltip.ch-tooltip .ant-tooltip-inner {
    background-color: var(--tooltip-background);
    font-size: 12px;
    font-weight: 400;
}
.ant-tooltip.ch-tooltip .ant-tooltip-arrow::before {
    background: var(--tooltip-background);
}
.ch-center-tooltip{
    display:flex;
    flex-direction: column;
    gap:8px;
}
.ch-buttons-group,
.ch-icons-group {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.ch-buttons-group.ch-nowrap{
    flex-wrap: unset;
}

.ch-buttons-group-right {
    justify-content: end;
}
.ch-buttons-group > [class^="ch-button"] {
    margin-right: var(--medium-spacing-unit);
}
.ch-icon-btn,
.ch-icon-btn-hero,
.ch-tab-bar .ch-tab-icon {
    background-color: transparent;
    border: 0;
    display: flex;
    border-radius: 50%;
    position: relative;
    padding: 0;
    margin: 4px;
    height: 32px;
    width: 32px;
}
.ch-tab-bar .ch-tab-icon {
    height: 36px;
    width: 36px;
}

.ch-icon-btn-hero {
    height: 40px;
    width: 40px;
}
.ch-icon-btn-sm svg,
.ch-icon-btn-sm img {
    height: 24px;
    width: 24px;
}
.ch-icon-btn-lg svg {
    position: absolute;
    height: 40px;
    width: 40px;
}
.ch-icon-btn-on-primary {
    fill: var(--on-primary-colour);
}
.ant-btn.ch-pc-btn,
.ch-button,
.ch-btn-text,
.ch-btn-outline,
.ch-btn-dashed,
.ch-icon-btn,
.ch-btn-selector {
    border: none;
    cursor: pointer;
    display: flex;
    outline: none;
    align-items: center;
    justify-content: center;
    transform: scale(1);
    transition: outline var(--ani-small) var(--easing), transform var(--ani-mid) var(--easing);
}
.ch-icon-btn.ch-activated {
    fill: var(--on-secondary-colour);
    background-color: var(--secondary-colour);
}
.ant-btn.ch-pc-btn,
.ant-btn,
.ch-button,
.ch-btn-text,
.ch-btn-outline,
.ch-btn-dashed {
    border-radius: var(--button-radius);
    font: var(--button-font);
    font-weight: var(--button-font-weight);
    display: flex;
    min-height: 36px;
    min-width: fit-content;
    white-space: nowrap;
    padding: var(--button-padding);
    text-transform: capitalize;
}
.ant-btn.ch-pc-btn {
    display: unset;
}

.ant-btn.ch-pc-btn,
.ch-button {
    background: var(--primary-colour);
    color: var(--on-primary-colour);
    fill: var(--on-primary-colour)
}
.ant-btn-variant-solid {
    --ant-btn-border-color: transparent;
    --ant-btn-border-width: 0;
}
.ant-btn.ch-pc-btn.ch-btn-text,
.ch-btn-text {
    background: transparent;
    color: var(--secondary-text-colour);
    fill: var(--secondary-text-colour);
}
.ant-btn.ch-pc-btn.ch-btn-outline,
.ant-btn-variant-outlined,
.ch-btn-outline {
    background: transparent;
    border: 2px solid var(--secondary-text-colour);
    color: var(--secondary-text-colour);
    fill: var(--secondary-text-colour);
}
.ant-btn-variant-outlined {
    --ant-btn-border-width: 2px;
}
.ch-btn-dashed {
    background: transparent;
    border: 2px dashed var(--secondary-text-colour);
    color: var(--secondary-text-colour);
    fill: var(--secondary-text-colour);
}
.ch-btn-selector {
    background: transparent;
    justify-content: left;
    width: 100%;
    color: unset;
    fill: unset;
}
.ch-btn-selector.ch-activated {
    cursor: default;
    background: var(--input-colour);
    color: var(--on-input-colour);
    fill: var(--on-input-colour);
    border: unset;
}
/* -- Disabled: */
.ch-button:disabled,
.ch-button[disabled],
.ch-button-disabled,
.ch-btn-text:disabled,
.ch-btn-text[disabled],
.ch-btn-outline:disabled,
.ch-btn-outline[disabled],
.ch-btn-dashed:disabled,
.ch-btn-dashed[disabled],
.ch-icon-btn:disabled,
.ch-icon-btn[disabled] {
    cursor: default;
}
.ant-btn-variant-solid:disabled,
.ch-button:disabled,
.ch-button[disabled],
.ch-button-disabled {
    background: var(--button-colour-disabled);
    color: var(--button-colour-disabled-light);
    fill: var(--on-button-colour-disabled);
    cursor: not-allowed;
}
.ch-btn-text:disabled,
.ch-btn-text[disabled] {
    background: transparent;
    color: var(--on-button-colour-disabled);
    cursor: not-allowed;
}
.ant-btn-variant-outlined:disabled,
.ch-btn-outline:disabled,
.ch-btn-outline[disabled] {
    background: transparent;
    border-color: var(--button-colour-disabled);
    color: var(--on-button-colour-disabled);
    cursor: not-allowed;
}
.ch-btn-dashed:disabled,
.ch-btn-dashed[disabled] {
    background: transparent;
    border-color: var(--button-colour-disabled);
    color: var(--on-button-colour-disabled);
    cursor: not-allowed;
}
.ch-icon-btn:disabled,
.ch-icon-btn[disabled] {
    background: transparent;
    fill: var(--on-button-colour-disabled);
    cursor: not-allowed;
}
/* -- Hover: */
.ant-btn.ch-pc-btn::before,
.ch-button::before,
.ch-btn-text::before,
.ch-btn-outline::before,
.ch-icon-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    transition: background-color 0.3s ease;
    border-radius: var(--button-radius);
}
.ch-dialog-title .ch-icon-btn::before {
    border-radius: 0;
}
.ch-btn-outline::before,
.ch-btn-dashed::before {
    border-radius: calc(var(--button-radius) - 2px); /* to offset the gap that is caused between the fill and back-ground having the same border radius but different sizes*/
}
.ant-btn.ch-pc-btn.ch-btn-text:hover,
.ant-btn.ch-pc-btn.ch-btn-outline:hover {
    color: var(--secondary-text-colour);
    background-color: rgba(0, 0, 0, 0);
}
.ch-btn-text-underline:hover:not([disabled]),
.ch-btn-selector:hover:not([disabled]):not(.ch-activated) {
    color: rgba(var(--secondary-colour-RGB), var(--button-link-hover-opacity));
    fill: rgba(var(--secondary-colour-RGB), var(--button-link-hover-opacity));
}
@media(hover: hover) and (pointer: fine) {
    .ch-button:hover:not([disabled]),
    .ch-btn-text:hover:not([disabled]),
    .ch-btn-outline:hover:not([disabled]),
    .ch-icon-btn:hover:not([disabled]) {
        transform: var(--button-hover-scale);
    }
    .ant-btn.ch-pc-btn:hover:not([disabled])::before,
    .ch-button:hover:not([disabled]):not(.ch-btn-text-underline)::before {
        background-color: rgba(var(--on-primary-colour-RGB), var(--button-hover-opacity));
    }
    .ant-btn.ch-pc-btn.ch-btn-text:hover:not([disabled])::before,
    .ant-btn-variant-outlined:not(:disabled):not(.ant-btn-disabled):hover,
    .ch-btn-text:hover:not([disabled]):not(.ch-btn-text-underline)::before,
    .ch-btn-outline:hover:not([disabled]):not(.ch-btn-text-underline)::before,
    .ch-btn-dashed:hover:not([disabled])::before {
        background-color: rgba(var(--secondary-colour-RGB), var(--button-hover-opacity));
    }
    .ant-btn.ch-pc-btn.ch-btn-outline:hover:not([disabled])::before,
    .ch-btn-outline:hover:not([disabled])::before {
        background-color: rgba(var(--secondary-colour-RGB), var(--button-hover-opacity));
    }
    .ch-icon-btn:hover:not([disabled])::before {
        background-color: rgba(var(--on-surface-colour-RGB), var(--button-hover-opacity));
    }
}
/* -- Focus: */
.ant-btn.ch-pc-btn:not(:disabled):focus-visible,
.ch-button:focus-visible,
.ch-btn:focus-visible,
.ch-icon-btn:focus-visible,
.ch-tab-bar a.ch-tab-icon:focus-visible {
    outline: var(--input-focus-size) solid var(--focus-on-surface);
    outline-offset: 1px;
}
.ch-nav-icon-btn .ch-icon-btn:focus-visible,
.ch-btn-on-global:focus-visible,
.ch-icon-btn-on-global:focus-visible {
    outline: var(--input-focus-size) solid rgba(var(--surface-colour-RGB), .80);
    outline-offset: 1px;
}
.ch-dialog-title .ch-icon-btn:focus-visible {
    outline: var(--input-focus-size) solid rgba(var(--surface-colour-RGB), .80);
    outline-offset: -3px;
}
.ch-btn-on-primary:focus-visible,
.ch-icon-btn-on-primary:focus-visible {
    outline: var(--input-focus-size) solid var(--focus-on-primary);
    outline-offset: 1px;
}

.ch-btn.ch-btn-selector:not(.ch-activated):focus-visible{
    outline-offset: -3px;
}
/* -- Button sizes: */
.ch-btn-small {
    min-height: unset;
    font-size: 12px;
    height:24px;
}
.ch-btn-medium {
    min-height: unset;
    font-size: 13px;
    height: 32px;
}
/* -- Button icons: */
.ch-button-icon-l {
    padding-left: 12px;
}
.ch-button-icon-l svg {
    padding-right: 4px;
}
.ch-button-icon-r {
    padding-right: 12px;
}
.ch-button-icon-r svg {
    padding-left: 4px;
}

.button-group{
    display:flex;
    gap:4px;
    padding:4px;
}

.ch-list, .ch-sub-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.ch-list-group-head {
    box-shadow: 0 0 0 0 transparent inset;
    color: inherit;
    flex-direction: row;
    outline: none;
    padding: 6px var(--small-spacing-unit);
    border-radius: var(--input-radius);
    /*justify-content: space-between;*/
    width: 100%;
    font-weight: bold;
    cursor: pointer;
}
.ch-list-group-label,
.ch-list-group-indicator {
    display: flex;
}
.ch-list-group-head > .ch-list-group-label+.ch-list-group-indicator {
    flex: 1;
    justify-content: flex-end;
}
.ch-list-group-label, .ch-expand-box-head span {
    display: flex;
    align-items: center;
}
.ch-list-group-label svg {
    padding-right: var(--small-spacing-unit);
}
.ch-list-group-indicator, .ch-expand-box-indicator svg {
    transition: transform var(--ani-small) var(--easing) 0ms;
}
.ch-list-group-closed .ch-list-group-indicator svg {
    transform: rotate(180deg);
}
.ch-sub-list {
    transition: max-height var(--ani-mid) var(--easing) 0s;
    padding: 0 0 0 var(--spacing-unit);
    max-height: 100vh;
}
.ch-list-group-closed .ch-sub-list {
    max-height: 0;
    display: none;
}
/* Long notification lists (100vh cap) overflowed onto the groups below; the menu itself scrolls. */
.ch-notifications-list .ch-sub-list {
    max-height: none;
}
/* So did a long lesson's lists in the "In this section" panel (Shortcuts, Worksheets, Videos...) onto the groups below
   them; the panel itself scrolls. */
.ch-page-marker-nav .ch-sub-list,
.ch-activity-navigation .ch-sub-list {
    max-height: none;
}
/* Notification dropdown stays short and scrolls; !important beats the inline max-height set by NavigationMenu. */
.ch-nav-menu-inner:has(.ch-notifications-list) {
    max-height: min(60vh, 420px) !important;
}
.ch-nav-divided {
    border-bottom: 1px solid var(--divider-colour);
    padding-top: var(--spacing-unit);
    padding-bottom: var(--spacing-unit);
}
.ch-nav-divided:first-of-type {
    padding-top: 0;
}
.ch-nav-divided:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}
.ch-list-item {
    background-color: transparent;
    font-size: 14px;
    list-style: none;
    outline: none;
    display: flex;
    align-items: center;
    position: relative;
    margin: 2px 0 2px 0;
    user-select: none;
}
.ch-list-item:focus-visible {
    outline: var(--input-focus-size) solid var(--focus-on-surface);
}
.ch-list-item a, .ch-series-menu-group .ch-list-item {
    box-shadow: 0 0 0 0 transparent inset;
    border-radius: var(--input-radius);
    color: inherit;
    display: flex;
    padding: 0 var(--spacing-unit);
    outline: none;
    align-items: center;
    flex: 1;
}

.ch-list-item button.ch-nav-item,
.ch-list-group > button.ch-list-group-head {
    background: transparent;
    border: none;
    margin: 0;
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    text-align: left;
    cursor: pointer;
    display: flex;
    padding: 0 var(--spacing-unit);
    outline: none;
    align-items: center;
    flex: 1;
    width: 100%;
}

.ch-list-item button.ch-nav-item:hover,
.ch-list-group > button.ch-list-group-head:hover {
    background-color: var(--borderless-hover-on-surface) !important;
}

.ch-list-item button.ch-nav-item:focus-visible,
.ch-list-group > button.ch-list-group-head:focus-visible {
    outline: var(--input-borderless-focus-size) solid var(--focus-on-surface);
    outline-offset: -2px;
}

.ch-list-item-content {
    display: flex;
    flex: 1;
    padding: 0 var(--spacing-unit);
    outline: none;
    align-items: center;
}

.ch-list-item-active a, .ch-series-menu-group .ch-list-item-active {
    background-color: var(--input-colour);
    color: var(--on-input-colour);
    fill: var(--on-input-colour);
}

.ch-list-item-active-text a {
    background-color: transparent;
    color: var(--input-colour);
}
.ch-list-item-highlight a {
    border: 3px solid rgba(var(--input-colour-RGB), .4);
}

.ch-list-item-highlight-text {
    height: 20px;
    padding: 0 4px;
    font-size: 12px;
    border-radius: var(--component-radius);
    border: 1px solid white;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
    background-color: red;
}

.ch-list-item-highlight-text.legacy-label {
    background-color: #9b426c;
}

.ch-list-item-highlight-text.ch-follow-up-work-label {
    background-color: #1a7f8e;
}

/* Inverts on the selected nav item, where the item's own fill would swallow the teal chip. */
.ch-list-item-active .ch-list-item-highlight-text.ch-follow-up-work-label {
    background-color: var(--on-input-colour);
    border-color: var(--on-input-colour);
    color: #14626e;
}

.ch-follow-up-work-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 4px 0;
}

.ch-follow-up-work-meta .ant-tag {
    margin: 0;
}

.ch-follow-up-work-heading.ant-divider {
    margin: 8px 0 4px 0;
    font-weight: 500;
}
.compressed .ch-nav-shortcuts .ch-list-item-active a {
    background-color: transparent ;
}

.ch-list-item-disabled,
.ch-tab-disabled,
.disabled-message {
    opacity: var(--disabled-alpha);
    cursor: unset;
}

li.ch-list-item-disabled {padding-left: 4px;}
.compressed li.ch-list-item-disabled {padding-left: 2px;}
.ch-list-item a:focus-visible,
.ch-series-menu-group .ch-list-item:focus-visible,
.ch-list-group-head:focus-visible {
    outline: var(--input-borderless-focus-size) solid var(--focus-on-surface);
    outline-offset: -2px;
}
.ch-tabs .ant-tabs-tab-btn:focus-visible .ch-tab {
    background: rgba(var(--input-colour-RGB), .12) !important;
    outline: var(--input-focus-size) solid var(--focus-on-surface);
    outline-offset: -3px;
}
.ch-tabs .ant-tabs-tab.ant-tabs-tab-focus .ant-tabs-tab-btn:focus-visible {
    outline: none;
}
.ch-list-item-active a:focus-visible, .ch-series-menu-group .ch-list-item-active:focus-visible {
    outline: var(--input-borderless-focus-size) solid var(--focus-on-surface);
    outline-offset: 2px;
}

.ch-series-menu-list .ch-list-item-active:focus-within, .ch-series-menu-list .ch-list-item-active:focus-visible, .ch-series-menu-list .ch-list-item-active:focus-visible {
    outline: var(--input-borderless-focus-size) solid var(--focus-on-surface);
    outline-offset: 2px;
}

.ch-series-menu-list .ch-list-item-active a:focus-visible {
    outline: none;
}

.compressed .ch-nav-shortcuts .ch-list-item a:focus-visible,
.compressed .ch-nav-shortcuts .ch-list-group-head:focus-visible,
.compressed .ch-nav-shortcuts .ch-list-item-active a:focus-visible {
    outline: unset;
}
.ch-list-item-icon {
    fill: #000; /* reset value */
}
.ch-list-item-active .ch-icon-sm-ol {
    stroke: #fff;
    stroke-width: 8px;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.ch-list-item-icon .ch-menu-icon {
    fill: var(--on-surface-colour);
}
.ch-list-item-icon+.ch-list-item-text {
    margin-left: var(--spacing-unit);
}
.ch-list-group-head,
.ch-list-item-text {
    line-height: 1.75em;
    flex: 1;
    padding-top: var(--small-spacing-unit);
    padding-bottom: var(--small-spacing-unit);
    display: flex;
    align-items: center;
}
.ch-list-item-text {
    justify-content: space-between;
}
.ch-list-item-meta {
    margin-left: var(--spacing-unit);
}
.ch-list-item-icon, .ch-list-item-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    transform-origin: center;
}
.ch-accordion:focus,
.ch-accordion .ch-accordion-btn:focus {
    outline: var(--input-focus-size) solid var(--focus-on-surface);
    outline-offset: 1px !important;
}
.ch-dashboard-widget-table {
    width: 100%;
}
.ch-dashboard-widget-table td.max-width-no-wrap {
    max-width: 0;
    width: 100%;
    padding-right: var(--spacing-unit);
}
.ch-table th, .ch-table td {
    padding: var(--small-spacing-unit) var(--small-spacing-unit);
}
.ch-table th.ch-left-align, .ch-table td.ch-left-align {
    text-align: left;
}
.ch-table th.ch-align-right, .ch-table td.ch-align-right {
    text-align: right;
}
.ch-table th.ch-align-center, .ch-table td.ch-align-center {
    text-align: center;
    justify-items: center;
}

td.right-align .ch-btn {
    display: inline-flex;
}

.ch-list-item-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 600;
}
.ch-list-item-details {
    font-size: 12px;
    padding-top: 4px;
}
.ch-list-item-details div {
    display: inline-block;
    white-space: nowrap;
}
.ch-list-item-details div:not(:last-child) {
    padding-right: var(--spacing-unit);
}
.ch-message-subject {
    text-decoration: underline;
    color: var(--link-colour);
    cursor: pointer;
}
.ch-message-subject:hover {
    color: var(--link-colour);
    cursor: pointer;
}
.ch-message-subject.read {
    font-weight: unset;
}

.ch-general-table-antd tr[role='button'] {
    cursor: pointer;
}
.ch-general-table-antd tr[role='button']:focus-visible {
    outline: unset;
}
/*Using border colours because pseudo elements after trs in safari surround whole table*/
.ch-general-table-antd tr[role='button']:focus-visible td::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-top: var(--input-focus-size) solid var(--focus-on-surface);
    border-bottom: var(--input-focus-size) solid var(--focus-on-surface);
    pointer-events: none;
}
.ch-general-table-antd tr[role='button']:focus-visible td:first-child::after {
    border-left: var(--input-focus-size) solid var(--focus-on-surface);
}
.ch-general-table-antd tr[role='button']:focus-visible td:last-child::after {
    border-right: var(--input-focus-size) solid var(--focus-on-surface);
}
.unread {
    font-weight: bold;
}
.ch-messages-unread > td {
    font-weight: bold;
    background-color: #f5f5f5 !important;
}
.ch-notifications-empty {
    padding: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #4a4a4a;
    font-size: 0.85rem;
    background-color: #efefef;
    outline: 8px solid #efefef;
    margin-bottom: 12px;
}
.ch-announcements-empty {
    color: #757575;
    font-size: 0.85rem;
    font-style: italic;
    cursor: default;
    pointer-events: none;
    margin: 0 0 8px 0;
    display: block;
}
.ch-announcements-empty:hover {
    background-color: transparent !important;
}
.ch-announcements-view-older {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: #8c8c8c;
    font-size: 0.8rem;
    font-weight: normal;
}
.ch-announcements-view-older .ch-list-item-text {
    justify-content: flex-start;
    gap: 8px;
    margin-right: 8px;
    border-top: 1.5px dashed #e8e8e8;
}
.ch-general-table-antd .ch-tg-f:focus,
.ch-general-table-antd .ch-tg-f :focus,
.ch-general-table-antd .ch-tg-f:focus-within .ant-checkbox {
    outline-color: var(--focus-on-surface) !important;
    outline-style: dotted !important;
    outline-width: var(--input-focus-size) !important;
}
.ch-general-table-antd th.ch-tg-f:focus,
.ch-general-table-antd td.ch-tg-f:focus {
    outline-offset: calc((var(--input-focus-size) + 2px) * -1) !important;
}
.ch-general-table-antd th.ch-tg-f:focus,
.ch-general-table-antd th.ch-tg-f :focus,
.ch-general-table-antd th.ch-tg-f:focus-within .ant-checkbox {
    outline-color: var(--primary-colour) !important;
}
.ch-general-table-antd .ch-tg-f:focus-within .ant-checkbox {
    outline-offset: 1px;
}
/*.ch-general-table-antd .ch-tg-f :focus+.ant-checkbox-inner,*/
/*.ch-general-table-antd .ch-tg-f:focus-within .ant-checkbox-inner,*/
/*.ch-general-table-antd .ch-tg-f :active+.ant-checkbox-inner {*/
/*    outline-color: var(--focus-on-surface) !important;*/
/*    outline-style: dotted !important;*/
/*    outline-width: var(--input-focus-size) !important;*/
/*}*/
/*.ant-table-thead th.ant-table-column-has-filters:hover {background: #f0f0f0; cursor: pointer;}*/
/*.ant-table-thead th.ant-table-column-has-filters:hover .ant-table-filter-trigger {background: unset;}*/
/*.ant-table-thead th.ant-table-column-has-filters:hover .ant-table-filter-trigger:not(.active) {color: rgba(0, 0, 0, 0.57);}*/


.strong-no-wrap {
    font-weight: 600;
    white-space: nowrap;
}

.ch-ellipsis-list {
    width: 100%;
    list-style-position: inside;
    padding: 0;
    margin: 0;
    overflow-y: auto;
}
.ch-ellipsis-list li {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    list-style-type: disc;
    padding: 0 var(--small-spacing-unit);
    width: 100%;
}

/* Common styles: */
/* --- Text */
.ch-h1, .ch-h2, .ch-h3, .ch-h4, .ch-h5, .ch-h6 {
    font-weight: 500;
    line-height: 1.2;
    color: var(--on-surface-colour);
    display: block;
}
.ch-h1 + *, .ch-h2 + *, .ch-h3 + *, .ch-h4 + *, .ch-h5 + *, .ch-h6 + * {
    /*margin-top: var(--spacing-unit);*/
}
.ch-h1 { font-size: 2rem; }
.ch-h2 { font-size: 1.5rem; }

.ch-icon-btn,
.ch-list-item a,
.ch-series-menu-group .ch-list-item,
.ch-series-select,
.ch-tab-bar a.ch-tab-icon {
    cursor: pointer;
    transition: box-shadow var(--ani-small) var(--easing) 0ms;
    padding: 0 var(--small-spacing-unit);
}

.ch-series-menu-group .ch-list-item {
    width: 100%;
    border: none;
    text-align: left;
}

.ch-list-item-no-hover a {
    cursor: unset;
}
.ch-list-item-disabled a { cursor: default; }
@media(hover: hover) and (pointer: fine) {
    .ch-list-item:not(.ch-list-item-active):not(.ch-list-item-active-text):not(.ch-list-item-disabled):not(.ch-list-item-no-hover) a:hover:not(.ch-no-hover),
    html .ui-tabs .ui-tabs-nav .ui-tabs-anchor:hover,
    .ntf .gen-sub-tab:hover a,
    .ch-list-group-head:not(.ch-list-item-disabled):hover,
    .ch-series-select:hover,
    .ch-tab:hover {
        background-color: var(--borderless-hover-on-surface) !important;
    }
    .ch-tab.ignore-hover:hover {
        background-color: #ffffff!important;
        cursor:default;
    }
    .compressed .ch-list-item:not(.ch-list-item-active):not(.ch-list-item-active-text):not(.ch-list-item-disabled):not(.ch-list-item-no-hover) a:hover {
        background-color: transparent !important;
    }
    .ch-icon-btn-on-global:hover {
        background-color: var(--borderless-hover-global-menu);
    }
    .ch-icon-btn-on-primary:hover {
        background-color: var(--borderless-hover-on-primary);
    }
}

.ch-notification-count {
    background: var(--secondary-colour);
    color: var(--on-secondary-colour);
    font-size: 12px;
    line-height: 12px;
    padding: 2px 6px;
    border-radius: 2em;
    margin: 2px 2px;
}

.ch-badge, .ch-list-group-badge {
    font-size: 12px;
    line-height: 12px;
    padding: 3px 6px;
    border-radius: 2em;
    font-weight: 600;
}

.ch-badge {
    background: var(--secondary-colour);
    color: var(--on-secondary-colour);
    border: 1px solid var(--on-input-colour);
    position: absolute;
    top: -2px;
    right: -2px;
}

.ch-list-group-badge {
    background: var(--input-colour);
    color: var(--on-input-colour);
    margin-left: var(--small-spacing-unit);
    position: relative;
    height: fit-content;
}
.ch-list-group-head .ch-list-group-badge {
    margin-right: var(--small-spacing-unit);
}

/* A result as a coloured shape for its band, then the value (student progress quizzes). */
.ch-quiz-mark {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.ch-quiz-mark-icon.MuiSvgIcon-root {
    font-size: 1.375rem;
}

/* A table cell with a main value and smaller detail lines under it. */
.ch-progress-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}
.ch-progress-cell-value {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}
.ch-progress-cell-detail {
    font-size: 0.8125rem;
    color: #595959;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
/* Several results in one cell, e.g. a section's quizzes, under lesson-part headings when it has them. */
.ch-progress-groups {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
}
.ch-progress-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.ch-progress-group-heading {
    font-size: 0.8125rem;
    color: #595959;
    border-bottom: 1px solid #d9d9d9;
    padding-bottom: 2px;
}
.ch-progress-cell-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, 10.5rem);
    gap: 8px 16px;
}
/* Under lesson-part headings the parts sit side by side and wrap, so each part's quizzes go in one row. */
.ch-progress-group .ch-progress-cell-list {
    grid-template-columns: none;
    grid-template-rows: auto auto;
    grid-auto-flow: column;
    grid-auto-columns: 10.5rem;
}
/* The same width for every result, so a section's first, second... quiz line up down the table. Each quiz takes two
   rows of the list, its name and its result, so the results in a row line up even when a name runs to two lines. */
.ch-progress-cell-item {
    display: grid;
    grid-row: span 2;
    grid-template-rows: subgrid;
    row-gap: 2px;
    justify-items: center;
    text-align: center;
    max-width: 100%;
    box-sizing: border-box;
}
.ch-progress-cell-result {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}
.ch-progress-cell-static {
    padding: 2px 6px;
    border: 1px solid transparent;
}
.ch-progress-cell-caption {
    font-size: 0.8125rem;
    font-weight: 600;
    align-self: end;
}
/* A quiz not done yet: its name quieter than a result. */
.ch-progress-cell-static .ch-progress-cell-caption {
    color: #595959;
}
/* A result that opens its answers: a real button, so it can be reached and used from the keyboard. */
.ch-progress-cell-button {
    background: none;
    border: 1px solid transparent;
    border-radius: 6px;
    padding: 2px 6px;
    font: inherit;
    color: inherit;
    cursor: pointer;
}
.ch-progress-cell-button:hover {
    border-color: #d0d0d0;
    background: #f5f5f5;
}
.ch-progress-cell-button:focus-visible {
    outline: 2px solid var(--primary-colour, #00857c);
    outline-offset: 2px;
}
/* Self-assessed answers: a face and a count for each confidence level. */
.ch-progress-confidence {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2px 10px;
}
.ch-icon-badge:after {
    content: "";
    height: 8px;
    width: 8px;
    background: var(--primary-colour);
    outline: 2px solid var(--global-menu-colour);
    border-radius: 50%;
    position: absolute;
    right: 0;
    bottom: 0;
    transform: translate(-50%, -50%);
}
.ch-icon-badge-lg {
    height: 14px;
    min-width: 12px;
    border-radius: 6px;
    position: absolute;
    left: 50%;
    top: 0;
    transform: translate(0, -50%);
    font-size: 8px;
    padding: 0 4px;
    line-height: 14px;
    color: var(--on-primary-colour);
    background: var(--primary-colour);
    outline: 2px solid var(--global-menu-colour);
}

.ch-nav-ssm,
.ch-nav-drawer-visible .ch-nav-drawer-inner {
    box-shadow: 0 8px 10px -5px rgba(0, 0, 0, .2), 0 16px 24px 2px rgba(0, 0, 0, .14), 0 6px 30px 5px rgba(0, 0, 0, .12);
}
.ch-input-label {
    font-size: 14px;
    font-weight: 600;
}

.ch-link {
    cursor: pointer;
    color: var(--link-colour) !important;
    text-decoration: underline;
}
.ch-link:hover {
    color: var(--hover-link-colour);
}
.ch-link:focus {
    outline: 2px solid var(--link-colour);
    outline-offset: 2px !important;
    border-radius: 2px;
}

.ch-shortcut-link {
    cursor: pointer;
}
.ch-nav-link {
    margin: var(--small-spacing-unit) 0 var(--small-spacing-unit) 0;
}
.ch-nav-link a {
    display: flex;
    flex: 1;
    outline: none;
    align-items: center;
    color: inherit;
    width: fit-content;
    padding: var(--spacing-unit) var(--small-spacing-unit);
    text-decoration: none;
    box-shadow: 0 0 0 0 transparent inset;
    border-radius: var(--input-radius);
}
.ch-nav-link a:hover {
    background-color: var(--borderless-hover-on-surface) !important;
}

.ch-shortcut-link.ch-highlight {
    padding: var(--medium-spacing-unit) var(--medium-spacing-unit);
    border-radius: var(--input-radius);
}
.ch-shortcut-link.ch-highlight a {
    border-radius: 50%;
}
.ch-shortcut-link.ch-highlight:hover {
    background-color: var(--borderless-hover-on-surface);
}
.ch-shortcut-title {
    padding: var(--spacing-unit) var(--spacing-unit);
}
tr.ch-shortcut-link td:first-child {
    padding-left: 4px;
}
tr.ch-shortcut-link td:last-child {
    padding-right: 4px;
}

.ch-loader.ch-loader-spinner-light svg {
    fill: #fff;
    stroke: #fff;
}
.ch-nav-global .ch-loader svg {
    stroke: var(--on-global-menu-colour);
    fill: var(--on-global-menu-colour);
}
.ch-circular-loader.ch-loader-spinner-light {
    color: #fff;
}
.ch-nav-global .ch-circular-loader {
    color: var(--on-global-menu-colour);
}
.ch-loader-centered {
    left: 50%;
    top: 50%;
    position:absolute;
    width: 28px;
    height: 28px;
}
/* Lesson loaders: .ch-loader-centered only anchors its top-left corner at 50%/50%, so shift it back to the middle.
   .ch-lesson-loader is just a hook (not positioned), so the loader still centres in the same ancestor as before. */
.ch-lesson-loader > .ch-loader-centered,
.ch-lesson-content-two-panel > .ch-loader-centered {
    transform: translate(-50%, -50%);
}
.ch-loader-centered-in-element {
    display:inline-flex;
    position:relative;
    justify-content: center;
    width: 100%;
    height: 28px;
    margin-top:8px;
}
.ch-loader-inline {
    display:inline-block;
    vertical-align: middle;
}
.ch-loader-spacing {
    margin: var(--spacing-unit) var(--spacing-unit);
}
.ch-loader {
    display: inline-block;
    position: relative;
    /* Spinner plus 4px; CircularLoader sets --ch-loader-spinner-size for a custom size (28px by default). */
    width: calc(var(--ch-loader-spinner-size, 24px) + 4px);
    height: calc(var(--ch-loader-spinner-size, 24px) + 4px);
}

.ch-loader svg {
    fill: var(--primary-colour);
    stroke: var(--primary-colour);
}
.ch-circular-loader {
    color: var(--primary-colour);
}
/* MUI CircularProgress animates its own root, so skip the generic svg spin */
.ch-circular-loader.ch-icon-spinner svg {
    animation: none;
}

.ch-icon-spinner, .ch-icon-pulse {
    display: flex;
    justify-content: center;
    align-items: center;
}
.ch-icon-spinner svg {
    animation: ch-icon-rotate 1.8s linear infinite;
}
@keyframes ch-icon-rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.ch-icon-pulse svg {
    animation: ch-icon-pulse 1.6s ease-in-out infinite;
}
@keyframes ch-icon-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.6;
    }
}

.ch-tab-bar {
    user-select: none;
    background: var(--surface-colour);
    border-bottom: 1px solid var(--border-colour);
    top: 0;
    position: sticky;
    width: 100%;
    z-index: 4;
}


/* Mobile styles: */
@media screen and (max-width: 1024px) {
    html, body {
        overflow: unset;
    }
    .ch-ribbon-header {
        display: flex;
    }
    .ch-base {
        display: block;
        position: relative;
    }
    .ch-header {
        height: var(--header-height);
        z-index: 1
    }
    .ch-content {
        overflow: unset;
        padding-top: 0 !important;
    }
    #nav {
        height: 100%;
        top: 0;
        position: fixed;
        transform: translateX(-101%);
        opacity: 0;
    }

    #nav.ch-nav-transition {
        opacity: 100%;
        transition: transform var(--ani-mid) var(--easing) 0s;
    }

    .ch-title {
        transform: unset;
        margin-bottom: unset;
        position: relative;
    }
    /*.ch-content {*/
    /*    height: 100%;*/
    /*}*/
    .ch-content-body {
        display: block;
        overflow: unset;
    }
    .ch-content-panel {
        overflow: unset;
    }
    .ch-tab-bar {
        top: 40px;
    }
    #nav-r {
        /*height: 100%;*/
        height: calc(100vh - var(--header-height));
        top: var(--header-height);
        right: 0;
        left: unset;
        position: fixed;
        transition: transform var(--ani-mid) var(--easing) 0s;
        box-shadow: 0 8px 10px -5px rgba(0, 0, 0, .2);
    }
    #nav.ch-nav-visible {
        transform: translateX(0);
    }
    .ch-nav-r-closed #nav-r {
        transform: translateX(101%);
    }
    .page {
        width: 100vw;
    }
    .ch-syllabus-title span {
        display: none;
    }
    .ch-series-drawer {
        flex-direction: row;
        position: absolute;
        visibility: hidden;
        transform: translateX(-101%);
        width: 100vw;
        z-index: 3;
    }
    .ch-series-drawer-visible {
        transform: translateX(0);
        visibility: visible;
    }
    .ch-series-drawer-content {
        border-left: 1px solid var(--border-colour);
        flex: 1;
        position: relative;
    }

    .ch-dashboard {
        padding: 0 1.3rem;
    }

    .ch-dashboard-blk-half {
        width: 100% !important;
    }
}

.reactNav .ant-form-item {margin-bottom: 0}

.ch-dashboard h2 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.ch-dashboard-blks {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    margin: 0 -8px;
    /*gap:8px;*/
}
.ch-dashboard-blk {
    padding: 0 8px 0 8px;
    margin-bottom: 16px;
    width: 100%;
    display: grid;
}
.ch-dashboard-blk-half {
    width: 50%;
}
.ch-dashboard-blk-inner {
    border-radius: var(--component-radius);
    background: var(--surface-colour);
    border: 1px solid var(--border-colour);
    color: var(--on-surface-colour);
    fill: var(--on-surface-colour);
    padding: calc(var(--spacing-unit) * 2);
    display: flex;
    flex-direction: column;
    overflow-x: auto;
}
.ch-dashboard-highlight .ch-dashboard-blk-inner {

}

.ch-dashboard-blk-title {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-bottom: calc(var(--spacing-unit));
    flex-wrap: wrap;
    gap: var(--spacing-unit);
}
.ch-dashboard-no-border .ch-dashboard-blk-title {
    border: none;
}
.ch-dashboard-no-border .ch-dashboard-blk-body {
    min-height: unset;
}
.ch-dashboard-blk-title-main {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: space-between;
}
.ch-dashboard-title-with-icon {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: calc(48px + 0px); /* Icon size + padding */
}
.ch-dashboard-title-with-icon svg {
    padding-right: var(--spacing-unit);
    position: absolute;
    left: 0;
}
.ch-dashboard-blk-title-main span {
    font-size: 22px;
    font-weight: 600;
}
.ch-dashboard-blk-title span {
    display: flex;
}
.ch-dashboard-lesson-link {
    font-size: 12px;
}
.ch-dashboard-important-text {
    font-weight: 600;
    display: flex;
    align-items: center;
}
.ch-dashboard-warning-text {
    font-weight: 600;
    color: var(--warning-colour);
    margin-top: var(--small-spacing-unit);
    margin-bottom: var(--small-spacing-unit);
    white-space: pre-wrap;
}
.ch-warning-text {
    font-weight: 600;
    color: var(--warning-colour);
    text-align: center;
    margin-top: var(--small-spacing-unit);
    margin-bottom: var(--small-spacing-unit);
}
.ch-error-text {
    font-weight: 600;
    color: var(--error-colour);
    text-align: center;
    margin-top: var(--small-spacing-unit);
    margin-bottom: var(--small-spacing-unit);
}
.ch-title-case-text {
    text-transform:capitalize;
}
.ch-global-warning-text {
    font-weight: 600;
    color: white;
    background-color: var(--warning-colour);
    padding: var(--small-spacing-unit) var(--small-spacing-unit);
    margin: var(--spacing-unit) var(--medium-spacing-unit);
    text-align: center;
    border-radius: var(--component-radius);
}
.ch-global-warning-text a {
    font-weight: bold;
}
.ch-dashboard-blk-body, .ch-dashboard-blk-body-wrap {
    font-size: 14px;
}
.ch-dashboard-blk-body-wrap {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: space-between;
}
.ch-dashboard-blk-large .ch-dashboard-blk-body {
    max-height: 320px;
}
.ch-dashboard-blk-body {
    margin-bottom: 16px;
    min-height: 40px;
    max-height: 240px;
    position: relative;
    overflow-y: auto;
}
.ch-welcome-blk-body {
    max-height: 600px;
}
.ch-dashboard-tabBlk {
    margin-bottom: calc(var(--spacing-unit) * 2);
}
.ch-dashboard-tabBlk .ant-tabs-nav:before {
    display: block !important;
    background: var(--border-colour);
    right: calc(var(--spacing-unit) * -2);
    left: calc(var(--spacing-unit) * -2);
}
.ch-dashboard-blk-body:last-child {
    margin-bottom: 0;
}
/* antd Segmented only adds -selected once the thumb's slide ends. If that never fires (busy page, hidden mid-slide)
   the checked item is left without a highlight until the next click. This repaints it after the slide would have
   finished, so the slide still plays and nothing changes when antd has already done it. The to-do list variant has its own fill. */
@keyframes ch-segmented-selected-fallback {
    to {
        background-color: var(--ant-segmented-item-selected-bg, var(--ant-color-bg-elevated, #fff));
        box-shadow: var(--ant-box-shadow-tertiary, none);
    }
}
.ant-segmented:not(.ch-todo-list-segmented) .ant-segmented-item:has(.ant-segmented-item-input:checked) {
    animation: ch-segmented-selected-fallback 0s linear 500ms forwards;
}
/* To do list type selector (antd Segmented): primary fill when selected, secondary text when not. */
.ch-todo-list-segmented.ant-segmented {
    width: fit-content;
    align-self: flex-start;
    border-radius: var(--button-radius);
    font-size: var(--button-font);
    font-weight: var(--button-font-weight);
}
.ch-todo-list-segmented.ant-segmented .ant-segmented-item {
    color: var(--secondary-text-colour);
    border-radius: calc(var(--button-radius) - 2px);
    text-transform: capitalize;
}
.ch-todo-list-segmented.ant-segmented .ant-segmented-item-label {
    min-height: 32px;
    line-height: 32px;
    padding: var(--button-padding);
}
.ch-todo-list-segmented.ant-segmented .ant-segmented-item:not(.ant-segmented-item-selected):hover {
    color: var(--secondary-text-colour);
    background: var(--borderless-hover-on-surface);
}
/* Tab count pill: inverted - solid in the tab's text colour, with the tab's fill as its text. */
.ch-todo-list-segmented.ant-segmented .ch-todo-list-count {
    display: inline-block;
    min-width: 22px;
    margin-left: 8px;
    padding: 0 7px;
    border-radius: 11px;
    background: color-mix(in srgb, var(--secondary-colour) 18%, white);
    color: var(--secondary-text-colour);
    font-size: 0.85em;
    line-height: 20px;
    text-align: center;
}
.ch-todo-list-segmented.ant-segmented .ant-segmented-item-selected .ch-todo-list-count,
.ch-todo-list-segmented.ant-segmented .ant-segmented-item:has(.ant-segmented-item-input:checked) .ch-todo-list-count {
    background: color-mix(in srgb, var(--primary-colour) 11%, white);
    /* Dark text, not primary: primary is too light as text for some brands */
    color: var(--on-surface-colour);
}
/* Fill the checked item straight away (antd only adds -selected after the thumb slide ends) and keep the thumb
   invisible - it dragged primary under the old item's green text. It must still animate so antd finishes the switch. */
.ch-todo-list-segmented.ant-segmented .ant-segmented-item,
.ch-todo-list-segmented.ant-segmented .ant-segmented-item:hover {
    transition: none;
}
.ch-todo-list-segmented.ant-segmented .ant-segmented-item-selected,
.ch-todo-list-segmented.ant-segmented .ant-segmented-item:has(.ant-segmented-item-input:checked),
.ch-todo-list-segmented.ant-segmented .ant-segmented-item:has(.ant-segmented-item-input:checked):hover {
    background: var(--primary-colour);
    color: var(--on-primary-colour);
    box-shadow: none;
}
.ch-todo-list-segmented.ant-segmented .ant-segmented-thumb {
    opacity: 0;
}
/* Test names (OLNA student results dialog) - keep their own casing, scroll sideways when there are many. */
.ch-todo-list-segmented.ch-test-name-segmented.ant-segmented {
    max-width: 100%;
    overflow-x: auto;
}
.ch-todo-list-segmented.ch-test-name-segmented.ant-segmented .ant-segmented-item {
    text-transform: none;
}
/* Empty state for a test the student hasn't started (OLNA student results dialog). */
.ch-test-not-started {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 96px;
    padding: 24px 16px;
    color: rgba(var(--on-surface-colour-RGB), .55);
    animation: ch-test-not-started-fade 0.3s ease-out backwards;
}
/* Waits out the dialog's own open transition, so the fade is actually seen on first open. */
.ch-test-not-started--opening {
    animation-delay: 0.05s;
}
/* Fades the panel in when shown (first open, or switching to its tab). */
@keyframes ch-test-not-started-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}
/* Keeps the panel from collapsing when it sits beside a completed test's results. */
.ch-test-not-started--tall {
    min-height: 240px;
}
.ch-test-not-started .MuiSvgIcon-root {
    font-size: 32px;
}
/* To do list table scrolls its own rows, so no outer scroll/cap. */
.ch-dashboard-blk-body.ch-todo-list-body {
    max-height: none;
    overflow-y: visible;
}
.ch-dashboard-blk-subhead {
    font-size: 16px;
    font-weight: 600;
}
.ch-dashboard-item-blk {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    padding: 4px 0;
}
.ch-menuWidget {
    padding: 0;
    width: 256px;
}
.ch-menuWidget-head {
    background: var(--secondary-colour);
    color: var(--on-secondary-colour);
    padding: var(--spacing-unit);
    text-align: center;
    font-size: 16px;
    font-weight: 600;
}
.ch-toDo-blk {
    border: none;
    border-radius: var(--component-radius);
    position: relative;
    width: 100%;
    font-size: 12px;
    padding: var(--small-spacing-unit);
    padding-left: calc(var(--small-spacing-unit) + 4px);
    cursor: pointer;
}
.ch-toDo-blk+.ch-toDo-blk {
    margin-top: 12px;
}
.ch-toDo-blk+.ch-toDo-blk:before {
    content: "";
    position: absolute;
    width: 1px;
    left: 50%;
    bottom: calc(100% + 2px);
    border-left: 1px dashed #000;
    height: 8px;
}
.ch-toDo-blk:after {
    border-radius: 3px;
    content: "";
    position: absolute;
    width: 6px;
    left: 0;
    top: 0px;
    bottom: 0px;
}
.ch-toDo-blk-1 {
    --toDo1: 247, 185, 100;
    background: rgba(var(--toDo1), 0.2);
}
.ch-toDo-blk-1:hover {
    background: rgba(var(--toDo1), 0.4);
}
.ch-toDo-blk-1:focus-visible {
    outline: var(--input-focus-size) solid rgba(var(--toDo1), 1);
    outline-offset: 1px;
}
.ch-toDo-blk-1 span {
    color: rgba(var(--toDo1), .8);
    text-shadow: 0 0 0 rgba(0, 0, 0, 1);
}
.ch-toDo-blk-1:after {
    background: rgb(var(--toDo1));
}
.ch-toDo-blk-2 {
    --toDo2: 117, 203, 73;
    background: rgba(var(--toDo2), 0.2);
}
.ch-toDo-blk-2:hover {
    background: rgba(var(--toDo2), 0.4);
}
.ch-toDo-blk-2:focus-visible {
    outline: var(--input-focus-size) solid rgba(var(--toDo2), 1);
    outline-offset: 1px;
}
.ch-toDo-blk-2 span {
    color: rgba(var(--toDo2), .8);
    text-shadow: 0 0 0 rgba(0, 0, 0, 1);
}
.ch-toDo-blk-2:after {
    background: rgb(var(--toDo2));
}
.ch-toDo-blk-3 {
    --toDo3: 232, 101, 197;
    background: rgba(var(--toDo3), 0.2);
}
.ch-toDo-blk-3:hover {
    background: rgba(var(--toDo3), 0.4);
}
.ch-toDo-blk-3:focus-visible {
    outline: var(--input-focus-size) solid rgba(var(--toDo3), 1);
    outline-offset: 1px;
}
.ch-toDo-blk-3 span {
    color: rgba(var(--toDo3), .8);
    text-shadow: 0 0 0 rgba(0, 0, 0, 1);
}
.ch-toDo-blk-3:after {
    background: rgb(var(--toDo3));
}
.ch-toDo-blk-4 {
    --toDo4: 175, 137, 255;
    background: rgba(var(--toDo4), 0.2);
}
.ch-toDo-blk-4:hover {
    background: rgba(var(--toDo4), 0.4);
}
.ch-toDo-blk-4:focus-visible {
    outline: var(--input-focus-size) solid rgba(var(--toDo4), 1);
    outline-offset: 1px;
}
.ch-toDo-blk-4 span {
    color: rgba(var(--toDo4), .8);
    text-shadow: 0 0 0 rgba(0, 0, 0, 1);
}
.ch-toDo-blk-4:after {
    background: rgb(var(--toDo4));
}


.ch-dashboard-item-column-main {
    display: grid;
}

.ch-dashboard-item-column-main div {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ch-dashboard-note .ch-dashboard-blk-inner {
    border: 1px solid var(--border-colour);
}
/*.ch-dashboard-note .ch-dashboard-blk-inner {*/
/*    !*border: 1px solid var(--border-colour);*!*/
/*}*/

.ch-dashboard-note-title {
    border-bottom: 1px solid var(--border-colour);
}
.ch-dashboard-list tr {
    border-bottom: 1px solid var(--border-colour);
}
.ch-dashboard-list tr:last-child {
    border-bottom: unset;
}
.ch-dashboard-list th {
    font-width: 600;
    font-size: 12px;
    padding-bottom: calc(var(--spacing-unit) * 2);
    font-weight: bold;
}
.ch-dashboard-list td {
    font-size: 13px;
    padding: var(--spacing-unit) 0 var(--spacing-unit) 0;
}
.ch-dashboard-item-title {
    font-weight: bold;
}

.ch-listItem-testResults {
    display: flex;
    flex-direction: row;
    position: relative;
    height: 8px;
    max-width: 30rem;
    align-self: center;
}
.ch-testResult-mark {
    display: flex;
    flex-grow: 1;
    min-width: 3px;
    position: relative;
    height: 100%;
    padding-left: 1px;
}
.ch-testResult-mark:first-child {
    padding-left: 0;
}
.ch-testResult-mark-inner {
    background: var(--incomplete-colour);
    position: relative;
    height: 100%;
    width: 100%;
}
.ch-testResult-mark-success {
    background: var(--correct-colour);
}
.ch-testResult-mark-fail {
    background: var(--incorrect-colour);
}
.ch-testAssignment {
    border-bottom: 1px solid var(--border-colour);
    padding: var(--spacing-unit) 0;
    padding-right: var(--spacing-unit);
    width: 100%;
}
.ch-testAssignment-details {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}
.ch-testAssignment:last-child {
    border-bottom: unset;
}
.ch-listItem-trailResults {
    display: flex;
    position: relative;
}
.ch-listItem-trailResults svg {
    position: absolute;
    left: 0;
    width: 100%;
}
.ch-listItem-trailResults text {
    fill: rgba(0, 0, 0, .54);
    font-size: 10px;
}
.ch-trail-result-marks {
    display: flex;
    flex: 1;
    padding-left: 32px;
}
.ch-trail-result-mark {
    display: flex;
    align-items: flex-end;
    /*flex: auto;*/
    height: 100%;
    padding: 0 1px;
    max-width: 40px;
    width: 100%;
}
.ch-trail-result-mark div {
    position: relative;
    width: 100%;
}
.ch-trail-result-mark-skipped {
    background: pink;
}
.ch-trail-result-mark-noResult {
    background: var(--marked-colour);
}
.ch-trail-result-mark-correct {
    background: var(--correct-colour);
}

.ch-self-mark-option {display: inline-block; vertical-align: middle; width: 20px; height: 20px; margin: 0 var(--small-spacing-unit); cursor: pointer; border-radius: 50%; background-color: rgba(0, 0, 0, .26);}
.ch-self-mark-selected-1 {background-color:#BD0000;opacity:1;}
.ch-self-mark-selected-2 {background-color:#FF7400;opacity:1;}
.ch-self-mark-selected-3 {background-color:#FFC607;opacity:1;}
.ch-self-mark-selected-4 {background-color:#8BC34A;opacity:1;}

/*react-big-calendar styles*/
.ch-dashboard-blk-calendar {
    height: 480px;
}
.ch-dashboard-blk-half .ch-dashboard-blk-calendar {
    height: 320px;
}
.ch-dashboard-blk-half .rbc-btn-group {
    font-size: 12px;
}
.ch-dashboard-blk-half .rbc-toolbar-label {
    font-size: 14px;
}
.ch-dashboard-blk-half .rbc-month-view {
    font-size: 10px;
}
.ch-dashboard-blk-half .rbc-toolbar button {
    padding: 0.200rem .55rem;
    cursor: pointer;
}
.ch-dashboard-blk-half .rbc-event, .ch-dashboard-blk-half .rbc-day-slot, .ch-dashboard-blk-half .rbc-background-event,
.rbc-overlay .rbc-event, .rbc-overlay .rbc-day-slot, .rbc-overlay .rbc-background-event,
.rbc-event.rbc-selected, .rbc-day-slot .rbc-selected.rbc-background-event {
    padding: 0;
    background-color: transparent;
    border-radius: 0;
}
.rbc-date-cell .rbc-button-link {
    cursor: default;
}
.rbc-event:focus, .rbc-day-slot .rbc-background-event:focus {
    outline: none;
}
.rbc-event-test, .rbc-event-pathway, .rbc-event-competition {
    padding: 1px 2px;
}
.rbc-event-test {
    background: var(--rbc-event-test-colour);
}
.rbc-event-pathway {
    background: var(--rbc-event-pathway-colour);
}
.rbc-event-competition {
    background: var(--rbc-event-competition-colour);
}

.reactNav .gen-cont #ln-content {
    margin: 0 0 0 0px;
}

.reactNav .gen-sub-cont {border: none;}
.reactNav .gen-sub-cont.widget-block {border:1px solid #E0E0E0;max-width: 700px}
.reactNav .embeddedWidget .gen-sub-cont.widget-block {border:unset;}
.widgetDialog .gen-sub-cont.widget-block {border:none;max-width:unset}
.gsc-star-blk {
    border: 1px solid var(--border-colour);
}

.reactNav .js-stickyNav { display: none}

.reactNav .helpVideo { display: none}

.reactNav .question-cont.gen-sub-cont {
    border: none !important;
}

.reactNav .cont-question-content-block {
    border-bottom: 1px solid var(--border-colour);
}

.reactNav .cup-text {
    max-width: unset !important;
    padding: 0 0 0 0 !important;
}

.reactNav ::-webkit-scrollbar {width: 10px; height: 10px}
.reactNav ::-webkit-scrollbar-track {background: #e1e1e1;}
.reactNav ::-webkit-scrollbar-thumb {background: #888;}
.reactNav ::-webkit-scrollbar-thumb:hover {background: #555;}

.ch-page-header .ch-page-header-title {
    display: flex;
    align-items: center;
    justify-content: center;
}
.ch-page-header .ch-page-header-title,
.ch-syllabus-title span {
    background-color: rgba(0, 0, 0, .54);
    border-radius: var(--component-radius);
    color: #FFF;
}
.ch-page-header .ch-page-header-title.lesson-title {
    margin-top: 1px;
    margin-bottom: 1px;
    border-radius: var(--component-radius);
    align-content: center;
}

.ch-page-header .cont-head-icon {
    width: 60px;
    height: 60px;
}

.ch-page-header-right .ch-loader {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, .54);
    border-radius: var(--component-radius);
    margin: 3px 3px;
}

.ch-page-header .ch-page-header-right {
    flex-direction: row;
    align-items: center;
    padding-right: var(--large-spacing-unit);
}

.ch-page-header.compressed .ch-page-header-right {
    flex-direction: row;
    align-items: center;
    padding-right: 24px;
}

.ch-page-header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}


.ch-page-header-brand-main, .ch-page-header-brand-second {
    display: flex;
    align-self: flex-end;
}

.ch-page-header-lesson-title {
    font-size: 1rem;
    margin: 0;
}

.ch-syllabus-title {
    font-size: 13px;
    font-weight: 600;
    position: relative;
    text-align: right;
    line-height: 2.8em;
    white-space: nowrap;
}
.ch-syllabus-title span {
    padding: var(--spacing-unit);
}
.ch-report-key {
    display: flex;
    justify-content: space-around;
    font-size: 11px;
    margin: 0 0 5px 0;
}

.ch-report-key-item-title {
    font-weight: bold;
}

.ch-tab-scroller {
    overflow-y: hidden;
}
.ch-tab-scroller-area {
    -webkit-overflow-scrolling: touch;
    display: flex;
    overflow-x: scroll;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.ch-tab-scroller-area::-webkit-scrollbar {
    display: none;
}
.ch-tab-scroller-content {
    position: relative;
    display: flex;
    flex: 1 0 auto;
    transform: none;
    will-change: transform;
}
.ch-tab-scroller-content.ch-lesson-content-two-panel {
    flex: 1 1 calc(30% - var(--spacing-unit, 8px) * 2);
    min-width: 380px;
}
.ch-tab-left-area {
    display: flex;
    flex: 1;
    align-items: center;
}
.ch-tab-right-area {
    display: flex;
    flex: 1;
    justify-content: flex-end;
    align-items: center;
}
.ch-tab-scroller-two-panel {
    padding: 0 var(--spacing-unit, 8px);
    box-sizing: border-box;
}
.ch-tab-bar {
    margin-left: -2px;
    padding: 0 2px;
    box-sizing: content-box;
}
.ch-tabs .ant-tabs-nav {
    display: flex;
    margin: 0;
}

html .ui-tabs .ui-tabs-nav .ui-tabs-anchor,
.ch-tab-bar a,
.ntf .gen-sub-tab a {
    justify-content: center;
    white-space: nowrap;
}
html .ui-tabs .ui-tabs-nav .ui-tabs-anchor,
.ch-tab-bar .js-gen-tab,
.ntf .gen-sub-tab a,
.ch-tabs .ch-tab {
    background: transparent;
    border: none;
    color: var(--on-surface-colour) !important;
    display: flex;
    outline: none;
    align-items: center;
    justify-content: center;
    max-width: 360px;
    min-width: 90px;
    height: auto;
    min-height: 40px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    padding: 0 16px;
    position: relative;
    text-transform: none;
    border-radius: var(--component-radius);
}
.ch-tabs-fullWidth .ant-tabs-nav-list {
    width: 100%;
}
.ch-tabs-fullWidth .ant-tabs-tab {
    flex: 1;
    max-width: unset;
}
.ch-tabs-fullWidth .ant-tabs-nav-operations {
    display: none !important;
}
.ch-tab-content {margin: var(--spacing-unit) var(--spacing-unit) var(--spacing-unit) var(--spacing-unit);}
.ant-tabs-tab {
    margin: 0 !important;
    padding: 0 !important;
}
.ant-tabs-tab .ant-tabs-tab-btn,
.ant-tabs-tab .ch-tab {
    position: relative;
    height: 100%;
    width: 100%;
}

.ant-tabs-tab:not(.ant-tabs-tab-disabled) {
    font-weight: 600;
}

.ant-tabs-tab.ant-tabs-tab-disabled {
    cursor: not-allowed !important;
}

.ant-tabs-tab.ant-tabs-tab-disabled .ant-tabs-tab-btn {
    pointer-events: none;
}

.ant-tabs-content {
    height: 100%;
    position: relative;
}

html .ui-tabs .ui-tabs-active .ui-tabs-anchor,
.ch-tab-bar .js-gen-tab.sel,
.ntf .gen-sub-tab.sel a,
.ch-tabs .ant-tabs-tab-active .ch-tab {
    color: var(--secondary-text-colour) !important;
    fill: var(--secondary-text-colour);
}
html .ui-tabs .ui-tabs-active .ui-tabs-anchor:after,
.ch-tab-bar .js-gen-tab.sel:after,
.ntf .gen-sub-tab.sel a:after {
    content: '';
    position: absolute;
    width: 100%;
    bottom: 0;
}
html .ui-tabs .ui-tabs-active .ui-tabs-anchor:after,
.ch-tab-bar .js-gen-tab.sel:after,
.ntf .gen-sub-tab.sel a:after,
.ch-tabs .ant-tabs-ink-bar {
    background: var(--secondary-text-colour);
    height: 2px !important;
}

html .ui-tabs .ui-tabs-active .ui-tabs-anchor:focus-visible,
.ch-tab-bar .js-gen-tab:focus-visible,
.ch-tabs .ant-tabs-ink-bar:focus-visible {
    box-shadow: 0 0 0 var(--input-borderless-focus-size) var(--focus-on-surface) inset;
}

.ch-tabs-lvl2 .ant-tabs-nav-list {
    gap: calc(var(--spacing-unit) / 2);
    width: 100%;
}
.ch-tabs-lvl2 .ant-tabs-tab {
    height: 40px;
    background: var(--border-colour);
    flex: 1;
    border-radius: var(--component-radius);
}
.ch-tabs-lvl2 > .ant-tabs-nav {
    margin: 0;
}
.ch-tabs-lvl2 > .ant-tabs-nav::before {
    content: none;
}
.ch-tabs-lvl2 .ant-tabs-tab.ant-tabs-tab-focus {
    box-shadow: 0 0 0 var(--input-borderless-focus-size) var(--focus-on-surface) inset;
}
.ch-tabs-lvl2 .ant-tabs-tab-btn:focus,
.ch-tabs-lvl2 .ant-tabs-tab-btn:focus-visible {
    outline: none !important;
}
.ch-tabs-lvl2 .ant-tabs-tab .ant-tabs-tab-btn {
    display: flex;
    align-items: center;
    justify-content: center;
}
.ch-tabs-lvl2 .ant-tabs-tab .ant-tabs-tab-btn:hover {
    color: var(--secondary-text-colour);
}
.ch-tabs-lvl2 .ant-tabs-tab.ant-tabs-tab-active {
    background-color: var(--secondary-colour);
}
.ch-tabs-lvl2 .ant-tabs-tab-active.ant-tabs-tab-focus {
    box-shadow: 0 0 0 var(--input-borderless-focus-size) var(--focus-on-secondary) inset;
}
.ch-tabs-lvl2 .ant-tabs-tab.ant-tabs-tab-active .ant-tabs-tab-btn {
    color: var(--on-secondary-colour);
}
.ch-tabs-lvl2 .ant-tabs-ink-bar {
    display: none;
}

.ch-tab-bar a.ch-tab-icon {
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: unset;
    margin: 4px;
}
.ch-tab-bar a.ch-tab-icon img {
    display: flex;
    height: 24px;
    width: 24px;
}
.ch-tab-bar a.ch-tab-icon:not(.ch-desmos-tab-icon) img {
    filter: invert(100%);
    opacity: .87;
}
@media (hover: hover) {
    .ch-tab-scroller-content a:hover,
    .ch-tabs .ch-tab:hover {
        background: var(--hover-on-surface);
        text-decoration: none;
    }
}

.ch-tab-scroller-content a.selected {
    background: var(--input-colour);
    filter: none;
}

.ch-tab-bar a.ch-tab-icon.selected img {
    filter: none;
    opacity: unset;
}

.ch-expand-box-blk {
    padding: 6px 0;
    border-bottom: 1px solid var(--border-colour);
}
.ch-expand-box-blk:last-child {
    border-bottom: unset;
}
.ch-expand-box-head {
    display: flex;
    flex-direction: row;
    align-items: center;
    outline: none;
    font-weight: bold;
    cursor: pointer;
}
.ch-expand-box-body {
    overflow: hidden;
    max-height: 100vh;
    transition: max-height var(--ani-mid) var(--easing) 0s;
    padding-top: 4px;
}
.ch-expand-box-blk-closed .ch-expand-box-body {
    max-height: 0;
}
.ch-expand-box-blk-closed .ch-expand-box-indicator {
    transform: rotate(-90deg);
}

.ch-content-error {
    color: var(--error-colour);
    font-weight: bold;
    display: flex;
    justify-content: center;
}

.ch-content-main-error.ch-content-error {
    height: 100vh;
    align-items: center;
    flex: 1;
}

.ch-login-message-subject {
    margin: var(--small-spacing-unit) 0 0 0;
    font-weight: bold;
}

/* A message's images and embeds fit it, as they do in the editor (marketing's banners are thousands of pixels wide) */
.ch-message-body img,
.ch-message-body iframe {
    max-width: 100%;
}
.ch-message-body img {
    height: auto;
}
/* On the dashboard (the welcome widget's messages) an image is no taller than 300px either. object-fit keeps its shape
   when a width set on it would otherwise squash it */
.ch-login-message-body img {
    max-height: 300px;
    object-fit: contain;
    object-position: left;
}

.ch-dashboard-welcome-notes {
    margin: var(--small-spacing-unit) 0;
}

.ch-dashboard-welcome-note {
    margin: var(--small-spacing-unit) 0;
}

.ch-dashboard-welcome-note-title {
    margin: var(--small-spacing-unit) 0 0 0;
    font-weight: 600;
}

.ch-menu-previous-next {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ch-menu-previous-next-text {
    font-weight: 600;
}

.ch-menu-previous-icon, .ch-menu-next-icon {
    font-size: 24px;
    width: 26px;
    height: 26px;
}

.ch-menu-previous-next a {
    padding: var(--small-spacing-unit) var(--small-spacing-unit);
    color: black;
    display: inline-flex;
    align-items: center;
}

.ch-menu-previous-next a.disabled {
    text-decoration: unset;
    opacity: var(--disabled-alpha);
    /*color: rgb(var(--on-surface-colour-RGB), var(--disabled-alpha));*/
    /*fill: rgb(var(--on-surface-colour-RGB), var(--disabled-alpha));*/
}

.compressed .ch-menu-previous-next a {
    padding: 0 0;
}

.ch-menu-previous-next a:hover:not(.disabled) {
    background-color: var(--borderless-hover-on-surface);
    border-radius: var(--input-radius);
    text-decoration: none;
}

.ch-menu-block {
    /*border-top: 1px solid var(--border-colour);*/
    border-bottom: 1px solid var(--border-colour);
    padding: var(--small-spacing-unit) var(--small-spacing-unit);
}

.ch-overflow-ellipse {
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}
.ch-hideVis {
    visibility: hidden;
    overflow: hidden;
    height: 0;
    width: 0;
}

.ch-select-loading .ant-select-selection-item {
    color: transparent !important;
}
.ch-select-loading .ant-select-selection-placeholder {
    color: transparent !important;
}

.reactNav .jq-icon-success {
    background-color: var(--primary-colour);
    color: white;
}

.reactNav .jq-icon-error {
    background-color: var(--error-colour);
    color: white;
}

.reactNav .ch-base .exam #examSectionTabs .ui-tabs-tab[aria-selected="false"] a {
    background-color: #fff !important;
    color: #000 !important;
}

.reactNav .ch-base .exam #examSectionTabs .ui-tabs-tab[aria-selected="true"] a {
    background-color: #fff !important;
    color: #000 !important;
}

.reactNav .ch-base .exam .ui-tabs-nav .ui-state-default, .reactNav .exam .ui-tabs-anchor {
    background-color: #fff !important;
    color: #000 !important;
}

.reactNav .ch-base .exam #examSectionTabs #section-a, .reactNav .exam #examSectionTabs #section-b{
    background-color: #fff !important;
}

/* TODO: also blocks Form.Item tooltip icons (re-enabled only on the UI colours page); DiagnosticReports' two are placeholders */
.reactNav .ant-form-item-label {
    pointer-events: none;
    min-width: 90px;
    /*max-width: 90px;*/
}

.ch-search-items-blk {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
}
.ch-search-items {
    flex-direction: column;
    display: flex;
    flex: 1;
    overflow: auto;
}
.ch-search-items li::marker {
    color: var(--link-colour);
}
/* Search drawer results (nav/Search.js). One muted grey for every secondary line: the brand's
   --secondary-text-colour is an accent (orange in HOTmaths), not a text grey. #595959 is 7:1 on white. */
.ch-search-result {
    --ch-search-muted: #595959;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    gap: 2px;
}
/* A result: its name and icon on one line (ResultName), the only underlined part, then its text and chapter */
.ch-link.ch-search-result-link {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    text-decoration: none;
}
/* Only the name is underlined, hovered too: the app's a:hover underline would also run under the grey lines */
.ch-link.ch-search-result-link:hover,
.ch-link.ch-search-result-link:focus,
.ch-link.ch-search-location:hover,
.ch-link.ch-search-location:focus {
    text-decoration: none;
}
.ch-search-result-name {
    display: flex;
    align-items: flex-start;
    gap: 6px;
}
.ch-search-result-name > span:first-child {
    text-decoration: underline;
}
.ch-search-result-icon {
    flex: none;
    margin-top: 2px;
    color: var(--link-colour);
    visibility: hidden;
}
.ch-link.ch-search-result-link:hover .ch-search-result-icon,
.ch-link.ch-search-result-link:focus-visible .ch-search-result-icon {
    visibility: visible;
}
/* A disabled tab that needs a keyword: the keyword warning's own icon and colour (AntD Alert, type warning) */
.ch-search-tab-needs-keyword.MuiSvgIcon-root {
    font-size: 1rem;
    color: var(--ant-color-warning, #faad14);
}
.ch-search-place {
    font-size: 0.8125rem;
    color: var(--ch-search-muted, #595959);
}
/* Where a media item or term is used: a small label, then its lessons, in a box with a bar down its left side (as
   the question workspace, .ch-question-workspace) */
.ch-search-locations {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    align-self: stretch;
    box-sizing: border-box;
    width: 100%;
    gap: 6px;
    margin-top: 8px;
    padding: 8px 12px 10px;
    border: 1px solid rgba(0, 0, 0, .23);
    border-left: 4px solid var(--input-colour);
    border-radius: var(--input-radius);
    background: rgba(var(--input-colour-RGB), .04);
}
.ch-search-locations-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--ch-search-muted, #595959);
}
.ch-search-location-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.ch-search-location-list > li::marker {
    content: none;
}
/* A lesson's name (underlined: the link), then its text and chapter beneath, left-aligned */
.ch-link.ch-search-location {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
    font-size: 0.875rem;
    text-align: left;
    text-decoration: none;
}
.ch-link.ch-search-location:hover .ch-search-result-icon,
.ch-link.ch-search-location:focus-visible .ch-search-result-icon {
    visibility: visible;
}
.ch-search-location-course {
    font-size: 0.8125rem;
    color: var(--ch-search-muted, #595959);
}
.ch-link.ch-search-location-toggle {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
    font: inherit;
    font-size: 0.875rem;
    text-decoration: none;
}
.ch-snackbar-container #notistack-snackbar {
    width: 100%;
}

.ch-snackbar {
    width: 100%;
}

.ch-snackbar-content {
    flex: 1;
    display: flex;
    flex-direction: row;
    width: 100%;
}

.ch-snackbar-title {
    font-weight: 600;
    font-size: 14px;
    padding: 0 var(--spacing-unit) 0 0;
}

.ch-snackbar-close-btn {
    min-height: unset;
    margin-left: auto;
}

.ch-snackbar-close-btn:focus-visible {
    outline-color: #fff !important;
}

#searchResourcesForm > div{
    width:100%
}

#searchResourcesForm .ant-form-item-label{
    min-width:120px;
}

.notistack-SnackbarContainer {
    right: 40px !important;
}
.link-url-in-bookmark-nav .ant-menu-title-content:hover {
    text-decoration: underline;
}
.link-url-in-bookmark-nav:not(:last-child) {
    height: 25px!important;
    line-height: 25px!important;
    /*margin-top:0!important;*/
    margin-bottom:0!important;
}
.link-url-in-bookmark-nav:last-child {
    height: 25px!important;
    line-height: 25px!important;
    /*margin-top:0!important;*/
    margin-bottom:4px!important;
}
/*end bookmarks nav menu*/

.reviewBlk {
    list-style: none;
    border-top: 1px solid var(--border-colour);
    margin-top: var(--spacing-unit);
    padding-top: var(--spacing-unit);
}
.reviewBlk:first-child {
    border-top: none;
    margin-top: 0;
    padding-top: 0;
}
.reviewBlk ul {
    font-size: 12px;
    margin-top: var(--spacing-unit);
    padding-left: calc(var(--spacing-unit) * 3);
}

.ch-card{
    border: 1px solid var(--border-colour);
}

.ch-card.medium-box-radius{
    box-shadow: 1px 2px 5px 1px var(--box-shadow-colour);
}

.ch-card.small-box-radius{
    box-shadow: 0 1px 4px 1px var(--box-shadow-colour);
}

.ch-card.extra-small-box-radius{
    box-shadow: 0 0 4px 0 var(--box-shadow-colour);
}

.ch-card.tiny-box-radius{
    box-shadow: 0 0 1px 0 var(--box-shadow-colour);
}

.ch-assigned-results-table-shadow{
    padding: 0;
    border-radius: var(--component-radius);
}

.ch-card-expandable{
    display: flex;
    flex-direction: row;
    cursor: pointer;
    padding:2px;
}

.ch-card.rounded, .ch-card.rounded .ch-card-expandable {
    border-radius: var(--component-radius);
}

/* Card variant: outlined */
.ch-card.ch-card--outlined {
    border: 2px solid #c7c7c7;
    box-shadow: none;
    border-radius: var(--card-outlined-radius);
    padding: calc(var(--spacing-unit, 8px) * 2) calc(var(--spacing-unit, 8px) * 2);
}

.ch-card .ant-steps.ant-steps-small .ant-steps-item-title {
    font-size: 12px;
}

.ant-menu-submenu-title:focus-visible, .ant-menu:focus-visible {
    box-shadow: 0 0 0 var(--input-borderless-focus-size) var(--focus-on-surface) inset;
}

.ch-card.stepper-background {
    background: #F5F5F5;
}

/* table for jsps*/
.ch-general-table > thead > tr{
    background: var(--table-header-colour)!important;
    border-bottom: solid 2px var(--table-border-darkened-colour) !important;
}

.ch-general-table td{
    border-bottom: 1px solid var(--table-border-colour);
}
/* end table for jsps */

/* ag-grid table */
.ch-general-table-ag-grid .ag-header-cell {
    border-bottom: 3px solid var(--table-border-darkened-colour) !important;
    display: flex;
    align-items: center;
}
.ch-general-table-ag-grid .ag-cell {
    font-size: 12px;
    align-items: center;
}
.ant-checkbox-wrapper {
    display: flex;
    align-items: center;
    font-size: inherit;
}
.ant-checkbox-wrapper .ant-checkbox {
    top: 0;
}
.ant-checkbox-checked:after {
    animation: none !important;
}
.ant-checkbox-inner,
.ant-checkbox-inner:after {
    transition: none !important;
}

.ant-card {
    border-radius: var(--container-radius);
}

.ant-pagination {
    margin-top: 20px;
}

.ant-tabs-content select {
    cursor: pointer;
}

.ant-tabs-content select:disabled {
    cursor: default;
}

.ch-general-table-ag-grid {
    padding-bottom: 8px;
    border-color: var(--table-border-colour);
}

.ch-general-table-ag-grid .ag-pinned-left-header .ag-header-cell:last-child, .ch-general-table-ag-grid .pinned-left-border-right{
    border-right:3px solid var(--table-border-darkened-colour)!important;
}

.ch-general-table-ag-grid.height-156 .ag-pinned-left-header .ag-cell-label-container .ag-header-cell-label{
    top: 76px;
    left: 22px;
    position: absolute;
}

.ch-general-table-ag-grid.height-156 .ag-pinned-right-header .ag-cell-label-container .ag-header-cell-label{
    top: 76px;
    left: 38px;
    position: absolute;
}

.ch-general-table-ag-grid.aggregateV2 .ag-pinned-right-header .ag-cell-label-container .ag-header-cell-label{
    /*top: 150px;*/
    display:flex;
    justify-content: center;
    /*left: 38px;*/
    /*position: absolute;*/
}

.ch-general-table-ag-grid .ag-header {
    background: var(--table-header-colour)!important;
    border-bottom: solid 1px var(--table-border-darkened-colour) !important;
}

/*START for pinned columns right and left*/
/*.ch-general-table-ag-grid .ag-pinned-left-header .ag-header-group-cell:first-child {*/
/*    height:unset!important;*/
/*}*/
.ch-general-table-ag-grid .ag-pinned-right-header .ag-header-group-cell {
    height:unset!important;
}

.ch-general-table-ag-grid.height-156 .ag-pinned-right-header .ag-header-row.ag-header-row-column {
    top: -10px!important;
    height: 156px!important;
    border-left: 1px solid var(--table-border-darkened-colour)!important;
}

.ch-general-table-ag-grid.height-156 .ag-pinned-left-header .ag-header-row.ag-header-row-column {
    top: -10px!important;
    height: 156px!important;
    border-right: 3px solid var(--table-border-darkened-colour)!important;
}

/*.ch-general-table-ag-grid.aggregateV2 .ag-pinned-left-header .ag-header-row .ag-header-group-cell:first-child{*/
/*    border-top:none!important;*/
/*}*/

.ch-general-table-ag-grid.aggregateV2 .ag-header-row:not(:first-child) .ag-header-cell[col-id="studentName"],
.ch-general-table-ag-grid.aggregateV2 .ag-header-row:not(:first-child) .ag-header-cell[col-id="testTotal"]{
    border-top:none;
}

.ch-general-table-ag-grid.aggregateV2 .ag-pinned-left-header{
    border-right: 3px solid var(--table-border-darkened-colour)!important;
}

.ch-general-table-ag-grid.aggregateV2 .ag-pinned-right-header{
    border-left: 1px solid var(--table-border-darkened-colour)!important;
}

/* END for pinned columns right and left */

.ch-general-table-ag-grid .ag-header {
    background: var(--table-header-colour)!important;
}

.ch-general-table-ag-grid .ag-root-wrapper {
    border-top: 2px solid var(--table-border-colour)!important;
    border-bottom: 2px solid var(--table-border-colour)!important;
    border-right: 3px solid var(--table-border-colour)!important;
    border-left: 3px solid var(--table-border-colour)!important;
}
.ch-general-table-ag-grid.rounded-top .ag-root-wrapper {
    border-top-left-radius: var(--container-radius);
    border-top-right-radius: var(--container-radius);
}
/* end ag-grid table */

/* diagnosticReporting ch- classes (Results by Question/Newman Stage/Score vs. Time Taken/Test
   Comparison - see src/main/ui/diagnosticReporting/DiagnosticStyles.css for the rest) */
/* position:sticky removed - it fought ag-grid's row virtualization, sticking to the document
   instead of the grid's scroll viewport. !important since load order vs. ag-grid isn't reliable. */
.ch-question-format-row{
    background-color: var(--table-row-highlight-colour) !important;
}
.ch-question-number-row{
    background-color: var(--table-row-highlight-colour) !important;
}
/* Same tint as each other and their TOTAL cells (Utils.js, totalQuestionCol) - no divider needed between them, so the block reads as continuous. */
.ch-question-format-row.ag-row,
.ch-question-number-row.ag-row {
    border-bottom: none !important;
}

/* Marks where student rows end and per-question summary rows (DIFFICULTY/% ANSWERED/etc.) begin.
   !important - same specificity as ag-grid's own border-bottom, load order isn't reliable. */
.ch-summary-footer-row {
    border-top: 2px solid var(--table-border-darkened-colour, #8c8c8c) !important;
    background-color: var(--table-row-highlight-colour) !important;
}
/* % CORRECT row - bold-only, no background, just a thin top divider from the student rows above.
   Extra height comes from getRowHeight (JS), not CSS padding - ag-grid's fixed row height would just clip padding. */
.ch-percent-correct-row {
    border-top: 2px solid var(--table-border-darkened-colour, #8c8c8c) !important;
}

/* Small icon marking a collapsed multi-part question - otherwise no visual hint it's a group. */
.ch-question-number-group-cell{
    position: relative;
}
.ch-question-number-group-cell .ch-question-group-icon{
    position: absolute;
    top: 0px;
    right: 0px;
    width: 14px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px !important;
    line-height: 1;
    color: #fff;
    background-color: rgba(0, 0, 0, .45);
    border-radius: 50%;
    cursor: default;
}

/* "correct/total" fraction pill (FractionCellRenderer), matching the QuestionGroup result dialog's tag. */
.ch-fraction-tag{
    display: inline-block;
    box-sizing: border-box;
    text-align: center;
    font-size: 12px;
    height: 22px;
    line-height: 22px;
    width: 40px;
    color: #fff;
    border-radius: 4px;
    font-variant-numeric: tabular-nums;
}
/* Fully-rounded "pill" shape for the two Quartz-themed tables only - default 4px radius elsewhere. */
.ag-theme-quartz .ch-fraction-tag {
    border-radius: 11px;
}

/* Bolds the per-test TOTAL column's pill to mark it as the "headline" number, without losing its colour scale. */
#classQuestionView .ag-cell[col-id^="testTotal"] .ch-fraction-tag {
    font-weight: 700;
}

/* Brackets a multi-part question's leaf columns as one unit, without an extra header-group row. */
.ag-header-cell.ch-question-group-member{
    background-color: rgba(var(--on-surface-colour-RGB), .06);
    border-top: 2px solid rgba(var(--on-surface-colour-RGB), .35) !important;
}
.ag-header-cell.ch-question-group-start{
    border-left: 2px solid rgba(var(--on-surface-colour-RGB), .35) !important;
}
.ag-header-cell.ch-question-group-end{
    border-right: 2px solid rgba(var(--on-surface-colour-RGB), .35) !important;
}

#classQuestionView .ag-root-wrapper.ch-scroll-hint::after{
    opacity: 1;
}
#classQuestionView .ag-root-wrapper.ch-scroll-hint-pinned::before {
    opacity: 1;
}
.ag-theme-quartz .ag-root-wrapper.ch-scroll-hint::after {
    opacity: 1;
}
#scoreVsTimeGrid.ag-theme-quartz .ag-root-wrapper.ch-scroll-hint-pinned::before,
#comparisonViewGrid.ag-theme-quartz .ag-root-wrapper.ch-scroll-hint-pinned::before,
#newmanStageView.ag-theme-quartz .ag-root-wrapper.ch-scroll-hint-pinned::before,
#order-by-aggregate-view.ag-theme-quartz .ag-root-wrapper.ch-scroll-hint-pinned::before {
    opacity: 1;
}

/* Small "had trouble" flag badge, positioned absolutely in a corner so it never fights the
   pass/fail icon for centering. */
.ch-question-cell-icons{
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}
/* ag-grid clips a cell's overflow - flagged cells show it so the badge can sit past the corner.
   No z-index on the cell (it would trap the badge in its own stacking context, so a later flagged
   neighbour paints over it) - the badge itself carries the z-index instead. */
.ag-cell:has(.ch-had-trouble-flag){
    overflow: visible;
}
.ch-had-trouble-flag{
    z-index: 2;
    position: absolute;
    top: -6px;
    right: -4px;
    width: 14px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px !important;
    line-height: 1;
    color: #cc3232;
    background-color: rgba(255, 255, 255, .95);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .2);
    border-radius: 50%;
}

/* Total "had trouble" count in a student's name cell - red flag, not the dark per-cell badge,
   since it's not overlaying a coloured pass/fail cell here. */
.ch-student-had-trouble-count{
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 12px;
    font-weight: bold;
    color: #000;
}
.ch-student-had-trouble-count .material-icons{
    font-size: 14px;
    color: #cc3232;
}

/* Question content shown read-only (teacher question results): the app's input styles hide the browser's disabled look. */
.ch-readonly-question input:disabled,
.ch-readonly-question textarea:disabled,
.ch-readonly-question select:disabled {
    background-color: #f0f0f0;
    color: #6b6b6b;
    cursor: not-allowed;
}

/* "Part I" label beside a question part: the grey of the student view's PART label (.ch-student-question-card__part). */
.ch-question-part-label {
    color: #999;
}

/* Per-test visibility toggle tags - transitions outlined/solid instead of snapping instantly. */
.ch-toggle-visibility-tag{
    cursor: pointer;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.ch-report-note {
    color: #555555;
}

/* Stand-in for the grid while columnDefs/rowData recalculate - same height, so nothing shifts. */
.ch-grid-placeholder{
    box-sizing: border-box;
    padding: 16px;
    overflow: hidden;
    border: 1px solid rgba(var(--on-surface-colour-RGB), .15);
    border-radius: 4px;
}
.ch-grid-placeholder--loading{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border-color: var(--table-border-colour);
}
.ch-grid-placeholder__label{
    color: rgba(var(--on-surface-colour-RGB), .55);
    font-size: 14px;
}
/* Sits on top of the real grid (kept mounted) instead of replacing it - avoids the remount that
   caused a scroll jump on every filter/toggle change. Parent needs position:relative. */
.ch-grid-placeholder--overlay{
    position: absolute;
    inset: 0;
    /* Above ag-grid's own .ag-header-cell-resize (z-index: 2), or its handle shows through. */
    z-index: 5;
    background-color: var(--surface-colour, #fff);
}


/* All top-level headers (Student, group headers, standalone Pre-test/Post-test) share one
   consistent weight, rather than Student being bold while its neighbours sat lighter. */
.ag-header-cell.ch-student-header,
.ag-header-cell.ch-top-level-header {
    font-weight: 600;
}
.ag-header-group-cell.ch-test-phase-group-header {
    font-weight: 600;
    /* !important so ag-grid's column-hover highlighting can't darken this back. */
    background-color: var(--table-row-highlight-colour) !important;
    border-bottom: 1px solid var(--table-border-colour);
}
/* Results by Question's "Questions (test, date)" group header - same tint/weight level as
   Newman's stage headers. TOTAL's standalone header (see totalQuestionCol, Utils.js) matches it too. */
#classQuestionView.ag-theme-quartz .ag-header-group-cell.bold-header-group,
#classQuestionView.ag-theme-quartz .ag-header-cell[col-id^="testTotal"] {
    background-color: var(--table-row-highlight-colour) !important;
}
/* Results by Topic - same tint/weight convention as Results by Question/Newman above, so the
   header band reads as one block. Student name excluded - stays bold-only, matching other OLNA reports. */
#order-by-aggregate-view.ag-theme-quartz .ag-header-group-cell,
#order-by-aggregate-view.ag-theme-quartz .ag-header-cell:not(.ch-student-header) {
    background-color: var(--table-row-highlight-colour) !important;
    font-weight: 600;
}

/* Full-height line marking the end of each major group only, not between every column. */
.ag-theme-quartz .ag-header-cell.ch-test-phase-divider,
.ag-theme-quartz .ag-cell.ch-test-phase-divider {
    border-right: 1px solid var(--table-border-darkened-colour) !important;
}
/* Same divider, marking the START of a group instead of the end. */
.ag-theme-quartz .ag-header-cell.ch-test-phase-divider-start,
.ag-theme-quartz .ag-cell.ch-test-phase-divider-start {
    border-left: 1px solid var(--table-border-darkened-colour) !important;
}
/* Results by Question only - thicker for more obvious separation between tests' TOTAL columns. */
#classQuestionView.ag-theme-quartz .ag-header-cell.ch-test-phase-divider,
#classQuestionView.ag-theme-quartz .ag-cell.ch-test-phase-divider {
    border-right: 2px solid var(--table-border-darkened-colour) !important;
}

/* Results by Question - separates adjacent "Question format" titles with a short inset line
   rather than a full-height border. border-right:none !important is from the blanket .ag-cell
   rule in DiagnosticStyles.css, so the line is an ::after instead. */
#classQuestionView.ag-theme-quartz .ag-cell.ch-question-format-divider::after {
    content: '';
    position: absolute;
    top: 20%;
    bottom: 20%;
    right: 0;
    border-right: 1px solid var(--table-border-colour);
}

/* Same tint as the test-phase group headers, so Student reads as part of the same header band.
   Excludes the normally-invisible .ag-header-parent-hidden rowspan copy of this cell, whose own
   semi-transparent background was compounding into a darker tint than intended. */
#scoreVsTimeGrid.ag-theme-quartz .ag-header-cell.ch-student-header:not(.ag-header-parent-hidden),
#newmanStageView.ag-theme-quartz .ag-header-cell.ch-student-header:not(.ag-header-parent-hidden),
#classQuestionView.ag-theme-quartz .ag-header-cell.ch-student-header:not(.ag-header-parent-hidden),
#order-by-aggregate-view.ag-theme-quartz .ag-header-cell.ch-student-header:not(.ag-header-parent-hidden),
/* Newman Stage has no group row above its stage headers, so this single row is its only heading
   level - gets Student's tint too, for consistency. */
#newmanStageView.ag-theme-quartz .ag-header-cell.ch-top-level-header,
/* Belt-and-braces version of the Student rule, scoped through .ag-pinned-left-header's own
   separate header container so the tint wins regardless of cascade order. */
#newmanStageView.ag-theme-quartz .ag-pinned-left-header .ag-header-cell.ch-student-header,
#classQuestionView.ag-theme-quartz .ag-pinned-left-header .ag-header-cell.ch-student-header,
#order-by-aggregate-view.ag-theme-quartz .ag-pinned-left-header .ag-header-cell.ch-student-header {
    background-color: var(--table-row-highlight-colour) !important;
    border-bottom: 1px solid var(--table-header-colour) !important;
}

/* Divider between "Student" and the first group - lands on .ag-header-cell-comp-wrapper since
   under Quartz that inner wrapper doesn't stretch to the cell's rowspanned height on its own. */
.ag-header-cell.ch-student-header-divider .ag-header-cell-comp-wrapper {
    height: 100%;
    border: none;
    position: relative;
}
/* Divider itself - ~80% of the cell height, centred, matching ag-grid's own resize-handle bar. */
.ag-header-cell.ch-student-header-divider .ag-header-cell-comp-wrapper::after {
    content: '';
    position: absolute;
    top: 15%;
    right: 0;
    height: 70%;
    width: 1px;
    background-color: var(--table-border-colour);
}

/* The grey line under leaf question headers comes from this file's .ch-general-table-ag-grid
   .ag-header-cell border-bottom rule (confirmed via devtools). */
#classQuestionView .ch-class-question-view-v3 .ag-header-cell.question-centered-header {
    border-bottom: none !important;
}
/* end diagnosticReporting ch- classes */

/* antd table */
.ch-general-table-antd {
    /*margin-top: var(--medium-spacing-unit);*/
    padding: var(--small-spacing-unit);
    width:100%;
}

.ch-general-table-antd--nested {
    padding: 0;
}

.ch-general-table-antd.ant-table-wrapper .ant-table-cell-scrollbar {
    box-shadow:unset;
}

.ch-general-table-antd .editable-cell-expand-button{
    width: 28px;
    height: 28px;
    position: absolute;
    margin-top: 6px;
    cursor: pointer;
}

.ch-general-table-antd .ch-link{
    color: var(--hover-link-colour);
}

.ch-general-table-antd .ch-link:hover{
    color: var(--hover-link-colour);
    text-decoration: underline;
}

.ch-general-table-antd .row-title-highlight{
    background: var(--table-row-highlight-colour);
}

/* adds border to the end of the expanded tests */
.ch-general-table-antd .ant-table-row-level-1 + .ant-table-row-level-0 td{
    transition: none;
}

/* Fixes empty table not being responsive */
.ant-table-empty .ant-table-content {
    overflow-x: auto;
}

/* end antd table */

/* nested table, and table inside Collapse */
.ch-general-table-antd .ch-general-table-antd,
.ch-collapse .ant-collapse-item >.ant-collapse-content>.ant-collapse-content-box{
    padding:0;
}

.ch-collapse .ch-general-table-antd .ant-table-title{
    padding:var(--small-spacing-unit) 0 0 0!important;
}

.ch-collapse .ch-general-table-antd{
    padding:0;
}

.ch-general-table-antd .ch-general-table-antd table .ant-table-cell {
    font-size: .85em !important;
    padding: var(--medium-spacing-unit) var(--small-spacing-unit) !important;
}
/* end nested table */

.ch-btn-two-lines{
    padding:2px 8px;
}

.ch-center-elem {
    display:flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.ch-sml-font{
    font-size: .85em;
}

.ch-std-font{
    font-size: 1em;
}

.ch-med-font{
    font-size: 1.1em;
}

.ch-lrg-font{
    font-size: 1.3em;
}

.ch-xl-font{
    font-size: 1.7em;
}

.ch-xxl-font{
    font-size: 2em;
}

.ch-xxxl-font{
    font-size: 2.3em;
}

.ch-bold-small{
    font-weight:520;
}

.ch-bold{
    font-weight:bold;
}

.ch-italic{
    font-style:italic;
}
.ch-normal {
    font-weight: unset!important;
}

.ch-diag-progIcon-high {
    /*fill: rgba(var(--primary-colour-RGB), 1);*/
    fill: #A843FB;
}
.ch-diag-progIcon-mid {
    /*fill: rgba(var(--primary-colour-RGB), .54);*/
    fill: #DAADFF;
}
.ch-diag-progIcon-low {
    fill: transparent;
    stroke: var(--on-surface-colour);
    stroke-opacity: .75;
    stroke-width: .7;
}

.ch-dialog .MuiPaper-root {
    border-radius: var(--component-radius);
    overflow: hidden;
}
.ch-dialog-title {
    display: flex;
    align-items: center;
    padding: 0 calc(var(--spacing-unit) * 1.5);
    background: var(--dialog-title-bg-colour);
    color: var(--dialog-title-font-colour);
    font-weight: 500;
    width: 100%;
    min-height: 40px;
    border-radius: var(--component-radius) var(--component-radius) 0 0;
    overflow: hidden;
}
.ch-dialog-title h1 {
    font-size: 1.2em;
}
.ch-dialog-title svg {
    fill: #ffffff;
}
.ch-dialog-title .ch-icon-btn {
    margin: 0 calc(-1 * var(--spacing-unit) * 1.5) 0 0;
    height: 40px;
    width: 40px;
    border-radius: 0;
}
.ch-dialog-title-text {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.ch-dialog-title-text h1 {
    font-size: 1.1rem;
    font-weight: 600;
}

.ch-dialog-title-text svg {
    flex-shrink: 0;
    margin-right: var(--spacing-unit);
}

.ch-dialog-title-text span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ch-dialog-content {
    padding: var(--spacing-unit) !important;
    margin: 0;
}
.ch-dialog-content.fullscreen {
    width: 100%;
    height: 100%;
}
.ch-dialog-actions {
    padding-top: 0;
}

.ch-login-survey {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ch-check-feedback-assigned {
    fill: var(--success-colour);
}

.ch-non-expandable-row .ch-check-feedback-assigned {
    fill: #999;
}

.ch-expandable-row {
    cursor: pointer;
}

.ch-non-expandable-row {
    cursor: default;
    color: var(--focus-on-primary);
}

.ant-table-tbody > tr.ch-non-expandable-row:hover > td,
.ant-table-tbody > tr.ch-non-expandable-row > td.ant-table-cell-row-hover,
.ag-pinned-left-cols-container .ag-row-hover.no-hover {
    background: unset;
}

.second-color-highlight{
    background: rgba(var(--secondary-colour-RGB),.03)!important;
}

.ch-bg-hover-highlight:hover{
    background: var(--hover-bg-colour);
}

.ch-highlight {background-color:#ecefcf; padding: 4px 4px;border-radius: 4px}

.ch-letter-toolbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-content: center;
    row-gap: var(--spacing-unit);
    margin: 1rem 0;
}

@media screen and (max-width: 1024px){
    .ch-glossary {
        max-width: 97vw;
        padding: 0.25rem;
    }
}

.ch-glossary-definition img{
    max-width: 720px; /*prevents image going outside of accordion in Search Resources and then in the Dictionary tab */
}

.ch-glossary-definition p:has(img) {
    overflow-x: auto;
}

.ch-glossary-definition table:has(img) {
    display: block;
    overflow-x: auto;
}

.akit-blk {width: 800px;display: flex;flex-direction: row;}
.akit-main-panel, .akit-options-panel {display: flex;}
.akit-main-panel {border: 1px solid rgba(0, 0, 0, 0.06);flex: 1;flex-direction: column;}
.akit-options-panel {margin-left: var(--spacing-unit);}
.akit-techer-options {display: flex;flex-direction: column;align-items: flex-end;}
.akit-head {background: rgba(0,0,0,.1);text-align: center;font-size: 18px;padding: var(--small-spacing-unit) 0;}
.akit-main, .akit-history {padding: calc(var(--spacing-unit) * 2);}
.akit-history {background: rgba(0,0,0,.03);text-align: center;}
.akit-main {}

.ch-text-emphasis {
    font-weight: bold;
    color: var(--secondary-text-colour);
}

.ch-icon {fill: var(--on-primary-colour); stroke: var(--primary-colour)}

.ch-paging {}
.ch-paging .ant-pagination-item, .ch-paging .ant-pagination-prev,.ch-paging .ant-pagination-next {border: 1px solid var(--border-colour);}
.ch-paging .ant-pagination-item-active {background: transparent;border: solid 2px var(--on-surface-colour);}
.ch-paging .ant-pagination-item-active:hover {background: var(--border-colour);border-color: var(--on-surface-colour);}
.ch-paging .ant-pagination-item-active a,
.ch-paging .ant-pagination-item-active:hover a {color: var(--on-surface-colour);line-height: calc(var(--ant-pagination-item-size) - 4px);}
.ch-paging .ant-pagination-prev,.ch-paging .ant-pagination-next {background: var(--button-colour);border: 2px solid var(--button-colour);}
.ch-paging .ant-pagination-prev:hover,.ch-paging .ant-pagination-next:hover {background: transparent;}
.ch-paging .ant-pagination-prev:hover button,.ch-paging .ant-pagination-next:hover button {background: transparent !important;}
.ch-paging .ant-pagination-prev svg,.ch-paging .ant-pagination-next svg {fill: var(--on-button-colour);}
.ch-paging .ant-pagination-prev:hover svg,.ch-paging .ant-pagination-next:hover svg {fill: var(--button-colour);}
.ch-paging .ant-pagination-disabled {background: transparent !important;border: 1px solid var(--border-colour) !important;}
.ch-paging .ant-pagination-disabled svg {fill: var(--border-colour) !important;}


.ch-disable-events {
    pointer-events:none;
}

.cont-non-template-html .ch-example-anchor {
    margin-bottom: var(--small-spacing-unit);
}

.ch-suggester-options-wrapper {
    overflow: hidden;
    position: fixed;
    border: 1px solid var(--border-colour);
    border-radius: var(--container-radius);
    background-color: white;
    z-index: 99;
}

.ch-suggester-options {
    overflow-y: auto;
    overflow-x: hidden;
    max-height: 120px;
}

.ch-suggester-options * {
    cursor: pointer;
    width: 100%;
    justify-content: left;
}

.recharts-surface{
    overflow:visible;
}

.ch-focus-silent {
    outline: none !important;
    box-shadow: none !important;
}
.ch-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
    white-space: nowrap;
}

.cont-base .ch-desmos-wrapper {
    clear: both;
    font-size: 110%;
    background-color: #d1e5d9;
    padding: var(--spacing-unit);
    font-weight: bold;
    border-radius: calc(var(--component-radius) * 2);
}
.ch-desmos-header {display: flex;flex-direction: row;align-items: center}
.ch-desmos-name {color: #127a3d;font-weight: bold;display: inline-block;padding: var(--small-spacing-unit);}
.ch-desmos-description { color: #000; font-size: 80%; padding-top: 5px}
.ch-desmos-instructions {}
.ch-accessibility-label {display: none}
.ch-empty-name {font-style: italic}
.ch-hide {display: none !important;}

.ch-complete-indicator {color: var(--on-complete-colour) !important; background-color: var(--complete-colour) !important;}
.ch-skipped-indicator {color: #fff; background-color: #d9d9d9 !important;}
.ch-selected-indicator {color: var(--on-input-colour) !important; background-color: var(--input-colour) !important;}

.ch-correct-bg {background-color: var(--correct-colour) !important;}
.ch-incorrect-bg {background-color: var(--incorrect-colour) !important;}
.ch-unmarked-bg {background-color: var(--unmarked-colour) !important;}
.ch-complete-bg {background-color: var(--complete-colour) !important;}
.ch-selected .ch-complete-bg {background-color: var(--selected-complete-colour) !important;}
.ch-blank-bg {background-color: transparent;}
.ch-highlight-bg {
    background-color: #ecefcf;
    padding: var(--medium-spacing-unit) var(--medium-spacing-unit);
    border-radius: var(--component-radius);
}
.ch-highlight-new  {background:#f1c40f;color:#ffffff;padding:4px 6px;margin: 3px 3px;border-radius: 5px;}

.ch-tag-primary {color: var(--on-primary-colour); background-color: var(--primary-colour);}
.ch-tag-secondary {color: var(--on-secondary-colour); background-color: var(--secondary-colour);}

.ch-page-tabs {
    display: flex;
    flex-wrap: nowrap;
    margin: 0;
    padding: 0;
    overflow: hidden;
}
.ch-page-tab {
    cursor:pointer;
    flex: 1;
    background: #f0f0f0;
    color: var(--on-surface-colour);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    font-size: 14px;
    height: 44px;
    line-height: 20px;
    text-align: center;
    text-decoration: none;
    padding: 0 4px;
    margin: 0 1px;
    border: solid 1px var(--secondary-graphic-colour);
    border-radius: var(--component-radius);
}
.ch-page-tab:hover {
    color: var(--on-surface-colour);
    text-decoration: none;
}
.ch-page-tab.ch-selected {
    background-color: var(--input-colour) !important;
    color: var(--on-input-colour) !important;
    font-weight: 900;
}
.ch-page-label {
    line-height: 34px;
    margin-bottom: 4px;
    text-decoration: none;
}
.ch-page {
    display: flex;
    gap: 2px;
    margin-bottom: 4px;
    width: 100%;
}
.ch-page-question-result {
    flex: 1;
    height: 5px;
    box-sizing: border-box;
}
.ch-result-blk {height: 8px; cursor: pointer;padding:0}
.ch-result-bar {padding: 0;margin: 0;list-style: none;display: flex;flex-wrap: nowrap;overflow-x: auto;cursor: pointer; gap:2px; align-items: first baseline;}
.ch-result {height: 100%; background-color: var(--unmarked-colour)}
.ch-error-blk {margin: 0 auto;  width: fit-content}

.ch-video-player {
    margin: var(--large-spacing-unit);
}
.ch-dialog-content .ch-video-player {
    margin: unset;
}

.ch-carousel-controls {position:absolute;top:100%;left:50%;z-index:1}
.ch-carousel-controls .ch-button svg {color: #fff;opacity: 0;}
.ch-carousel-controls .ch-button:focus-visible svg, .ch-carousel-controls .ch-button:hover svg {opacity: 1; transition: opacity var(--ani-mid) var(--easing)}

.ant-carousel .slick-arrow {border-radius: var(--container-radius);}
.ant-carousel .slick-arrow:focus-visible {box-shadow: 0 0 0 var(--input-focus-size) var(--focus-on-surface);}
.ant-carousel .slick-dots button:focus, .ant-carousel .slick-dots button:focus-visible {box-shadow: 0 0 0 var(--input-focus-size) var(--focus-on-surface);}

.ant-table-column-sorter-up svg, .ant-table-column-sorter-down svg {width: 1.5em; height: 1.5em;}

.ant-table-filter-trigger:focus-visible {outline:none;}
.anticon-filter svg {width: 1.5em;height: 1.5em}

.ch-list-item span:focus-visible {box-shadow: 0 0 0 var(--input-focus-size) var(--focus-primary)}

.ch-drop-down-wrapper span+span {padding: 0}

.ch-question-input {
    field-sizing: content;
}

table.ch-multiple-choice-options { counter-reset: opt; }
table.ch-multiple-choice-options tr.ch-multiple-choice-option td:first-child::before {
    counter-increment: opt;
    content: counter(opt, lower-alpha) ". ";
}

/* 576px is the width of ANTD xs size in Col scaling */
@media screen and (max-width: 576px) {
    .ch-responsive-row, .ch-responsive-col{
        min-width: 290px;
        width: 98vw;
    }
    .reactNav .ch-xxs-responsive{
        padding-left:2px!important;
    }

    .ch-dialog .MuiPaper-root{
        width: 95vw;
        margin:0;
    }

    #teacherTests .ant-tabs-content-holder {
        padding-left: 0;
    }

}


.ch-visually-hidden .ant-table-title, .ch-visually-hidden .ant-table-title * {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.ch-general-list-antd .ch-list-item > *{
    width:100%;
}
.ch-general-list-antd .ch-list-item.no-bottom-border{
    border-bottom:none;
}

.ch-general-list-antd {
    --ant-list-item-padding:4px;
}

.ch-general-list-antd:focus-visible {
    outline: var(--input-focus-size) solid var(--focus-on-surface);
}

.ch-general-list-antd .ant-list-pagination, .ch-general-list-antd .ant-list-pagination .ant-pagination{
    margin-block-start:var(--medium-spacing-unit);
}

.ch-percentage-bar-graph > *{
    border-radius:4px;
    overflow: hidden;
    white-space: nowrap;
    /*min-width:fit-content;*/
    padding:4px;
    line-height: 16px;
}

.ch-percentage-bar-graph > *:not(:last-child){
    border-right:1px solid white;
}
.ch-width-100{
    width:100%;
}
.ui-dialog .ui-dialog-titlebar-close:focus-visible{
    outline: 2px solid var(--secondary-graphic-colour);
    outline-offset:2px;
}
.ch-competition-rank {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    text-align: center;
}

.ch-gold {
    background: radial-gradient(circle, #D7B354 0%, #D7B354 35%, #EFC75E 35%, #EFC75E 55%, #D7B354 55%, #D7B354 100%);
}

.ch-silver {
    background: radial-gradient(circle, #CDCFCF 0%, #CDCFCF 35%, #E4E7E7 35%, #E4E7E7 55%, #CDCFCF 55%, #CDCFCF 100%);
}

.ch-bronze {
    background: radial-gradient(circle, #B15B2B 0%, #B15B2B 35%, #D58D54 35%, #D58D54 55%, #B15B2B 55%, #B15B2B 100%);
}

.ch-table-filter-collapse {
    background-color: #f8f8ff;
    margin-bottom: 1rem;
}

.ch-table-filter-collapse .ant-collapse-header, .ch-table-filter-collapse-nostyle .ant-collapse-header,
.ch-reading-support-collapse .ant-collapse-header {
    display: none !important;
}

.ch-table-filter-collapse.ant-collapse-small > .ant-collapse-item > .ant-collapse-panel > .ant-collapse-body,
.ch-table-filter-collapse-nostyle.ant-collapse-small > .ant-collapse-item > .ant-collapse-panel > .ant-collapse-body {
    padding: 0;
}

.ch-table-filter-collapse-primary-select-wrapper > div:first-of-type {
    margin: auto 0;
}

/* A tab panel focused by a click: hide AntD's :focus-visible ring (Chrome shows it once a key is pressed). Tabbing in still shows it - see common/Tabs.js. */
.ant-tabs [role="tabpanel"][data-ch-pointer-focus]:focus-visible {
    outline: none;
}

/* prevents jarring when tabbing with AntD tabs in Chrome */
.ant-tabs-tabpane:focus {
    scroll-margin-top: 50px;
}

.ch-pointer-events .ant-form-item-label {
    pointer-events: auto;
}

.ch-light-bg{
    background:var(--light-fill);
}


/* trail styles */
.ch-trail-tl-steps {
    --trail-tl-step-line-colour: 186, 203, 219;
    --trail-tl-step-bg-colour: #fff;
    --trail-tl-step-border-colour: rgb(var(--trail-tl-step-line-colour));
    --trail-tl-step-scale: 1;

    display: flex;
    align-items: center;
    width: 100%;
    gap: 8px;

    transition: gap var(--ani-large) cubic-bezier(0.16, 1, 0.3, 1),
                width var(--ani-large) cubic-bezier(0.16, 1, 0.3, 1);
}
.ch-trail-tl-step {
    position: relative;
    display: flex;
    width: 24px;
    height: 24px;
    margin: 0;
    border-radius: 50%;
    background-color: var(--trail-tl-step-bg-colour);
    border: 2px solid var(--trail-tl-step-border-colour);
    outline-color: var(--trail-tl-step-border-colour);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: scale(var(--trail-tl-step-scale));
    box-shadow: 0 0 0 0 transparent;
    will-change: transform, width, height, margin, background-color, border-color;
    transition:
            transform var(--ani-mid) cubic-bezier(0.25, 1, 0.5, 1),
            width var(--ani-mid) cubic-bezier(0.25, 1, 0.5, 1),
            height var(--ani-mid) cubic-bezier(0.25, 1, 0.5, 1),
            margin var(--ani-mid) cubic-bezier(0.25, 1, 0.5, 1),
            background-color var(--ani-mid) ease,
            border-color var(--ani-mid) ease,
            box-shadow var(--ani-mid) ease,
            opacity var(--ani-mid) ease;
}
.ch-trail-tl-step-btn {
    cursor: pointer;
}
.ch-trail-tl-step-btn:not(.ch-trail-tl-step-disabled):hover {
    --trail-tl-step-scale: 1.15;
}
.ch-trail-tl-step-btn:not(.ch-trail-tl-step-disabled):active {
    --trail-tl-step-scale: 0.95;
    transition-duration: 0.1s;
}
.ch-trail-tl-step-btn:focus-visible {
    outline: var(--input-borderless-focus-size, 2px) solid var(--focus-on-surface);
    outline-offset: 1px;
}
.ch-trail-tl-step-isLoading,
.ch-trail-tl-step-active {
    width: 32px;
    height: 32px;
    margin: -4px;
    box-shadow: 0 0 0 2px var(--surface-colour, #fff), 0 0 0 2px #fff inset;
}
.ch-trail-tl-step-isLoading {
    background-color: rgb(var(--trail-tl-step-line-colour));
    border-color: rgb(var(--trail-tl-step-line-colour));
}
.ch-trail-tl-step-end {
    --trail-tl-step-bg-colour: #722ed1;
    --trail-tl-step-border-colour: var(--trail-tl-step-bg-colour);
}
.ch-trail-tl-step-complete {
    --trail-tl-step-bg-colour: #52c41a;
    --trail-tl-step-border-colour: var(--trail-tl-step-bg-colour);
}
.ch-trail-tl-step-skip {
    --trail-tl-step-bg-colour: #faad14;
    --trail-tl-step-border-colour: var(--trail-tl-step-bg-colour);
}
.ch-trail-tl-step-current {
    --trail-tl-step-bg-colour: var(--input-colour);
    --trail-tl-step-border-colour: var(--trail-tl-step-bg-colour);
}
.ch-trail-tl-step-disabled {
    pointer-events: none;
    --trail-tl-step-bg-colour: rgba(var(--trail-tl-step-line-colour), 0.15);
    --trail-tl-step-border-colour: rgba(var(--trail-tl-step-line-colour), 0.45);
}
.ch-trail-tl-step svg {
    fill: #fff;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    position: absolute;
    top: 0;
    left: 0;
    transition: transform var(--ani-mid) ease, fill var(--ani-mid) ease, padding var(--ani-mid) ease;
}
.ch-trail-tl-step-active svg,
.ch-trail-tl-step-isLoading svg {
    padding: 4px;
}
.ch-trail-tl-step-disabled svg {
    fill: rgba(var(--trail-tl-step-line-colour), 0.55);
}
.ch-trail-tl-divider {
    flex: 1 1 auto;
    height: 2px;
    background: linear-gradient(to right, rgba(var(--trail-tl-step-line-colour), 1) 50%, rgba(var(--trail-tl-step-line-colour), 0.45) 50%);
    background-size: 200% 100%;
    background-position: 100% 0;
    transition: background-position var(--ani-mid) ease-out;
}
.ch-trail-tl-divider-completed {
    background-position: 0% 0;
}

/* Long tasks scroll sideways instead of running off the page; the edges fade where there is more. */
.ch-trail-tl-scroll {
    position: relative;
    overflow-x: auto;
    overflow-y: hidden;
    /* Room at the ends for the active step (32px, margin -4px) when hover scales it to 1.15, or it scrolls */
    padding: 8px;
    scrollbar-width: thin;
    /* The page's content grid has an auto-width column that grows to fit its content, so without this a long row
       would widen the whole activity area instead of scrolling. */
    width: 100%;
    box-sizing: border-box;
    contain: inline-size;
}
.ch-trail-tl-scroll .ch-trail-tl-steps {
    min-width: max-content;
}
.ch-trail-tl-scroll .ch-trail-tl-steps > span {
    flex: none;
}
.ch-trail-tl-scroll .ch-trail-tl-divider {
    min-width: 16px;
}
.ch-trail-tl-scroll-fade-start {
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 28px);
    mask-image: linear-gradient(to right, transparent 0, #000 28px);
}
.ch-trail-tl-scroll-fade-end {
    -webkit-mask-image: linear-gradient(to left, transparent 0, #000 28px);
    mask-image: linear-gradient(to left, transparent 0, #000 28px);
}
.ch-trail-tl-scroll-fade-start.ch-trail-tl-scroll-fade-end {
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%);
}
.ch-trail-tl-progress {
    margin-bottom: 4px;
}
.ch-trail-tl-step-active .ch-trail-tl-step-unlock {
    display: block;
    animation: ch-css-ring-ripple 1s cubic-bezier(0.25, 1, 0.5, 1) 2;
}
.ch-trail-tl-step-unlock {
    display: none;
    position: absolute;
    inset: -2px;
    border: 2px solid var(--trail-tl-step-bg-colour);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}
@keyframes ch-css-ring-ripple {
    0% {
        border-width: 5px;
        transform: scale(1);
        opacity: 1;
    }
    100% {
        border-width: 1px;
        transform: scale(1.8);
        opacity: 0;
    }
}

.ch-trail-step {
    position: relative;
    box-sizing: border-box;
    width: 100%;
    max-width: calc(120ch + var(--large-spacing-unit));
    padding-left: var(--large-spacing-unit);
    transition: opacity var(--ani-large) cubic-bezier(0.25, 1, 0.5, 1), transform var(--ani-large) cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 1;
    transform: translateY(0);
    will-change: opacity, transform;
}
.ch-trail-step-loading {
    opacity: 0;
    pointer-events: none;
    transform: translateY(4px);
}
.ch-trail-step-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    pointer-events: none;
    animation: ch-fade-in var(--ani-large) cubic-bezier(0.25, 1, 0.5, 1) 0.1s forwards;
}
@keyframes ch-fade-in {
    from {opacity: 0;}
    to {opacity: 1;}
}
.ch-trail-activity {
    display: flex; flex-direction: column;
    gap: var(--spacing-unit);
}
.ch-trail-activity-hidden {
    display: none !important;
    pointer-events: none !important;
    visibility: hidden !important;
}
.ch-trail-end-activity {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--spacing-unit) var(--spacing-unit);
}
.ch-trail-activity-header {
    margin-top: var(--large-spacing-unit);
}
.ch-trail-activity-actions {
    display: flex;
    justify-content: space-between;
    margin-top: var(--large-spacing-unit);
    padding-bottom: var(--large-spacing-unit);
    border-bottom: 1px solid var(--border-colour);
    /* Outline buttons take the secondary colour, which on some brands is too light for text on white */
    --secondary-colour: var(--input-colour);
    --secondary-colour-RGB: var(--input-colour-RGB);
    --secondary-text-colour: var(--input-colour);
    --secondary-graphic-colour: var(--input-colour);
}


.ch-trail-activity-heading {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 12px 0;
    line-height: 1.4;
}
.ch-trail-activity-subHeading {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    margin: 0 0 8px 0;
}
.ch-trail-activity-simpleBody {
    font-size: 16px;
    line-height: 1.5;
    margin: 0 0 16px 0;
}
.ch-trail-urlLink {
    display: inline-block;
    font-size: 0.925rem;
    color: var(--input-colour);
    text-decoration: none;
    font-weight: 500;

    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;

    transition: color 0.2s ease, text-decoration 0.2s ease;
}
.ch-trail-urlLink:hover {
    color: rgba(var(--input-colour-RGB), 0.75);
    text-decoration: underline;
}



.ch-trail-resultList {
    list-style-type: none;
    padding: 0;
    margin: 0;
    gap: 16px;
}
.ch-trail-resultList-item {
    padding: var(--large-spacing-unit) 0;
}
.ch-trail-resultList-item:not(:first-child) {
    border-top: 1px solid var(--border-colour);
}
.ch-trail-resultList-item .ch-trail-resultList-media-icon {
    padding-right: var(--large-spacing-unit);
}
.ch-trail-resultList-item h4 {
    margin-bottom: var(--spacing-unit);
}

/* Question styles */
.ch-answer-button {
    margin-top: var(--small-spacing-unit);
}

.ch-correct-icon {
    color: var(--correct-colour);
    font-size: 20px;
    vertical-align: middle;
}

.ch-incorrect-icon {
    color: var(--incorrect-colour);
    font-size: 20px;
    vertical-align: middle;
}

.ch-question-feedback {
    background-color: #f6f8fa;
    border: 2px solid var(--border-colour);
    padding: calc(var(--spacing-unit) * 2);
    border-radius: 8px;
    outline: none;
    margin-top: var(--spacing-unit);
}

.ch-question-feedback-title {
    font-size: 16px;
    font-weight: bold;
    gap: var(--spacing-unit);
}

.ch-question-feedback-buttons, .ch-question-feedback-result  {
    display: flex;
    gap: var(--spacing-unit);
    justify-content: center;
    width: 100%;
}

.ch-question-question-disabled {
    opacity: 0.6;
    pointer-events: none;
}

.ch-question-question-disabled input,
.ch-question-question-disabled button,
.ch-question-question-disabled select,
.ch-question-question-disabled textarea {
    pointer-events: none;
}

.ch-pageWidth {max-width: 120ch;margin-left: auto;margin-right: auto;}

.ch-question-level-tab-label svg {
    width: 24px !important;
    height: 24px !important;
    margin-top: -2px;
}

.ch-question-level-tab-label {
    padding: var(--spacing-unit) var(--spacing-unit);
}

/* Lesson Quiz tab accordion header: a button carrying the legacy .cluster-nav-head look (lessonStyles.css) */
.ch-quiz-accordion-heading {
    margin: 0;
}

.ch-quiz-accordion-btn {
    border: 0;
    text-align: left;
}
/* WCAG 1.4.3: the brand's primary colour moved 30% away from its text colour (darker under white text, lighter under
   dark text), as some brands' primary gives white text only 3.4:1 */
.ch-quiz-accordion-btn.cluster-nav-head {
    background: color-mix(in srgb, var(--primary-colour),
        rgb(from var(--on-primary-colour) calc(255 - r) calc(255 - g) calc(255 - b) / 1) 30%);
}
/* The app's focus ring, outside the header, rather than the browser's thin default on its fill */
.ch-quiz-accordion-btn.cluster-nav-head:focus-visible {
    outline: var(--input-focus-size) solid var(--input-colour);
    outline-offset: 2px;
}

.ch-quiz-question-label-row {
    display: flex;
    align-items: flex-start;
}

.ch-quiz-question-label {
    font-weight: bold;
    margin-right: 8px;
    min-width: 16px;
}

.ch-quiz-result-cont {
    margin: 0 0 8px 0;
}

.ch-quiz-result-line {
    display: block;
    margin: 0 0 2px 0;
}

.ch-quiz-result-answer {
    font-weight: bold;
}

.ch-quiz-result-correct {
    color: var(--correct-colour);
}

.ch-quiz-result-incorrect {
    color: var(--incorrect-colour);
}

.ch-quiz-result-not-answered {
    color: var(--warning-colour);
}

/* Question styles: */
.ch-pq-results,
.ch-pq-progress,
.ch-question {
    --correct-colour: 73, 170, 25;
    --on-correct-colour: 29, 55, 18;
    --incorrect-colour: 211, 32, 41;
    --on-incorrect-colour: 67, 20, 24;
}
/* A question's floated images (e.g. a .cont-img-block floated right) stay within the question rather than running into
   the workspace below it */
.ch-question::after {
    content: "";
    display: block;
    clear: both;
}

/* Lettered options (a. b. c.), as legacy questions get from generalStyles-v2.css's .js-question ol */
.ch-question ol {
    list-style-type: lower-alpha;
}

/*   practice question results   */
.ch-pq-results .ch-resultMarkers {
    display: flex;
    flex-direction: row;
    gap: 4px;
    --rm-border-radius: 8px;
}
.ch-pq-results .ch-resultMarkers .ch-resultMarker {
    background-color: var(--border-colour);
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    height: 8px;
    border-radius: var(--rm-border-radius);
}
.ch-pq-results .ch-resultMarkers .ch-resultMarker-c {
    background-color: rgb(var(--correct-colour));
}
.ch-pq-results .ch-resultMarkers .ch-resultMarker-i {
    background-color: rgb(var(--incorrect-colour));
}
.ch-pq-results .ch-resultMarkers .ch-resultMarker-btn {
    border: 2px solid var(--border-colour);
    background-color: transparent;
    cursor: pointer;
    outline: none;
    height: 24px;
}
.ch-pq-results .ch-resultMarker-btn.ch-resultMarker-c {
    border-color: rgb(var(--correct-colour));
    color: rgb(var(--on-correct-colour));
}
.ch-pq-results .ch-resultMarker-btn.ch-resultMarker-i {
    border-color: rgb(var(--incorrect-colour));
    color: rgb(var(--on-incorrect-colour));
}
.ch-pq-results .ch-resultMarker-btn.ch-resultMarker-active {
    background-color: var(--border-colour);
    font-weight: 600;
}
.ch-pq-results .ch-resultMarker-btn.ch-resultMarker-c.ch-resultMarker-active {
    background-color: rgb(var(--correct-colour));
    color: #fff;
}
.ch-pq-results .ch-resultMarker-btn.ch-resultMarker-i.ch-resultMarker-active {
    background-color: rgb(var(--incorrect-colour));
    color: #fff;
}
.ch-pq-results .ch-resultMarkers .ch-resultMarker-btn:focus-visible {
    box-shadow: 0 0 0 var(--input-borderless-focus-size) var(--focus-on-surface) inset;
}
.ch-pq-results .ch-resultMarker-btn.ch-resultMarker-i:focus-visible {
    box-shadow: 0 0 0 var(--input-borderless-focus-size) rgba(var(--incorrect-colour), 0.4) inset;
}
.ch-pq-results .ch-resultMarker-btn.ch-resultMarker-c:focus-visible {
    box-shadow: 0 0 0 var(--input-borderless-focus-size) rgba(var(--correct-colour), 0.4) inset;
}
.ch-pq-results .ch-resultMarker-btn.ch-resultMarker-i.ch-resultMarker-active:focus-visible,
.ch-pq-results .ch-resultMarker-btn.ch-resultMarker-c.ch-resultMarker-active:focus-visible {
    box-shadow: 0 0 0 var(--input-borderless-focus-size) rgba(255, 255, 255, 0.4) inset;
}
.ch-pq-progress .ant-progress-circle-path:nth-child(2) {
    stroke: rgba(var(--incorrect-colour), 1) !important;
}
.ch-pq-progress .ant-progress-circle-path:nth-child(3) {
    stroke: rgba(var(--correct-colour), 1) !important;
}
.ch-pq-progress .ant-progress-circle-rail {
    stroke: var(--border-colour);
}


/*   generic questions   */
.ch-q-gen {
    line-height: 1.4rem;
}
.ch-q-gen img {
    max-width: 100%;
    height: auto;
}
.ch-q-gen input.ch-q-gen-text {
    padding: var(--small-spacing-unit) var(--spacing-unit);
}
/* A fraction's box keeps the fraction's own 4px padding (generalStyles-v2.css .fraction-container input), not the 8px
   sides above, and its 2ch floor and 6ch cap are for the answer: an AntD input is border-box, so they also have to take
   the padding and border (10px), which had left an empty box a sliver and room for about 4 characters, clipping longer
   answers (shown answers included). field-sizing: content grows the box between the two as the answer is typed. */
.ch-q-gen .fraction-container input.ch-q-gen-text {
    padding: 4px;
    min-width: calc(2ch + 10px);
    max-width: calc(6ch + 10px);
}
.ch-q-gen .ch-q-gen-choice {
    counter-reset: q-counter;
    display: flex;
    flex-direction: column;
    /*padding-left: 24px;*/
    gap: 6px;
}
.ch-q-gen .ch-q-gen-choice-s {
    display: inline-flex;
    margin: 0 2px;
    vertical-align: baseline;
}
/* Test multiple-choice option text (OLNA question cards, test editor cards) sits beside its radio/checkbox, not below it */
.ch-student-question-card__body .ch-q-gen .ch-q-gen-choice-blk > .ch-q-gen-choice-s + p,
.ch-test-editor-card-question-content .ch-q-gen-choice-blk > .ch-q-gen-choice-s + p {
    display: inline;
}
.ch-q-gen.ch-q-gen-selectable .ch-q-gen-choice-blk {
    cursor: pointer;
}
.ch-q-gen .ch-q-gen-choice .ant-radio-wrapper,
.ch-q-gen .ch-q-gen-choice .ant-checkbox-wrapper {
    position: relative;
    padding-left: 3ch;
    text-align: left;
    width: fit-content;
    display: flex;
    align-items: flex-start;
}
.ch-q-gen .ch-q-gen-choice .ant-radio-wrapper::before,
.ch-q-gen .ch-q-gen-choice .ant-checkbox-wrapper::before {
    counter-increment: q-counter;
    content: counter(q-counter, var(--list-style-type)) ".";
    position: absolute;
    left: 4px;
    font-weight: 600;
    display: flex;
    align-self: center;
}
.ch-q-gen .ch-q-gen-choice .ant-radio,
.ch-q-gen .ch-q-gen-choice .ant-checkbox {
    display: flex;
}
.ch-q-gen .ch-q-gen-choice .ant-radio-wrapper.ch-q-gen-correct::before,
.ch-q-gen .ch-q-gen-choice .ant-checkbox-wrapper.ch-q-gen-correct::before {
    font-weight: 700;
}
.ch-q-gen .ch-q-gen-correct {
    background-color: rgba(var(--correct-colour), 0.12);
    border-radius: 6px;
    font-weight: 600;
    padding: 2px 4px;
    width: fit-content;
}
.ch-q-gen .ch-q-gen-choice .ch-q-gen-correct .ant-checkbox-label {
    color: rgb(var(--on-correct-colour));
}
/*   drag and drop questions   */
.ch-q-dnd {
    box-sizing: border-box;
    margin: var(--spacing-unit) 0;
    --q-dnd-border-radius: 8px;
    --q-dnd-drag-height: 32px;
    --q-dnd-drag-minWidth: 48px;
    --q-dnd-drag-gap: var(--spacing-unit);
    /* Neutral, not the brand's primary: it's red in some themes, which reads as an error */
    --q-dnd-slot-bg-colour: rgba(0, 0, 0, .03);
    /* 3:1 against white, so an empty slot's outline is visible (WCAG 1.4.11) */
    --q-dnd-slot-border-colour: var(--input-border-colour, rgba(0, 0, 0, .44));
}
/* The answers waiting to be placed, on a light tray */
.ch-q-dnd .ch-q-dnd-dragPool {
    display: flex;
    flex-wrap: wrap;
    gap: var(--q-dnd-drag-gap);
    margin: var(--spacing-unit) 0;
    padding: var(--spacing-unit);
    min-height: calc(var(--q-dnd-drag-height) + var(--spacing-unit) * 2);
    box-sizing: border-box;
    background-color: rgba(0, 0, 0, .03);
    border-radius: calc(var(--q-dnd-border-radius) + 4px);
}
.ch-q-dnd .ch-q-dnd-drag-wrap {
    display: inline-flex;
    position: relative;
}
/* cms.css (CMS mode only) boxes the authoring area for the editor; in the player it should look as students see it */
.ch-q-dnd .js-q-dnd-nonTabular {
    border: none;
    min-height: 0;
    padding: 0;
}
.ch-q-dnd .ch-q-dnd-drag,
.ch-q-dnd .ch-q-dnd-drag-preview,
.ch-q-dnd .ch-q-dnd-drag-holder {
    border: 1px solid rgba(0, 0, 0, .24);
    border-radius: var(--q-dnd-border-radius);
    display: inline-flex;
    gap: 2px;
    padding: 0 12px 0 4px;
    box-sizing: border-box;
    min-width: var(--q-dnd-drag-minWidth);
    width: fit-content;
    align-items: center;
    position: relative;
}
.ch-q-dnd .ch-q-dnd-drag,
.ch-q-dnd .ch-q-dnd-drag-preview,
.ch-q-dnd .ch-q-dnd-drag-holder,
.ch-q-dnd .ch-q-dnd-drop {
    min-height: var(--q-dnd-drag-height);
}
.ch-q-dnd .ch-q-dnd-drag {
    background-color: var(--container-colour);
    box-shadow: 0 1px 2px rgba(0, 0, 0, .08);
    font-weight: 500;
    cursor: grab;
    transition:
        background-color var(--ani-mid) var(--easing),
        border-color var(--ani-mid) var(--easing),
        box-shadow var(--ani-mid) var(--easing);
    z-index: 1;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
}
.ch-q-dnd .ch-q-dnd-drag:not(.ch-q-dnd-drag-RO):hover {
    border-color: rgba(var(--secondary-colour-RGB), .6);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .12);
}
/* DragAndDropQuestion.js's DragIndicatorRounded */
.ch-q-dnd .ch-q-dnd-drag-grip {
    flex: none;
    font-size: 16px;
    color: rgba(0, 0, 0, .45);
}
/* A tick or cross beside the colour, so a result isn't shown by colour alone (WCAG 1.4.1) */
.ch-q-dnd .ch-q-dnd-drag-result {
    flex: none;
    font-size: 18px;
    margin-left: 4px;
}
.ch-q-dnd .ch-q-dnd-drag-preview {
    background-color: transparent;
    border-color: transparent;
    color: transparent;
    user-select: none;
}
.ch-q-dnd .ch-q-dnd-drag:focus-visible {
    outline: 2px solid var(--secondary-graphic-colour);
    outline-offset: 2px;
}
.ch-q-dnd .ch-q-dnd-drag.ch-q-dnd-drag-RO {
    cursor: default;
    padding-left: 12px;
    box-shadow: none;
}
.ch-q-dnd .ch-q-dnd-drag.ch-q-dnd-drag-dragging {
    /* No scale: dnd-kit and framer-motion position the chip from its measured box, so a scale makes it drift from the pointer */
    box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
    cursor: grabbing;
    z-index: 2;
}
.ch-q-dnd .ch-q-dnd-drag.ch-q-dnd-drag-correct {
    background-color: rgba(var(--correct-colour), .12);
    border-color: rgba(var(--on-correct-colour), .4);
}
.ch-q-dnd .ch-q-dnd-drag.ch-q-dnd-drag-correct .ch-q-dnd-drag-result {
    color: rgb(var(--on-correct-colour));
}
.ch-q-dnd .ch-q-dnd-drag.ch-q-dnd-drag-incorrect {
    background-color: rgba(var(--incorrect-colour), .12);
    border-color: rgba(var(--on-incorrect-colour), .4);
}
.ch-q-dnd .ch-q-dnd-drag.ch-q-dnd-drag-incorrect .ch-q-dnd-drag-result {
    color: rgb(var(--on-incorrect-colour));
}
/* Where a picked-up answer was: an outline of the gap it left */
.ch-q-dnd .ch-q-dnd-drag-holder {
    background-color: transparent;
    border: 1px dashed var(--q-dnd-slot-border-colour);
    color: transparent;
    user-select: none;
    position: absolute;
}
.ch-q-dnd .ch-q-dnd-drag-holder.ch-q-dnd-drag-holder-a {
    position: unset;
}
.ch-q-dnd .ch-q-dnd-drop {
    display: flex;
    min-width: 100px;
    width: 100%;
    gap: var(--q-dnd-drag-gap);
}
/* Empty targets: a dashed, lightly tinted slot, so they read as gaps to fill */
.ch-q-dnd .js-q-dnd-nonTabular .ch-q-dnd-drop,
.ch-q-dnd .js-q-dnd-match .ch-q-dnd-drop,
.ch-q-dnd .js-q-dnd-category .ch-q-dnd-drop {
    background-color: var(--q-dnd-slot-bg-colour);
    border: 1px dashed var(--q-dnd-slot-border-colour);
    border-radius: var(--q-dnd-border-radius);
    box-sizing: border-box;
    transition: background-color var(--ani-mid) var(--easing), box-shadow var(--ani-mid) var(--easing);
}
.ch-q-dnd .js-q-dnd-nonTabular .ch-q-dnd-drop {
    display: inline-flex;
    min-height: unset;
    height: var(--q-dnd-drag-height);
    min-width: 80px;
    width: unset;
    margin: 2px 0;
    vertical-align: middle;
}
/* A filled inline slot: just the answer, no outline */
.ch-q-dnd .js-q-dnd-nonTabular .ch-q-dnd-drop.ch-q-dnd-drop-fill {
    border-color: transparent;
}
.ch-q-dnd .js-q-dnd-nonTabular .ch-q-dnd-drop-fill {
    background-color: transparent;
}
/* While a clicked item waits to be placed, the targets and pool take a click */
/* Solid secondary: the slots are already dashed, and the primary is red in some themes */
/* Inset over the slot's border: stays within the target's bounds */
.ch-q-dnd .ch-q-dnd-drop-selectable {
    cursor: pointer;
    outline: 2px solid rgba(var(--secondary-colour-RGB), 0.6);
    outline-offset: -2px;
}
.ch-q-dnd .js-q-dnd-match td {
    display: table-cell;
    flex: 1;
    padding: var(--spacing-unit);
    width: 50%;
}
.ch-q-dnd .js-q-dnd-category {
    display: flex;
    gap: var(--spacing-unit);
}
.ch-q-dnd .js-q-dnd-category .cont-panel.unit {
    padding: 0;
    float: unset;
}
/* Each category a column with its name as a header */
.ch-q-dnd .js-q-dnd-category .ch-q-dnd-drop {
    display: flex;
    flex-wrap: wrap;
    padding: var(--spacing-unit);
    min-height: 140px;
    align-content: flex-start;
}
.ch-q-dnd .ch-q-dnd-drop-label {
    display: flex;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    justify-content: center;
    width: 100%;
    padding-bottom: var(--small-spacing-unit);
    margin-bottom: var(--small-spacing-unit);
    border-bottom: 1px solid var(--border-colour);
}
/* Last, to win over each layout's slot background: the target being dragged over */
.ch-q-dnd .ch-q-dnd-drop.ch-q-dnd-drop-over {
    background-color: rgba(var(--secondary-colour-RGB), .1);
    box-shadow: inset 0 0 0 2px var(--secondary-graphic-colour);
    border-color: transparent;
}
.ch-q-dnd-results-switch {
    display: inline-block;
}
@media (prefers-reduced-motion: reduce) {
    .ch-q-dnd .ch-q-dnd-drag,
    .ch-q-dnd .ch-q-dnd-drop {
        transition: none;
    }
}

/*   knowledge check (lesson box and quiz)   */
.ch-knowledge-check-box {
    cursor: pointer;
}
.ch-knowledge-check-button {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    font: inherit;
    padding: 0;
    text-align: inherit;
}
.ch-knowledge-check-button:focus-visible {
    outline: 2px solid var(--focus-on-surface);
    outline-offset: 2px;
}

/*   alternatives questions   */
.ch-q-alt {
    line-height: 1.4rem;
}
.ch-q-alt-select-wrap {
    display: inline-flex;
    align-items: center;
    gap: var(--small-spacing-unit);
    vertical-align: middle;
}
.ch-q-alt-select,
.ch-q-gen-select {
    margin: 0 var(--small-spacing-unit);
    min-width: 8ch;
}
.ch-q-alt-select-icon {
    font-size: 18px;
}

/*   highlight questions   */
.ch-q-highlight-question {
    line-height: 1.6rem;
}
.ch-q-highlight-word {
    cursor: pointer;
    border-radius: 2px;
    padding: 1px 2px;
    margin: -1px -2px;
    transition: background-color var(--ani-mid) var(--easing);
}
/* Unselected words only: a plain :hover outranks the selected and result colours, hiding the yellow just as it's clicked */
.ch-q-highlight-word:not(.ch-q-highlight-word-selected, .ch-q-highlight-word-correct, .ch-q-highlight-word-incorrect):hover {
    background-color: var(--hover-on-surface);
}
.ch-q-highlight-word-selected {
    background-color: #fbdf2d;
}
.ch-q-highlight-word-selected:hover {
    background-color: #f2d000;
}
.ch-q-highlight-word-correct {
    background-color: var(--success-bg-colour);
    border: 1px solid var(--success-colour);
    padding: 0 1px;
    margin: -1px -3px;
}
.ch-q-highlight-word-incorrect {
    background-color: var(--error-bg-colour);
    border: 1px solid var(--error-colour);
    padding: 0 1px;
    margin: -1px -3px;
}
.ch-q-highlight-word-missed {
    border: 1px dashed var(--success-colour);
    padding: 0 1px;
    margin: -1px -3px;
}

/* Trail Question styles */
.ch-answer-button {
    margin-top: var(--small-spacing-unit);
}

.ch-question-question-disabled {
    opacity: 0.6;
    pointer-events: none;
}

.ch-question-question-disabled input,
.ch-question-question-disabled button,
.ch-question-question-disabled select,
.ch-question-question-disabled textarea {
    pointer-events: none;
}

.ch-feedback-callout {
    position: relative;
    background-color: #ffffff;
    border: 1px solid #d0d7de;
    border-radius: 8px;
    margin-top: calc(var(--spacing-unit) + 11px);
    margin-bottom: var(--spacing-unit);
    padding: 16px 24px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ch-feedback-callout:focus-visible  {
    box-shadow: 0 0 0 4px var(--focus-on-surface) inset;
}

.ch-feedback-callout::before {
    content: '';
    position: absolute;
    top: -11px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 11px solid transparent;
    border-right: 11px solid transparent;
    border-bottom: 11px solid #d0d7de;
}

.ch-feedback-callout::after {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid #ffffff;
    filter: drop-shadow(0 -2px 1px rgba(0, 0, 0, 0.05));
}

.ch-feedback-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.ch-feedback-icon {
    font-size: 24px;
    color: #333;
}

.ch-feedback-title {
    font-size: 1.25em;
    font-weight: 600;
    margin: 0;
    color: #333;
}

.ch-feedback-body {
    color: #333;
    margin: 0;
    padding: 0;
    line-height: 1.5;
}

.ch-feedback-body p {
    margin: 0 0 8px 0;
}
.ch-feedback-body p:last-child {
    margin-bottom: 0;
}

.ch-feedback-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
}

/* End question styles */

/* tinymce editor styles */
.ch-tiny-mce-editor-wrapper > div {
    border-radius: var(--container-radius);
    overflow: hidden;
}
.ch-tiny-mce-editor-wrapper.focused > div,
.ch-tiny-mce-editor-wrapper:hover > div {
    border-color: var(--secondary-graphic-colour);
}
.ch-tiny-mce-editor-wrapper.focused > div {
    box-shadow: 0px 0px 0px 2px rgba(var(--secondary-colour-RGB), .1);
}

/* Accessibility styles */
.ch-visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Updated Filter Controls */
.ch-filter-form {
    display: flex;
    flex-direction: row;
    background-color: #f8f8ff;
    padding: 0.5rem;
    border-radius: 8px;
    align-items: center;
    margin: 0.5rem 0 2rem 0;
    gap: 0.75rem;
}

.ch-filter-form.ch-filter-form-nested {
    margin: 0;
    padding: 0;
    gap: 0;
}

.ch-filter-form-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    justify-content: center;
}

.ch-filter-form-buttons button {
    width: 100%;
}

.ch-filter-form-content {
    width: 100%;
}

.ch-filter-form-section {
    width: 100%;
    display: flex;
    gap: 0.5rem
}

.ch-filter-form-section > * {
    flex: 1;
    width: 100px;
}

.ch-filter-form label {
    font-size: 14px;
    font-weight: 600;
}

.ch-filter-form .ant-form-item-label {
    padding: 0 0 4px 0 !important;
}

.ch-table-controls button {
    padding: 0 0.25rem;
}

.ch-filter-form-button-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

@media (max-width: 800px) {
    .ch-filter-form-section {
        display: flex;
        flex-wrap: wrap;
    }

    .ch-filter-form-section > * {
        width: 49%;
        box-sizing: border-box;
        flex: unset;
    }
}

@media (max-width: 600px) {
    .ch-filter-form {
        flex-direction: column;
    }

    .ch-filter-form-section {
        display: flex;
        flex-wrap: wrap;
    }

    .ch-filter-form-section > * {
        width: 100%;
        box-sizing: border-box;
        flex: unset;
    }
}

.ch-focus-sentinel {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

.ch-manage-bookmarks-wrapper {
    display: grid;
    grid-template-columns: 275px repeat(3, 1fr);
    grid-template-rows: 10% repeat(3, 1fr);
    gap: 1px;
    width: 100%;
    height: 100%;
    container-type: inline-size;
}

.ch-manage-bookmarks-heading {
    grid-area: 1 / 1 / 2 / 6;
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    background-color: white;
    border-bottom: 1px solid lightgrey;
}

.ch-manage-bookmarks-folders {
    grid-area: 2 / 1 / 6 / 2;
    max-width: 100%;
    width: 100%;
    min-width: 0;
    overflow: auto;
    background-color: white;
    padding: 8px;
    border-right: 1px solid lightgrey;
}

.ch-manage-bookmarks-bookmark-list {
    grid-area: 2 / 2 / 6 / 6;
    background-color: white;
}

.ch-manage-bookmarks-bookmark-list .ch-buttons-group {
    flex-wrap: unset;
}

.ch-manage-bookmarks-select-wrapper {
    display: flex;
    gap: .75rem;
    align-items: center;
    max-width: 100%;
    padding: 6px
}

.ch-manage-bookmarks-select-wrapper button {
    flex: 0;
}

.ch-bookmark-folder-header {
    background: #f7f7f7;
    border-bottom: 2px solid lightgrey;
}

.ch-manage-bookmarks-select-label-wrapper {
    display: flex;
    flex-direction: column;
}

.ch-manage-bookmarks-select-label-wrapper > label {
    padding-bottom: 4px;
    font-weight: 600;
}

.ch-manage-bookmarks-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    border-bottom: 1px solid lightgrey;
}

/* Mobile styles for manage bookmarks */
@media screen and (max-width: 768px) {
    .ch-manage-bookmarks-wrapper {
        display: flex;
        flex-direction: column;
        gap: 1px;
    }

    .ch-manage-bookmarks-folders {
        padding-top: unset;
        background-color: #f7f7f7;
        border-bottom: 1px solid darkgrey;
    }

    .ch-bookmark-folder-header {
        position: sticky;
        top: 0;
        z-index: 2;
    }

    .ch-manage-bookmarks-item {
        flex-direction: column;
        align-items: start;
        gap: 8px;
    }
}

.ch-accessible-clear-button {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ch-accessible-clear-button:focus, .ant-input-clear-icon:focus {
    outline: var(--input-focus-size) solid var(--focus-on-surface);
    outline-offset: 1px;
    border-radius: 50%;
}

.ch-accessible-clear-button svg, .ant-input-clear-icon svg {
    fill: var(--input-colour);
    font-size: 20px;
}


@media screen and (max-width: 768px) {
    .ch-messages-wrapper {
        max-width: 97vw;
        padding: 0.25rem;
    }
}

@media screen and (max-width: 350px) {
    .ch-messages-wrapper {
        max-width: 95vw;
        padding: 0.25rem;
    }
}


.circle-before::before{
    content: '';
    display: inline-block;
    width: 15px;
    height: 15px;
    background: white;
    border-radius: 50%;
}
.quizScoreShape.circle-before::before{
    margin-right:0;
    top:3px;
    position:relative;
}
.quizScoreShape::before{
    margin-right:6px;
    top:2px;
    position:relative;
}
.triangle-before::before{
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    border-bottom: 14px solid white;
}

.square-before::before{
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    background: white;
}

.pentagon-before::before{
    content: '';
    display: inline-block;
    width: 16px;
    height: 15px;
    background: white;
    clip-path: polygon(
            50% 0%,
            100% 38%,
            82% 100%,
            18% 100%,
            0% 38%
    );
}
.ch-table-header-icon:focus-visible {
    outline: 1px solid black !important;
}
/* Only show outline if focused via keyboard */
.ch-table-header-icon:focus:not(:focus-visible) {
    outline: none;
}
.ch-general-table-antd .ant-table-column-sorter{
    display:none;
}
.ant-table-filter-column .ant-table-column-title{
    color:black;
}
.ant-table-filter-trigger:not(.ch-antd-filter) {
    visibility: hidden;
    width: 0;
    height: 0;
    overflow: hidden;
    display: inline-block;
}
.ch-antd-filter{
    color:black!important; /* overwrite grey icon for accessiblity contrast */
}
.ch-general-table-antd .ant-table-thead > tr:focus{
    outline:none !important; /* hide focus trap focus*/
}

.ch-divider {
    margin: 8px 0;
}

.ch-label {
    font-size: 14px;
    font-weight: 600;
}

.ch-test-editor-sticky-title {
    position: sticky;
    top: 0;
    z-index: 2;
    background-color: white;
}

.ch-test-editor-heading-wrapper {
    margin-top: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.ch-test-editor-heading {
    /*flex-grow: 1;*/
}

.ch-test-editor h2 {
    font-size: 1.75rem;
    font-weight: 700;
}

.ch-test-editor-description {
    color: #6f6f6f;
}

#ch-test-editor-content-panels{
    display: flex;
    gap: 1.5rem;
    flex: 1;
}

/* Resizable Question Bank / Selected Questions split.
   clip, not hidden/auto: panels don't become scroll containers, so sticky parts follow the page,
   but wide content (cards, the loading overlay) can't spill under the divider. */
/* Own stacking layer below the sticky header (z-index 2), which the dragged bar (antd z-index 2) otherwise covers */
.ch-test-editor-splitter {
    flex: 1;
    position: relative;
    z-index: 0;
}
.ch-test-editor-splitter > .ant-splitter-panel {
    overflow-x: clip;
    overflow-y: visible;
    min-width: 0;
}
/* Divider: invisible at rest; the whole gap between the panels is the drag area. Hovering it shows a
   faint line; dragging or keyboard focus turns it blue. No grip handle. */
/* The line is a border (snapped to whole pixels), not antd's translateX(-50%) background, which put a
   1px line on a half pixel so it blurred and looked shifted right on hover */
.ch-test-editor-splitter.ant-splitter.ant-splitter-horizontal > .ant-splitter-bar .ant-splitter-bar-dragger::before {
    width: 0;
    background: none;
    border-left: 1px solid transparent;
    transform: translateY(-50%);
    transition: border-color var(--ani-mid) ease;
}
.ch-test-editor-splitter.ant-splitter.ant-splitter-horizontal > .ant-splitter-bar .ant-splitter-bar-dragger:hover::before {
    background: none;
    border-left-color: var(--border-colour);
}
.ch-test-editor-splitter.ant-splitter.ant-splitter-horizontal > .ant-splitter-bar .ant-splitter-bar-dragger:focus-visible::before,
.ch-test-editor-splitter.ant-splitter.ant-splitter-horizontal > .ant-splitter-bar .ant-splitter-bar-dragger-active::before {
    background: none;
    border-left-color: var(--icon-colour);
}
.ch-test-editor-splitter.ant-splitter.ant-splitter-horizontal > .ant-splitter-bar .ant-splitter-bar-dragger::after {
    display: none;
}
/* Full gap width: the panels' padding either side */
.ch-test-editor-splitter.ant-splitter.ant-splitter-horizontal > .ant-splitter-bar .ant-splitter-bar-dragger {
    width: 1.5rem;
    cursor: col-resize;
}
.ch-test-editor-splitter > .ant-splitter-panel:first-child {
    padding-right: 0.75rem;
}
/* Panel after the bar, not :last-child: antd adds an element after it while dragging, which dropped this padding mid-drag */
.ch-test-editor-splitter > .ant-splitter-bar + .ant-splitter-panel {
    padding-left: 0.75rem;
}
/* One view (full width / reorder): the hidden panel is at 0 width, so no gap or divider */
.ch-test-editor-splitter.ch-test-editor-splitter-single > .ant-splitter-panel {
    padding: 0;
}
.ch-test-editor-splitter.ch-test-editor-splitter-single > .ant-splitter-bar {
    display: none;
}

.ch-test-editor-card-question-content img, .ch-test-editor-card-question-content table{
    max-width:100%;
    height:auto;
    /*display:block;*/
}

.ch-test-editor-content-panels-wrapper {
    display: flex;
    gap: 1.25rem;
}

#testSkillSummaryWrapper ul{
    list-style: none;
    margin-left: -8px;
}

.ch-test-editor-content-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    /*height: 600px;*/
}

.question-content-holder .ch-pagination-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.question-content-holder .ch-pagination-wrapper > div:first-child {
    flex: 1;
}

/* Loader shown before any results. Empty container only: antd 6 puts .ant-spin on the root around results too,
   so without it the results were centred. */
.question-content-holder .ch-pagination-wrapper > div:first-child > .ant-spin:has(> .ant-spin-container:empty) {
    display: block;
    padding-top: 2rem;
    text-align: center;
}

.ch-test-editor-content-panel-ac {
    flex: 1;
    max-height: 50vh;
    overflow: scroll;
}

.ch-test-editor-content-panel-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height:38px /* to align the height of the heading bars as the Selected Questions heading was taller*/
}

.ch-test-editor-button-wrapper {
    display: flex;
    gap: 0.5rem;
}

.ch-test-editor-content-button-wrapper {
    display: flex;
    gap: 0;
}

.ch-test-editor-search-results {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.ch-test-editor-card {
    width: 100%;
    min-height: 80px;
    border-radius: 8px;
    border: 2px solid var(--border-colour);
    background-color: #fefefe;
    padding: 0.75rem 0.5rem;
    display: flex;
    align-items: center;
}

.ch-test-editor-card.unsaved-order {
    border-color:var(--secondary-graphic-colour);
    border-width: 2px;
    position: relative;
}

.ch-column-dnd-card {
    position: relative;
}

.ch-test-editor-card.unsaved-order::after, .ch-column-dnd-card.unsaved-order::after {
    content: '';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background-color: var(--secondary-colour);
    border-radius: 50%;
}

/* min-width 0 (here and on its content column): wide content such as a table shrinks instead of
   pushing the expand/add/remove buttons off the card, where the panel clips them */
.ch-test-editor-card-question {
    flex-grow: 1;
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}

.ch-test-editor-card-result {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ch-test-editor-card-result p {
    padding: 0;
}

.ch-test-editor-card-result button {
    padding: 0;
    color: var(--secondary-text-colour);
}

.ch-test-editor-card-result-number {
    font-size: 1.1rem;
    font-weight: 700;
    color: #656565;
    width: fit-content;
}

/* This needs to be fixed. Max height not really appropriate. If I want a nice transition, it will have to use JS. */
.ch-test-editor-card-question-content {
    overflow: hidden;
    max-height: 40px;
    transition: max-height 0.3s ease-out;
}

/* Content wider than the card (e.g. a table) scrolls sideways inside it rather than running under the card's buttons.
   overflow-y hidden + padding: no stray vertical scrollbar from MathJax's few px of overhang. */
.ch-test-editor-card-question-content.expanded {
    max-height: unset;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 4px;
}

.ch-test-editor-card-tags {
    display: flex;
    margin-top: 0.5rem;
}

.ch-test-editor-card-actions {
    align-items: flex-end;
    display: flex;
    gap: 0.1rem;
}

/* An expanded card is as tall as its question (a graph can be 800px+): its number, and its expand/collapse and
   add/remove buttons, sit on the first line, as the legacy editor's do, rather than halfway down */
.ch-test-editor-card.expanded,
.ch-test-editor-card.expanded .ch-test-editor-card-question {
    align-items: flex-start;
}

#test-editor .calculator-icon {
    color: var(--secondary-graphic-colour);
    font-size: 20px;
    line-height: 20px;
    margin-right: 4px;
    margin-top: 1px;
}

#test-editor .subQuestionLabel {
    font-weight: bold;
    margin-right: 2px;
}

#test-editor .nestedQuestion {
    margin: 0 0 5px 5px;
    display: flex;
    align-items: flex-start;
}

/* Resets <p>'s default top margin so "a"/"b"/"c" labels (unmarginned divs) don't sit lower than the label text */
#test-editor .nestedQuestion p {
    margin-top: 0;
}

#test-editor .nestedQuestions {
    margin: 0 0;
    display: flex; flex-direction: column;
}

.ch-editable-input-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.ch-editable-input {
    font-size: 1.75rem;
    font-weight: 700;
    padding: 0;
    width: fit-content;
    transform: translateY(-4px);
}

.ch-editable-input-actions {
    display: flex;
    bottom: -20px;
    right: 0;
    gap: 0.5rem;
}

.ch-editable-input-action-button {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    padding: 0;
    min-height: unset;
}

.ch-inline-editor-button {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font: inherit;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    text-align: left;
}

.ch-inline-editor-button:focus-visible {
    outline: var(--input-borderless-focus-size) solid var(--focus-on-surface);
    outline-offset: 2px;
    border-radius: 4px;
}

@media screen and (max-width: 1024px) {
    .ch-test-wrapper {
        padding: 0 8px;
    }
    #test-editor {
        padding-left:4px;
    }
}

.ch-accessibility-skip {
    width: 100%;
    height: 4rem;
    background-color: #212A37;
    align-items: center;
    padding-left: 1rem;
    display: flex;

    a {
        padding: 0 8px;
        color: whitesmoke;
        text-decoration: underline;
        font-weight: 500;
    }

    a:focus-visible {
        outline: 3px solid lightblue;
        outline-offset: 2px;
    }

    a:hover {
        text-decoration-thickness: 2px;
    }
}

/* All of below is for new features */

:root {
    --background-summary-card: #DEF5F4;
    --font-summary-card: #326968;
    --small-font-summary-card: #377574;
    --divider-summary-card: #75C4C2;
    --button-hover: #e8f4f4;
}

.ch-card-button {
    height: 150px;
    width: 275px;
    flex-shrink: 0;
    border: 2px solid var(--secondary-graphic-colour);
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: space-between;
    padding: 1.5rem;
    color: var(--secondary-text-colour);
}

.ch-card-button p {
    font-size: 1.25rem;
    font-weight: 600;
}

.ch-card-button > div {
    display: flex;
    width: 100%;
    justify-content: space-between;
}

.ch-card-button.ant-btn:not(:disabled):not(.ant-btn-disabled):hover {
    background-color: var(--background-summary-card) !important;
    border: 2px solid var(--secondary-graphic-colour);
}

.ch-reports-home-button-wrapper {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    container-type: inline-size;
    padding-bottom: 1rem;
}

.ch-card-button-filled {
    background: var(--background-summary-card);
    border-color: var(--background-summary-card);
    color: var(--font-summary-card);
}

/* Teacher Class Shortcut Widget */


.ch-class-shortcut-widget {
    margin: 0.5rem 0 2rem 0;
    width: 100%;
}

.ch-class-shortcut-widget h2 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.ch-class-shortcut-widget-header {
    display: flex;
    justify-content: space-between;
}

.ch-class-shortcut-widget-wrapper {
    position: relative;
}

.ch-class-shortcut-widget-cards-wrapper {
    position: relative;
    overflow: hidden;
    margin-right: 145px;
}

.ch-class-shortcut-widget-cards-wrapper.empty {
    height: fit-content;
    width: 100%;
    margin-right: 0;
}

.ch-class-shortcut-widget-cards {
    display: flex;
    gap: 1rem;
    container-type: inline-size;
    overflow-x: auto;
    padding: 8px 30px 4px 0;

    p {
        font-size: 1rem;
        font-weight: 500;
        padding-bottom: 0;
    }
}

.ch-class-shortcut-widget-cards-wrapper:not(.empty)::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 40px;
    height: 100%;
    pointer-events: none;
    background: linear-gradient(to left, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0));
    z-index: 2;
}

.ch-class-shortcut-widget-cards .ch-card-button {
    height: unset;
    flex-shrink: 0;
}

.ch-class-shortcut-widget-cards .ch-card-button > div:last-of-type {
    justify-content: end;
    width: 100%;
}

.ch-class-shortcut-widget-header p {
    font-size: 1.5rem;
    font-weight: 600;
}

.ch-class-shortcut-widget-content {
    flex-direction: column;
    align-items: start;
}

.ch-class-shortcut-widget-actions {
    width: 140px;
    height: 100%;
    background: #fff;
    position: absolute;
    right: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ch-class-shortcut-widget-actions button {
    flex: 1;
    font-weight: 600;
    font-size: 1.1rem;
    text-align: left;
    justify-content: space-between;
    white-space: normal;
}

.ch-class-shortcut-empty-buttons {
    display: flex;
    gap: 0.5rem
}

@media screen and (max-width: 512px) {
    .ch-class-shortcut-widget-wrapper {
        position: unset;
        display: flex;
        flex-direction: column;
        gap: 0.25rem
    }

    .ch-class-shortcut-widget-cards-wrapper {
        margin-right: unset;
    }

    .ch-class-shortcut-widget-actions {
        position: unset;
        flex-direction: row;
        height: 50px;
        width: 100%;
    }

    .ch-class-shortcut-widget-actions button {
        flex: 1;
        font-weight: 600;
        text-align: left;
        justify-content: space-between;
        white-space: unset;
    }

    .ch-class-shortcut-empty-buttons {
        display: flex;
        flex-direction: column;
    }

    .ch-class-shortcut-empty-buttons button{
        width: 100%;
    }

    .ch-class-shortcut-widget-cards {
        padding: 0;
    }
}

/* Report summary card */

.ch-report-summary-card {
    background: var(--background-summary-card);
    max-width: 400px;
    flex-basis: 400px;
    /*min-height: 240px;*/
    border-radius: 8px;
    color: var(--small-font-summary-card);
    font-weight: 500;
    font-size: 16px;
    display: flex;
    flex-direction: column;
    padding: 1rem;
}

.ch-report-summary-card-number {
    font-size: 34px;
    font-weight: 600;
    padding: 0;
}

.ch-report-summary-card-row {
    display: flex;
    justify-content: space-between;
    flex-grow: 1;
    align-items: flex-start;
}

.ch-report-summary-card-row:last-of-type {
    align-items: flex-end;
}

.ch-report-summary-card-detail {
    flex: 1;
    display: flex;
    flex-direction: column-reverse;
}

/* Student Report Search */

.ch-student-report-search-empty-table {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #767676 !important;
}

/* Student Report */
.ch-reports-heading-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: .75rem;
}

.ch-reports-heading-buttons {
    display: flex;
    gap: 0.5rem;
}

.ch-reports-table .ant-table-column-sorters button {
    white-space: normal;
    word-wrap: break-word;
    height: fit-content;
}

/* Report front page card */
.ch-quick-report-card {
    width: 276px;
    height: 320px;
    padding: 1rem;
    border-radius: 8px;
    background: var(--background-summary-card);
    color: var(--font-summary-card);
    flex-shrink: 0;
}

.ch-quick-report-card h3 {
    font-size: 1.7rem;
}

.ch-quick-report-card-button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0;
    color: var(--font-summary-card) !important;
}

.ch-quick-report-quick-stats {
    display: flex;
    font-weight: 500;
    gap: 2rem;
}

.ch-quick-report-card-detail {
    display: flex;
    flex-direction: column-reverse;
}

.ch-quick-report-card-number {
    font-size: 1.4rem;
    font-weight: 600;
    padding-bottom: 0;
}

.ch-quick-report-card-table {
    width: 100%;
    border-collapse: collapse;
}

.ch-quick-report-card-table thead th {
    font-weight: 400;
    font-size: 14px;
    padding: 4px 0;
}

.ch-quick-report-card-table tbody td {
    font-weight: 600;
    padding: 4px 0;
}

.ch-quick-report-card-table tr {
    border-bottom: 1px solid #c1e4e4;
}

.ch-quick-report-card-leaderboard > div {
    display: flex;
    justify-content: space-between;
}

.ch-quick-report-card-leaderboard > div > h4 {
    font-size: 1.4rem;
    font-weight: 600;
    padding-bottom: 0;
}

.ch-quick-activity-reports-wrapper {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    container-type: inline-size;
}

/* Class page */

.ch-myclasses-tab {
    display: flex;
    width: 100%;
    flex-wrap: wrap;
}

.ch-class-card {
    width: 300px;
    min-height: 200px;
    align-self: flex-start;
    background-color: #DEF5F4;
    border-radius: 8px;
    color: #377574;
    margin: 0 1rem 1rem 0;
    display: flex;
    flex-direction: column;
    position: relative;
}

.ch-class-card-content {
    padding: 1rem;
}

.ch-class-card-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 4px;
}

.ch-class-card-checkbox.ant-checkbox-wrapper {
    padding: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ch-class-card-heading-icons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ch-class-card-heading h2 {
    font-weight: 600;
    font-size: 30px;
}

.ch-class-card-content p {
    font-weight: 500;
    padding-bottom: 2px;
    display: flex;
    align-items: center;
}

.ch-class-card-text-icon {
    margin-right: 4px;
    display: flex;
    align-items: center;
}

.ch-class-card .ch-button-wrapper {
    margin-top: auto;
    width: 100%;
    display: flex;
}

.ch-class-card .ch-button-wrapper button {
    width: 20px;
    background: none;
    border: none;
    border-top: 1px solid #6eb5b4;
    border-radius: 0 0 8px 8px;
    height: 50px;
    font-weight: 600;
    color: #377574;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #DEF5F4;
}

.ch-class-card .ch-button-wrapper button:hover {
    background-color: #b7d6d5;
    cursor: pointer;
}

.ch-class-card .ch-button-wrapper button:disabled {
    color: #94b6b5;
    cursor: not-allowed;
}

.ch-class-card .ch-button-wrapper button:disabled:hover {
    background-color: transparent;
}

.ch-class-card .ch-button-wrapper button:nth-child(1),
.ch-class-card .ch-button-wrapper button:nth-child(2) {
    flex: 1 1 25%;
    border-right: 1px solid #6eb5b4;
    border-radius: 0 0 0 8px;
}

.ch-class-card .ch-button-wrapper button:nth-child(3) {
    flex: 1 1 50%;
}

.ch-class-card .ch-button-wrapper .ch-dropdown-button {
    flex: 1 1 25%;
    border-radius: 0 0 0 8px;
    display: flex;
}

.ch-class-card .ch-button-wrapper .ch-dropdown-button > button {
    width: 100%;
}


.ch-class-card-not-class-tag {
    position: absolute;
    bottom: 55px;
    right: 10px
}

.ch-my-classes {
    display: flex;
    flex-wrap: wrap;
}

.ch-classes-grid-wrapper {
    width: calc(100% - 16px);
}

.ch-classes-grid {
    display: flex;
    flex-wrap: wrap;
    min-height: 432px;
    margin: 0.75rem 0;
}

.ch-my-classes-no-results {
    display: flex;
}

.ch-my-classes-no-results button {
    padding-bottom: 5px;
}

.ch-classes-pagination-wrapper {
    display: flex;
    width: 100%;
    justify-content: flex-end;
    padding-bottom: 8px;
}

.ch-classes-pagination {
    margin-top: 0;
}

.ch-tabs-hidden .ant-tabs-nav {
    display: none;
}

.ch-breadcrumb-button {
    padding: 0;
    color: #747474 !important;
    font-weight: 400;
    min-height: unset;
    height: fit-content;
}

.ant-breadcrumb .ch-breadcrumb-button:not(:last-child) {
    cursor: pointer;
}

.ch-class-details-summary-wrapper {
    display: flex;
    width: 100%;
    gap: 1.5rem;
    height: fit-content;
    flex-wrap: wrap;
}

.ch-class-details-button-wrapper > div {
    display: flex;
    gap: 0.75rem;
    font-weight: 600;
}

.ch-class-details-button-wrapper > div:first-of-type {
    margin-bottom: 0.75rem;
}

.ch-class-details-action-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    border: 2px solid #6eb5b4;
    border-radius: 8px;
    color: #377574;
    text-align: center;
    text-wrap: wrap;
    padding: 0;
    font-weight: 600;
    gap: 0;
}

.ch-class-details-action-button .ch-header-mobile-icon {
    margin-right: 0;
}

.ch-class-details-action-button:hover {
    background-color: var(--button-hover) !important;
}

.ch-class-details-weekly-summary {
    border: 2px solid #6eb5b4;
    border-radius: 8px;
    color: #377574;
    padding: 0.75rem 1rem;
    overflow: hidden;
    height: 220px;
    flex: 1 1 auto;

    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    /*min-width: 450px;*/
}

.ch-class-details-weekly-summary-heading {
    padding-bottom: 0;
    font-size: 18px;
    font-weight: 600;
}

.ch-class-details-weekly-summary-content {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ch-class-details-weekly-summary-card {
    min-height: 60px;
    background-color: #eff6ff;
    border-radius: 4px;
    flex-shrink: 0;
    width: 98%;
    display: grid;
    grid-template-columns: 60px 1fr 25%;
    align-items: center;
    color: #656165;
}

.ch-class-details-weekly-summary-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.color-manage-pathways {
    background-color: #f2edf5;
}

.color-tests {
    background-color: #e3f5f6;
}

.color-competition {
    background-color: #f0f5ed;
}

.color-diagnostic-tests {
    background-color: #f5f3ed;
}

.ch-class-details-weekly-summary-card .ch-class-details-weekly-summary-card-title {
    font-weight: 600;
    margin-bottom: 0;
    padding-bottom: 0;
    color: #232023;
    font-size: 16px;
    text-transform: capitalize;
}

.ch-class-details-weekly-summary-card-icon {
    display: grid;
    place-content: center;
}

.ch-class-details h2, .ch-teacher-reports h2 {
    font-size: 32px;
    font-weight: 700;
}

.ch-reports-home h2 {
    margin-bottom: 1rem;
}

.ch-class-details h3 {
    font-size: 26px;
}

.ch-class-details-table-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

@media screen and (max-width: 1024px) {
    .ch-class-details {
        padding: 0 1rem;
    }
}

@media screen and (max-width: 768px) {
    .ch-class-details-button-wrapper {
        display: flex;
        gap: 1rem;
    }
}

@media screen and (max-width: 512px) {
    .ch-class-details-table-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* Table Controls */
.ch-table-controls {
    display: flex;
}

.ch-table-controls button {
    padding: 0 0.25rem;
}

/* Class Quick report Dialog */
.ch-class-quick-report-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ch-class-quick-report-name {
    font-size: 1.8rem;
    font-weight: 700;
}
.ch-class-quick-report-heading {
    font-size: 1.1rem;
    color: #626262;
    margin-bottom: 0.75rem;
}

.ch-class-quick-report-stat-wrapper {
    display: flex;
    width: 100%;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.ch-class-quick-report-stat {
    border: 2px solid lightgrey;
    border-radius: 4px;
    padding: 0.75rem;
    flex: 1;
    display: grid;
    place-items: center;
    font-weight: 600;
    text-align: center;
}

.ch-class-quick-report-stat span {
    font-size: 1.5rem;
    font-weight: 700;
}

.ch-drawer-right-content {
    padding-right: 16px;
    height: 95%;
    max-height: 95vh;
    overflow: auto;
}

.ch-manage-users-wrapper .ant-tabs-nav {
    position: sticky;
    top: 0;
    z-index: 4;
    background-color: white;
}

.ch-manage-users-collapse {
    --ant-collapse-content-padding: 0 !important;
}

.ch-manage-users-buttons-wrapper {
    background-color: white;
    position: sticky;
    bottom: 0;
}

.ch-manage-users-buttons {
    display: flex;
    gap: 8px;
}

.ch-manage-users-buttons button {
    flex: 1;
}

.ch-manage-users-selector-no-result {
    text-align: center;
    padding: 20px;
    color: grey;
}

.ch-manage-users-selector-card {
    margin-bottom: 8px;
}

.ch-manage-users-selector-card-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ch-manager-users-selector-card-heading {
    flex: 1;
}

.ch-manager-users-selector-card-heading h3 {
    font-size: 1rem;
    display: flex;
    align-items: center;
}

.ch-manager-users-selector-card-heading p {
    color: grey;
}

.ch-manager-users-selector-card-heading p span {
    text-transform: capitalize;
}

.ch-manage-users-selector-card-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.ch-manager-users-selector-add-user-button {
    width: 100%;
    margin-bottom: 16px;
    position: sticky;
    bottom: 0;
    background-color: white !important;
}

.ch-manage-users-selector-header {
    position: sticky;
    top: 40px;
    background-color: white;
    z-index: 4;
    padding: 4px 0 0 0;
}

.ch-manage-users-selector-header label {
    font-size: 14px;
    font-weight: 600;
}

.ch-manage-users-selector-checkbox {
    transform: scale(1.2);
}

.ch-add-class-stepper-controls {
    position: sticky;
    top: 0;
    padding-bottom: 8px;
    z-index: 4;
    background-color: white;
}

.link-button {
    /* Remove all default button styles */
    background: none;
    /*color: inherit;*/
    border: none;
    /*padding: 0;*/
    font: inherit;
    cursor: pointer;
    text-decoration: none;
    text-align: left;
}
.ant-pagination-item-active .link-button{
    /* Dark text, not primary: primary is too light as text for some brands */
    color: var(--on-surface-colour);
}
#test-wizard .ant-input-number {
    width: 100%;
}

/* New Widget with covers */
.ch-lesson-nav-widget-wrapper {
    display: flex;
    gap: 1rem;
}

.ch-lesson-nav-widget-image-wrapper {
    max-width: 175px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.ch-lesson-nav-widget-image {
    width: 100%;
    border-radius: 8px;
}

@keyframes particle-drift {
    0%, 100% { transform: translate(0, 0); opacity: 0.1; }
    50% { transform: translate(var(--drift-x, 0px), var(--drift-y, 0px)); opacity: 0.3; }
}

.ch-lesson-nav-widget-image.empty {
    position: relative;
    width: 175px;
    height: 220px;
    text-align: center;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--secondary-colour) 0%, color-mix(in srgb, var(--secondary-colour), white 15%) 100%);
    border-radius: 8px;
}

.ch-lesson-nav-widget-image.empty p {
    font-size: 12px;
    color: var(--on-secondary-colour);
    font-weight: 600;
    z-index: 2;
    position: relative;
    padding: 8px;
    max-width: 160px;
}

.ch-particle-field {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.ch-particle {
    position: absolute;
    color: #fff;
    left: var(--p-left);
    top: var(--p-top);
    font-size: var(--p-size);
    opacity: 0.1;
    animation: particle-drift var(--p-duration) ease-in-out infinite;
    animation-delay: var(--p-delay);
}

.ch-lesson-nav-widget-content-wrapper {
    flex-basis: 800px;
}

.ch-lesson-nav-widget-book-title {
    font-size: 1.4rem;
    font-weight: 700;
    max-width: 40ch;
}

.ch-lesson-nav-widget-section-container {
    display: flex;
    gap: 1rem;
}

.ch-lesson-nav-widget-section-item {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ch-lesson-nav-widget-section-button {
    width: 100%;
    text-align: left;
    white-space: normal;
    flex: 1;
    /*height: 100%;*/
}

.ch-lesson-nav-widget-section-button-content {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 8px 8px 40px 8px;
    position: relative;
    height: 100%;
}

.ch-lesson-nav-widget-section-button-content svg {
    position: absolute;
    bottom: 10px;
    left: 8px;
}

.ch-lesson-nav-widget-section-item:nth-child(2) svg {
    right: 8px;
    left: auto;
}

.ch-lesson-nav-widget-section-button-content span:last-of-type {
    padding-top: 4px;
    font-weight: 700;
}

.ch-lesson-nav-widget-section-button-next-icon {
    align-self: end;
}

@media screen and (max-width: 768px){
    .ch-lesson-nav-widget-book-title-wrapper {
        display: flex;
        gap: 0.75rem;
        align-items: center;
        flex-direction: row-reverse;
        justify-content: space-between;
    }

    .ch-lesson-nav-widget-image-wrapper {
        max-width: 120px;
    }

    .ch-lesson-nav-widget-section-container {
        flex-direction: column;
    }

    .ch-lesson-nav-widget-image.empty {
        width: 120px;
        height: 150px;
    }
}

@media screen and (max-width: 512px){
    .ch-lesson-nav-widget-image-wrapper {
        max-width: 80px;
    }

    .ch-lesson-nav-widget-book-title {
        font-size: 1.1rem;
    }

    .ch-lesson-nav-widget-image.empty {
        display: none;
    }
}



.ch-pw-ani {
    transition: flex var(--ani-small) var(--easing);
}
.ch-pw-dp-rangeBlk {
    height: 64px;
}
.ch-pw-dp-rangeBlk.ch-pw-dp-rangeBlk-selected,
button.ant.ant-btn.ch-pw-dp-rangeBlk.ch-pw-dp-rangeBlk-selected:hover {
    background: var(--input-colour) !important;
}

.ch-empty-data-card {
    width: 100%;
    min-height: 80px;
    border-radius: 8px;
    border: 2px solid var(--border-colour);
    background-color: var(--surface-colour);
    padding: 0.75rem 0.5rem;
    display: flex;
    align-items: center;
    color: var(--text-colour);
}

.testEditorQuestionBank .ant-list-split .ant-list-item{
    border-block-end: unset;
}

.ant-select-item-option-content {
    white-space: normal;
    word-wrap: break-word;
}
.nonDigitalOnlyLegend{ height:20px;  width:20px;  vertical-align: middle;  display:inline-block;  border:1px solid #666;  }
.question-content-holder .ch-pagination-wrapper nav {
    position: sticky;
    bottom: 0;
    background-color: #fff;
    padding-top: 8px;
    padding-bottom: 40px;
    margin-top: 0 !important;
    justify-content: flex-start !important;
}
.question-content-holder .ch-pagination-wrapper nav ul.ant-pagination {
    margin-top: 0 !important;
}
.question-content-holder .ch-pagination-wrapper nav .ant-pagination-total-text {
    order: 999;
}

.ch-dnd-column{
    flex:1;
    border-radius: 12px;
    overflow: hidden;
}
.ch-dnd-column .ch-dnd-column-title{
    padding: 4px;
    background-color: var(--dnd-title-bg-colour);
    /* The brand's text colour on its secondary: white is unreadable on light secondaries */
    color: var(--on-secondary-colour);
    align-items: center;
}
.ch-dnd-column .ch-dnd-column-title h4,
.ch-dnd-column .ch-dnd-column-title button{
    color: var(--on-secondary-colour);
}
/* Hover and focus stay in the text colour (AntD's text-button hover colour is the secondary, the heading's own fill) */
.ch-dnd-column .ch-dnd-column-title .ant-btn.ant-btn-text:not(:disabled):hover,
.ch-dnd-column .ch-dnd-column-title .ant-btn.ant-btn-text:not(:disabled):active{
    color: var(--on-secondary-colour);
    background-color: rgba(var(--on-secondary-colour-RGB), .15);
}
.ch-dnd-column .ch-dnd-column-title .ant-btn:focus-visible{
    outline: 2px solid var(--on-secondary-colour);
    outline-offset: 1px;
}
.ch-dnd-column .ch-dnd-column-title .ant-badge-count{
    background-color: rgba(var(--on-secondary-colour-RGB), .15);
    color: var(--on-secondary-colour);
    box-shadow: none;
}
.ch-dnd-column .ch-dnd-column-content{
    display: flex;
    flex-direction: column;
    gap:4px;
    flex-shrink: 0;
}
.ch-dnd-column-content{
    border-top: 1px solid lightgrey;
    flex-grow: 1;
}
.ch-column-dnd-card{
    /*background: rgba(var(--secondary-colour-RGB), .3);*/
}

#testHelpList{
    line-height: 1.5em;
}

#testHelpList > li {
    margin-bottom:8px;
}









/*   Content styles editor   */
.ch-s_ed {
    --styles-edit-colour-RGB: 24, 144, 255;
    --styles-edit-border-offset: -4px;
}
/*   -- Content styles editor menu   */
@keyframes editorRowFlash {
    0% {background-color: transparent;}
    30% {background-color: rgba(var(--styles-edit-colour-RGB), 0.2)}
    100% {background-color: transparent;}
}
.ch-s_ed .ch-s_ed-options {
    display: flex;
    flex-direction: column;
}
.ch-s_ed .ch-s_ed-option--group {
    display: flex;
    flex-direction: column;
}
.ch-s_ed .ch-s_ed-options,
.ch-s_ed .ch-s_ed-option--group {
    gap: 2px;
}
.ch-s_ed .ch-s_ed-option--block {
    display: flex;
    align-items: center;
    flex-direction: row;
    padding: 4px;
}
.ch-s_ed .ch-s_ed-option-highlight {
    animation: editorRowFlash 2s cubic-bezier(0.25, 1, 0.5, 1);
    border-radius: 4px;
}
/*   -- Content styles editor preview   */
.ch-s_ed .cont-base * {
    /*pointer-events: none;*/
}
.ch-s_ed .ch-s_ed-demo {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding-top: calc(var(--spacing-unit) * 2);
}
.ch-s_ed .ch-s_ed-demo--section {
    position: relative;
}
.ch-s_ed .ch-s_ed-demo--section:not(:first-child) {
    margin-top: calc(var(--spacing-unit) * 3);
}
.ch-s_ed .ch-s_ed-demo--section-head {
    font-size: 1.5rem;
    font-weight: 600;
}
.ch-s_ed .ch-s_ed-demo--section-head+* {
    margin-top: calc(var(--spacing-unit) * 3);
}
.ch-s_ed .ch-s_ed-demo--section-group {

}
.ch-s_ed .ch-s_ed-demo--sub-section {
    margin-top: calc(var(--spacing-unit) * 2);
}
.ch-s_ed .ch-s_ed-demo--sub-section-head {
    font-size: 1.2rem;
    font-weight: 600;
}
.ch-s_ed .ch-s_ed-demo--sub-section-head+* {
    margin-top: calc(var(--spacing-unit) * 1);
}
.ch-s_ed .ch-s_ed-demo--sub-section-group {
    border: 1px solid var(--border-colour);
    border-radius: 8px;
    padding: var(--large-spacing-unit);
}
.ch-s_ed .ch-s_ed-demo--sub-section-group > :first-child {
     margin-top:0 !important;
 }
.ch-s_ed .ch-s_ed-component-hover {
    cursor: pointer;
    position: relative;
    pointer-events: auto !important;
}
.ch-s_ed .ch-s_ed-component-hover:before {
    content: "";
    position: absolute;

    top: var(--styles-edit-border-offset);
    left: var(--styles-edit-border-offset);
    right: var(--styles-edit-border-offset);
    bottom: var(--styles-edit-border-offset);

    outline: 2px solid rgb(var(--styles-edit-colour-RGB));
    background-color: rgba(var(--styles-edit-colour-RGB), 0.05);
    pointer-events: none;
    z-index: 1;
}
.ch-s_ed .ch-s_ed-component-hover:after {
    content: attr(data-name);
    position: absolute;
    top: var(--styles-edit-border-offset);
    left: calc(var(--styles-edit-border-offset) - 2px);
    height: fit-content;
    width: fit-content;

    background: rgba(var(--styles-edit-colour-RGB), 0.9);
    backdrop-filter: blur(2px);
    color: #fff;

    font-size: 10px;
    font-weight: 700;
    font-family: "open-sans", Arial, sans-serif;
    font-style: normal;
    text-transform: uppercase;
    letter-spacing: 0.5px;

    padding: 2px 6px;

    white-space: nowrap;
    pointer-events: none;
    z-index: 1;
    line-height: normal;

    transform: translateY(-100%);
    border-radius: 2px 2px 0 0;
}



.ch-page-heading-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: .75rem;
    gap: 1rem;
}

.ch-page-heading-wrapper h2 {
    font-size: 32px;
    font-weight: 700;
}

.ch-page-heading-wrapper p {
    color: #555555;
}

/* Smaller than the default page heading, for a PageHeader title inside a tab. */
.ch-page-heading-title-md {
    font-size: 26px;
    font-weight: 600;
}

.ch-page-heading-sticky {
    position: sticky;
    top: 0;
    z-index: 3;
    background: white;
    border-bottom: 1px solid var(--border-colour);
}

.ch-page-heading-sticky .ch-page-heading-wrapper {
    margin-bottom: 0.5rem;
}

.ch-page-heading-buttons {
    display: flex;
    gap: 0.5rem;
}


.ch-on-complete-colour {
    color: var(--on-complete-colour) !important;
}

.ch-on-success-colour {
    color: var(--on-success-colour) !important;
}

.ch-star-bar-icon {
    font-size: 32px;
    display: flex;
    justify-content: center;
}

@media screen and (max-width: 768px) {
    .ch-page-heading-wrapper {
        flex-direction: column;
        align-items: start;
    }

    .ch-page-heading-wrapper h2 {
        margin-bottom: 1rem;
    }

    .ch-page-heading-buttons {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }

    .ch-page-heading-buttons button {
        width: 100%;
    }
}

.ch-contextual-nav-accessible-skip {
    padding: 0;
    color: #006bce;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-in-out, padding 0.2s ease-in-out;
}

.ch-contextual-nav-accessible-skip:focus-within {
    padding: var(--medium-spacing-unit);
    padding-left: 12px;
    max-height: 100px;
}

.ch-contextual-nav-accessible-skip a {
    text-decoration: underline;
}

.ch-contextual-nav-accessible-skip a:hover {
    color: #006bce;
}

.ch-contextual-nav-accessible-skip a:focus-visible {
    outline: var(--input-borderless-focus-size) solid var(--focus-on-surface);
    outline-offset: 2px;
}

.walkthrough-content p, .practice-question-content p, .walkthroughContent p , .questionContent p {
    margin-bottom: 0.5rem;
}

.walkthrough-content p:last-of-type, .practice-question-content p:last-of-type, .walkthroughContent p:last-of-type , .questionContent p:last-of-type {
    margin-bottom: 0;
}
.questionContent input{
    field-sizing: content;
}

.walkthrough-content .equations {
    margin-left: 0 !important;
}

/* Old CMS equation spans: the cup-text content stylesheets' block indent (.equations) isn't meant for inline maths */
span.equations {
    margin-left: 0 !important;
}

.ch-summary-manager {

}

#testSkillSummaryWrapper i.check-icon-green {
    color: #6FDDCF;
}

#testSkillSummaryWrapper i.cross-icon-red {
    color: #C23D4D;
}

/* --- AI Remediation Styles --- */

/* Animations */
@keyframes ch-pulse-bg {
    0%, 100% { background-color: rgba(var(--primary-colour-RGB), 0.05); }
    50% { background-color: rgba(var(--primary-colour-RGB), 0.15); }
}

.ch-ai-thinking {
    display: flex;
    align-items: center;
    gap: var(--large-spacing-unit);
    padding: var(--large-spacing-unit);
    background-color: #f0f7ff; /* Light blue tint */
    border: 1px solid #bae7ff;
    border-radius: var(--container-radius);
    animation: ch-pulse-bg 2s infinite;
}

.ch-ai-pulse-icon {
    font-size: 24px;
    color: var(--primary-colour);
    animation: ch-icon-rotate 3s linear infinite;
}

/* --- Chance Simulator Animations --- */
@keyframes flipCoin {
    0% { transform: rotateY(0); }
    50% { transform: rotateY(900deg) scale(1.2); }
    100% { transform: rotateY(1080deg) scale(1); }
}

@keyframes rollDie {
    0% { transform: rotate(0) translate(0,0); }
    25% { transform: rotate(90deg) translate(-10px, -10px); }
    50% { transform: rotate(180deg) translate(10px, 10px); }
    75% { transform: rotate(270deg) translate(-5px, 5px); }
    100% { transform: rotate(360deg) translate(0,0); }
}

@keyframes spinWheel {
    0% { transform: rotate(0); }
    100% { transform: rotate(1440deg); }
}

@keyframes shakeBag {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(5deg); }
    75% { transform: rotate(-5deg); }
    100% { transform: rotate(0deg); }
}

.animate-coin { animation: flipCoin 0.6s ease-out; }
.animate-die { animation: rollDie 0.6s ease-out; }
.animate-spinner { animation: spinWheel 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
.animate-bag { animation: shakeBag 0.5s ease-in-out infinite; }

/* Inline Hint Text */
.ch-item-hint {
    position: absolute;
    bottom: -24px;
    left: 0;
    right: 0;
    background: var(--error-bg-colour);
    color: var(--error-colour);
    font-size: 11px;
    padding: 2px 4px;
    border-radius: 4px;
    text-align: center;
    z-index: 10;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    animation: ch-fadeIn 0.3s ease;
}

@keyframes ch-fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

.ch-collapsible-field {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    pointer-events: none;
    transition: grid-template-rows 0.3s ease, opacity 0.25s ease;
}
.ch-collapsible-field-open {
    grid-template-rows: 1fr;
    opacity: 1;
    pointer-events: auto;
}
.ch-collapsible-field > div {
    overflow: hidden;
    min-height: 0;
}

.ch-lesson-plans {
    margin: 0 8px;
}

.ch-lpm-stepper-buttons {
    display: flex;
    width: 100%;
    justify-content: space-between;
}

.ch-lpm-stepper-next {
    margin-left: auto;
}

.ch-lpm-syllabus-select-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.ch-lpm-syllabus-select-grid > *:nth-child(-n+2) {
    border-bottom: 1px solid #d9d9d9;
    padding-bottom: 16px;
}

.ch-lpm-card {
    width: 240px;
    height: 310px;
    border-radius: 8px;
    outline: 2px solid grey;
}

.ch-lpm-card-actions {
    display: flex;
    align-items: center;
    justify-content: space-around;
}

.ch-lpm-card-actions > button {
    width: 50%;
}

.ch-lpm-table-row-title {
    display: flex;
    flex-direction: column;
    padding: 8px 0;
}

.ch-lpm-table-row-title p {
    padding: 0;
}

.ch-lpm-table-row-subtitle {
    color: #666666;
}

.ch-lpm-wizard-form {
    max-width: 1200px;
    margin: 0 auto;
    container-type: inline-size;
    container-name: wizard-form;
}

.ch-lpm-form-section {
    margin: 1rem 0 2rem 0;
}

.ch-lpm-form-section h3 {
    font-size: 1.3rem;
    font-weight: 700;
}

/* Syllabus select row */
.ch-lpm-syllabus-select-row {
    display: flex;
    column-gap: 8px;
    row-gap: 0;
}

.ch-lpm-syllabus-select-row .ant-form-item {
    flex: 1;
    min-width: 0;
    margin-bottom: 0 !important;
}

.ch-lpm-syllabus-select-row .ant-select {
    width: 100%;
}

/* Learning goal - Grid layout */
.ch-lpm-learning-goal-group {
    width: 100%;
}

.ch-lpm-radio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.ch-lpm-radio-option-form-item.ant-form-item .ant-form-item-label {
    padding-top: 0 !important;
    padding-bottom: 8px !important;
}

.ch-lpm-radio-option-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
}

.ch-lpm-radio-option-group .ch-lpm-radio-option.ant-radio-wrapper {
    display: flex;
    align-items: flex-start;
    width: 100%;
    text-align: left;
}

.ch-lpm-radio-option-group .ch-lpm-radio-option.ant-radio-wrapper .ant-radio {
    align-self: flex-start;
    margin-top: 0;
    line-height: 1.2;
}

.ch-lpm-radio-option .ant-radio+span {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    text-align: left;
}

.ch-lpm-radio-option-label {
    font-weight: 600;
    line-height: 1.2;
    text-align: left;
}

.ch-lpm-radio-option-description {
    font-size: 13px;
    text-align: left;
}

.ch-lpm-radio-card {
    width: 100%;
    height: 100%;
    padding: 16px;
    border-radius: 8px;
}

.ch-lpm-radio-card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.ch-lpm-radio-card-icon {
    font-size: 28px;
}

.ch-lpm-radio-card-label {
    text-align: center;
}

/* Knowledge dimension - Grid layout */
.ch-lpm-knowledge-group {
    width: 100%;
}

.ch-lpm-knowledge-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.ch-lpm-knowledge-card {
    width: 100%;
    height: 100%;
    padding: 12px;
    border-radius: 8px;
}

.ch-lpm-knowledge-card-content {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.ch-lpm-knowledge-card-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.ch-lpm-knowledge-card-text {
    text-align: left;
}

/* Cognitive task - Single row grid layout */
.ch-lpm-cognitive-group {
    width: 100%;
}

.ch-lpm-cognitive-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.ch-lpm-cognitive-item {
    width: 100%;
    height: 100%;
    padding: 12px;
    border-radius: 8px;
}

.ch-lpm-cognitive-item-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.ch-lpm-cognitive-item-icon {
    font-size: 28px;
}

.ch-lpm-cognitive-item-label {
    text-align: center;
}

.ch-lpm-form-section .ant-form-item {
    margin-bottom: 1rem;
}

.ch-lpm-form-section .ant-form-item:last-child {
    margin-bottom: 0;
}

/* Resources - Grid layout with checkboxes */
.ch-lpm-resources-group {
    width: 100%;
}

.ch-lpm-resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    width: 100%;
}

.ch-lpm-resource-card {
    display: block;
    padding: 16px;
    border: 1px solid var(--input-border-colour);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #fff;
}

.ch-lpm-resource-card:hover {
    border-color: #40a9ff;
}

.ch-lpm-resource-card.checked {
    border-color: var(--secondary-graphic-colour);
    background-color: var(--secondary-colour);
    color: var(--on-secondary-colour);
}

.ch-lpm-resource-card.checked .ch-lpm-resource-card-icon,
.ch-lpm-resource-card.checked .ch-lpm-resource-card-label {
    color: var(--on-secondary-colour);
}

.ch-lpm-resource-card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.ch-lpm-resource-card-icon {
    font-size: 28px;
    color: #000;
}

.ch-lpm-resource-card-label {
    text-align: center;
    flex-grow: 1;
}

.ch-lpm-resource-checkbox {
    margin: 0;
}

.ch-lpm-resource-card.checked .ch-lpm-resource-checkbox .ant-checkbox {
    background-color: #fff;
    border-color: #fff;
}

.ch-lpm-resource-card.checked .ch-lpm-resource-checkbox .ant-checkbox-checked {
    background-color: #fff;
    border-color: #fff;
}

.ch-lpm-resource-card.checked .ch-lpm-resource-checkbox .ant-checkbox-checked::after {
    border-color: var(--primary-colour);
}

/* Template cards */
.ch-lpm-template-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ch-lpm-template-card {
    cursor: pointer;
    border: 1px solid var(--input-border-colour);
    transition: all 0.3s ease;
}

.ch-lpm-template-card:hover {
    border-color: #40a9ff;
    background-color: #f5f5f5;
}

.ch-lpm-template-card.selected {
    border-color: var(--secondary-graphic-colour);
    background-color: var(--secondary-colour);
}

.ch-lpm-template-card.selected h4,
.ch-lpm-template-card.selected p {
    color: var(--on-secondary-colour);
    margin: 0;
}

.ch-lpm-template-card h4 {
    margin: 0 0 8px 0;
}

.ch-lpm-template-card p {
    margin: 0;
}

/* Components - Grid layout with checkboxes (no icon) */
.ch-lpm-components-group {
    width: 100%;
}

.ch-lpm-components-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    width: 100%;
}

.ch-lpm-component-card {
    display: block;
    padding: 16px;
    border: 1px solid var(--input-border-colour);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #fff;
}

.ch-lpm-component-card:hover {
    border-color: #40a9ff;
}

.ch-lpm-component-card.checked {
    border-color: var(--secondary-graphic-colour);
    background-color: var(--secondary-colour);
    color: var(--on-secondary-colour);
}

.ch-lpm-component-card.checked .ch-lpm-component-card-label {
    color: var(--on-secondary-colour);
}

.ch-lpm-component-card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.ch-lpm-component-card-label {
    text-align: center;
    flex-grow: 1;
}

.ch-lpm-component-checkbox {
    margin: 0;
}

.ch-lpm-component-card.checked .ch-lpm-component-checkbox .ant-checkbox {
    background-color: #fff;
    border-color: #fff;
}

.ch-lpm-component-card.checked .ch-lpm-component-checkbox .ant-checkbox-checked {
    background-color: #fff;
    border-color: #fff;
}

.ch-lpm-component-card.checked .ch-lpm-component-checkbox .ant-checkbox-checked::after {
    border-color: var(--primary-colour);
}

/* Switch container */
.ch-lpm-switch-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ch-lpm-switch-label {
    font-size: 14px;
}

/* Container queries for wizard form */
@container wizard-form (max-width: 1100px) {
    .ch-lpm-syllabus-select-row {
        flex-wrap: wrap;
    }

    .ch-lpm-syllabus-select-row .ant-form-item {
        flex-basis: calc(50% - 8px);
    }
}

@container wizard-form (max-width: 750px) {
    .ch-lpm-syllabus-select-row {
        flex-direction: column;
    }

    .ch-lpm-syllabus-select-row .ant-form-item {
        flex-basis: 100%;
    }
}

/* Responsive: stack grids on mobile */
@media (max-width: 768px) {
    .ch-lpm-radio-grid,
    .ch-lpm-knowledge-grid,
    .ch-lpm-cognitive-list {
        grid-template-columns: 1fr;
    }
}

/* Radio button content wrapper for icon and label spacing */
.ch-lpm-radio-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 100%;
    padding: 4px 0;
}

/* Resources and Focus radio buttons - separate style with flexible height */
.ch-lpm-form-section .ant-radio-group-solid .ant-radio-button-wrapper {
    height: auto;
    min-height: 32px;
    border-radius: 4px;
    margin-right: 8px;
    margin-bottom: 8px;
    border: 1px solid #d9d9d9;
}

.ch-lpm-form-section .ant-radio-group-solid .ant-radio-button-wrapper:not(:first-child)::before {
    display: none;
}

.ch-lpm-form-section .ant-radio-group-solid .ant-radio-button-wrapper-checked {
    border-color: var(--secondary-colour);
    background-color: var(--secondary-colour);
}

.ch-lpm-form-section .ant-radio-group-solid .ant-radio-button-wrapper-checked:hover {
    border-color: var(--secondary-colour);
    background-color: var(--secondary-colour);
}




.ch-fab-scroll-to-top {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.ch-fab-scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    background-color: #fafafa;
    transition: background-color 0.3s ease;
}

.ch-fab-scroll-to-top.visible:hover {
    background-color: #ececec !important;
}

.ch-pagination-wrapper button.ant-pagination-item-link,
.ch-pagination-wrapper button.link-button {
    position: relative;
}

.ch-pagination-wrapper button.ant-pagination-item-link:focus-visible::after,
.ch-pagination-wrapper button.link-button:focus-visible::after {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: 0;
    border: 2px solid var(--input-colour);
    border-radius: 5px;
    pointer-events: none;
}

.ch-pagination-wrapper button.ant-pagination-item-link:focus-visible,
.ch-pagination-wrapper button.link-button:focus-visible {
    outline: none;
}

.ch-reorder-btn:focus-visible {
    outline: 2px solid var(--input-colour, #1677ff);
    outline-offset: 2px;
    border-radius: 4px;
}

.swap-page-btn:focus-visible {
    outline: 2px solid #ffffff!important;
    border-radius: 4px;
}

/* --- Lesson Planner --- */

.ch-lesson-planner {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.ch-lesson-planner ::-webkit-scrollbar {
    display: none;
}

.ch-lesson-planner * {
    scrollbar-width: none;
}


.ch-lesson-planner-header-actions {
    display: flex;
    gap: 8px;
}

.ch-lesson-planner-viewer-alert {
    margin-bottom: 16px;
}

.ch-lesson-plan-viewer-alert--spaced {
    margin-top: 16px;
}

.ch-lesson-planner-view {
    display: flex;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    border-top: 1px solid var(--border-colour);
    border-radius: 8px 8px 0 0;
}

.ch-lesson-planner-left {
    flex: 30;
    min-width: 0;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--border-colour);
    background: var(--surface-colour);
    overflow: hidden;
    position: relative;
}

.ch-lesson-planner-left-scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}



.ch-lesson-planner-left-footer {
    flex-shrink: 0;
    border-top: 1px solid rgba(0, 0, 0, .12);
    background: #fafafa;
}

.ch-lesson-planner-bulk-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--secondary-colour);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    gap: 8px;
    transform: translateY(100%);
    transition: transform 0.2s ease;
    z-index: 2;
}

.ch-lesson-planner-bulk-bar--visible {
    transform: translateY(0);
}

.ch-lesson-planner-bulk-bar-count {
    font-size: 13px;
    font-weight: 600;
    color: rgba(var(--on-secondary-colour-RGB), .85);
    white-space: nowrap;
}

.ch-lesson-planner-bulk-bar-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.ch-lesson-planner-bulk-bar .ch-button {
    color: var(--on-secondary-colour);
    border-color: var(--on-secondary-colour);
}

.ch-lesson-planner-group-panel {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--border-colour);
    background: #f2f2f7;
    flex-shrink: 0;
}

.ch-lesson-planner-group-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
}

.ch-lesson-planner-group-filter {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px 12px;
    background: #e0e0f0;
}

.ch-lesson-planner-group-filter-row {
    display: flex;
    align-items: center;
    gap: 4px;
}

.ch-lesson-planner-group-filter-row > .ant-select {
    flex: 1;
    min-width: 0;
}

.ch-lesson-planner-group-filter-row > *:last-child {
    flex-shrink: 0;
}

.ch-lesson-planner-group-panel-title {
    font-size: 14px;
    font-weight: 500;
}

.ch-lesson-planner-group-panel-search {
    padding: 0 12px 8px;
}

.ch-lesson-planner-group-panel-list {
    max-height: 132px;
    overflow-y: auto;
    border-top: 1px solid var(--border-colour);
    border-bottom: 1px solid var(--border-colour);
}

.ch-lesson-planner-group-panel-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2px 12px 2px 12px;
    font-size: 14px;
    background: #fff;
    border-bottom: 1px solid var(--border-colour);
}

.ch-lesson-planner-group-panel-row:last-child {
    border-bottom: none;
}

.ch-lesson-planner-group-panel-row:hover {
    background: #f5f5ff;
}

.ch-lesson-planner-left--selecting .ch-lesson-planner-lesson-drag {
    opacity: 0.25;
    cursor: default;
    pointer-events: none;
}

.ch-lesson-planner-add-unit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: var(--button-padding);
    min-height: 36px;
    border: none;
    background: none;
    cursor: pointer;
    font: var(--button-font);
    font-weight: var(--button-font-weight);
    color: var(--secondary-text-colour);
    text-transform: capitalize;
}

.ch-lesson-planner-add-unit:hover {
    opacity: 0.75;
}

.ch-lesson-planner-add-unit:disabled {
    cursor: not-allowed;
    opacity: 0.4;
}

.ch-lesson-planner-add-lesson {
    padding: 8px 12px;
}

.ch-lesson-planner-add-lesson .ch-btn {
    width: 100%;
}

.ch-lesson-planner-right {
    flex: 60;
    min-width: 0;
    display: flex;
    flex-direction: column;
    background: var(--container-colour);
    overflow-y: auto;
    padding-top: 8px;
}

.ch-lesson-planner-left .ch-lesson-planner-content-collapse .ant-collapse-content-box,
.ch-lesson-planner-left .ch-lesson-planner-content-collapse .ant-collapse-panel > .ant-collapse-body {
    padding: 0;
}

.ch-lesson-planner-left .ch-lesson-planner-content-collapse .ant-collapse-header {
    padding-top: 14px !important;
    padding-bottom: 14px !important;
    align-items: center !important;
    cursor: default !important;
    transition: background-color 0.3s ease;
}

.ch-lesson-planner-left .ch-lesson-planner-content-collapse .ant-collapse-header:hover,
.ch-lesson-planner-left .ch-lesson-planner-content-collapse .ant-collapse-item-active .ant-collapse-header:hover {
    background-color: var(--hover-bg-colour) !important;
}

.ch-lesson-planner-unit-label {
    display: flex;
    align-items: center;
    gap: 4px;
    width: 100%;
}

.ch-lesson-planner-unit-label-toggle {
    flex: 1;
    min-width: 0;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.ch-lesson-planner-unit-editing {
    display: block;
    max-width: 80%;
}

.ch-lesson-planner-unit-label-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-colour);
    line-height: 1.4;
}

.ch-lesson-planner-unit-label-sub {
    font-size: 12px;
    font-weight: 400;
    color: var(--text-secondary-colour, #888);
    line-height: 1.3;
}

.ch-lesson-planner-left .ch-lesson-planner-content-collapse .ant-collapse-item-active .ant-collapse-header,
.ch-lesson-planner-left .ch-lesson-planner-content-collapse .ant-collapse-item-active .ant-collapse-header .ant-typography {
    color: inherit !important;
    background-color: inherit !important;
}

.ch-lesson-planner-lesson-rows {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ch-lesson-planner-lesson-rows li {
    border-bottom: 1px solid rgba(0, 0, 0, .12);
}

/* Row span — non-interactive flex container */
.ch-lesson-planner-lesson-row {
    display: flex;
    align-items: stretch;
    width: 100%;
    background: #fff;
    min-width: 0;
}

.ch-lesson-planner-lesson-row:hover {
    background: var(--surface-colour);
}

.ch-lesson-planner-lesson-row--selected {
    background: var(--primary-light-colour, #e6f4ee);
    border-left: 3px solid var(--primary-color);
}

.ch-lesson-planner-lesson-row--selected:hover {
    background: var(--primary-light-colour, #e6f4ee);
}

/* Drag handle button */
.ch-lesson-planner-lesson-drag {
    display: flex;
    align-items: center;
    padding: 0 2px 0 8px;
    background: none;
    border: none;
    cursor: grab;
    color: var(--on-surface-mid-colour);
    flex-shrink: 0;
    touch-action: none;
}

.ch-lesson-planner-lesson-drag:active {
    cursor: grabbing;
}

.ch-lesson-planner-lesson-drag:disabled {
    cursor: not-allowed;
    opacity: 0.4;
}

/* Checkbox/indicator button */
.ch-lesson-planner-lesson-check {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    flex-shrink: 0;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
}

/* Status dot inside checkbox button — color set via inline style */
.ch-lesson-planner-lesson-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Checkbox icon inside checkbox button — hidden by default, shown on hover/checked/selecting */
.ch-lesson-planner-lesson-check .ch-lesson-planner-card-checkbox {
    display: none;
    margin: 0;
}

.ch-lesson-planner-lesson-row:hover .ch-lesson-planner-lesson-dot,
.ch-lesson-planner-lesson-row--checked .ch-lesson-planner-lesson-dot,
.ch-lesson-planner-left--selecting .ch-lesson-planner-lesson-dot {
    display: none;
}

.ch-lesson-planner-lesson-row:hover .ch-lesson-planner-lesson-check .ch-lesson-planner-card-checkbox,
.ch-lesson-planner-lesson-row--checked .ch-lesson-planner-lesson-check .ch-lesson-planner-card-checkbox,
.ch-lesson-planner-left--selecting .ch-lesson-planner-lesson-check .ch-lesson-planner-card-checkbox {
    display: flex;
}

.ch-lesson-planner-lesson-row--checked .ch-lesson-planner-lesson-check .ch-lesson-planner-card-checkbox {
    background: var(--primary-color, #1a7f5a);
    border-color: var(--primary-color, #1a7f5a);
}

/* Body button — fills remaining width */
.ch-lesson-planner-lesson-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 8px 6px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
}

.ch-lesson-planner-lesson-row-title {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-colour);
    max-width: 100%;
}

.ch-lesson-planner-lesson-row-subtitle {
    font-size: 12px;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.ch-lesson-planner-lesson-row-chevron {
    flex-shrink: 0;
    align-self: center;
    color: var(--text-secondary-colour, #bbb);
    display: flex;
    align-items: center;
    padding-right: 8px;
}

/* Drag overlay clone */
.ch-lesson-planner-lesson-row--overlay {
    background: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
    border-radius: 4px;
    cursor: grabbing;
}

/* Empty unit drop zone */
.ch-lesson-planner-empty-drop {
    height: 48px;
    margin: 4px 8px;
    border-radius: 6px;
    border: 2px dashed #d9d9d9;
    transition: border-color 0.15s, background 0.15s;
}

.ch-lesson-planner-empty-drop--over {
    border-color: var(--primary-color, #1a7f5a);
    background: var(--primary-light-colour, #e6f4ee);
}

.ch-lesson-planner-lesson-rows li.ch-lesson-planner-drop-placeholder {
    opacity: 0.4;
    pointer-events: none;
}


.ch-lesson-planner-content-panel {
    flex: 0;
    overflow: hidden;
    min-width: 0;
    transition: flex 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ch-lesson-planner-content-panel--open {
    flex: 45;
}

.ch-lesson-planner-content-panel-inner {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-left: 1px solid var(--border-colour);
}

.ch-lesson-planner-content-panel-body {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

.ch-lesson-planner-content-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-colour);
    flex-shrink: 0;
}

.ch-lesson-planner-content-panel-title {
    font-size: 15px;
    font-weight: 600;
}

.ch-lesson-planner-content-panel-section {
    padding: 12px 16px;
}

.ch-lesson-planner-content-panel-section--search {
    background: #f2f2f7;
}

.ch-lesson-planner-content-panel-section + .ch-lesson-planner-content-panel-section {
    border-top: 1px solid var(--border-colour);
}

.ch-lesson-planner-content-panel-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    color: var(--on-surface-mid-colour);
    border-radius: 4px;
    line-height: 1;
}

.ch-lesson-planner-content-panel-close:hover {
    background: var(--surface-colour);
    color: var(--on-surface-colour);
}

.ch-lesson-planner-content-collapse {
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-top: none;
}

.ch-lesson-planner-content-collapse .ant-collapse-item:first-child,
.ch-lesson-planner-content-collapse .ant-collapse-item:first-child > .ant-collapse-header,
.ch-lesson-planner-content-collapse .ant-collapse-item:first-child > .ant-collapse-header .ant-collapse-header-text,
.ch-lesson-planner-content-collapse .ant-collapse-item:first-child > .ant-collapse-content {
    border-radius: 0 !important;
}

.ch-lesson-planner-content-collapse .ant-collapse-item:last-child {
    border-radius: 0;
    border-bottom: none;
}

.ch-lesson-planner-content-collapse .ant-collapse-header {
    font-weight: 600;
}

.ch-lesson-planner-content-collapse .ant-collapse-header .ch-lesson-planner-unit-group-tag {
    font-weight: normal;
}

.ch-lesson-planner-panel-heading-row {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 8px 8px 16px;
}

.ch-lesson-planner-panel-heading {
    flex-shrink: 0;
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    min-height: 36px;
    display: flex;
    align-items: center;
}

.ch-lesson-planner-detail-header {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    container-type: inline-size;
    container-name: lesson-detail-header;
    padding: 0 16px;
}

.ch-lesson-planner-detail-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
}

.ch-lesson-planner-classes-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0 16px 12px;
}

.ch-lesson-planner-classes-row-label {
    font-size: 12px;
    color: var(--on-surface-mid-colour);
    white-space: nowrap;
    flex-shrink: 0;
}

.ch-lesson-planner-classes-list {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.ch-lesson-planner-class-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.ch-lesson-planner-class-col-name {
    font-size: 11px;
    color: var(--on-surface-mid-colour);
}

.ch-lesson-planner-divider {
    margin: 12px;
}

.ch-lesson-planner-detail-body {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

.ch-lesson-planner-detail-section {
    padding: 8px 16px;
}

.ch-lesson-planner-detail-divider {
    margin: 8px 16px;
    width: auto;
    min-width: 0;
}

.ch-lesson-planner-detail-section-heading {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--on-surface-mid-colour);
    margin: 0 0 12px;
}

.ch-lesson-planner-heading-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ch-lesson-planner-lesson-plan-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ch-lesson-planner-lesson-plan-actions-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ch-lesson-planner-status-btn.ch-button-icon-r {
    padding-right: 4px;
}

.ch-lesson-planner-status-btn.ch-button-icon-r svg {
    padding-left: 0;
    margin-left: 4px;
}

.ch-lesson-planner-status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    vertical-align: middle;
    margin: 0 6px 0 2px;
    flex-shrink: 0;
}

.ch-lesson-planner-status-chevron {
    transition: transform 0.2s;
    opacity: 0.65;
}

.ch-lesson-planner-status-chevron--open {
    transform: rotate(180deg);
}

.ch-lesson-planner-panel-heading-lesson {
    flex: 1;
    min-width: 0;
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    word-break: break-word;
}

@container lesson-detail-header (max-width: 600px) {
    .ch-lesson-planner-detail-title-row {
        flex-direction: column;
        align-items: flex-start;
    }
    .ch-lesson-planner-heading-actions {
        width: 100%;
        box-sizing: border-box;
    }
    .ch-lesson-planner-heading-actions button {
        width: 100%;
        justify-content: center;
    }
}

.ch-lesson-planner-panel-content {
    flex: 1;
    overflow-y: auto;
    padding: 4px 16px;
    display: flex;
    gap: 0.5rem;
    flex-direction: column;
}

.ch-lesson-planner-detail-body > .ch-lesson-planner-empty-message {
    padding: 0 16px;
}

.ch-lesson-planner-empty-message {
    font-size: 13px;
    color: var(--on-surface-mid-colour);
    font-style: italic;
}

.ch-lesson-planner-card-drag-handle {
    display: flex;
    align-items: center;
    padding: 0 0 0 4px;
    color: var(--on-surface-mid-colour);
    cursor: grab;
    flex-shrink: 0;
}

.ch-lesson-planner-card-drag-handle:active {
    cursor: grabbing;
}

.ch-lesson-planner-card-button-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.ch-lesson-planner-card-button {
    flex: 1;
    min-width: 0;
    background-color: #fff;
    border: 2px solid #dfdfdf;
    border-radius: 8px;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}


.ch-lesson-planner-card-button-top {
    display: flex;
    align-items: center;
    gap: 4px;
}

.ch-lesson-planner-card-progress {
    padding: 0 10px 10px;
}

.ch-lesson-planner-card-progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--on-surface-mid-colour);
    margin-top: 2px;
}

.ch-lesson-planner-card-button-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 10px 10px 10px 6px;
    gap: 4px;
}

.ch-lesson-planner-card-button:hover {
    cursor: pointer;
}

.ch-lesson-planner-card-button.selected {
    border: 2px solid var(--secondary-graphic-colour);
    background-color: rgba(var(--secondary-colour-RGB), var(--button-hover-opacity));
}

.ch-lesson-planner-card-button--checked {
    border-color: var(--primary-color, #1a7f5a);
    background-color: #e6f4ee;
}

.ch-lesson-planner-card-checkbox {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    border-radius: 4px;
    border: 2px solid #d9d9d9;
    background: #fff;
    color: #fff;
    margin: 0 2px 0 6px;
    transition: background 0.15s, border-color 0.15s;
}

.ch-lesson-planner-card-button--checked .ch-lesson-planner-card-checkbox {
    background: var(--primary-color, #1a7f5a);
    border-color: var(--primary-color, #1a7f5a);
}

.ch-lesson-planner-card-button-title {
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ch-lesson-planner-card-button-subtitle {
    color: #666;
    font-size: 12px;
}

.ch-lesson-planner-card-button-spacer {
    width: 32px;
    flex-shrink: 0;
}

.ch-lesson-planner-card-edit-btn {
    position: absolute;
    right: 32px;
    top: 0;
    bottom: 0;
    margin: auto 0;
    height: fit-content;
    opacity: 0;
    transition: opacity 0.3s ease-in;
}

.ch-lesson-planner-card-button-wrapper--with-progress .ch-lesson-planner-card-edit-btn {
    bottom: 35px;
}

.ch-lesson-planner-card-button-wrapper:hover .ch-lesson-planner-card-edit-btn,
.ch-lesson-planner-card-button-wrapper:has(:focus-visible) .ch-lesson-planner-card-edit-btn {
    opacity: 1;
}

.ch-lesson-planner-card-edit-state {
    background-color: #fff;
    border: 2px solid var(--secondary-graphic-colour);
    border-radius: 8px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ch-lesson-planner-card-edit-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.ch-lesson-planner-card-edit-actions-right {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

.ch-lesson-planner-content-card-wrapper {
    position: relative;
}

.ch-lesson-planner-content-card {
    background-color: #fff;
    border: 2px solid #dfdfdf;
    border-radius: 8px;
    padding: 10px 44px 10px 12px;
}

.ch-lesson-planner-content-card-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--on-surface-colour);
}

.ch-lesson-planner-content-card-delete-btn {
    position: absolute;
    right: 8px;
    top: 0;
    bottom: 0;
    margin: auto 0;
    height: fit-content;
    opacity: 0;
    transition: opacity 0.15s;
}

.ch-lesson-planner-content-card-wrapper:hover .ch-lesson-planner-content-card-delete-btn,
.ch-lesson-planner-content-card-wrapper:has(:focus-visible) .ch-lesson-planner-content-card-delete-btn,
.ch-lesson-planner-view--content-open .ch-lesson-planner-content-card-delete-btn {
    opacity: 1;
}

.ch-lesson-plan-card-wrapper {
    display: grid;
}

.ch-lesson-plan-card-wrapper > * {
    grid-area: 1 / 1;
}

.ch-lesson-plan-card-corner {
    align-self: start;
    justify-self: end;
    padding: 8px;
    z-index: 1;
}

.ch-lesson-plan-card {
    display: block;
    width: 100%;
    text-align: left;
    font: inherit;
    color: inherit;
    background-color: #fff;
    border: 2px solid #dfdfdf;
    border-radius: 8px;
    padding: 12px 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.ch-lesson-plan-card:disabled {
    cursor: default;
}

.ch-lesson-plan-card:hover:not(:disabled) {
    background-color: var(--hover-bg-colour);
}

.ch-lesson-plan-card:focus-visible {
    outline: var(--input-focus-size) solid var(--focus-on-surface);
    outline-offset: 2px;
}

.ch-lesson-plan-card-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}

.ch-lesson-plan-card-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--on-surface-colour);
}

.ch-lesson-plan-card-description {
    font-size: 13px;
    color: var(--on-surface-mid-colour);
    margin: 0 0 8px;
    line-height: 1.4;
}

.ch-lesson-plan-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.ch-lesson-planner-drawer {
    flex: 1;
    padding: 20px 0;
}

.ch-lesson-planner-report-section {
    padding-right: 20px;
    margin-bottom: 24px;
}

.ch-lesson-planner-report-bar {
    margin-bottom: 20px;
}

.ch-lesson-planner-report-bar-labels {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--on-surface-mid-colour);
}

.ch-lesson-planner-report-segmented-bar {
    display: flex;
    height: 10px;
    border-radius: 5px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.08);
    margin-bottom: 12px;
}

.ch-lesson-planner-report-state-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ch-lesson-planner-report-state-item {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}

.ch-lesson-planner-report-state-dot {
    margin-right: 6px;
}

.ch-lesson-planner-report-state-count {
    color: var(--on-surface-mid-colour);
}

/* lessonStudio/components/UnitDetailPanel.js: a unit's readiness and textbook coverage */
.ch-lesson-planner-readiness-text {
    margin: 0 0 8px;
    font-size: 13px;
}
.ch-lesson-planner-coverage-empty,
.ch-lesson-planner-coverage-muted {
    color: var(--on-surface-mid-colour);
}
.ch-lesson-planner-coverage-wrapper {
    overflow-x: auto;
}
.ch-lesson-planner-coverage-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.ch-lesson-planner-coverage-table th,
.ch-lesson-planner-coverage-table td {
    padding: 8px 12px 8px 0;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid rgba(0, 0, 0, .08);
}
.ch-lesson-planner-coverage-table thead th {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--on-surface-mid-colour);
}
.ch-lesson-planner-coverage-table tbody th {
    font-weight: 600;
}
.ch-lesson-planner-coverage-sections {
    margin: 0;
    padding: 0;
    list-style: none;
}
.ch-lesson-planner-coverage-generated {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    color: #237804;
    font-weight: 600;
}
.ch-lesson-planner-coverage-generated svg {
    font-size: 16px;
}

.ch-lesson-planner-drawer-footer {
    flex-shrink: 0;
    padding: 12px 20px;
    border-top: 1px solid var(--border-colour);
}

.ch-lesson-planner-drawer-loader {
    display: flex;
    justify-content: center;
    padding: 40px 0;
}

.ch-lesson-planner-drawer-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
}

.ch-lesson-planner-drawer-section-list {
    list-style: none;
    margin: 0;
    padding: 8px 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ch-lesson-planner-drawer-section-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 2px solid var(--border-color, #d9d9d9);
    border-radius: 8px;
    background: #fff;
    transition: border-color 0.15s, background 0.15s;
}

.ch-lesson-planner-drawer-section-item--added {
    border-color: var(--primary-color, #1a7f5a);
    background: #e6f4ee;
}

.ch-lesson-planner-drawer-section-item.disabled {
    opacity: 0.45;
}

.ch-lesson-planner-drawer-section-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    background-color: var(--secondary-colour);
}

.ch-lesson-planner-drawer-section-dot.added {
    background-color: var(--on-surface-mid-colour);
}

.ch-lesson-planner-drawer-section-name {
    flex: 1;
    min-width: 0;
    font-size: 13px;
    color: var(--on-surface-colour);
}

.ch-lesson-planner-drawer-section-added {
    font-size: 12px;
    font-style: italic;
    color: var(--on-surface-mid-colour);
    flex-shrink: 0;
}

.ch-lesson-planner-drawer-section-check {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--on-surface-mid-colour);
}

.ch-lesson-planner-mobile-back {
    display: none;
}

@media (max-width: 767px) {
    .ch-lesson-planner-mobile-back {
        display: flex;
        flex-shrink: 0;
    }

    .ch-lesson-planner-view {
        flex-direction: column;
        overflow: visible;
        border-top: none;
        position: relative;
    }

    .ch-lesson-planner-left,
    .ch-lesson-planner-right {
        flex: none;
        width: 100%;
        min-width: 0;
        border-right: none;
        overflow: visible;
    }

    .ch-lesson-planner-left-scroll {
        overflow: visible;
    }

    .ch-lesson-planner-right {
        display: none;
        padding-top: 0;
    }

    .ch-lesson-planner-view--detail .ch-lesson-planner-left {
        display: none;
    }

    .ch-lesson-planner-view--detail .ch-lesson-planner-right {
        display: flex;
    }

    .ch-lesson-planner-content-panel {
        display: none;
        transition: none;
    }

    .ch-lesson-planner-content-panel--open {
        display: block;
        position: absolute;
        inset: 0;
        z-index: 10;
    }

    .ch-lesson-planner-content-panel--open .ch-lesson-planner-content-panel-inner {
        border-left: none;
    }
}

/* Lesson Planner Wizard */
.ch-lesson-planner-wizard-form {
    max-width: 1200px;
    margin: 0 auto;
    padding-right: 16px;
    container-type: inline-size;
    container-name: wizard-form;
}

.ch-lesson-planner-wizard-form h2 {
    font-weight: 700;
}

.ch-schedule-wizard-field-row {
    display: flex;
    gap: 16px;
}

.ch-schedule-wizard-card-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ch-schedule-wizard-card-stack > .ch-card[data-level]:focus-within {
    background: #f3f7f7;
    border-color: #9cc6c2;
}

.ch-schedule-wizard-sentence {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    font-size: 17px;
}

.ch-schedule-wizard-sentence:not(:last-child) {
    padding-bottom: 4px;
}

.ch-schedule-wizard-name-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.ch-schedule-wizard-name-tag {
    font-size: 15px;
    padding: 6px 18px;
}

.ch-schedule-wizard-hierarchy-explainer {
    margin-bottom: 16px;
    color: var(--on-surface-mid-colour);
}

.ch-schedule-wizard-count-input .ant-input-show-count-suffix {
    font-size: 11px;
    color: var(--on-surface-mid-colour);
}

.ch-schedule-wizard-step {
    width: 100%;
    max-width: 800px;
    align-self: center;
}

@media (max-width: 1023px) {
    .ch-schedule-wizard-step {
        padding-left: 8px;
    }
}

.ch-schedule-wizard-step--wide {
    max-width: 1100px;
}

.ch-schedule-wizard-step1-sidebar {
    width: 360px;
    flex-shrink: 0;
    position: sticky;
    top: 16px;
}

.ch-schedule-wizard-example,
.ch-schedule-wizard-example * {
    cursor: default;
}

.ch-lesson-planner-selection-summary.ch-schedule-wizard-example {
    max-height: calc(100vh - 160px);
    overflow-y: auto;
    padding: 16px;
    font-size: 12px;
    background: var(--surface-colour, #f5f6f8);
}

.ch-schedule-wizard-example p {
    margin: 0;
}

.ch-schedule-wizard-example-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-secondary-colour, #666);
}

.ch-schedule-wizard-example-summary {
    margin-bottom: 10px !important;
    font-size: 14px;
}

.ch-schedule-wizard-example-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    margin-bottom: 10px;
}

.ch-schedule-wizard-example-tab {
    font-size: 12px;
}

.ch-schedule-wizard-example-tab--current,
.ch-schedule-wizard-example-lesson-label {
    font-weight: 700;
}

.ch-schedule-wizard-example-lesson--empty {
    flex-direction: row;
    align-items: baseline;
    gap: 8px;
    font-style: italic;
}

.ch-schedule-wizard-example-lesson--empty .ch-schedule-wizard-example-lesson-label {
    font-style: italic;
}

.ch-schedule-wizard-example-unit {
    margin-bottom: 10px;
    border: 1px solid var(--border-color, #d9d9d9);
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
}

.ch-schedule-wizard-example-unit-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
}

.ch-schedule-wizard-example-unit-title {
    font-size: 14px;
    font-weight: 700;
}

.ch-schedule-wizard-example-unit-subtitle {
    font-size: 12px;
}

.ch-schedule-wizard-example-lessons {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--border-color, #d9d9d9);
}

.ch-schedule-wizard-example-lesson,
.ch-schedule-wizard-example-lessons .ch-schedule-wizard-example-more {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 6px 12px;
    border-bottom: 1px solid var(--border-color, #d9d9d9);
}

.ch-schedule-wizard-example-lesson:last-child {
    border-bottom: none;
}

.ch-schedule-wizard-example-section {
    padding-left: 8px;
}

.ch-schedule-wizard-example-more {
    font-style: italic;
}

.ch-schedule-wizard-example[data-active-level] [data-level] {
    opacity: 0.7;
    transition: opacity 0.15s;
}

.ch-schedule-wizard-example[data-active-level="group"] [data-level="group"],
.ch-schedule-wizard-example[data-active-level="unit"] [data-level="unit"],
.ch-schedule-wizard-example[data-active-level="lesson"] [data-level="lesson"],
.ch-schedule-wizard-example[data-active-level="section"] [data-level="section"] {
    opacity: 1;
    padding: 0 4px;
    border-radius: 4px;
    outline: 2px solid;
}

.ch-schedule-wizard-example[data-active-level="group"] [data-level="group"] {
    background: #e6eef9;
    outline-color: #1e4f91;
}

.ch-schedule-wizard-example[data-active-level="unit"] [data-level="unit"] {
    background: #fbefd9;
    outline-color: #7a4e06;
}

.ch-schedule-wizard-example[data-active-level="lesson"] [data-level="lesson"] {
    background: #e2f0e8;
    outline-color: #25634a;
}

.ch-schedule-wizard-example[data-active-level="section"] [data-level="section"] {
    background: #eef0f3;
    outline-color: #3d4550;
}

@media (max-width: 900px) {
    .ch-schedule-wizard-step1-sidebar {
        width: 100%;
        position: static;
    }
}

.ch-schedule-wizard-quick-select-button {
    margin-bottom: 16px;
}

.ch-schedule-wizard-period-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

@container (max-width: 640px) {
    .ch-schedule-wizard-period-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@container (max-width: 420px) {
    .ch-schedule-wizard-period-cards {
        grid-template-columns: 1fr;
    }
}

.ch-schedule-wizard-period-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 12px !important;
}

.ch-schedule-wizard-period-card-label {
    font-weight: 600;
}

.ch-schedule-wizard-section-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ch-schedule-wizard-section-list-item {
    padding: calc(var(--spacing-unit, 8px)) calc(var(--spacing-unit, 8px) * 2) !important;
    font-weight: 500;
}

.ch-schedule-wizard-drag-handle {
    position: relative;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    font-size: 16px;
    color: #999;
    cursor: grab;
    background: none;
    border: none;
    padding: 0;
    touch-action: none;
}

.ch-schedule-wizard-drag-handle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 32px;
    height: 32px;
    transform: translate(-50%, -50%);
}

.ch-schedule-wizard-drag-handle:active {
    cursor: grabbing;
}

.ch-schedule-wizard-section-list-item--floating {
    background: rgba(255, 255, 255, 0.7) !important;
    border: none !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    cursor: grabbing;
}

.ch-schedule-wizard-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 12px;
}

.ch-schedule-wizard-section-header-title {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.ch-schedule-wizard-explainer {
    color: var(--on-surface-mid-colour);
}

.ch-schedule-wizard-confirm-name {
    margin-bottom: 24px;
}

.ch-schedule-wizard-confirm-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.ch-schedule-wizard-confirm-stats p,
.ch-schedule-wizard-confirm-term p {
    margin: 0;
}

.ch-schedule-wizard-confirm-stats .ch-schedule-wizard-confirm-stat-number {
    font-size: 40px;
    font-weight: 700;
    line-height: 1.2;
    padding-bottom: 0;
    margin-bottom: -4px;
}

.ch-schedule-wizard-confirm-stat-of {
    font-size: 18px;
    font-weight: 600;
    color: var(--on-surface-mid-colour);
}

.ch-schedule-wizard-confirm-stat-label {
    font-weight: 600;
    margin-bottom: 4px !important;
}

.ch-schedule-wizard-confirm-terms.ch-card {
    padding: 0;
    margin-bottom: 16px;
}

.ch-schedule-wizard-confirm-term {
    display: grid;
    grid-template-columns: 90px minmax(0, 260px) 1fr;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color, #d9d9d9);
}

.ch-schedule-wizard-confirm-term .ant-tag {
    justify-self: start;
    margin-inline-end: 0;
}

.ch-schedule-wizard-confirm-term:last-child {
    border-bottom: none;
}

@media (max-width: 767px) {
    .ch-schedule-wizard-confirm-stats {
        grid-template-columns: 1fr;
    }

    .ch-schedule-wizard-confirm-term {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

.ch-schedule-wizard-chapter-summary {
    margin-top: 8px;
    margin-bottom: 32px;
}

.ch-schedule-wizard-term {
    margin-bottom: 32px;
}

.ch-schedule-wizard-term-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
}

.ch-schedule-wizard-term-range {
    color: var(--on-surface-mid-colour);
}

.ch-schedule-wizard-drop-placeholder {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 0 16px;
    border: 2px dashed #767676;
    border-radius: 8px;
    color: var(--on-surface-mid-colour);
    text-align: center;
}

.ch-schedule-wizard-term-note {
    margin: 8px 0 0;
    color: var(--on-surface-mid-colour);
}

.ch-schedule-wizard-term-progress.ant-progress {
    flex: 0 1 240px;
    margin: 0;
}

.ch-schedule-wizard-chapter-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.ch-schedule-wizard-chapter-row-name {
    flex: 1;
    min-width: 0;
    font-weight: 600;
}

.ch-schedule-wizard-chapter-row-sections,
.ch-schedule-wizard-chapter-row-placement {
    flex-shrink: 0;
    white-space: nowrap;
}

.ch-schedule-wizard-chapter-row-sections {
    width: 110px;
    font-weight: 400;
    color: #767676;
}

.ch-schedule-wizard-chapter-row-placement {
    width: 300px;
}

.ch-schedule-wizard-chapter-row-placement .ant-tag {
    margin-inline-end: 10px;
}

@media (max-width: 767px) {
    .ch-schedule-wizard-chapter-row {
        flex-wrap: wrap;
    }

    .ch-schedule-wizard-chapter-row-name {
        flex-basis: calc(100% - 80px);
    }
}

.ch-lesson-planner-wizard-form > .ant-steps {
    margin-top: calc(var(--spacing-unit, 8px) * 2);
}

.ch-lesson-planner-wizard-form .ant-steps-item-title {
    font-size: 14px !important;
    font-weight: 400 !important;
    color: #666 !important;
}

.ch-lesson-planner-wizard-form .ant-steps-item-process .ant-steps-item-title {
    font-weight: 600 !important;
    color: #333 !important;
}

.ch-lesson-planner-stepper-buttons {
    display: flex;
    width: 100%;
    justify-content: space-between;
}

.ch-lesson-planner-stepper-next {
    margin-left: auto;
}

.ch-lesson-planner-concept-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

@container (max-width: 600px) {
    .ch-lesson-planner-concept-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@container (max-width: 380px) {
    .ch-lesson-planner-concept-grid {
        grid-template-columns: 1fr;
    }
}

.ch-lesson-planner-concept-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 2px solid var(--border-color, #d9d9d9);
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    background: #fff;
    min-width: 0;
    overflow: hidden;
    transition: border-color 0.15s, background 0.15s;
}

.ch-lesson-planner-concept-card:not(.ch-lesson-planner-concept-card--disabled):hover {
    border-color: var(--primary-color, #1a7f5a);
}

.ch-lesson-planner-concept-card:not(.ch-lesson-planner-concept-card--disabled):focus-visible {
    outline: 2px solid var(--primary-color, #1a7f5a);
    outline-offset: 2px;
}

.ch-lesson-planner-concept-card--checked {
    background: #e6f4ee;
    border-color: var(--primary-color, #1a7f5a);
}

.ch-lesson-planner-concept-card--disabled {
    background: #f5f5f5;
    border-color: #e0e0e0;
    cursor: default;
}

.ch-lesson-planner-concept-card--disabled .ch-lesson-planner-concept-card-name {
    color: #aaa;
}

.ch-lesson-planner-concept-card--disabled .ch-lesson-planner-concept-card-check {
    color: #ccc;
}

.ch-lesson-planner-concept-card-check {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 4px;
    flex-shrink: 0;
    border: 2px solid var(--border-color, #d9d9d9);
    background: #fff;
    color: #fff;
    transition: background 0.15s, border-color 0.15s;
}

.ch-lesson-planner-concept-card--checked .ch-lesson-planner-concept-card-check {
    background: var(--primary-color, #1a7f5a);
    border-color: var(--primary-color, #1a7f5a);
    color: #fff;
}

.ch-lesson-planner-concept-card-name {
    flex: 1;
    font-size: 14px;
    min-width: 0;
    overflow-wrap: break-word;
    word-break: break-word;
}

.ch-lesson-planner-concept-card-tag {
    flex-shrink: 0;
    margin-left: auto;
    margin-inline-end: 0;
}

/* Select Content layout */
.ch-lesson-planner-select-content-layout {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.ch-lesson-planner-select-content-main {
    flex: 1;
    width: 100%;
    min-width: 0;
    container-type: inline-size;
}

.ch-lesson-planner-select-content-sidebar {
    width: 280px;
    flex-shrink: 0;
    position: sticky;
    top: 16px;
}

/* Selection summary panel */
.ch-lesson-planner-selection-summary {
    border: 2px solid var(--border-color, #d9d9d9);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.ch-lesson-planner-selection-summary-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid var(--border-color, #d9d9d9);
}

.ch-lesson-planner-selection-summary-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e6f4ee;
    color: var(--primary-color, #1a7f5a);
    font-weight: 600;
    font-size: 13px;
}

.ch-lesson-planner-selection-summary-body {
    padding: 12px 16px;
}

.ch-lesson-planner-selection-summary-empty {
    color: #999;
    font-style: italic;
    margin: 0;
    font-size: 13px;
}

.ch-lesson-planner-selection-summary-group {
    margin-bottom: 12px;
}

.ch-lesson-planner-selection-summary-topic {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #888;
    margin-bottom: 6px;
}

.ch-lesson-planner-selection-summary-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px solid #f0f0f0;
}

.ch-lesson-planner-selection-summary-item:last-child {
    border-bottom: none;
}

.ch-lesson-planner-selection-summary-code {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 24px;
    padding: 0 6px;
    border-radius: 4px;
    background: #e6f4ee;
    color: var(--primary-color, #1a7f5a);
    font-size: 11px;
    font-weight: 600;
    flex-shrink: 0;
}

.ch-lesson-planner-selection-summary-name {
    flex: 1;
    font-size: 13px;
    line-height: 1.4;
    min-width: 0;
    word-break: break-word;
}

.ch-lesson-planner-selection-summary-remove {
    background: none;
    border: none;
    cursor: pointer;
    color: #aaa;
    padding: 0;
    flex-shrink: 0;
    line-height: 1;
    margin-top: 2px;
}

.ch-lesson-planner-selection-summary-remove:hover {
    color: #555;
}

@media (max-width: 900px) {
    .ch-lesson-planner-select-content-layout {
        flex-direction: column;
    }

    .ch-lesson-planner-select-content-sidebar {
        width: 100%;
        position: static;
    }

    .ch-lesson-planner-concept-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .ch-lesson-planner-concept-grid {
        grid-template-columns: 1fr;
    }
}

/* Choose Resources step */
.ch-lesson-planner-step-subtitle {
    color: var(--text-secondary, #666);
    margin-bottom: calc(var(--spacing-unit, 8px) * 3);
}

.ch-lesson-planner-review > div > .ch-lesson-planner-step-subtitle {
    margin-bottom: 0;
}

.ch-lesson-planner-resource-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: calc(var(--spacing-unit, 8px) * 2);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.ch-lesson-planner-resource-card {
    display: flex;
    align-items: center;
    gap: calc(var(--spacing-unit, 8px) * 1.5);
    padding: calc(var(--spacing-unit, 8px) * 1.5) calc(var(--spacing-unit, 8px) * 2);
    border: 2px solid var(--border-color, #d9d9d9);
    border-radius: 10px;
    cursor: pointer;
    user-select: none;
    background: #fff;
    transition: border-color 0.15s, background 0.15s;
}

.ch-lesson-planner-resource-card:not(.ch-lesson-planner-resource-card--disabled):hover {
    border-color: var(--primary-color, #1a7f5a);
}

.ch-lesson-planner-resource-card:not(.ch-lesson-planner-resource-card--disabled):focus-visible {
    outline: 2px solid var(--primary-color, #1a7f5a);
    outline-offset: 2px;
}

.ch-lesson-planner-resource-card--checked {
    background: #e6f4ee;
    border-color: var(--primary-color, #1a7f5a);
}

.ch-lesson-planner-resource-card--disabled {
    background: #f5f5f5;
    border-color: #e0e0e0;
    cursor: default;
}

.ch-lesson-planner-resource-card--disabled .ch-lesson-planner-resource-card-label {
    color: #aaa;
}

.ch-lesson-planner-resource-card--disabled .ch-lesson-planner-resource-card-description {
    color: #bbb;
}

.ch-lesson-planner-resource-card--disabled .ch-lesson-planner-resource-card-check {
    color: #ccc;
}

.ch-lesson-planner-resource-card--disabled .ch-lesson-plan-section-icon {
    background: #d0d0d0;
    color: #888;
}


.ch-lesson-planner-resource-card-icon {
    font-size: 28px;
    flex-shrink: 0;
    line-height: 1;
}

.ch-lesson-planner-resource-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.ch-lesson-planner-resource-card-label {
    font-weight: 600;
    font-size: 15px;
    color: var(--text-primary, #1a1a1a);
    transition: color 0.15s;
}

.ch-lesson-planner-resource-card--checked .ch-lesson-planner-resource-card-label {
    color: var(--primary-color, #1a7f5a);
}

.ch-lesson-planner-resource-card-description {
    font-size: 13px;
    color: var(--text-secondary, #666);
}

.ch-lesson-planner-resource-card-check {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    flex-shrink: 0;
    color: var(--primary-color, #1a7f5a);
}

@media (max-width: 600px) {
    .ch-lesson-planner-resource-grid {
        grid-template-columns: 1fr;
    }
}

/* Review Suggested Resources (Step 3) */
.ch-lesson-planner-review {
    display: flex;
    flex-direction: column;
    gap: calc(var(--spacing-unit, 8px) * 2);
}

.ch-lesson-plan-editor-section {
    position: relative;
    scroll-margin-top: calc(var(--page-header-height) + 16px);
}

@keyframes ch-section-border-flash {
    0%   { border-color: var(--primary-color, #1a7f5a); }
    100% { border-color: var(--border-color, #d9d9d9); }
}

@keyframes ch-section-ripple {
    0%   { inset: 0;     border-radius: 14px; opacity: 0;   }
    10%  { opacity: 0.5; }
    100% { inset: -20px; border-radius: 34px; opacity: 0;   }
}

.ch-lesson-plan-editor-section--highlight .ch-lesson-planner-review-block.ant-card {
    border-color: var(--primary-color, #1a7f5a);
    animation: ch-section-border-flash 1.2s cubic-bezier(0.2, 0.6, 0.4, 1) 0.68s forwards;
}

.ch-lesson-plan-editor-section--highlight::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 14px;
    border: 2px solid var(--primary-color, #1a7f5a);
    opacity: 0;
    pointer-events: none;
    animation: ch-section-ripple 0.9s cubic-bezier(0.2, 0.6, 0.4, 1) 0.3s forwards;
}

.ch-lesson-plan-editor-add-section {
    margin-top: 8px;
}



.ch-lesson-planner-review-summary.ant-card {
    border: 2px solid var(--border-color, #d9d9d9);
    border-radius: 10px;
    box-shadow: none;
}

.ch-lesson-planner-review-summary-inner {
    display: flex;
    align-items: center;
    gap: calc(var(--spacing-unit, 8px) * 1.5);
}

.ch-lesson-planner-review-summary-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e6f4ee;
    color: var(--primary-color, #1a7f5a);
    flex-shrink: 0;
}

.ch-lesson-planner-review-summary-count {
    font-weight: 600;
    font-size: 15px;
}

.ch-lesson-planner-review-summary-sub {
    font-size: 13px;
    color: var(--text-secondary, #666);
    margin-top: 2px;
}

.ch-lesson-plan-editor-concept-filter {
    position: sticky;
    top: 0;
    z-index: 2;
    background: var(--surface-colour, #fff);
    padding: 12px 0 0;
    margin-bottom: 0.5rem;
}

.ch-lesson-plan-editor-concept-filter-heading {
    font-size: 13px;
    font-weight: 600;
    color: var(--on-surface-mid-colour);
    margin: 0 0 12px;
}

/* A concept's name above its resources, as in the Lesson Overview (.ch-lesson-plan-concept-heading) */
.ch-lesson-plan-concept-heading:not(:first-of-type) {
    padding-top: 12px;
}

.ch-lesson-plan-editor-concept-filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ch-lesson-plan-editor-concept-filter-chip {
    font-size: 14px;
    padding: 4px 16px;
}

.ch-lesson-plan-editor-concept-filter-divider {
    margin-bottom: 0;
    padding-bottom: 0;
}

.ch-lesson-plan-editor-concept-item-tag {
    display: block;
    width: fit-content;
    margin: 12px 0 8px;
}


.ch-lesson-planner-review-block.ant-card {
    position: relative;
    border: 2px solid var(--border-color, #d9d9d9);
    border-radius: 12px;
    box-shadow: none;
    overflow: hidden;
}


.ch-lesson-planner-review-block-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: calc(var(--spacing-unit, 8px) * 2);
    padding: calc(var(--spacing-unit, 8px) * 1.5) calc(var(--spacing-unit, 8px) * 2);
}

.ch-lesson-planner-review-block-title {
    display: flex;
    align-items: center;
    gap: calc(var(--spacing-unit, 8px));
    font-size: 15px;
}

.ch-lesson-planner-review-block-meta {
    display: flex;
    align-items: center;
    gap: calc(var(--spacing-unit, 8px));
    flex-shrink: 0;
}

.ch-lesson-planner-review-block-count {
    font-size: 13px;
    color: var(--text-secondary, #666);
    white-space: nowrap;
}

.ch-lesson-planner-review-block-always-included {
    color: #666;
}

.ch-lesson-planner-review-progress {
    width: 80px;
    margin: 0;
}

.ch-lesson-planner-review-block-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.ch-lesson-planner-review-block-remove.ch-button {
    color: #bbb;
}

.ch-lesson-planner-review-block-remove.ch-button:hover {
    color: #ff4d4f;
    background: #fff1f0;
}

.ch-lesson-planner-review-block-header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: 12px;
    padding-left: 12px;
    border-left: 1px solid #dfdfdf;
}

.ch-lesson-planner-review-block-body {
    border-top: 1px solid var(--border-color, #d9d9d9);
    padding: calc(var(--spacing-unit, 8px) * 1.5) calc(var(--spacing-unit, 8px) * 2);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ch-lesson-planner-ai-picks-tag {
    align-self: flex-start;
    background: #f0edff;
    border-color: #d4ccff;
    color: #5b3fd4;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    border-radius: 4px;
}

.ch-lesson-planner-walkthrough-filters {
    display: flex;
    gap: 6px;
    padding: 0;
}

.ch-lesson-planner-walkthrough-filters .anticon {
    font-size: 10px;
    vertical-align: middle;
}

.ch-lesson-planner-walkthrough-filters .ant-tag svg {
    margin-right: 4px;
}

.ch-lesson-planner-walkthrough-filters .ant-tag {
    display: inline-flex;
    align-items: center;
}

.ch-lesson-planner-review-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color, #d9d9d9);
}

.ch-lesson-planner-review-preview-btn {
    flex-shrink: 0;
    opacity: 0;
    transition: opacity 0.15s;
    color: var(--text-secondary, #666);
}

.ch-lesson-planner-review-item:hover .ch-lesson-planner-review-preview-btn {
    opacity: 1;
}

.ch-lesson-planner-review-item:last-child {
    border-bottom: none;
}

.ch-lesson-planner-review-item .ant-checkbox-wrapper {
    font-size: 14px;
    align-items: center;
    flex: 1;
}

.ch-lesson-planner-review-block-more {
    border-top: 1px dashed var(--border-color, #d9d9d9);
    background: #f7f7f7;
    padding: calc(var(--spacing-unit, 8px) * 1.5) calc(var(--spacing-unit, 8px) * 2);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ch-lesson-planner-review-more-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #999;
}

.ch-lesson-planner-review-block-more .ch-lesson-planner-review-item {
    background: #f7f7f7;
}

.ch-lesson-planner-review-show-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
    padding: 11px;
    border: none;
    border-top: 1px solid var(--border-color, #d9d9d9);
    background: #f0f0f0;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-secondary, #666);
    transition: color 0.15s, background 0.15s;
}

.ch-lesson-planner-review-show-more:hover {
    color: var(--primary-color, #1a7f5a);
}

.ch-lesson-planner-review-show-more:focus-visible {
    outline: 2px solid var(--primary-color, #1a7f5a);
    outline-offset: 2px;
    border-radius: 2px;
}

/* ReviewItemCard */

.ch-lesson-planner-review-card {
    position: relative;
    background: var(--color-background-primary, #fff);
    border: 1px solid var(--border-color, #d9d9d9);
    border-radius: 8px;
    transition: border-color 0.12s;
}

.ch-lesson-planner-review-card:hover {
    border-color: var(--primary-color, #1a7f5a);
}

.ch-lesson-planner-review-card--checked {
    border-color: var(--primary-color, #1a7f5a);
    outline: 1px solid var(--primary-color, #1a7f5a);
    background: #e6f4ee;
}

.ch-lesson-planner-review-item-card__checkbox.ant-checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px 11px 10px;
    width: 100%;
    cursor: pointer;
}

.ch-lesson-planner-review-item-card--has-preview .ch-lesson-planner-review-item-card__checkbox.ant-checkbox-wrapper {
    padding-right: 100px;
}

.ch-lesson-planner-review-item-card__checkbox .ant-checkbox {
    align-self: center;
    flex-shrink: 0;
}

.ch-lesson-planner-review-item-card__checkbox .ant-checkbox + span {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.ch-lesson-planner-review-item-card__icon-tile {
    flex-shrink: 0;
    align-self: center;
}

.ch-lesson-planner-review-item-card__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ch-lesson-planner-review-item-card__top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}

.ch-lesson-planner-review-item-card__title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary, #1a1a1a);
}

.ch-lesson-planner-review-item-card__meta {
    font-size: 12px;
    color: var(--text-secondary, #666);
}

.ch-lesson-planner-review-item-card__tags {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.ch-lesson-planner-review-item-card__summary {
    font-size: 12px;
    color: var(--text-secondary, #666);
    line-height: 1.6;
    margin: 0;
}

.ch-lesson-planner-review-item-card__step-track {
    display: flex;
    align-items: center;
    gap: 4px;
    width: 120px;
    margin: 4px 0;
}

.ch-lesson-planner-review-item-card__step-seg {
    height: 4px;
    border-radius: 4px;
    flex: 1;
    background: var(--border-color, #d9d9d9);
}

.ch-lesson-planner-review-card--checked .ch-lesson-planner-review-item-card__step-seg {
    background: var(--primary-color, #1a7f5a);
}

.ch-lesson-planner-review-item-card__preview-wrap {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
}

.ch-lesson-planner-review-item-card__preview-btn {
    color: var(--text-secondary, #666);
}

.ch-lesson-planner-review-item-card-filters {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 12px 14px 14px;
    border-top: 1px solid var(--border-color, #d9d9d9);
}

.ch-lesson-planner-review-item-card-filter-heading {
    font-size: 13px;
    font-weight: 600;
    color: var(--on-surface-mid-colour, #666);
    margin: 0 0 8px;
}

.ch-lesson-planner-review-item-card-filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ch-lesson-planner-review-item-card-filter-chip {
    font-size: 13px;
    padding: 3px 14px;
}

.ch-lesson-planner-question-card {
    position: relative;
    background: var(--color-background-primary, #fff);
    border: 1px solid var(--border-color, #d9d9d9);
    border-radius: 8px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 11px 148px 11px 10px;
}

.ch-lesson-planner-question-card__number {
    width: 20px;
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary, #666);
    text-align: center;
    margin-top: 2px;
}

.ch-lesson-planner-question-card__text {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary, #1a1a1a);
    flex: 1;
    min-width: 0;
    max-height: 40px;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.ch-lesson-planner-question-card__text--expanded {
    max-height: unset;
    overflow: unset;
}

.ch-lesson-planner-question-card__actions {
    position: absolute;
    top: 8px;
    right: 10px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.ch-lesson-planner-question-card__expand-btn {
    color: var(--text-secondary, #666);
}

.ch-lesson-planner-question-card__swap-btn {
    color: var(--text-secondary, #666);
}

.ch-lesson-planner-question-radio {
    margin-bottom: 8px;
}

.ch-lesson-planner-question-radio .ant-radio-button-wrapper:hover {
    color: var(--primary-color, #1a7f5a);
    border-color: var(--primary-color, #1a7f5a);
}

.ch-lesson-planner-question-radio .ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled) {
    background: var(--primary-color, #1a7f5a);
    border-color: var(--primary-color, #1a7f5a);
    color: #fff;
}

.ch-lesson-planner-question-radio .ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled)::before {
    background: var(--primary-color, #1a7f5a);
}

.ch-lesson-planner-question-radio .ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):hover {
    background: color-mix(in srgb, var(--primary-color, #1a7f5a) 85%, black);
    border-color: color-mix(in srgb, var(--primary-color, #1a7f5a) 85%, black);
}

/* Edit Classes Dialog */
.ch-lesson-planner-edit-classes-class-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 12px;
    border: 2px solid #dfdfdf;
    border-radius: 6px;
}
.ch-lesson-planner-edit-classes-class-info {
    display: flex;
    align-items: baseline;
    gap: 8px;
}
.ch-lesson-planner-edit-classes-class-name {
    font-weight: 600;
    font-size: 15px;
}
.ch-lesson-planner-edit-classes-year {
    font-size: 13px;
    color: #888;
}
.ch-lesson-planner-edit-classes-add-row {
    display: flex;
    gap: 8px;
    align-items: center;
}
.ch-lesson-planner-edit-classes-empty {
    font-size: 13px;
    color: #aaa;
    margin: 0;
}
.ch-lesson-planner-edit-classes-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
}
.ch-lesson-planner-edit-classes-group-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--on-surface-mid-colour);
}
.ch-lesson-planner-syllabus-picker--hidden {
    display: none;
}
.ch-lesson-planner-hidden-submit {
    display: none;
}
.ch-lesson-planner-link-plan-alert {
    margin-top: 12px;
}
.ch-lesson-planner-syllabus-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
}
.ch-lesson-planner-syllabus-summary-text {
    min-width: 0;
}
.ch-lesson-planner-syllabus-summary-label {
    font-size: 13px;
    color: var(--on-surface-mid-colour);
    margin: 0 0 2px;
}
.ch-lesson-planner-syllabus-summary-value {
    font-weight: 600;
    font-size: 13px;
    margin: 0;
    overflow-wrap: break-word;
}

/* ── Individual Lesson Plan View ───────────────────────────────────────── */

.ch-lesson-plan-content-area {
    display: flex;
    align-items: flex-start;
}

.ch-lesson-plan-doc {
    flex: 1;
    min-width: 0;
    max-width: 120ch;
    margin: 0 auto;
}

.ch-lesson-plan-panel {
    width: 0;
    overflow: clip;
    flex-shrink: 0;
    transition: width 0.25s ease;
    background: #f5f5f5;
    position: sticky;
    top: 80px;
    align-self: flex-start;
    height: calc(100vh - 80px);
}

.ch-lesson-plan-panel--open {
    width: 60%;
    overflow-y: auto;
    border-left: 1px solid #e0e0e0;
}

.ch-lesson-planner-wizard-preview-panel {
    margin-left: 16px;
    top: 0;
    height: 100vh;
}

.ch-lesson-plan-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid #e0e0e0;
    background: #ececec;
}

.ch-lesson-plan-panel-header-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.ch-lesson-plan-panel-header-title {
    font-size: 13px;
    font-weight: 600;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}


.ch-lesson-plan-panel-body {
    padding: 24px 16px;
}

.ch-lesson-plan-panel-placeholder {
    color: #aaa;
    font-size: 14px;
}

.ch-lesson-plan-sections {
    padding: 0 0 48px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ch-lesson-plan-sections .ant-collapse-item-active .ant-collapse-header,
.ch-lesson-plan-sections .ant-collapse-item .ant-collapse-header {
    background-color: transparent !important;
    color: inherit !important;
    border-bottom: 1px solid #e0e0e0;
    border-bottom-color: #e0e0e0 !important;
    transition: none !important;
    align-items: center !important;
}

.ch-lesson-plan-sections .ant-collapse-item:not(.ant-collapse-item-active) .ant-collapse-header {
    border-bottom: none;
}


.ch-lesson-plan-section-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.ch-lesson-plan-section-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f0e6ff;
    background: #531dab;
}

.ch-lesson-plan-section-icon > * {
    font-size: 18px !important;
    width: 18px !important;
    height: 18px !important;
}

.ch-lesson-plan-section-icon--outlined {
    background: transparent;
    border: 2px solid #531dab;
    color: #531dab;
}

.ch-lesson-plan-section-header-label {
    display: flex;
    align-items: center;
    width: 100%;
}

.ch-lesson-plan-section-label-btn {
    appearance: none;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font: inherit;
    text-align: left;
    cursor: pointer;
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
}

.ch-lesson-plan-section-edit-btn {
    margin-left: auto;
    opacity: 0;
    transition: opacity 0.15s ease-in;
}

.ch-lesson-plan-sections .ant-collapse-header:hover .ch-lesson-plan-section-edit-btn,
.ch-lesson-plan-sections .ant-collapse-header:has(:focus-visible) .ch-lesson-plan-section-edit-btn {
    opacity: 1;
}

/* Overview */

.ch-lesson-plan-overview-description {
    margin: 0 0 20px;
    color: #444;
    line-height: 1.65;
    /* A textbook learning intention's lines (LessonPlanService.findLearningIntention) */
    white-space: pre-line;
}

/* A plan of several concepts: each concept's learning intentions (or overview) under its name */
.ch-lesson-plan-overview-block + .ch-lesson-plan-overview-block {
    margin-top: 16px;
}

/* A concept's name in a Lesson Plan: in the Lesson Overview and above each concept's resources */
.ch-lesson-plan-concept-heading {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 600;
    color: var(--on-surface-colour, #222);
    line-height: 1.4;
    white-space: normal;
}

.ch-lesson-plan-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: #e8e8e8;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    overflow: hidden;
}

.ch-lesson-plan-meta-cell {
    background: #fafafa;
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* A lesson plan's note (the teacher's, or the student note) under its label, below the overview's meta grid */
.ch-lesson-plan-note {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 16px;
}

.ch-lesson-plan-meta-key {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #666;
}

.ch-lesson-plan-meta-value {
    font-size: 14px;
    color: #1a1a1a;
    font-weight: 500;
    white-space: pre-line;
}

/* Bullet list */

.ch-lesson-plan-bullet-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ch-lesson-plan-bullet-item {
    padding: 10px 12px;
    border-radius: 6px;
    color: #333;
    line-height: 1.5;
    transition: background 0.15s;
}

.ch-lesson-plan-bullet-item::before {
    content: '–';
    margin-right: 10px;
    color: #bbb;
}

/* Resource rows */

.ch-lesson-plan-resource-row {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 6px;
    transition: background 0.15s;
}

.ch-lesson-plan-resource-row:hover {
    background: #f5f5f5;
}

button.ch-lesson-plan-resource-row {
    width: 100%;
    background: none;
    border: none;
    font: inherit;
    text-align: left;
    align-items: center;
}

.ch-lesson-plan-resource-row--clickable {
    cursor: pointer;
}

.ch-lesson-plan-resource-row-wrap {
    position: relative;
}

.ch-lesson-plan-resource-row-wrap:hover > .ch-lesson-plan-resource-row {
    background: #f5f5f5;
}

.ch-lesson-plan-resource-row-wrap:hover > .ch-lesson-plan-resource-row--active {
    background: #eaf4f0;
}

.ch-lesson-plan-resource-pill-spacer {
    flex-shrink: 0;
    margin-left: auto;
    width: 88px;
}

.ch-lesson-plan-resource-pill-slot {
    position: absolute;
    top: 50%;
    right: 44px;
    transform: translateY(-50%);
    display: flex;
    justify-content: flex-end;
    max-width: 88px;
}

.ch-lesson-plan-resource-pill-spacer + .ch-lesson-plan-resource-chevron {
    margin-left: 0;
}

.ch-lesson-plan-resource-chevron {
    margin-left: auto;
    flex-shrink: 0;
    color: #bbb;
    transition: color 0.15s;
}

.ch-lesson-plan-resource-row--active .ch-lesson-plan-resource-chevron,
.ch-lesson-plan-resource-row:hover .ch-lesson-plan-resource-chevron {
    color: #888;
}

.ch-lesson-plan-resource-row--active,
button.ch-lesson-plan-resource-row--active {
    background: #eaf4f0;
}

.ch-lesson-plan-resource-row--active .ch-lesson-plan-resource-title {
    font-weight: 600;
}

.ch-lesson-plan-resource-type,
.ch-lesson-plan-resource-code,
.ch-lesson-plan-resource-tags {
    font-weight: 600;
    color: var(--primary-color, #1a7f5a);
    white-space: nowrap;
    min-width: 72px;
}
.ch-lesson-plan-resource-type {
    text-transform: capitalize;
}
.ch-lesson-plan-resource-code {
    font-size: 12px;
}
.ch-lesson-plan-resource-tags {
    display: flex;
    flex-wrap: wrap;
}

.ch-tag-link,
.ch-tag-button {
    position: relative;
}

.ch-tag-link::after,
.ch-tag-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: max(100%, 32px);
    height: 32px;
    transform: translate(-50%, -50%);
}

.ch-tag-link {
    border-radius: 4px;
}

.ch-tag-link .ant-tag {
    text-decoration: underline;
    text-decoration-color: transparent;
    transition: color 0.15s, text-decoration-color 0.15s;
}

.ch-tag-link:hover .ant-tag,
.ch-tag-link:focus-visible .ant-tag {
    color: var(--link-colour);
    text-decoration-color: currentColor;
}

.ch-tag-link:focus-visible {
    outline: 2px solid var(--primary-color, #1a7f5a);
    outline-offset: 1px;
}

.ch-lesson-plan-resource-title {
    color: #333;
    line-height: 1.5;
}

@media (max-width: 600px) {
    .ch-lesson-plan-meta-grid {
        grid-template-columns: 1fr;
    }
}

.ch-lesson-plan-sortable-section {
    position: relative;
}

.ch-lesson-plan-sortable-section--dragging {
    z-index: 100;
}

.ch-lesson-plan-section-card {
    display: flex;
    align-items: center;
    background-color: #fff;
    border: 2px solid #dfdfdf;
    border-radius: 8px;
    touch-action: none;
    cursor: grab;
}


.ch-lesson-plan-section-card--ghost {
    border: 2px dashed #ccc;
    background: transparent;
    box-shadow: none;
    opacity: 0.4;
}

.ch-lesson-plan-section-card--floating {
    border: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.ch-lesson-plan-drag-handle {
    display: flex;
    align-items: center;
    padding: 10px 6px 10px 10px;
    cursor: grab;
    color: #aaa;
    flex-shrink: 0;
    touch-action: none;
}

.ch-lesson-plan-drag-handle--disabled {
    cursor: default;
    opacity: 0.3;
}

.ch-lesson-plan-section-card-label {
    flex: 1;
    font-weight: 600;
    padding: 10px 10px 10px 4px;
    font-size: 14px;
    touch-action: none;
}

.ch-lesson-plan-section-actions {
    position: absolute;
    right: 8px;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    gap: 2px;
    opacity: 0;
    transition: opacity 0.15s ease-in;
}

.ch-lesson-plan-sortable-section:hover .ch-lesson-plan-section-actions,
.ch-lesson-plan-sortable-section:has(:focus-visible) .ch-lesson-plan-section-actions {
    opacity: 1;
}

.ch-lesson-plan-add-section-btn {
    width: 100%;
}

@media (max-width: 999px) {
    .ch-lesson-plan-panel {
        position: fixed;
        inset: 0;
        width: 100%;
        height: 100%;
        z-index: 300;
        transform: translateX(100%);
        transition: transform 0.25s ease;
    }

    .ch-lesson-plan-panel--open {
        width: 100%;
        border-left: none;
        transform: translateX(0);
    }
}

/* Lesson Schedule Navigator */
.ch-lesson-schedule-nav {
    background: #fafafa;
    border-bottom: 1px solid #e8e8e8;
}

.ch-lesson-schedule-nav__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 24px;
}

.ch-lesson-schedule-nav__crumb-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ch-lesson-schedule-nav__cal-icon {
    color: var(--secondary-graphic-colour);
    font-size: 16px !important;
    flex-shrink: 0;
}

.ch-lesson-schedule-nav .ant-breadcrumb-separator {
    color: #aaa;
}

.ch-lesson-schedule-nav .ant-breadcrumb .ch-breadcrumb-button {
    color: #444;
}

.ch-lesson-schedule-nav .ant-breadcrumb li:first-child .ch-breadcrumb-button {
    color: var(--secondary-text-colour) !important;
    font-weight: 700;
}

.ch-lesson-schedule-nav__classes {
    display: flex;
    align-items: center;
    gap: 8px;
}

@media (max-width: 767px) {
    .ch-lesson-schedule-nav__top {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}



/* Add Section Drawer */
.ch-add-section-drawer {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding-right: 24px;
}

.ch-add-section-steps {
    margin: 16px 0 24px;
    flex-shrink: 0;
}

.ch-add-section-type-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    flex: 1;
}

.ch-add-section-review-content {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}


.ch-add-section-footer {
    display: flex;
    gap: 8px;
    padding-top: 16px;
    border-top: 1px solid #e0e0e0;
    flex-shrink: 0;
    margin-top: 16px;
}

.ch-add-section-footer-spacer {
    flex: 1;
}

/* Antd Steps: finished steps use success colour with white check */
.ant-steps .ant-steps-item-finish,
.ant-steps.ant-steps-filled .ant-steps-item-finish,
.ant-steps.ant-steps-outlined .ant-steps-item-finish {
    --ant-cmp-steps-item-icon-bg-color: var(--success-colour);
    --ant-cmp-steps-item-icon-border-color: var(--success-colour);
    --ant-cmp-steps-item-icon-text-color: var(--on-success-colour);
}

.calculator-question-icon{
    height: 1rem;
    margin-top: -1px;
}

#test-editor .tab-badge.ant-badge sup {
    background-color: grey !important;
    transition: none !important;
}

#test-editor .ant-tabs-tab-active .tab-badge.ant-badge sup,
#test-editor .badge-always-active.ant-badge sup {
    background-color: var(--secondary-colour) !important;
}

.back-end-form.modern-form {
     max-width: 800px;
     margin: 0;
     font-family: Arial, sans-serif;
 }

.back-end-form .form-row {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 15px;
    margin-bottom: 4px;
    align-items: center;
}
.back-end-form .form-row select, .back-end-form .form-row input {margin: 0;}

.back-end-form .form-row.align-top {
    align-items: start;
}

.back-end-form .form-label {
    font-weight: bold;
    color: #333;
    margin-top: 6px;
}

.back-end-form .form-input {
    width: 100%;
    max-width: 500px;
    padding: 6px 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 14px;
}

.back-end-form .required-marker {
    color: #d9534f;
    margin-left: 3px;
}

.back-end-form .hint-text {
    font-size: 0.85em;
    color: #666;
    margin-left: 8px;
}
/* Creates the scrollable box */
#editMediaForm .checkbox-scroll-box {
    max-height: 150px; /* Adjust this height to show more or fewer items */
    overflow-y: auto;  /* Adds the vertical scrollbar when needed */
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 10px;
    background-color: #fff;
    width: 100%;
    max-width: 500px;
    box-sizing: border-box;

    display: grid;
    grid-template-columns: min-content 1fr;
    row-gap: 8px;
    column-gap: 10px;
    align-items: center;
}

#editMediaForm .checkbox-scroll-box label {
    margin: 0;
    font-weight: normal; /* Un-bolds them so they don't look like main form labels */
    color: #333;
    cursor: pointer;
}

#editMediaForm .checkbox-scroll-box input[type="checkbox"] {
    margin: 0;
    cursor: pointer;
}


#cms-view-question .contentBox{
    padding: 5px !important;
    border-radius: 4px;
}

/* Scorcher Specific Styles - SVG & Rounded Grid Updates */
.ch-scorcher-flame-wrapper {
    position: relative;
    width: 48px;
    height: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.ch-scorcher-flame-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    filter: drop-shadow(0px 2px 3px rgba(232, 93, 4, 0.3));
}

.ch-scorcher-flame-text-double {
    font-size: 13px;
    margin-top: 7px;
    letter-spacing: -0.5px;
}

.ch-scorcher-flame-text {
    position: relative;
    z-index: 1;
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    font-size: 16px;
    font-weight: 800;
}

.ch-scorcher-rank {
    display: flex;
    justify-content: center;
    align-items: center;
}

.ch-scorcher-list {
    background: var(--surface-colour);
    border-radius: var(--container-radius);
    border: 1px solid rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.ch-scorcher-user-result {
    border-radius: var(--container-radius);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.ch-scorcher-list .ant-list-item,
.ch-scorcher-list-item {
    display: flex !important;
    padding: 0 !important;
    align-items: stretch;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.ch-scorcher-list .ant-list-item:last-child,
.ch-scorcher-user-result .ch-scorcher-list-item {
    border-bottom: none;
}

.ch-scorcher-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 12px 16px;
    border-right: 1px solid rgba(0, 0, 0, 0.06);
}

.ch-scorcher-col:last-child {
    border-right: none;
}

.ch-scorcher-col-rank {
    width: 80px;
    align-items: center;
}

.ch-scorcher-col-flame {
    width: 90px;
    align-items: center;
}

.ch-scorcher-col-score {
    min-width: 110px;
}

.ch-scorcher-toolbar {
    min-height: 40px;
}

/* Question explanation styles */
.ch-correct-answer-box {
    background-color: #d4edda;
    border: 1px solid #28a745;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 30px;
}

.ch-correct-answer-box h2 {
    color: #28a745;
    margin-top: 0;
    margin-bottom: 15px;
    border-bottom: none;
    font-size: 1.5em;
    font-weight: 600;
}

/* -----------------------------------------
   2. Key Concept & 3. Step-by-Step Sections
----------------------------------------- */
.ch-key-concept-box,
.ch-step-by-step-box {
    margin-bottom: 20px;
    background-color: transparent;
}

.ch-key-concept-box h2,
.ch-step-by-step-box h2 {
    color: #00a69d;
    border-bottom: 2px solid #00a69d;
    padding-bottom: 8px;
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 1.5em;
    font-weight: 600;
}


.ch-distractor-analysis-box {
    background-color: #f8d7da;
    border: 1px solid #dc3545;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 30px;
}

.ch-distractor-analysis-box h2 {
    color: #dc3545;
    margin-top: 0;
    margin-bottom: 15px;
    border-bottom: none;
    font-size: 1.5em;
    font-weight: 600;
}

/* -----------------------------------------
   Inner Components (Badges & Final Answer)
----------------------------------------- */
.ch-step-badge {
    display: inline-flex;
    width: 28px;
    height: 28px;
    background-color: #00a69d;
    color: white;
    border-color: #00a69d;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-weight: bold;
    flex-shrink: 0;
}

.ch-final-answer-box {
    background-color: #e8f8f7;
    border-left: 4px solid #00a69d;
    padding: 10px 15px;
    border-radius: 4px;
    margin-top: 20px;
}

ol.cont-question-options {list-style: upper-alpha}


/* EXPLAINABLE QUIZ QUESTIONSs */

/* Question Card Styles */
.ch-btn-star { color: var(--secondary-graphic-colour); background-color: transparent; border: none; padding: 4px; cursor: pointer; }
.ch-btn-star.ch-btn-star-active { color: #ffc107; }
.ch-btn-notes { color: var(--secondary-graphic-colour); background-color: transparent; border: none; padding: 4px; border-radius: 4px; cursor: pointer; }
.ch-btn-notes.ch-btn-notes-active { background-color: rgba(var(--secondary-colour-RGB), 0.1); }
.ch-note-preview-text { white-space: pre-wrap; }
.ch-btn-check { background-color: #d35400; color: #fff; border: none; }
.ch-btn-check:disabled { background-color: var(--unmarked-colour); color: #999; cursor: not-allowed; }
.ch-feedback-user-ans { padding: 8px 12px; border-radius: 6px; border: 1px solid; }
.ch-feedback-user-ans-correct { border-color: var(--correct-colour); background-color: #e8f5e9; color: var(--correct-colour); }
.ch-feedback-user-ans-incorrect { border-color: var(--incorrect-colour); background-color: var(--lightRed, #fdeceb); color: var(--incorrect-colour); }
.ch-feedback-correct-ans { padding: 8px 12px; border-radius: 6px; border: 1px solid var(--secondary-graphic-colour); background-color: rgba(var(--secondary-colour-RGB), 0.1); color: #004d40; }
.ch-explanation-wrapper { height: auto; align-self: flex-start; max-width: 100%; }
.ch-explanation-card { display: flex; flex-direction: column; background-color: #fafafa; min-height: 200px; height: auto; width: 100%; box-sizing: border-box; }
.ch-explanation-title { color: var(--secondary-text-colour); }
.ch-icon-lightbulb { color: #ffc107; }
.ch-btn-explanation-toggle { background-color: #d35400; color: #fff; border: none; padding: 8px 16px; border-radius: 4px; cursor: pointer; }
.ch-btn-explanation-toggle:disabled { background-color: var(--unmarked-colour); color: #999; cursor: not-allowed; }
.ch-explanation-page-btn { border: 1px solid var(--secondary-graphic-colour); background-color: #fff; color: var(--secondary-text-colour); }
.ch-explanation-page-btn.ch-activated { background-color: var(--secondary-colour); color: #fff; }
.ch-explanation-content { max-height: 450px; overflow-y: auto; scrollbar-gutter: stable; border-color: var(--secondary-graphic-colour); }
.ch-explanation-state-box { padding: 16px; background-color: #e0f7fa; border: 1px solid rgba(0, 139, 139, 0.2); border-radius: 6px; text-align: center; }
.ch-explanation-state-box p { color: #333; margin: 0; }
.ch-explanation-footer { margin-top: auto; padding-top: 12px; border-top: 1px solid #eee; min-height: 48px; }
.ch-btn-thumb-up { background-color: var(--correct-colour); color: #fff; border: none; padding: 4px 8px; }
.ch-btn-thumb-down { background-color: var(--incorrect-colour); color: #fff; border: none; padding: 4px 8px; }

#multi-question-auto-mark .ant-segmented-item {
    min-width: 40px;
    text-align: center;
}

.multi-auto-mark-question .ant-card-head{
    display: flex;
}

.multi-auto-mark-question .ant-card-body{
    height:100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding:12px;
}

/* ── Admin Classes ─────────────────────────────────────────────────────────── */

.ch-admin-classes {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--border-colour);
    border-radius: 8px;
}

.ch-admin-classes-panel-header {
    position: sticky;
    top: 0;
    z-index: 1;
    padding: 12px 16px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(var(--on-surface-colour-RGB), 0.54);
    border-bottom: 1px solid var(--border-colour);
    background: #fff;
}

.ch-admin-classes-layout {
    display: flex;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    border-radius: 8px;
}

.ch-admin-classes-left-panel {
    flex: 3.5;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--border-colour);
    background: var(--surface-colour);
}

.ch-admin-classes-left-scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

.ch-admin-classes-selection-bar {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--border-colour);
    background: #f2f2f7;
    flex-shrink: 0;
}

.ch-admin-classes-selection-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
}

.ch-admin-classes-selection-count {
    font-size: 14px;
    font-weight: 500;
}

.ch-admin-classes-selection-icon-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.ch-admin-classes-danger-btn.ch-btn-outline {
    border-color: var(--danger-colour);
    color: var(--danger-colour);
}

/* Sits on an Alert's pale info background - transparent (the default) would blend into it. */
.ch-olna-alert-btn.ch-btn-outline {
    background: var(--surface-colour, #fff);
}

/* Sits on the tinted filter form - white to match the inputs beside it. */
.ch-olna-refresh-btn.ch-btn-outline {
    background: var(--surface-colour, #fff);
}

.ch-admin-classes-assign-search {
    padding: 0 12px 8px;
}

.ch-admin-classes-assign-list {
    max-height: 132px;
    overflow-y: auto;
    border-top: 1px solid var(--border-colour);
    border-bottom: 1px solid var(--border-colour);
}

.ch-admin-classes-assign-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2px 12px 2px 12px;
    font-size: 14px;
    background: #fff;
    border-bottom: 1px solid var(--border-colour);
}

.ch-admin-classes-assign-row:last-child {
    border-bottom: none;
}

.ch-admin-classes-assign-row:hover {
    background: #f5f5ff;
}

.ch-admin-classes-assign-hint {
    margin: 0 0 8px;
    padding: 6px 12px 0;
    font-size: 12px;
    color: rgba(var(--on-surface-colour-RGB), 0.75);
}

.ch-admin-classes-right-panel {
    flex: 6.5;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    background: var(--container-colour);
}

.ch-admin-classes-right-scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

.ch-admin-classes-selection-bar--compact {
    flex-shrink: 0;
}

.ch-admin-classes-selection-bar--compact .ch-admin-classes-selection-header {
    padding-right: 60px;
}

.ch-admin-classes-right-panel .ant-collapse {
    --ant-collapse-content-padding: 0;
}

.ch-admin-classes-right-panel .ant-collapse-item:not(.ant-collapse-item-active) .ant-collapse-header {
    background-color: #FAFAFA;
}

.ch-admin-classes-left-panel .ch-admin-classes-panel-header,
.ch-admin-classes-right-panel .ch-admin-classes-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 4px;
    padding-bottom: 4px;
    padding-right: 4px;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: normal;
    text-transform: none;
}

.ch-admin-classes-panel-header-title-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ch-admin-classes-panel-title {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--on-surface-mid-colour);
}

.ch-admin-classes-panel-search,
.ch-admin-classes-panel-filter {
    position: sticky;
    z-index: 1;
    padding: 8px 12px;
    border-bottom: 1px solid var(--border-colour);
    background: #f8f8ff;
}

.ch-admin-classes-panel-search {
    top: 40px;
    border-bottom: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ch-admin-classes-panel-search--bordered {
    border-bottom: 1px solid var(--border-colour);
}

.ch-admin-classes-panel-filter {
    top: 88px;
}

.ch-admin-classes-more-filters {
    position: sticky;
    top: 88px;
    z-index: 1;
}

.ch-admin-classes-more-filters-inner {
    overflow: hidden;
    background: #e0e0f0;
    transition: height 0.25s ease;
}

.ch-admin-classes-more-filters .ch-filter-form {
    background-color: transparent;
    margin: 0;
    padding: 8px 12px;
    border-radius: 0;
}

.ch-admin-classes-panel-filter .ant-segmented {
    background: #e0e0f0;
}

.ch-admin-classes-user-collapse {
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-top: none;
}

.ch-admin-classes-user-collapse > .ant-collapse-item:first-child,
.ch-admin-classes-user-collapse > .ant-collapse-item:first-child > .ant-collapse-header,
.ch-admin-classes-user-collapse > .ant-collapse-item:first-child > .ant-collapse-header .ant-collapse-header-text,
.ch-admin-classes-user-collapse > .ant-collapse-item:first-child > .ant-collapse-content {
    border-radius: 0 !important;
}

.ch-admin-classes-user-collapse > .ant-collapse-item:last-child {
    border-radius: 0;
    border-bottom: none;
}

.ch-admin-classes-user-collapse .ant-collapse-header {
    padding: 6px 24px 6px 12px !important;
    font-weight: 500;
    align-items: center !important;
    position: relative;
}

.ch-admin-classes-user-collapse .ant-collapse-item.ch-admin-classes-item--loading > .ant-collapse-header {
    pointer-events: none;
}

.ch-admin-classes-user-collapse .ant-collapse-item.ch-admin-classes-item--loading > .ant-collapse-header::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(242, 242, 247, 0.85);
    z-index: 10;
    cursor: default;
    pointer-events: all;
}

.ch-admin-classes-user-label {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ch-admin-classes-user-label-name {
    flex: 1;
}

.ch-admin-classes-user-detail {
    display: grid;
    grid-template-columns: max-content 1fr;
    align-items: center;
    column-gap: 16px;
    row-gap: 4px;
    margin: 0;
    font-size: 14px;
}

.ch-admin-classes-user-detail dt {
    font-weight: 600;
    color: rgba(var(--on-surface-colour-RGB), 0.6);
    white-space: nowrap;
}

.ch-admin-classes-user-detail dd {
    margin: 0;
    color: var(--on-surface-colour);
    word-break: break-word;
}

.ch-admin-classes-user-detail-copy {
    display: flex;
    align-items: center;
    gap: 4px;
}

.ch-admin-classes-user-detail-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
}

.ch-admin-classes-user-collapse .ant-collapse-body {
    padding-top: 0 !important;
}

.ch-admin-classes-products-divider {
    border-top: 1px solid #e8e8e8;
    margin: 10px 0;
}

.ch-admin-classes-products-collapse {
    border: 1px solid #e0e0e8;
    border-radius: var(--ant-border-radius-lg) !important;
    overflow: hidden;
}

.ch-admin-classes-products-collapse .ant-collapse-header {
    padding: 4px 10px !important;
    font-size: 12px;
    font-weight: 600;
    background: #f7f7fb;
}

.ch-admin-classes-products-collapse .ant-collapse-content-box {
    padding: 6px 10px !important;
}

.ch-admin-classes-products-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ch-admin-classes-products-list li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    font-size: 12px;
    padding: 2px 0;
}

.ch-admin-classes-products-expiry {
    color: rgba(var(--on-surface-colour-RGB), 0.54);
    white-space: nowrap;
}

.ch-admin-classes-products-collapse-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ch-admin-classes-user-actions {
    display: flex;
    gap: 4px;
    padding: 4px 0 8px;
    border-bottom: 1px solid #e8e8e8;
    margin-bottom: 10px;
}

.ch-admin-classes-class-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
}


.ch-admin-classes-class-label--assignable {
    appearance: none;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font: inherit;
    text-align: left;
    cursor: pointer;
    flex: 1;
    border-radius: 4px;
    transition: background 0.15s;
}

.ch-admin-classes-class-label--assignable:hover {
    background: rgba(0, 150, 136, 0.1);
    outline: 2px dashed rgba(0, 150, 136, 0.5);
}

.ch-admin-classes-right-panel .ant-collapse-item-active .ch-admin-classes-class-label--assignable,
.ch-admin-classes-right-panel .ant-collapse-item-active .ch-admin-classes-class-label .ch-button {
    color: #fff;
}

.ch-admin-classes-right-panel .ant-collapse-item-active .ch-admin-classes-class-label--assignable:hover {
    background: rgba(255, 255, 255, 0.15);
    outline: 2px dashed rgba(255, 255, 255, 0.8);
}

.ch-admin-classes-class-tags {
    display: flex;
    align-items: center;
    gap: 4px;
}

.ch-admin-classes-class-divider {
    color: rgba(var(--on-surface-colour-RGB), 0.3);
    font-size: 14px;
    line-height: 1;
}

.ch-admin-classes-class-members {
    display: flex;
    flex-direction: column;
}

.ch-admin-classes-member-section-label {
    margin: 0;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(var(--on-surface-colour-RGB), 0.5);
    background: #f2f2f7;
    border-top: 1px solid #e0e0e8;
    border-bottom: 1px solid #e0e0e8;
}

.ch-admin-classes-member-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 12px;
    gap: 12px;
    border-top: 1px solid var(--border-colour);
    border-bottom: 1px solid var(--border-colour);
}

.ch-admin-classes-member-row + .ch-admin-classes-member-row {
    border-top: none;
}

.ch-admin-classes-member-row:hover {
    background: #f2f2f7;
}

.ch-admin-classes-member-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.ch-admin-classes-member-name {
    font-size: 14px;
    font-weight: 500;
}

.ch-admin-classes-member-username {
    font-size: 12px;
    color: rgba(var(--on-surface-colour-RGB), 0.54);
}

.ch-admin-classes-empty-msg {
    margin: 0 0 8px;
    padding: 10px 12px;
    font-size: 14px;
    text-align: left;
}

.ch-admin-classes-no-results {
    margin: 0;
    padding: 16px 12px;
    font-size: 14px;
    color: rgba(var(--on-surface-colour-RGB), 0.54);
}

.ch-admin-classes-class-filter-bar {
    position: sticky;
    top: 136px;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 8px 6px 12px;
    border-bottom: 1px solid var(--border-colour);
    background: #eeeeff;
}

.ch-admin-classes-class-filter-label {
    flex: 1;
    font-size: 12px;
    font-weight: 500;
    color: rgba(var(--on-surface-colour-RGB), 0.7);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.ch-admin-classes-class-label-wrapper {
    position: relative;
    flex: 1;
    min-width: 0;
}

.ch-admin-classes-class-checkbox-row {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.ch-admin-classes-class-members-wrapper {
    position: relative;
}

.ch-admin-classes-right-panel-content {
    position: relative;
}

.ch-admin-classes-add-class-row {
    padding: 12px;
    border-top: 1px solid var(--border-colour);
}

.ch-admin-classes-add-class-row .ch-button {
    width: 100%;
}

.ch-admin-classes-class-loading-overlay {
    position: absolute;
    inset: 0;
    background: rgba(242, 242, 247, 0.85);
    border-radius: 4px;
    z-index: 1;
    pointer-events: all;
    cursor: default;
}

.ch-admin-classes-class-loading-overlay--children {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ch-student-question-subtitle {

    display: flex;
    gap: 8px;
}
.ch-student-question-subtitle .ant-statistic-content-prefix:first-child {
    font-weight: normal;
}

.ch-student-question-subtitle-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--medium-spacing-unit);
}

/* Result header: title left, time taken centred, "Back to results" top right. */
.ch-test-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
}

.ch-test-header-back {
    display: flex;
    justify-content: flex-end;
}

@media screen and (max-width: 768px) {
    .ch-test-header {
        grid-template-columns: 1fr;
    }

    .ch-test-header-back {
        justify-content: flex-start;
        order: -1;
    }
}

/* Reading support (dyslexia-friendly) adjustments applied to the question content */
/* !important + descendants: AntD components (e.g. Typography) set their own font-family,
   which otherwise wins over simple inheritance from this ancestor class.
   Excludes MathJax output (mjx-container), which needs its own math fonts. */
.ch-reading-font, .ch-reading-font *:not(mjx-container):not(mjx-container *) {
    font-family: 'Lexend', sans-serif !important;
}
.ch-reading-spacing {
    letter-spacing: 0.04em;
    word-spacing: 0.16em;
}
/* line-height only on the actual reading text (question/instructions), not the whole
   wrapper - otherwise headings, buttons and nav chrome stretch vertically too. */
.ch-reading-spacing .ch-student-question-group-questions,
.ch-reading-spacing .ch-student-question-card__body {
    line-height: 1.6;
}
.ch-reading-bg-cream, .ch-reading-bg-blue, .ch-reading-bg-grey, .ch-reading-bg-peach {
    border-radius: var(--component-radius);
}
.ch-reading-bg-cream { background-color: #fbf3d9; }
.ch-reading-bg-blue { background-color: #dceefb; }
.ch-reading-bg-grey { background-color: #e8e8e8; }
.ch-reading-bg-peach { background-color: #ffe3cc; }

/* .ch-sticky (StickyBlock) is opaque, so it blocks the ambient tint above from
   showing through behind the question instructions - override it explicitly. */
.ch-reading-bg-cream .ch-sticky { background-color: #fbf3d9; }
.ch-reading-bg-blue .ch-sticky { background-color: #dceefb; }
.ch-reading-bg-grey .ch-sticky { background-color: #e8e8e8; }
.ch-reading-bg-peach .ch-sticky { background-color: #ffe3cc; }

/* Tint is scoped to the content cards (instructions + question/answer), not the wrapper classes
   below, so page chrome (section nav, PARTS stepper) stays neutral. */
/* Permanent, colour-independent styling for the instructions sticky block within the OLNA
   question area - just rounded corners, no border (the background colour alone signals the
   highlight). Scoped to #multi-question-auto-mark so it doesn't touch StickyBlock elsewhere
   in the app. Kept OUTSIDE the colour rules below so switching/toggling background colour
   never changes layout - it only ever changes background-color. */
#multi-question-auto-mark .ch-sticky {
    border-radius: 4px;
    overflow: hidden;
    border-bottom: none;
}

/* Background colour only - border colour/radius/overflow above stay fixed regardless of
   which swatch (or none) is selected. */
.ch-reading-tint-v2-cream .ch-sticky,
.ch-reading-tint-v2-cream .ch-student-question-card,
.ch-reading-tint-v2-cream .multi-auto-mark-question .ant-card-body {
    background-color: #fbf3d9;
}
.ch-reading-tint-v2-blue .ch-sticky,
.ch-reading-tint-v2-blue .ch-student-question-card,
.ch-reading-tint-v2-blue .multi-auto-mark-question .ant-card-body {
    background-color: #dceefb;
}
.ch-reading-tint-v2-grey .ch-sticky,
.ch-reading-tint-v2-grey .ch-student-question-card,
.ch-reading-tint-v2-grey .multi-auto-mark-question .ant-card-body {
    background-color: #e8e8e8;
}
.ch-reading-tint-v2-peach .ch-sticky,
.ch-reading-tint-v2-peach .ch-student-question-card,
.ch-reading-tint-v2-peach .multi-auto-mark-question .ant-card-body {
    background-color: #ffe3cc;
}


.ch-reading-support-panel {
    border: 1px solid var(--border-colour);
}

/* The panel itself acts as the preview - its own background/font/spacing update live
   as the options change, so no separate example text is needed. */
.ch-reading-support-panel.ch-reading-bg-cream { background-color: #fbf3d9; }
.ch-reading-support-panel.ch-reading-bg-blue { background-color: #dceefb; }
.ch-reading-support-panel.ch-reading-bg-grey { background-color: #e8e8e8; }
.ch-reading-support-panel.ch-reading-bg-peach { background-color: #ffe3cc; }

.ch-reading-swatch {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid var(--border-colour);
    cursor: pointer;
    padding: 0;
}
.ch-reading-swatch-selected {
    outline: 2px solid var(--primary-colour);
    outline-offset: 2px;
}

.ch-student-question-divider {
    margin: 0;
}

.ch-student-question-nav {
    background: #fafafa;
    border-bottom: 1px solid #e8e8e8;
    margin-bottom: 16px;
}

/* Pinned to the top of the dialog's scroll area; negative top cancels .ch-dialog-content's padding. */
.ch-dialog-content .ch-student-question-nav--sticky {
    position: sticky;
    top: calc(-1 * var(--spacing-unit));
    z-index: 3;
}

.ch-student-question-nav__inner {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100ch;
    margin: 0 auto;
    padding: 6px 24px 4px;
    box-sizing: border-box;
}

.ch-student-question-nav__section-pager {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    width: 100%;
}

.ch-student-question-nav__buttons {
    display: flex;
    min-width: 0;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
}

/* .ch-buttons-group's margin-right only creates a gap before the number buttons, and space-between
   distributes unevenly since they can wrap/grow - fixed margins are used instead. */
.ch-student-question-nav__buttons > .ch-button {
    margin-right: 0;
}

.ch-student-question-nav__buttons > .ch-button:first-child {
    margin-right: var(--large-spacing-unit);
}

.ch-student-question-nav__buttons > .ch-button:last-child {
    margin-left: var(--large-spacing-unit);
}

.ch-student-question-nav__meta {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    margin-top: 8px;
    font-size: 12px;
    color: #666;
}

/* Result view: clickable page numbers in the pager's bottom line. */
.ch-nav-pages {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.ch-nav-page-btn {
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    border: 1px solid transparent;
    border-radius: 4px;
    background: none;
    color: var(--secondary-text-colour);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.ch-nav-page-btn:hover:not(:disabled) {
    border-color: var(--secondary-graphic-colour);
}

/* A page not yet reachable: its earlier pages aren't complete. */
.ch-nav-page-btn:disabled {
    color: #bfbfbf;
    cursor: not-allowed;
}

.ch-nav-page-btn--active {
    border-color: var(--primary-colour);
    color: var(--on-surface-colour);
}

.ch-student-question-nav__questions {
    display: flex;
    min-width: 0;
}

.ch-student-question-nav__page {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 8px;
}

.ch-student-question-nav__page-arrow {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
}

/* Meta-row spacer only - keeps width for alignment but drops height/padding so the row isn't forced to full button height */
.ch-student-question-nav__page-arrow--spacer {
    height: auto;
    min-height: 0;
    padding: 0;
}

.ch-student-question-nav__questions-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    min-width: 0;
    gap: 8px;
}

.ch-student-question-nav__section-label {
    font-size: 12px;
    font-weight: 600;
    color: #666;
    text-align: left;
}

.ch-student-question-nav__questions .ch-button {
    width: 36px;
    min-width: 36px;
    padding: 0;
    justify-content: center;
}

.ch-student-question-nav__questions .ch-button.ch-nav-button-active {
    /*padding:2px;*/
    /*border-width:3px;*/
    border-color:var(--primary-colour);
}

/* Secondary's own text colour, not the primary's it would inherit as a filled button */
.ch-student-question-nav__questions .ch-button.ch-nav-button-completed {
    background: var(--secondary-colour);
    color: var(--on-secondary-colour);
}

/* Result view: soft tint, matching border and dark text show how the question went, in the same colours as the
   answer cards (the hover text and aria-label say it in words too). */
.ch-student-question-nav__questions .ch-button.ch-nav-button-result-correct {
    background: #f6ffed;
    border-color: #95de64;
}

.ch-student-question-nav__questions .ch-button.ch-nav-button-result-correct > span {
    color: #237804;
}

.ch-student-question-nav__questions .ch-button.ch-nav-button-result-partial {
    background: #fffbe6;
    border-color: #ffd666;
}

.ch-student-question-nav__questions .ch-button.ch-nav-button-result-partial > span {
    color: #ad6800;
}

.ch-student-question-nav__questions .ch-button.ch-nav-button-result-incorrect {
    background: #fff1f0;
    border-color: #ffa39e;
}

.ch-student-question-nav__questions .ch-button.ch-nav-button-result-incorrect > span {
    color: #cf1322;
}

.ch-student-question-nav__questions .ch-button.ch-nav-button-result-unanswered {
    background: #f5f5f5;
    border-color: #d9d9d9;
}

.ch-student-question-nav__questions .ch-button.ch-nav-button-result-unanswered > span {
    color: #595959;
}

/* The question being viewed keeps its outcome colours and gets an offset ring, so it can't be mistaken for a red "incorrect". */
.ch-student-question-nav__questions .ch-button.ch-nav-button-active[class*="ch-nav-button-result-"] {
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--primary-colour);
}

/* "Had trouble" flag badge on a result-view question button - red flag on a slightly see-through white disc, matching the grid's per-cell badge. */
.ch-nav-button-wrapper {
    position: relative;
    display: inline-flex;
}
.ch-nav-button-trouble-flag {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 16px !important;
    height: 16px !important;
    padding: 1px;
    box-sizing: border-box;
    border-radius: 50%;
    background: rgba(255, 255, 255, .95);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .2);
    color: #cc3232;
    pointer-events: none;
}

.ch-student-question-content {
    width: 100%;
    max-width: 100ch;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}

.ch-student-question-stepper__card .ant-steps {
    width: 100%;
}

.ch-student-question-stepper__card {
    background: #f8f8ff;
    border-radius: 8px;
    padding: 6px 22px;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.ch-student-question-stepper__label {
    font-size: 11px;
    color: #999;
    font-weight: 600;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.ch-student-question-stepper__card .ant-steps-item-finish .ant-steps-item-icon,
.ch-student-question-stepper__card .ant-steps-item-process .ant-steps-item-icon {
    color: #006d75;
}

.ch-student-question-stepper__card .ant-steps-item-finish > .ant-steps-item-container > .ant-steps-item-tail::after {
    background-color: #006d75;
}

.ch-student-question-step-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1.5px solid currentColor;
    font-size: 11px;
    line-height: 1;
}
.ch-student-question-stepper__card .ant-steps-item-process .ch-student-question-step-icon {
    width: 29px;
    height: 29px;
    font-weight: bold;
    border-width: 2px;
    flex-shrink: 0;
    font-weight: bold;
    font-size: 0.58em;
}
.ch-student-question-step-icon-completed {
    background: currentColor;
}

.ch-student-question-step-icon-completed > span {
    color: white;
    /*font-weight: bold;*/
}

.ch-student-question-card {
    border: 2px solid #95de64;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
}

.ch-student-question-card--active {
    border-color: color-mix(in srgb, var(--input-colour) 40%, transparent);
}

/* Test section heading (e.g. "Foundation skill check") in the OLNA test preview. */
.ch-olna-preview-section-heading {
    margin: 24px 0 8px 0;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--border-colour);
    font-size: 18px;
    font-weight: 600;
}

/* The OLNA preview's calculator icon is a label, not the student test's button */
.ch-olna-preview-calculator {
    cursor: default;
}

/* Group instructions sitting above the part cards in the teacher test preview. */
.ch-olna-preview-group-instructions {
    margin-bottom: 12px;
}

/* Teacher test preview (PreviewTest.js): a blank's inline width (8px a character + 16px, from HtmlInputParser) is
   sized for its answer, and the 8px side padding of the fill-in blank rule in generalStyles-v2.css left a 32px blank
   15px for its 2-digit answer. Overrides it as styles.css loads after generalStyles-v2.css. */
.ch-test-preview-content input[type='text']:not(.fraction-container input):not(.numerator):not(.denominator) {
    padding-inline: var(--small-spacing-unit);
}

/* Teacher test preview (PreviewTest.js). Its headings, parts and dividers reuse the student test's, the quiz's and
   the dashboard's classes; these are only what none of them does. */
/* The test's name and questions sit in from the dialog's edge, but not on a phone, where the width is the content's */
.ch-test-preview-indent {
    padding-left: var(--large-spacing-unit);
}

@media (max-width: 600px) {
    .ch-test-preview-indent {
        padding-left: 0;
    }
}

/* A question's content: content wider than the dialog (a table, a graph) scrolls in it rather than widening the page */
.ch-test-preview-content {
    margin-bottom: calc(var(--spacing-unit) / 2);
    min-width: 0;
    overflow-x: auto;
}

/* A part's content, beside its label (ch-quiz-question-label-row): the rest of the width, and it can shrink */
.ch-test-preview-part {
    flex: 1;
    min-width: 0;
}

/* Resets <p>'s default top margin so the labels don't sit lower than the part's text */
.ch-test-preview-part > :first-child p:first-child {
    margin-top: 0;
}

/* Teacher test preview (PreviewTest.js) loading skeleton: narrows with the dialog rather than scrolling sideways (reflow at 320px) */
.ch-test-preview-skeleton {
    width: 840px;
    max-width: calc(100% - var(--spacing-unit) * 2);
    margin-left: calc(var(--spacing-unit) * 2);
}

/* "PART I/II/..." label counted in CSS; hidden when a group has a single part, as in the student view. */
.ch-olna-preview-parts {
    counter-reset: ch-olna-preview-part;
}

.ch-olna-preview-part::before {
    counter-increment: ch-olna-preview-part;
    content: "PART " counter(ch-olna-preview-part, upper-roman);
}

.ch-olna-preview-parts > .ch-olna-preview-card:only-child .ch-student-question-card__header {
    display: none;
}

/* Inputs sit in line with the surrounding text; a line that holds an input is centred on it. */
.ch-olna-preview-card input,
.ch-olna-preview-card select,
.ch-olna-preview-card textarea {
    vertical-align: middle;
}

/* Not when the line has inline formatting (e.g. <strong>7</strong>2): flex would split it into separate items and add the gap inside the number. */
.ch-olna-preview-card .ch-mathjax-content:has(> input):not(:has(> :is(strong, b, em, i, u, sub, sup, span))),
.ch-olna-preview-card .ch-mathjax-content :is(p, div, li):has(> input):not(:has(> :is(strong, b, em, i, u, sub, sup, span))) {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35em;
}

/* Large images stay within their card. */
.ch-olna-preview-card img,
.ch-olna-preview-group-instructions img {
    max-width: 100%;
    height: auto;
}

.ch-student-question-card--active .ch-student-question-card__header {
    border-bottom-color: color-mix(in srgb, var(--input-colour) 40%, transparent);
}

.ch-student-question-card--active .ch-countup-timer .ch-countup-pill-div{
    border-color: color-mix(in srgb, var(--input-colour) 40%, transparent)!important;
}

.ch-student-question-card--incorrect{
    border-color: #ffa39e;
}

.ch-student-question-card--incorrect .ch-countup-timer .ch-countup-pill-div{
    border-color: #ffa39e!important;
}

.ch-student-question-card--correct .ch-countup-timer .ch-countup-pill-div{
    border-color: #95de64!important;
}

.ch-student-question-card--correct .ch-countup-timer .ch-countup-pill-div > span[role='img']{
    color: #95de64;
}

.ch-student-question-card--correct .ch-timer-display, .ch-student-question-card--incorrect .ch-timer-display{
    color:darkgrey!important;
}

.ch-student-question-card--incorrect .ch-countup-timer .ch-countup-pill-div > span[role='img']{
    color: #ffa39e;
}

.ch-student-question-card--incorrect .ch-student-question-card__header {
    border-bottom-color: #ffa39e;
}

.ch-student-question-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    border-bottom: 1px solid #95de64;
}

.ch-student-question-card__part {
    font-size: 11px;
    font-weight: 600;
    color: #666;
    letter-spacing: 0.05em;
}

.ch-student-question-card__part-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    gap: 4px;
}

.ch-student-question-card__calculator-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--secondary-graphic-colour);
    font-size: 1.2em;
    cursor: pointer;
}

.ch-student-question-group-heading-calculator-btn svg {
    width: 1.5em;
    height: 1.5em;
}

.ch-student-question-card__part-flag {
    font-size: 1.5em;
    color: #f4483c;
    margin-left: 4px;
}

.ch-student-question-card__body {
    padding: 20px 16px;
}

/* Bold text in question parts (e.g. "the bolded digit") needs to stand out clearly. */
.ch-student-question-card__body strong,
.ch-student-question-card__body b {
    font-weight: 800;
}

/* OLNA test images: scaled down to fit the screen; the Preview button (added in Test.jsx) shows the whole image. */
.ch-olna-img-wrap {
    position: relative;
    display: inline-block;
    max-width: 100%;
    vertical-align: top;
}

.ch-olna-img-wrap > img {
    display: block;
    max-width: 100%;
    max-height: 50vh;
    object-fit: contain;
}

/* Clicking the image opens the preview, but only while the preview button is available. */
.ch-olna-img-wrap:has(> .ch-olna-img-preview-btn:not([hidden])) > img {
    cursor: zoom-in;
}

/* Same look as the lesson image zoom icon (.imgZoom ~ .icon-search): dark tab in the image's bottom-right corner.
   Corner as drawn: imagePreview.js sets the insets when object-fit: contain leaves margins in its box. */
.ch-olna-img-preview-btn {
    position: absolute;
    right: var(--ch-img-inset-x, 0px);
    bottom: var(--ch-img-inset-y, 0px);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 15px 0 15px 0;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.15s ease;
}

.ch-olna-img-preview-btn svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

/* Dimmed by default so it stays discoverable; full opacity on hover or keyboard focus. */
.ch-olna-img-wrap:hover .ch-olna-img-preview-btn,
.ch-olna-img-preview-btn:focus-visible {
    opacity: 1;
}

@media (hover: none) {
    .ch-olna-img-preview-btn {
        opacity: 1;
    }
}

.ch-olna-img-preview-btn[hidden] {
    display: none;
}

.ch-olna-img-preview-full {
    display: block;
    max-width: 85vw;
    max-height: 75vh;
    margin: 0 auto;
    object-fit: contain;
}

/* Student test's sticky buttons/progress/page tabs: room above the buttons and below the page tabs; above the cards */
.ch-sticky.ch-test-top-bar {
    padding-top: var(--spacing-unit);
    padding-bottom: var(--small-spacing-unit);
    z-index: 2;
}
/* The padding gives the gap: the first row's top margin would otherwise collapse outside the bar, leaving the buttons
   flush with the top once it sticks */
.ch-sticky.ch-test-top-bar > :first-child {
    margin-top: 0;
}

/* Student test's Previous / actions / Next: equal side columns, so the actions are centred whatever the arrows' widths */
.ch-test-button-bar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: var(--spacing-unit);
}
.ch-test-button-bar > :first-child {
    justify-self: start;
}
.ch-test-button-bar > :last-child {
    justify-self: end;
}

/* Student test question (TestQuestion) and test previews: images capped, full size via the zoom button */
/* !important: course content stylesheets size their images too (.nsw-stage6 .cup-text img's max-height: 100%, ...),
   with more specific selectors, which would undo the cap */
.ch-test-question-content img {
    max-width: 100% !important;
    max-height: 40vh !important;
    object-fit: contain;
}

/* Image zoom button: hidden until the image is hovered or the button has keyboard focus (still always shown on touch,
   via the (hover: none) rule above) */
@media (hover: hover) {
    .ch-test-question-content .ch-olna-img-preview-btn {
        opacity: 0;
    }
    .ch-test-question-content .ch-olna-img-preview-btn:focus-visible {
        opacity: 1;
    }
}

/* Exam questions' (QuestionBean.examQuestion) tables, as the exam PDF prints them (examPdf.css). An exam test has no
   course, so its questions fall back to edjin-text, and contentStyles.css styles .cont-table only under .cont-base:
   without these the tables had no borders or cell padding and their columns ran together. An exam question in a
   cont-base course keeps its course's themed tables. */
.ch-exam-question:not(.cont-base) .cont-table {
    border-collapse: collapse;
    border: 1px solid currentColor;
    width: 100%;
    margin-bottom: 8px;
}
.ch-exam-question:not(.cont-base) .cont-table :is(td, th) {
    border: 1px solid currentColor;
    padding: 3px;
    overflow-wrap: break-word;
}
.ch-exam-question:not(.cont-base) .cont-table th {
    text-align: left;
}

/* Multiple-choice option text sits beside its radio/checkbox, not below it */
.ch-test-question-content ol.cont-question-options > li > input:is([type='radio'], [type='checkbox']) + p {
    display: inline;
}

.ch-student-question-radio-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ch-student-question-answer-btn {
    margin-top: 16px;
}

.ch-student-question-answer-btn.ch-button:not(:disabled):not(.ch-button-disabled) {
    background: color-mix(in srgb, var(--input-colour) 90%, transparent);
    color: var(--on-input-colour);
    fill: var(--on-input-colour);
}

.ch-student-question-footer {
    display: flex;
    align-items: baseline;
    justify-content: flex-start;
    gap: 16px;
}

.ch-student-question-footer .ch-student-question-answer-btn {
    margin-top: 16px;
}

.ch-student-question-group-heading-flag-btn {
    height: 20px !important;
    width: 20px !important;
    min-height: unset !important;
    min-width: unset !important;
    box-sizing: border-box;
    margin: 0;
    padding: 2px;
    border-radius: 4px;
}

.ch-student-question-group-heading-flag-btn .ch-student-question-flag__icon,
.ch-student-question-group-heading-flag-btn .ch-student-question-flag__icon--active {
    font-size: 14px;
}

.ch-student-question-flag.ch-btn-outline {
    border-color: #767676;
    color: #767676;
}

.ch-student-question-flag .ch-student-question-flag__icon {
    color: #767676;
}

.ch-student-question-flag__icon.ch-student-question-flag__icon--active {
    color: #f4483c;
}

.ch-student-question-correct-answer {
    margin-top: 12px;
}
.ch-student-question-group-questions{
    padding: 8px 8px 8px 0px;
}

/* The instructions are in a sticky block - cap image height so a tall one can't cover the parts on short screens. */
.ch-student-question-group-questions img {
    max-width: 100%;
    max-height: 25vh;
    object-fit: contain;
}

/* Short screens: drop stickiness and shrink the image - a tall sticky block would otherwise
   cover the question card being answered. */
@media (max-height: 640px) {
    #multi-question-auto-mark .ch-sticky {
        position: static;
    }
    .ch-student-question-group-questions img {
        max-height: 20vh;
    }
}

.ch-olna-tests-header{
    background:#F4F6F8;
}

.ch-olna-follow-up-step2-heading {
    width: 100%;
}

.ch-olna-follow-up-step2-heading h2 {
    font-size: 20px;
    font-weight: 700;
}

/* Truncates long names instead of reserving a fixed min-width - that used to leave a big empty
   gap before the score tag for any shorter name. */
.ch-olna-follow-up-step2-collapse-label {
    font-weight: 500;
    min-width: 0;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ch-olna-follow-up-step2-outer-collapse > .ant-collapse-item:last-child {
    margin-bottom: 0;
}

.ch-olna-follow-up-step2-outer-collapse > .ant-collapse-item > .ant-collapse-header {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.ch-olna-follow-up-step2-collapse-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.ch-olna-follow-up-step2-note-added-icon {
    font-size: 12px !important;
    vertical-align: -1px;
    margin-right: 4px;
}

/* Resource-type tags (Textbook/Video/Walkthrough/Question-set) in the "Select work by skill
   score" box - antd's Tag replaces (not merges) whatever inline style prop is put directly on an
   icon passed to its icon prop, so sizing/alignment has to go through a className instead, same
   as the note-added icon above. */
.ch-olna-followup-resource-tag-icon {
    font-size: 16px !important;
    vertical-align: -3px;
}

/* Only the two-tone icon's own lighter fill path (all 4 MUI TwoTone icons here render it at
   opacity:.3) - matches common/Tag's ACCESSIBLE_COLORS.default background (#f5f5f5) so that fill
   blends into the unselected tag's grey pill, while the icon's main/detail path keeps its normal
   colour so the shape still reads clearly. Selecting the tag jumps the whole icon to solid blue. */
.ch-olna-followup-resource-tag-icon--unselected path[opacity=".3"] {
    fill: #f5f5f5;
}

.ch-olna-follow-up-step2-nested-collapse .ant-collapse-content-box,
.ch-olna-follow-up-step2-nested-collapse .ant-collapse-panel > .ant-collapse-body {
    padding: 0 !important;
}

.ch-olna-follow-up-step2-nested-collapse > .ant-collapse-item {
    margin-bottom: 1rem;
}

.ch-olna-follow-up-step2-nested-collapse > .ant-collapse-item:last-child {
    margin-bottom: 0;
}

.ch-olna-follow-up-step2-nested-collapse .ant-collapse-item-active .ant-collapse-header,
.ch-olna-follow-up-step2-nested-collapse .ant-collapse-item-active .ant-collapse-header .ant-typography {
    background-color: color-mix(in srgb, var(--secondary-colour), black 30%) !important;
    color: white !important;
}

.ch-olna-follow-up-step2-nested-collapse .ant-collapse-header {
    background-color: color-mix(in srgb, var(--secondary-colour), black 30%);
}

.ch-olna-follow-up-step2-flush-table-item .ant-collapse-content-box,
.ch-olna-follow-up-step2-flush-table-item .ant-collapse-panel > .ant-collapse-body {
    padding: 0 !important;
}

.ch-olna-follow-up-step2-note {
    padding: var(--large-spacing-unit) var(--small-spacing-unit);
}

.ch-olna-follow-up-step2-note-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(var(--on-surface-colour-RGB), 0.5);
    margin-bottom: 4px;
}

.ch-olna-follow-up-step2-collapse-label-wrapper {
    width: 100%;
    padding: 4px 0;
}

.ch-olna-follow-up-step2-skills-table-section-row td {
    background-color: #F4F6F8 !important;
}

.ch-olna-follow-up-step2-skills-table-section-label {
    font-weight: 600;
}

@keyframes ch-olna-follow-up-step2-selected-counts-flash {
    0% {
        background-color: rgba(var(--secondary-colour-RGB), .35);
    }
    100% {
        background-color: transparent;
    }
}

/* Confirms to the teacher that a "Resources selected" tag's count just changed (e.g. after Auto-select). */
.ch-olna-follow-up-step2-selected-counts-tag--flash {
    animation: ch-olna-follow-up-step2-selected-counts-flash 900ms ease-out;
}

/* inline-flex (not flexRow's block-level flex) so the Overview table's centered column
   alignment (a plain text-align on the cell) actually centers this instead of hugging the left. */
.ch-olna-follow-up-step2-selected-counts {
    display: inline-flex;
}

.ch-olna-follow-up-step2-floating-bar {
    position: sticky;
    bottom: 0;
    z-index: 100;
    margin-top: 16px;
    padding: 16px 80px 16px 24px;
    background: #fff;
}

/* Fields align to their inputs' bottom edge, not their labels - overridden to stretch full-width
   once the <=700px query below stacks them into a column. */
.ch-olna-follow-up-step2-floating-bar-row {
    align-items: flex-end;
}

/* End date presets: the first item is a heading, not a clickable option. */
.ch-end-date-presets-popup .ant-picker-presets li:first-child {
    pointer-events: none;
    background: transparent;
    font-weight: 600;
    cursor: default;
}

/* Offsets the unlabelled Assign button down to line up with the fields' inputs rather than their
   labels - not needed once the row stacks (see the <=700px query below), where every field already
   has its own label above it. */
.ch-olna-follow-up-step2-floating-bar-button {
    margin-top: 30px;
}
/* Only shown while the bar is actually pinned to the bottom of the scroll container - see the
   scroll-position check in SetFollowUpWork.jsx that toggles this class. */
.ch-olna-follow-up-step2-floating-bar--stuck {
    border-top: 1px solid rgba(var(--on-surface-colour-RGB), .15);
}

/* Compact toggle / collapse controls for the <=700px breakpoint below - hidden entirely above it,
   where the full form is always shown and this collapsed state doesn't apply. */
.ch-olna-follow-up-step2-floating-bar-toggle {
    display: none;
    width: 100%;
    justify-content: space-between;
    padding: 4px 0;
}

.ch-olna-follow-up-step2-floating-bar-collapse {
    display: none;
    font-size: 13px;
    color: rgba(var(--on-surface-colour-RGB), 0.65);
    margin-bottom: 12px;
}

@media (max-width: 700px) {
    .ch-olna-follow-up-step2-floating-bar {
        padding-right: 24px;
    }
    .ch-olna-follow-up-step2-floating-bar-row {
        flex-direction: column;
        align-items: stretch;
    }
    .ch-olna-follow-up-step2-floating-bar-button {
        margin-top: 0;
    }
    /* Collapsed by default - a 4-field form stacked and pinned to the bottom would otherwise
       block most of a phone screen, so only the compact toggle shows until it's tapped open. */
    .ch-olna-follow-up-step2-floating-bar-toggle {
        display: flex;
    }
    .ch-olna-follow-up-step2-floating-bar-form {
        display: none;
    }
    .ch-olna-follow-up-step2-floating-bar--expanded .ch-olna-follow-up-step2-floating-bar-toggle {
        display: none;
    }
    .ch-olna-follow-up-step2-floating-bar--expanded .ch-olna-follow-up-step2-floating-bar-form {
        display: block;
    }
    .ch-olna-follow-up-step2-floating-bar--expanded .ch-olna-follow-up-step2-floating-bar-collapse {
        display: flex;
        align-items: center;
        gap: 4px;
    }
}

/* Drag handle for SetFollowUpWork.jsx's Overview table column widths - transparent by default so
   it doesn't add visual noise, a visible line only shows up on hover/while actually dragging. */
.ch-olna-followup-overview-resize-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    width: 8px;
    cursor: col-resize;
    user-select: none;
    border-right: 2px solid transparent;
}

.ch-olna-followup-overview-resize-handle:hover,
.ch-olna-followup-overview-resize-handle:active,
.ch-olna-followup-overview-resize-handle:focus-visible {
    border-right-color: rgba(var(--on-surface-colour-RGB), 0.3);
}

.ch-multi-auto-mark-test-card{

}

/* Search styles */
.ch-search-container {
    display: flex;
    flex-direction: column;
    width: 100%;
}
.ch-search-alert {
    margin-bottom: 16px;
    border-radius: var(--container-radius);
}
.ch-search-tabs {
    width: 100%;
    overflow-x: auto;
}
.ch-search-tabs [disabled] {
    opacity: 0.6;
    cursor: not-allowed;
    color: var(--on-surface-mid-colour);
}

/* Lesson Plan Generating Loading Screen */
.ch-lesson-plan-generating {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 480px;
    padding: 3rem 2rem;
    opacity: 1;
    transition: opacity 0.4s ease;
}

.ch-lesson-plan-generating--fading {
    opacity: 0;
}

.ch-lesson-plan-generating-inner {
    display: flex;
    flex-direction: column;
}

.ch-lesson-plan-generating-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: 6px;
    width: 200px;
    height: 160px;
    margin-bottom: 3rem;
}

.ch-lesson-plan-generating-tile {
    border-radius: 4px;
    background: #f0f0f0;
    border: 0.5px solid #e0e0e0;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
    transform: scale(0.6);
    opacity: 0;
}

.ch-lesson-plan-generating-tile--visible {
    opacity: 1;
    transform: scale(1);
}

.ch-lesson-plan-generating-tile--secondary {
    background: var(--secondary-colour);
    border-color: #1a7a63;
}

.ch-lesson-plan-generating-tile--primary {
    background: var(--primary-colour);
    border-color: #b04438;
}

.ch-lesson-plan-generating-steps {
    width: 280px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 72px;
    justify-content: flex-end;
}

.ch-lesson-plan-generating-step {
    display: flex;
    align-items: center;
    gap: 10px;
    transition: opacity 0.5s ease;
}

.ch-lesson-plan-generating-step--prev {
    opacity: 0.35;
}

.ch-lesson-plan-generating-step--current {
    opacity: 1;
}

.ch-lesson-plan-generating-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    background: var(--secondary-colour);
    box-shadow: 0 0 0 3px rgba(var(--secondary-colour-RGB), 0.15);
}

.ch-lesson-plan-generating-check {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--secondary-colour);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ch-lesson-plan-generating-check svg {
    width: 9px;
    height: 9px;
    stroke: var(--on-secondary-colour);
    stroke-width: 2.5;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ch-lesson-plan-generating-step-text {
    font-size: 15px;
    color: #666;
    line-height: 1.4;
}

.ch-lesson-plan-generating-step--current .ch-lesson-plan-generating-step-text {
    color: #333;
    font-weight: 500;
}

.ch-lesson-planner-step-loader {
    display: flex;
    justify-content: center;
}

.ch-lesson-plan-page-loader {
    display: flex;
    justify-content: center;
    padding: 48px 0;
}

.ch-lesson-plan-section-loader {
    display: flex;
    justify-content: center;
    padding: 20px;
}

.ch-lesson-plan-empty-section {
    padding: 12px;
    margin: 0;
    color: #999;
}

/* lessonStudio/components/ExportLessonPlanPdfDialog.js */
.ch-lesson-plan-export-hint {
    margin: 4px 0 0 24px;
    color: var(--on-surface-mid-colour);
    font-size: 13px;
}
.ch-lesson-plan-export-heading {
    margin: 0 0 8px;
    font-weight: 600;
}
.ch-lesson-plan-export-worksheets {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ch-lesson-plan-summary-concept {
    margin-bottom: 20px;
}

.ch-lesson-plan-summary-concept-name {
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 600;
}

.ch-lesson-plan-summary-concept-body {
    margin: 0;
    line-height: 1.6;
}

/* Shared table selection bulk action bar */
.ch-bulk-action-bar {
    position: sticky;
    bottom: 20px;
    background: var(--secondary-colour);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 16px;
    gap: 8px;
    z-index: 3;
    border-radius: 12px;
    margin: 0 40px 4px 4px;
    animation: ch-bulk-bar-slide-in 0.2s ease;
}

@keyframes ch-bulk-bar-slide-in {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
}

.ch-bulk-action-bar-count {
    font-size: 14px;
    font-weight: 600;
    color: rgba(var(--on-secondary-colour-RGB), .85);
    white-space: nowrap;
}

.ch-bulk-action-bar-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ch-bulk-action-bar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

@media (max-width: 500px) {
    .ch-bulk-action-bar {
        flex-wrap: wrap;
    }

    .ch-bulk-action-bar-left {
        display: contents;
    }

    .ch-bulk-action-bar-count {
        order: 1;
        flex-basis: 100%;
    }

    .ch-bulk-action-bar-select-all {
        order: 2;
    }

    .ch-bulk-action-bar-actions {
        order: 3;
        margin-left: auto;
        justify-content: flex-end;
    }
}

.ch-school-users-result-count {
    margin: 8px 0 0 2px;
    font-size: 13px;
}

.ch-school-users-result-count-number {
    font-weight: 600;
}

.ch-school-users-result-count-filter {
    color: #555;
}

.ch-add-users-to-class-section-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--on-surface-mid-colour);
    margin: 0 0 12px;
}

.ch-bulk-action-bar .ch-button {
    color: var(--on-secondary-colour);
    border-color: var(--on-secondary-colour);
}

.ch-bulk-action-bar .ch-button:focus-visible,
.ch-bulk-action-bar .ch-btn:focus-visible {
    outline-color: rgba(var(--on-secondary-colour-RGB), .9);
}

.ch-countup-timer .ant-statistic-header{
    display: flex;
    justify-content: center;
}

.ch-countup-timer .ant-statistic-content{
    display: flex;
    justify-content: center;
    align-items: center;
}

.ch-countup-timer .ant-statistic-content-value {
    display: flex !important;
    align-items: flex-start;
    line-height: 1;
}

/* Question feedback chrome (overrides the plainer .ch-feedback-title/.ch-feedback-header above for callers using this variant) */
.ch-feedback-widget {
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 16px;
    background: #ffffff;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.ch-feedback-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(0,0,0,0.07);
    background: rgba(0,0,0,0.02);
}

.ch-feedback-header-left {
    display: flex;
    align-items: baseline;
    gap: 10px;
    min-width: 0;
}

.ch-feedback-title {
    font-size: 16px;
    font-weight: 800;
    margin: 0;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ch-feedback-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.ch-feedback-reset-btn {
    border: 1px solid rgba(0,0,0,0.14);
    background: #fff;
    border-radius: 10px;
    padding: 6px 10px;
    font-weight: 700;
    cursor: pointer;
}

.ch-feedback-reset-btn:hover {
    background: rgba(0,0,0,0.03);
}

/*
 * Help page content (HelpPageHtml.CLASSES): the only classes a help page's HTML may carry, so these rules are all of
 * its styling - the content has no inline CSS. The reader (src/main/ui/help/HelpBody.jsx) wraps the content in
 * .ch-help-body and adds .ch-help-toggle-button, .ch-help-zoom and .ch-help-caption; the editor gives its content
 * area the same body class. The colours are literals, not vector tokens, because styles.css is also loaded where
 * vector isn't: #874400 is the HOTmaths link colour (7.05:1 on white), #F58220 the HOTmaths orange.
 */
.ch-help-body {
    --ch-help-orange: #F58220;
    --ch-help-orange-tint: #FDE6D2;
    --ch-help-orange-wash: #FFF6EE;
    --ch-help-link: #874400;
    --ch-help-text: #1F1F1F;
    --ch-help-text-secondary: #4A4A4A;
    --ch-help-border: #E8DDD3;

    color: var(--ch-help-text);
    font-size: 17px;
    line-height: 1.65;
    overflow-wrap: break-word;
}

/* A float (an enlargeable image) never hangs below the content. */
.ch-help-body::after {
    content: "";
    display: table;
    clear: both;
}

.ch-help-body p {
    margin: 0 0 16px;
}

.ch-help-body h2,
.ch-help-body h3,
.ch-help-body h4 {
    margin: 32px 0 12px;
    font-weight: 800;
    line-height: 1.2;
    text-wrap: balance;
}

.ch-help-body h2 {
    font-size: 26px;
}

.ch-help-body h3 {
    font-size: 21px;
}

.ch-help-body h4 {
    font-size: 18px;
}

/* The same as vector's plain lists (base.css), which take over where vector is loaded. */
.ch-help-body ul,
.ch-help-body ol {
    margin: 0 0 16px;
    padding-left: 24px;
}

.ch-help-body ul {
    list-style: disc;
}

.ch-help-body ol {
    list-style: decimal;
}

.ch-help-body li {
    margin-bottom: 4px;
}

.ch-help-body li::marker {
    color: var(--ch-help-orange);
}

.ch-help-body a {
    color: var(--ch-help-link);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ch-help-body a:hover {
    text-decoration-thickness: 2px;
}

.ch-help-body table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    margin: 0 0 16px;
    border-collapse: collapse;
}

.ch-help-body th,
.ch-help-body td {
    padding: 8px 12px;
    border: 1px solid var(--ch-help-border);
    text-align: left;
    vertical-align: top;
}

.ch-help-body th {
    background: var(--ch-help-orange-wash);
}

.ch-help-body img {
    max-width: 100%;
    height: auto;
}

.ch-help-body iframe {
    display: block;
    width: 100%;
    max-width: 720px;
    height: auto;
    aspect-ratio: 16 / 9;
    margin: 0 0 16px;
    border: 0;
    border-radius: 12px;
}

/* A heading within the content, under a rule. */
.ch-help-heading {
    display: block;
    margin: 32px 0 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--ch-help-orange-tint);
    font-size: 22px;
    font-weight: 800;
    line-height: 1.25;
}

.ch-help-body > .ch-help-heading:first-child {
    margin-top: 0;
}

/* The opening paragraph. */
.ch-help-lead {
    margin: 0 0 20px;
    font-size: 20px;
    line-height: 1.5;
    color: var(--ch-help-text-secondary);
}

/* A word or phrase to notice, such as a button's name. */
.ch-help-highlight {
    font-weight: 700;
    background: linear-gradient(transparent 62%, var(--ch-help-orange-tint) 62%);
}

/* A block holding an image and the text beside it. */
.ch-help-image {
    display: flow-root;
    margin: 0 0 16px;
}

/* --- Collapsibles: a .ch-help-toggle opens the .ch-help-toggle-content blocks after it. --- */

.ch-help-toggle {
    margin: 8px 0;
}

.ch-help-toggle-button {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--ch-help-border);
    border-radius: 12px;
    background: #FFFFFF;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.ch-help-toggle-button::before {
    content: "+";
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--ch-help-orange-tint);
    color: var(--ch-help-link);
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
}

.ch-help-toggle-button[aria-expanded="true"] {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    background: var(--ch-help-orange-wash);
}

.ch-help-toggle-button[aria-expanded="true"]::before {
    content: "\2212";
}

.ch-help-toggle-button:hover {
    background: var(--ch-help-orange-wash);
}

.ch-help-toggle-button:focus-visible,
.ch-help-zoom:focus-visible,
.ch-help-body a:focus-visible {
    outline: 3px solid var(--ch-help-link);
    outline-offset: 2px;
}

/* A heading that is also a toggle: the rule goes, the button is the frame. */
.ch-help-heading.ch-help-toggle {
    padding-bottom: 0;
    border-bottom: 0;
    font-size: 19px;
}

.ch-help-toggle-content {
    margin: -8px 0 12px;
    padding: 16px 18px 4px;
    border: 1px solid var(--ch-help-border);
    border-top: 0;
    border-radius: 0 0 12px 12px;
    background: var(--ch-help-orange-wash);
}

.ch-help-toggle-content + .ch-help-toggle-content {
    margin-top: -12px;
    border-radius: 0 0 12px 12px;
}

/* --- Enlargeable images: a thumbnail that opens the full-size image. --- */

.ch-help-zoom {
    display: block;
    float: right;
    clear: right;
    width: 240px;
    max-width: 100%;
    margin: 4px 0 16px 24px;
    padding: 6px;
    border: 1px solid var(--ch-help-border);
    border-radius: 12px;
    background: #FFFFFF;
    color: var(--ch-help-text-secondary);
    font: inherit;
    text-align: left;
    cursor: zoom-in;
}

.ch-help-zoom:hover {
    border-color: var(--ch-help-orange);
}

.ch-help-zoom img {
    display: block;
    width: 100%;
    border-radius: 8px;
}

.ch-help-caption {
    display: block;
    padding: 6px 4px 2px;
    font-size: 14px;
    line-height: 1.4;
}

.ch-help-enlarged {
    display: block;
    width: 100%;
    height: auto;
}

@media (max-width: 600px) {
    .ch-help-zoom {
        float: none;
        width: 100%;
        margin: 0 0 16px;
    }
}

@media print {
    .ch-help-body .ch-help-toggle-content[hidden] {
        display: block !important;
    }

    .ch-help-toggle-button {
        padding: 0;
        border: 0;
        background: none;
    }

    .ch-help-toggle-button::before {
        display: none;
    }

    .ch-help-toggle-content {
        margin: 0 0 12px;
        border: 0;
        background: none;
    }

    .ch-help-zoom {
        break-inside: avoid;
    }
}

/* messages/MessageAdmin.js: its width is the page's, not its table's (.ch-content-main fits its content), so the
   columns wrap instead of the page scrolling sideways. */
.ch-message-admin {
    contain: inline-size;
    width: 100%;
}

/* common/RichTextEditor.js: a written-working editor, toolbar above a contentEditable area. */
.ch-rich-text-editor {
    /* Its menus are placed in it */
    position: relative;
    border: 1px solid var(--border-colour);
    border-radius: var(--input-radius);
    background: var(--surface-colour);
}
.ch-rich-text-editor:focus-within {
    border-color: var(--input-colour);
    box-shadow: 0 0 0 var(--input-focus-size) rgba(var(--input-colour-RGB), .2);
}
.ch-rich-text-toolbar,
.ch-drawing-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px;
    padding: 4px;
    border-bottom: 1px solid var(--border-colour);
}
.ch-btn.ch-rich-text-btn,
.ch-btn.ch-drawing-btn {
    min-width: 36px;
    min-height: 36px;
    padding: 6px;
    color: var(--on-surface-colour);
    fill: currentColor;
    border: 2px solid transparent;
    border-radius: var(--input-radius);
}
/* The rich text toolbar's buttons at their 36px minimum (24px icon), so its whole toolbar fits on one line in a
   question card (a teacher's comment, written working) */
.ch-btn.ch-rich-text-btn {
    padding: 4px;
}
.ch-btn.ch-rich-text-btn:hover:not([disabled]),
.ch-btn.ch-drawing-btn:hover:not([disabled]) {
    background: var(--hover-on-surface);
}
.ch-btn.ch-rich-text-btn.ch-activated,
.ch-btn.ch-drawing-btn.ch-activated {
    color: var(--input-colour);
    border-color: var(--input-colour);
    background: rgba(var(--input-colour-RGB), .08);
}
.ch-btn.ch-rich-text-btn[disabled],
.ch-btn.ch-drawing-btn[disabled] {
    color: var(--button-colour-disabled);
}
.ch-rich-text-area {
    padding: 8px 12px;
    line-height: 1.5;
    overflow-wrap: anywhere;
    outline: none;
    cursor: text;
}
.ch-rich-text-area ul,
.ch-rich-text-area ol {
    margin: 4px 0;
    padding-left: 24px;
}
.ch-rich-text-area ul {
    list-style: disc;
}
.ch-rich-text-area ol {
    list-style: decimal;
}
.ch-rich-text-area p {
    margin: 0;
}
.ch-rich-text-area blockquote {
    margin: 0 0 0 40px;
}
.ch-rich-text-area table {
    border-collapse: collapse;
    margin: 4px 0;
}
.ch-rich-text-area td,
.ch-rich-text-area th {
    min-width: 48px;
    padding: 4px 8px;
    border: 1px solid var(--border-colour);
    vertical-align: top;
}
.ch-rich-text-toolbar-divider {
    width: 1px;
    height: 24px;
    margin: 0 4px;
    background: var(--border-colour);
}
.ch-rich-text-colours {
    display: grid;
    grid-template-columns: repeat(8, 24px);
    gap: 4px;
}
.ch-rich-text-colour {
    width: 24px;
    height: 24px;
    padding: 0;
    border: 1px solid rgba(0, 0, 0, .2);
    border-radius: 4px;
    cursor: pointer;
}
.ch-rich-text-colour:hover,
.ch-rich-text-colour:focus-visible {
    outline: 2px solid var(--input-colour);
    outline-offset: 1px;
}
.ch-rich-text-table-picker-row {
    display: flex;
    gap: 2px;
    margin-bottom: 2px;
}
.ch-rich-text-table-picker-cell {
    width: 18px;
    height: 18px;
    padding: 0;
    border: 1px solid var(--border-colour);
    background: var(--surface-colour);
    cursor: pointer;
}
.ch-rich-text-table-picker-cell.ch-rich-text-table-picker-on {
    border-color: var(--input-colour);
    background: rgba(var(--input-colour-RGB), .2);
}
.ch-rich-text-table-size {
    margin-top: 4px;
    text-align: center;
    color: var(--on-surface-mid-colour);
}
.ch-rich-text-table-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--border-colour);
}
.ch-btn.ch-rich-text-menu-item {
    justify-content: flex-start;
    color: var(--on-surface-colour);
}
.ch-rich-text-area.ch-rich-text-empty::before {
    content: attr(data-placeholder);
    color: var(--on-surface-mid-colour);
    pointer-events: none;
    position: absolute;
}
.ch-rich-text-editor-disabled .ch-rich-text-area {
    background: var(--button-colour-disabled-light);
    cursor: default;
}
/* The message mode's: images and embedded videos in the text, the link menu and the HTML source view */
.ch-rich-text-area img,
.ch-rich-text-area iframe {
    max-width: 100%;
}
.ch-rich-text-link-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 320px;
}
.ch-rich-text-link-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}
.ch-rich-text-editor .ch-rich-text-source {
    border: none;
    border-radius: 0 0 var(--input-radius) var(--input-radius);
    font-family: monospace;
    font-size: 13px;
}

/* common/DrawingCanvas.js: a drawing area with its toolbar. The grid is the surface's background, never in the PNG. */
.ch-drawing-canvas {
    display: inline-block;
    max-width: 100%;
    border: 1px solid var(--border-colour);
    border-radius: var(--input-radius);
    background: var(--surface-colour);
}
.ch-drawing-toolbar-divider {
    width: 1px;
    height: 24px;
    margin: 0 4px;
    background: var(--border-colour);
}
.ch-drawing-swatch {
    display: block;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, .2);
}
.ch-drawing-size-swatch {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}
.ch-drawing-size-swatch span,
.ch-drawing-size span {
    display: block;
    border-radius: 50%;
    background: currentColor;
}
.ch-drawing-options {
    display: flex;
    gap: 6px;
}
.ch-drawing-colour,
.ch-drawing-size {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 50%;
    background: var(--surface-colour);
    cursor: pointer;
}
.ch-drawing-colour {
    box-shadow: inset 0 0 0 2px var(--surface-colour);
}
.ch-drawing-size {
    border-radius: var(--input-radius);
    border-color: var(--border-colour);
}
.ch-drawing-option-on,
.ch-drawing-colour:focus-visible,
.ch-drawing-size:focus-visible {
    border-color: var(--input-colour);
    outline: none;
}
.ch-drawing-surface {
    position: relative;
    background-color: #fff;
}
.ch-drawing-surface-grid {
    background-image:
        linear-gradient(to right, rgba(9, 88, 217, .15) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(9, 88, 217, .15) 1px, transparent 1px);
    background-size: var(--ch-drawing-grid-x) var(--ch-drawing-grid-y);
}
.ch-drawing-area {
    display: block;
    width: 100%;
    height: 100%;
    touch-action: none;
    cursor: crosshair;
}
.ch-drawing-area-eraser {
    cursor: cell;
}
.ch-drawing-area:focus-visible {
    outline: var(--input-focus-size) solid var(--input-colour);
    outline-offset: -3px;
}
.ch-drawing-canvas-disabled .ch-drawing-area {
    cursor: default;
}

/* common/MathEditor.js: the Type workspace, a MathLive field per line above the legacy symbol panel. */
.ch-math-editor {
    border: 1px solid var(--border-colour);
    border-radius: var(--input-radius);
    background: var(--surface-colour);
}
.ch-math-editor:focus-within {
    border-color: var(--input-colour);
    box-shadow: 0 0 0 var(--input-focus-size) rgba(var(--input-colour-RGB), .2);
}
.ch-math-lines {
    display: flex;
    flex-direction: column;
    padding: 6px 8px;
    cursor: text;
}
.ch-math-line math-field {
    display: block;
    width: 100%;
    padding: 2px 4px;
    font-size: 20px;
    border: none;
    border-radius: var(--input-radius);
    outline: none;
    --contains-highlight-background-color: transparent;
    --primary: var(--input-colour);
}
.ch-math-line math-field:focus-within {
    background: rgba(var(--input-colour-RGB), .05);
}
.ch-math-line math-field::part(virtual-keyboard-toggle),
.ch-math-line math-field::part(menu-toggle) {
    display: none;
}
.ch-math-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
    padding: 4px;
    border-top: 1px solid var(--border-colour);
}
/* The tabbed panel (the CMS equation dialog): a tab per symbol group, all its symbols shown, Text beside the tabs */
.ch-math-panel.ch-math-panel-tabbed {
    display: block;
    padding: 0 8px 4px;
}
.ch-math-panel-tabbed .ant-tabs-nav {
    margin-bottom: 4px;
}
.ch-math-panel-tabbed .ant-tabs-nav-list {
    gap: 20px;
}
.ch-math-panel-tabbed .ant-tabs-tab {
    padding: 8px 0;
}
.ch-math-panel-tabbed .ant-tabs-tab + .ant-tabs-tab {
    margin: 0;
}

.ch-math-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px;
}
.ch-btn.ch-math-btn {
    min-width: 36px;
    min-height: 36px;
    padding: 4px 6px;
    font-size: 16px;
    color: var(--on-surface-colour);
    border: 2px solid transparent;
    border-radius: var(--input-radius);
    text-transform: none;
}
.ch-btn.ch-math-btn:hover:not([disabled]),
.ch-btn.ch-math-more:hover:not([disabled]) {
    background: var(--hover-on-surface);
}
.ch-btn.ch-math-btn.ch-activated {
    color: color-mix(in srgb, var(--input-colour) 65%, #000);
    border-color: var(--input-colour);
    background: rgba(var(--input-colour-RGB), .08);
}
.ch-btn.ch-math-btn[disabled],
.ch-btn.ch-math-more[disabled] {
    color: var(--button-colour-disabled);
}
.ch-btn.ch-math-more {
    min-height: 36px;
    padding: 4px 6px 4px 8px;
    gap: 2px;
    font-size: 13px;
    text-transform: none;
    color: var(--on-surface-mid-colour);
}
/* A group's More menu: the rest of its symbols, under its More button */
.ch-math-more-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    max-width: 240px;
}
.ch-math-face-frac {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    font-size: 11px;
    line-height: 1.1;
}
.ch-math-face-frac span:first-child {
    border-bottom: 1px solid currentColor;
    padding: 0 2px;
}
.ch-math-face-supsub {
    display: inline-flex;
    align-items: center;
}
.ch-math-face-supsub > span {
    display: inline-flex;
    flex-direction: column;
    font-size: 10px;
    line-height: 1;
}
.ch-math-face-vector {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    line-height: .9;
}
.ch-math-face-vector span {
    font-size: 11px;
}
.ch-math-face-longdiv span {
    position: relative;
    top: -6px;
    margin-left: -2px;
}
.ch-math-editor-disabled .ch-math-lines {
    background: var(--button-colour-disabled-light);
    pointer-events: none;
}
.ch-math-editor-unavailable {
    color: var(--on-surface-mid-colour);
}

/* common/ImagePicker.js: an image for a working, chosen, dropped or pasted. */
.ch-image-picker {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-width: 100%;
}
.ch-image-picker-empty,
.ch-image-picker-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--input-radius);
    background: var(--surface-colour);
}
.ch-image-picker-empty {
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    border: 2px dashed var(--border-colour);
    text-align: center;
    outline: none;
}
.ch-image-picker-dragging .ch-image-picker-empty {
    border-color: var(--input-colour);
    background: rgba(var(--input-colour-RGB), .08);
}
.ch-image-picker-hint {
    color: var(--on-surface-mid-colour);
}
.ch-image-picker-preview {
    padding: 8px;
    border: 1px solid var(--border-colour);
}
.ch-image-picker-dragging .ch-image-picker-preview {
    border-color: var(--input-colour);
}
.ch-image-picker-preview img {
    display: block;
    max-width: 100%;
    max-height: 600px;
    object-fit: contain;
}
.ch-image-picker-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
}
.ch-image-picker-name {
    margin-right: auto;
    color: var(--on-surface-mid-colour);
    overflow-wrap: anywhere;
}
.ch-image-picker-error {
    margin: 0;
}
.ch-image-picker-disabled .ch-image-picker-empty {
    background: var(--button-colour-disabled-light);
}

/* questionClusters/QuestionWorkspace.js: a question's workspace, a panel of its own under the question. */
.ch-question-workspace {
    margin-top: calc(var(--spacing-unit) * 2);
    padding: calc(var(--spacing-unit) * 1.5) calc(var(--spacing-unit) * 2) calc(var(--spacing-unit) * 2);
    border: 1px solid rgba(0, 0, 0, .23);
    border-left: 4px solid var(--input-colour);
    border-radius: var(--input-radius);
    background: rgba(var(--input-colour-RGB), .04);
}
.ch-question-workspace-title {
    margin-bottom: var(--spacing-unit);
    font-weight: 600;
    color: var(--on-surface-colour);
}
.ch-question-workspace .ant-tabs-nav {
    margin-bottom: var(--spacing-unit);
}

/* Tabs whose labels must keep 4.5:1 contrast whatever the brand colour: the labels are text colour, and the
   selected tab is bold over the brand-coloured ink bar. */
.ch-tabs.ch-tabs-contrast .ant-tabs-tab .ch-tab,
.ch-tabs.ch-tabs-contrast .ant-tabs-tab .ant-tabs-tab-btn {
    color: var(--on-surface-colour);
}
.ch-tabs.ch-tabs-contrast .ant-tabs-tab.ant-tabs-tab-active .ch-tab,
.ch-tabs.ch-tabs-contrast .ant-tabs-tab.ant-tabs-tab-active .ant-tabs-tab-btn {
    /* !important to win over .ch-tabs .ant-tabs-tab-active .ch-tab, which is the brand colour */
    color: var(--on-surface-colour) !important;
    font-weight: 700;
}
.ch-tabs.ch-tabs-contrast .ant-tabs-tab-btn:focus-visible {
    outline: var(--input-focus-size) solid var(--input-colour);
    outline-offset: 2px;
    border-radius: var(--input-radius);
}

.ant-btn.ch-quiz-nav-btn {
    --ch-quiz-nav-current: color-mix(in srgb, var(--input-colour) 75%, #000);
    position: relative;
    justify-content: center;
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    padding: 0;
    border-radius: 50%;
    color: var(--on-surface-colour);
    border-color: rgba(0, 0, 0, .38);
    background: var(--surface-colour);
}
.ant-btn.ch-quiz-nav-btn:hover:not(:disabled) {
    color: var(--on-surface-colour);
    border-color: var(--on-surface-colour);
    background: var(--hover-on-surface);
}
.ant-btn.ch-quiz-nav-btn.ch-quiz-nav-answered,
.ant-btn.ch-quiz-nav-btn.ch-quiz-nav-answered:hover:not(:disabled) {
    color: #fff;
    border-color: var(--ch-quiz-nav-current);
    background: var(--ch-quiz-nav-current);
}
.ant-btn.ch-quiz-nav-btn.ch-quiz-nav-current:not(.ch-quiz-nav-answered),
.ant-btn.ch-quiz-nav-btn.ch-quiz-nav-current:not(.ch-quiz-nav-answered):hover:not(:disabled) {
    background: color-mix(in srgb, var(--ch-quiz-nav-current) 14%, var(--surface-colour));
}
.ant-btn.ch-quiz-nav-btn.ch-quiz-nav-current,
.ant-btn.ch-quiz-nav-btn.ch-quiz-nav-current:hover:not(:disabled) {
    border-color: var(--ch-quiz-nav-current);
    font-weight: 700;
    box-shadow: 0 0 0 2px var(--surface-colour), 0 0 0 4px var(--ch-quiz-nav-current);
}
/* History: a past result's date opens it. Text colour and underlined, so it reads as a link at full contrast. */
.ant-btn.ch-quiz-result-link {
    height: auto;
    padding: 0;
    color: var(--on-surface-colour);
    text-decoration: underline;
}

.ant-btn.ant-btn-primary.ch-quiz-primary:not(:disabled) {
    background: color-mix(in srgb, var(--ant-color-primary) 82%, #000);
}
.ant-btn.ant-btn-primary.ch-quiz-primary:not(:disabled):hover {
    background: color-mix(in srgb, var(--ant-color-primary) 70%, #000);
}
.ant-btn.ant-btn-primary.ch-quiz-nav-next:not(:disabled) {
    background: var(--primary-colour);
}
.ant-btn.ant-btn-primary.ch-quiz-nav-next:not(:disabled):hover {
    background: color-mix(in srgb, var(--primary-colour) 85%, #000);
}

/* questionClusters/QuestionClusterResultBar.js MarkedResultBar: a self- or teacher-marked attempt's top-level questions,
   numbered, scrolling sideways when they don't fit. */
.ch-result-bar.ch-marked-result-bar {
    gap: 4px;
    margin-top: var(--spacing-unit);
    padding-bottom: var(--small-spacing-unit);
    cursor: default;
    align-items: stretch;
}
.ch-result-bar.ch-marked-result-bar:focus-visible {
    outline: var(--input-focus-size) solid var(--input-colour);
    outline-offset: 2px;
}
.ch-marked-result {
    flex: 1 0 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}
.ch-marked-result-blk {
    width: 100%;
    height: 8px;
    border-radius: 2px;
    background: rgba(0, 0, 0, .12);
}
.ch-marked-result-blk.ch-marked-result-answered {
    background: rgba(0, 0, 0, .45);
}
/* questionClusters/WorkingComment.js: a teacher's comment on working */
.ch-working-comment {
    margin-top: calc(var(--spacing-unit) * 2);
}
/* MarkedResultBar's segments as buttons that select their question */
.ch-marked-result-btn {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 2px 0;
    border: 0;
    border-radius: 4px;
    background: none;
    font: inherit;
    cursor: pointer;
}
.ch-marked-result-btn:hover {
    background: rgba(0, 0, 0, .06);
}
.ch-marked-result-btn:focus-visible {
    outline: var(--input-focus-size) solid var(--input-colour);
    outline-offset: 1px;
}
.ch-marked-result-btn.ch-marked-result-active .ch-marked-result-number {
    font-weight: 700;
    text-decoration: underline;
}
.ch-marked-result-number {
    font-size: 12px;
    color: var(--on-surface-colour);
}

/* questionClusters/SelfMark.js: "How did I go?" */
.ch-self-mark {
    margin: calc(var(--spacing-unit) * 2) 0 0;
    padding: var(--spacing-unit) calc(var(--spacing-unit) * 2) calc(var(--spacing-unit) * 1.5);
    border: 1px solid rgba(0, 0, 0, .23);
    border-radius: var(--input-radius);
}
.ch-self-mark-title {
    width: auto;
    margin: 0;
    padding: 0 var(--small-spacing-unit);
    border: 0;
    font-size: inherit;
    font-weight: 600;
    color: var(--on-surface-colour);
}
.ch-self-mark-scale {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--spacing-unit);
    margin: var(--spacing-unit) 0;
}
.ch-self-mark-face {
    color: var(--on-surface-mid-colour);
}

/* questionClusters/QuestionSolution.js: "Check answer" */
.ch-question-solution {
    margin-top: calc(var(--spacing-unit) * 2);
}
.ch-question-solution-content {
    margin-top: var(--spacing-unit);
    padding: var(--spacing-unit) calc(var(--spacing-unit) * 2);
    border-left: 4px solid var(--correct-colour);
    background: var(--surface-colour);
}
.ch-question-solution-title {
    margin: 0 0 var(--small-spacing-unit);
    font-weight: 600;
}

/* questionClusters/QuestionWorkingView.js: an uploaded image or drawing in a past attempt */
.ch-question-working-image {
    display: block;
    max-width: 100%;
    max-height: 600px;
    border: 1px solid var(--border-colour);
    background: var(--surface-colour);
}

/* questionClusters/QuestionClusterAttempts.js: the Result column's pie, score, completion and flagged count */
.ch-result-cell {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--spacing-unit);
}
.ch-result-pie {
    flex: none;
}
.ch-result-help {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

/* The red flag: a question the student flagged for the teacher ("Let my teacher know I had a lot of trouble") */
.ch-red-flag.ch-red-flag {
    color: #BD0000;
    font-size: 20px;
    vertical-align: middle;
}

.ch-quiz-nav-questions {
    display: grid;
    grid-template-columns: auto minmax(0, max-content) auto;
    grid-template-rows: auto auto;
    justify-content: start;
    column-gap: var(--spacing-unit);
    position: sticky;
    z-index: 3;
    padding: var(--spacing-unit) 0;
    margin-bottom: var(--spacing-unit);
    background: var(--surface-colour);
    border-bottom: 1px solid var(--border-colour);
}
.ch-quiz-nav-program {
    margin-bottom: var(--spacing-unit);
}
.ch-quiz-nav-questions-actions {
    grid-template-columns: auto minmax(0, max-content) auto minmax(0, 1fr) auto;
}
.ch-quiz-nav-questions > .ant-btn,
.ch-quiz-nav-questions > .ch-quiz-nav-step {
    grid-row: 2;
    align-self: start;
}
.ch-quiz-nav-step {
    display: flex;
}
.ch-quiz-nav-actions {
    grid-column: 5;
    grid-row: 1 / 3;
    display: grid;
    grid-template-rows: subgrid;
    justify-items: center;
}
.ch-quiz-nav-progress {
    grid-row: 1;
    align-self: end;
    padding: 2px var(--small-spacing-unit) calc(var(--small-spacing-unit) + 8px);
    border: 2px solid transparent;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    color: var(--on-surface-colour);
}
.ch-quiz-submit-bar {
    position: sticky;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: var(--spacing-unit);
    padding: var(--spacing-unit) 0;
    margin-bottom: var(--spacing-unit);
    background: var(--surface-colour);
    border-bottom: 1px solid var(--border-colour);
}
.ch-quiz-submit-confirm-divider.ant-divider {
    margin: var(--spacing-unit) 0;
}
.ch-quiz-submit-bar-progress {
    font-size: 12px;
    font-weight: 600;
    color: var(--on-surface-colour);
}
.ch-quiz-nav-submit {
    grid-row: 2;
    align-self: start;
    display: flex;
    align-items: center;
    gap: var(--spacing-unit);
}
.ch-quiz-nav-blocks {
    grid-row: 1 / 3;
    display: grid;
    grid-template-rows: subgrid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, max-content);
    column-gap: var(--spacing-unit);
    min-width: 0;
}
.ch-quiz-nav-block {
    grid-row: 1 / 3;
    display: grid;
    grid-template-rows: subgrid;
    min-width: 0;
}
.ch-quiz-nav-block > .ch-quiz-category {
    grid-row: 1;
    align-self: end;
    margin-bottom: var(--spacing-unit);
}
.ch-quiz-nav-block > .ch-quiz-nav-numbers {
    grid-row: 2;
}
.ch-quiz-nav-numbers {
    display: flex;
    flex-wrap: wrap;
    /* More between the rows of a wrapped set than between the numbers */
    gap: calc(var(--spacing-unit) + 2px) calc(var(--small-spacing-unit) + 2px);
}
.ch-quiz-category {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 2px var(--small-spacing-unit) var(--small-spacing-unit);
    border: 2px solid transparent;
    border-radius: var(--input-radius);
    background: none;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    color: var(--on-surface-colour);
    cursor: pointer;
}
.ch-quiz-category:hover {
    background: var(--hover-on-surface);
}
.ch-quiz-category[aria-pressed="true"] {
    border-color: var(--on-surface-colour);
}
.ch-quiz-category:focus-visible {
    outline: var(--input-focus-size) solid var(--input-colour);
    outline-offset: 1px;
}
/* The course stylesheet's .<category>.questionCategory gives the band its colour; grey without one. */
.ch-quiz-category-band {
    display: block;
    width: 100%;
    height: 6px;
    min-height: 6px;
    padding: 0;
    margin: 0;
    border-radius: 3px;
    background-color: rgba(0, 0, 0, .26);
}
.ant-btn.ch-quiz-nav-btn:disabled {
    color: rgba(0, 0, 0, .38);
    border-color: rgba(0, 0, 0, .12);
    background: rgba(0, 0, 0, .04);
}
.ch-quiz-nav-program {
    display: flex;
    align-items: center;
    gap: var(--spacing-unit);
}
.ch-quiz-nav-program-label {
    font-weight: 600;
}
.ch-quiz-nav-program-select {
    min-width: 140px;
}
/* The self marks' colours (.ch-self-mark-selected-*) over the bar segment's grey */
.ch-marked-result-blk.ch-self-mark-selected-1 {background-color: #BD0000;}
.ch-marked-result-blk.ch-self-mark-selected-2 {background-color: #FF7400;}
.ch-marked-result-blk.ch-self-mark-selected-3 {background-color: #FFC607;}
.ch-marked-result-blk.ch-self-mark-selected-4 {background-color: #8BC34A;}

/* questionClusters/QuestionClusterNav.js: the Working Program key's table */
.ch-working-program-key table {
    width: 100%;
    border-collapse: collapse;
}
.ch-working-program-key th,
.ch-working-program-key td {
    padding: var(--spacing-unit) calc(var(--spacing-unit) * 1.5);
    border: 1px solid rgba(0, 0, 0, .23);
    text-align: left;
    vertical-align: top;
}
.ch-working-program-key th,
.ch-working-program-key thead td {
    font-weight: 600;
    background: rgba(0, 0, 0, .04);
}
/* "How did I go?": marks in text colour; the chosen one filled with the brand colour mixed with a little black, so its
   white number keeps 4.5:1 contrast whatever the brand */
.ch-self-mark .ant-radio-button-wrapper {
    color: var(--on-surface-colour);
    min-width: 40px;
    text-align: center;
}
/* Each mark in its colour, as the result bar's (.ch-self-mark-selected-*): a strip under it, and filled when chosen,
   with white text on the red and black on the rest (each over 4.5:1) */
.ch-self-mark .ch-self-mark-option-1 {--ch-self-mark-colour: #BD0000; --ch-self-mark-text: #fff;}
.ch-self-mark .ch-self-mark-option-2 {--ch-self-mark-colour: #FF7400; --ch-self-mark-text: #000;}
.ch-self-mark .ch-self-mark-option-3 {--ch-self-mark-colour: #FFC607; --ch-self-mark-text: #000;}
.ch-self-mark .ch-self-mark-option-4 {--ch-self-mark-colour: #8BC34A; --ch-self-mark-text: #000;}
.ch-self-mark .ant-radio-button-wrapper[class*="ch-self-mark-option-"] {
    box-shadow: inset 0 -4px 0 var(--ch-self-mark-colour);
}
.ch-self-mark .ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled),
.ch-self-mark .ant-radio-button-wrapper-checked.ant-radio-button-wrapper-disabled {
    --ch-self-mark-chosen: var(--ch-self-mark-colour, color-mix(in srgb, var(--input-colour) 75%, #000));
    color: var(--ch-self-mark-text, #fff);
    border-color: var(--ch-self-mark-chosen);
    background: var(--ch-self-mark-chosen);
    font-weight: 700;
}
.ch-self-mark .ant-radio-button-wrapper-checked::before {
    background-color: var(--ch-self-mark-chosen) !important;
}

/* questionClusters/QuestionClusterQuestions.js: a question cluster's focus rings, solid and in the brand colour mixed with
   a little black, so a focused control stands out at over 3:1 whatever the brand (the global ring is translucent) */
.ch-question-cluster {
    --ch-question-cluster-focus: color-mix(in srgb, var(--input-colour) 75%, #000);
}
.ch-question-cluster :focus-visible {
    outline-color: var(--ch-question-cluster-focus) !important;
}
.ch-question-cluster .ant-radio-button-wrapper:has(:focus-visible),
.ch-question-cluster .ant-checkbox-wrapper:has(:focus-visible),
.ch-question-cluster .ant-select:focus-within {
    outline: var(--input-focus-size) solid var(--ch-question-cluster-focus);
    outline-offset: 2px;
    border-radius: var(--input-radius);
}
/* Each question a soft grey card, set off from the page, with its workspace and How did I go? white panels on it */
.ch-question-cluster .ch-card.ch-card--outlined {
    background: #f3f4f6;
    border: 1px solid #d5d8dd;
}
.ch-question-cluster .ch-self-mark {
    background: var(--surface-colour);
    border-color: #d5d8dd;
}
.ch-question-cluster .ch-question-workspace {
    background: var(--surface-colour);
}

/* questionClusters/QuestionClusterNav.js: the Working Program key's dialog. Its title bar and button in the brand
   colours mixed with a little black, so their white text keeps 4.5:1 contrast whatever the brand. */
.ch-quiz-dialog .ch-dialog-title {
    background-color: color-mix(in srgb, var(--input-colour) 75%, #000) !important;
}
.ch-quiz-dialog .MuiDialogActions-root .ch-btn:not([disabled]) {
    background-color: color-mix(in srgb, var(--primary-colour) 82%, #000) !important;
    border-color: color-mix(in srgb, var(--primary-colour) 82%, #000) !important;
}

/* questionClusters/QuestionClusterAttempt.js: a past attempt's header, the score and who and when beside Reset and All History */
.ch-quiz-attempt-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--spacing-unit) calc(var(--spacing-unit) * 2);
}
.ch-quiz-attempt-actions {
    display: flex;
    gap: var(--spacing-unit);
}

/* trails/student/EndActivity.js: a finished task's Return to tasks and Complete. The brand colour mixed with a little
   black, so the white label keeps 4.5:1 contrast whatever the brand, and a solid focus ring over 3:1. */
.ch-btn.ch-trail-end-btn:not([disabled]) {
    --ch-trail-end-btn: color-mix(in srgb, var(--input-colour) 75%, #000);
    color: #fff;
    border-color: var(--ch-trail-end-btn);
    background-color: var(--ch-trail-end-btn);
}
.ch-btn.ch-trail-end-btn:not([disabled]):hover {
    background-color: color-mix(in srgb, var(--input-colour) 60%, #000);
}
.ch-btn.ch-trail-end-btn:focus-visible {
    outline: var(--input-focus-size) solid color-mix(in srgb, var(--input-colour) 75%, #000);
    outline-offset: 2px;
}

/* questionClusters: a question's images at their own size, up to contentStyles.css's 75% (which sets the width, so a
   small image is stretched to it), and an image's figure inside another figure at its full size. Not one the content sizes
   itself (cont-img-s-50) */
.ch-question-cluster .cont-base .cont-img:not([class*="cont-img-s-"]) {
    width: fit-content;
    max-width: 75%;
}
.ch-question-cluster .cont-base .cont-img .cont-img {
    max-width: 100%;
}
.ch-question-cluster .cont-base .cont-img:not([class*="cont-img-s-"]) > img {
    width: auto;
    height: auto;
}

/* questionClusters/QuestionClusterClassResults.js: a student's accordion header, their name then their most recent result */
.ch-class-result-head {
    align-items: center;
    gap: var(--spacing-unit) calc(var(--spacing-unit) * 3);
}
/* The open header's fill darkened, so its white text meets 4.5:1 (the app's secondary colour gives 3.8:1) */
.ch-class-results .ant-collapse-item-active > .ant-collapse-header {
    background-color: color-mix(in srgb, var(--secondary-colour), black 30%) !important;
}
/* A white ring, so the pie stands out on the open header's fill */
.ch-class-result-head .ch-result-pie {
    border-radius: 50%;
    box-shadow: 0 0 0 2px #fff;
}

/* common/htmlEditor/mediaLibrary/MediaLibrary.js: the media cards (the chosen one outlined) and the preview */
/* The chosen card's border is a layer over the card, not an outline: the cover image (position: relative, for its
   loader) is painted over an outline and hid its top edge */
.ch-media-library-card.ch-selected::after {content: ''; position: absolute; inset: 0; z-index: 1; border: 2px solid var(--primary-colour); border-radius: inherit; pointer-events: none;}
.ch-media-library-thumbnail {height: 96px; object-fit: contain;}
.ch-media-library-preview {width: 100%; max-height: 240px; object-fit: contain;}
/* MediaLibrary.js LoadingImage: a loader over the image's place until it has loaded */
.ch-media-library-image {position: relative; display: flex; justify-content: center;}
/* Full width, as AntD sizes a card cover's own img (the thumbnail is now inside this, not the cover's child) */
.ch-media-library-image > img {width: 100%;}
/* The preview shows an image at its own size, as it's inserted, only shrinking one larger than the space (never
   enlarging a small one, which blurs it and misleads about its size) */
.ch-media-library-image > img.ch-media-library-preview {width: auto; max-width: 100%;}
.ch-media-library-image.ch-loading {min-height: 96px;}
.ch-media-library-image.ch-loading img {visibility: hidden;}
.ch-media-library-image-loader {position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;}
.ch-media-library-location {min-width: 200px;}
.ch-media-library-file-type {min-width: 140px;}
/* The media scroll by themselves, so the image dialog's alt text above and the preview beside stay in view: the window
   less the dialog's title bar, buttons and margins, its alt text and the library's search bar; never under 240px.
   overflow-x hidden: the cards' Row gutter has negative side margins */
.ch-media-library-items {margin-top: var(--spacing-unit, 8px); max-height: max(240px, calc(100vh - 460px)); overflow-y: auto; overflow-x: hidden;}

/* common/htmlEditor/HtmlEditorDialog.js: the editor, and the question editors' Editor / Preview / Split student preview */
/* The editor, or the editor and its student preview, sized to the window so the dialog itself never scrolls: the
   window less the dialog's margins, title bar, buttons and padding; in fullscreen, the window less the title bar and buttons */
.ch-html-editor-dialog-size {height: min(600px, calc(100vh - 172px));}
/* The question editors' editor and student preview (images need the room) */
.ch-html-editor-split.ch-html-editor-dialog-size {height: min(900px, calc(100vh - 172px));}
.ch-dialog-content.fullscreen .ch-html-editor-dialog-size {height: calc(100vh - 108px);}
/* Editor or Preview alone: the other panel is size 0, with no bar to drag */
.ch-html-editor-split-single > .ant-splitter-bar {display: none;}
/* GenericDialog actionsStart: left of the buttons */
.ch-dialog-actions-start {margin-right: auto;}
.ch-html-editor-fill {height: 100%;}
.ch-student-preview-frame {display: block; width: 100%; height: 100%; border: 1px solid #d5d9df; border-radius: 8px; background: #fff;}
/* common/htmlEditor/dialogs/FractionInputDialog.js: the fraction's preview, and the vertical position slider beside its buttons */
.ch-fraction-preview-frame {display: block; width: 100%; height: 220px; border: 0;}
.ch-fraction-slider {flex: 1;}
/* lessonContentStyleGuide/StyleGuideCode.js: show/hide and copy bar over a markup sample */
.ch-style-guide-code-bar {display: flex; align-items: center; gap: var(--spacing-unit); padding: var(--small-spacing-unit) var(--spacing-unit);}
.ch-style-guide-code-copy {margin-left: auto;}
.ch-style-guide-code pre {margin: 0;}
/* lessonContentStyleGuide/ExampleContentFile.js: a sample content file in its preview dialog */
.ch-example-preview-frame {display: block; width: 100%; height: 70vh; border: 1px solid var(--border-colour); border-radius: var(--input-radius, 4px); background: #fff;}
/* Lesson content style guide, Example Content: the file cards under each heading */
.ch-example-files {display: flex; flex-direction: column; gap: var(--spacing-unit); margin-bottom: calc(var(--spacing-unit) * 2);}
/* Beats .cont-base .cont-block's margins, so the gap above spaces the cards */
.cont-base .ch-example-files > .cont-block {margin: 0;}
/* The preview's loader, centred over the frame until it has rendered */
.ch-example-preview {position: relative;}
.ch-example-preview-loader {position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;}
.ch-example-preview-frame-rendering {visibility: hidden;}

/* Style guide: the UI colours page (lesson/lessonContentStyleGuide/UiColours.jsx) and its link above the shortcuts */
.ch-style-guide-view-link {padding: var(--small-spacing-unit) var(--small-spacing-unit) 0;}
.ch-ui-colours {padding: var(--spacing-unit) calc(var(--spacing-unit) * 2) calc(var(--spacing-unit) * 4);}
.ch-ui-colours-controls {display: flex; flex-wrap: wrap; gap: var(--spacing-unit) calc(var(--spacing-unit) * 3); align-items: flex-start; padding: var(--spacing-unit) calc(var(--spacing-unit) * 2); border: 1px solid var(--border-colour); border-radius: var(--container-radius); background: var(--container-colour);}
/* Sticky bar: darker/lighter for the primary and secondary, with their AA results */
.ch-ui-colours-quickbar {position: sticky; top: 0; z-index: 3; margin-top: calc(var(--spacing-unit) * 2); padding: var(--spacing-unit) calc(var(--spacing-unit) * 1.5); background: var(--surface-colour); border: 1px solid var(--border-colour); border-radius: var(--container-radius); box-shadow: 0 2px 6px var(--box-shadow-colour);}
.ch-ui-colours-quickbar-head {display: flex; margin-bottom: var(--spacing-unit); align-items: center; gap: var(--small-spacing-unit);}
.ch-ui-colours-quickbar-head h2 {font-size: 15px; margin: 0;}
.ch-ui-colours-quickbar-copy {margin-left: auto; display: flex; align-items: center; gap: var(--small-spacing-unit);}
/* Short screens: scroll with the page so it doesn't cover the preview */
@media (max-height: 640px) {
    .ch-ui-colours-quickbar {position: static;}
}
.ch-ui-colours-scheme {width: 560px; max-width: 100%;}
.ch-ui-colours-scheme-pick {display: flex; align-items: center; gap: var(--spacing-unit);}
.ch-ui-colours-scheme-pick .ant-select {flex: 1; min-width: 0;}
/* Custom: its two colours side by side, where the scheme picker goes */
.ch-ui-colours-custom-pick {display: flex; flex-wrap: wrap; gap: 0 calc(var(--spacing-unit) * 1.5);}
/* Custom's tint: its swatch, Lighter / steps / Darker and Reset (icon buttons, to fit beside the two colours) */
.ch-ui-colours-tint {display: inline-flex; flex-wrap: wrap; align-items: center; gap: var(--small-spacing-unit);}
.ch-ui-colours-tint-steps {min-width: 2em; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums;}
.ch-ui-colours-scheme-option {display: flex; justify-content: space-between; align-items: center; gap: var(--spacing-unit);}
/* In the closed select: the name truncates so the AA tag stays visible */
.ch-ui-colours-scheme-option > span:first-child {min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;}
.ch-ui-colours-scheme-option .ch-ui-colours-aa-tag {flex-shrink: 0;}
.ch-ui-colours-aa-tag {flex-shrink: 0; font-size: 12px; line-height: 18px; padding: 0 6px; border-radius: var(--component-radius); white-space: nowrap;}
/* Dark text on light tints: well above AA */
.ch-ui-colours-aa-pass {background: #EAF3DE; color: #27500A;}
.ch-ui-colours-aa-fail {background: #FCEBEB; color: #791F1F;}
.ch-ui-colours-swatches {display: flex; flex-wrap: wrap; align-items: center; min-height: 32px; gap: var(--small-spacing-unit) calc(var(--spacing-unit) * 2); font-size: 13px;}
.ch-ui-colours-swatch {display: flex; align-items: center; gap: var(--small-spacing-unit); font-family: monospace;}
.ch-ui-colours-swatch-label {font-family: var(--main-font-family); color: var(--on-surface-mid-colour);}
.ch-ui-colours-swatch-chip {width: 18px; height: 18px; border-radius: var(--component-radius); border: 1px solid var(--border-colour);}
.ch-ui-colours-scheme .ant-form-item-explain {max-height: 3em; overflow: hidden; font-size: 12px;}
/* Existing / Custom: the page's mode, above the controls box */
.ch-ui-colours-mode {margin-bottom: var(--spacing-unit);}
/* Button labels stay on one line: a wrapped word spilled out under the fixed-height button */
.ch-ui-colours-mode .ant-radio-button-wrapper {white-space: nowrap;}
.ch-ui-colours-field {display: flex; gap: var(--small-spacing-unit); align-items: center;}
.ch-ui-colours-field input[type=color] {width: 36px; height: 32px; padding: 0; border: 1px solid var(--input-border-colour); border-radius: var(--input-radius); cursor: pointer;}
.ch-ui-colours-field .ant-input {width: 100px; font-family: monospace;}
.ch-ui-colours-contrast {border-collapse: collapse; font-size: 13px;}
.ch-ui-colours-contrast caption {text-align: left; font-weight: 600; padding-bottom: var(--small-spacing-unit);}
.ch-ui-colours-contrast th, .ch-ui-colours-contrast td {padding: 2px calc(var(--spacing-unit) * 1.5) 2px 0; text-align: left; white-space: nowrap;}
.ch-ui-colours-contrast thead th {font-weight: 400; color: var(--on-surface-mid-colour);}
.ch-ui-colours-pass {color: #2e7d32; font-weight: 600;}
.ch-ui-colours-fail {color: #c62828; font-weight: 600;}
.ch-ui-colours-section {margin-top: calc(var(--spacing-unit) * 4);}
.ch-ui-colours-heading {font-size: 18px; margin: 0 0 var(--small-spacing-unit);}
.ch-ui-colours-note {margin: 0 0 var(--spacing-unit); color: var(--on-surface-mid-colour);}
.ch-ui-colours-empty {display: flex; flex-direction: column; align-items: center; text-align: center; margin-top: calc(var(--spacing-unit) * 2); padding: calc(var(--spacing-unit) * 6) calc(var(--spacing-unit) * 2); border: 2px dashed var(--border-colour); border-radius: var(--container-radius); min-height: 280px; justify-content: center;}
.ch-ui-colours-empty-icon {font-size: 48px !important; color: var(--on-surface-mid-colour); margin-bottom: var(--spacing-unit);}
.ch-ui-colours-empty-title {font-size: 18px; font-weight: 600; margin: 0 0 var(--small-spacing-unit);}
.ch-ui-colours-empty-text {max-width: 460px; margin: 0; color: var(--on-surface-mid-colour);}
.ch-ui-colours-grid {display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: calc(var(--spacing-unit) * 2);}
.ch-ui-colours-grid > * {min-width: 0;}
.ch-ui-colours-card {border: 1px solid var(--border-colour); border-radius: var(--container-radius); padding: calc(var(--spacing-unit) * 1.5);}
.ch-ui-colours-card h3 {font-size: 13px; font-weight: 600; margin: 0 0 var(--spacing-unit); color: var(--on-surface-mid-colour);}
.ch-ui-colours-row {display: flex; flex-wrap: wrap; gap: var(--spacing-unit); align-items: center;}
.ch-ui-colours-stack {display: flex; flex-direction: column; gap: var(--spacing-unit);}
.ch-ui-colours-tag {padding: 2px var(--spacing-unit); border-radius: var(--component-radius);}
.ch-ui-colours-badge-host {position: relative; display: inline-flex; padding: 6px 10px 0 0;}
.ch-ui-colours-dialog-body {padding: calc(var(--spacing-unit) * 1.5); border: 1px solid var(--border-colour); border-top: none;}
.ch-ui-colours .ch-general-table {width: 100%;}
/* The example lesson tab bar is sticky in lessons; here it would slide over the page's sticky bar */
.ch-ui-colours .ch-tab-bar {position: static; z-index: auto;}
.ch-ui-colours-highlight-row {background: var(--table-row-highlight-colour);}
/* Form.Item help icons: hoverable (.reactNav labels turn pointer events off) */
.ch-ui-colours .ant-form-item-label .ant-form-item-tooltip {pointer-events: auto;}
/* Custom: the data table's header in the solid table background colour (set on the preview); else AntD's headerBg */
.ch-ui-colours-preview .ch-dataTable .ant-table-thead > tr > th {background: var(--ui-colours-solid-header, var(--table-border-colour));}
/* Drag-and-drop chips held in their hover and keyboard-focus looks (as .ch-q-dnd-drag:hover and :focus-visible) */
.ch-ui-colours .ch-q-dnd .ch-q-dnd-drag.ch-ui-colours-dnd-hover {border-color: rgba(var(--secondary-colour-RGB), .6); box-shadow: 0 2px 6px rgba(0, 0, 0, .12);}
.ch-ui-colours .ch-q-dnd .ch-q-dnd-drag.ch-ui-colours-dnd-focus {outline: 2px solid var(--secondary-graphic-colour); outline-offset: 2px;}
.ch-ui-colours .ch-dnd-column-title .ch-ui-colours-dnd-heading {flex: 1; margin: 0; text-align: center;}
.ch-ui-colours .ch-ui-colours-dnd-column-content {padding: var(--spacing-unit); min-height: 48px; background-color: #f9f9f9; color: var(--on-surface-mid-colour);}
/* MUI's contained primary (MuiTheme: the text-on-primary colour) */
.ch-ui-colours .ch-ui-colours-mui-primary {background-color: var(--primary-colour); color: var(--on-primary-colour);}
/* In the app these bars stick to the bottom of the page and slide in */
.ch-ui-colours .ch-bulk-action-bar.ch-ui-colours-static-bar {position: static; animation: none; width: auto; transform: none; margin: 0;}
/* Colours built from the primary/secondary in :root are resolved there; re-declared so they follow the preview's own values */
.ch-ui-colours-preview {
    --button-colour-hover: var(--secondary-colour);
    --on-button-colour-hover: var(--on-secondary-colour);
    --focus-primary: rgba(var(--primary-colour-RGB), 0.48);
    --dialog-title-bg-colour: var(--secondary-colour);
    --dnd-title-bg-colour: var(--secondary-colour);
    --dialog-title-font-colour: var(--on-secondary-colour);
    --table-header-colour: rgba(var(--secondary-colour-RGB), 0.1);
    --table-row-highlight-colour: rgba(var(--secondary-colour-RGB), 0.06);
    --table-border-darkened-colour: rgba(var(--secondary-colour-RGB), 0.4);
    --table-border-colour: rgba(var(--secondary-colour-RGB), 0.25);
}
/* Existing scheme's sticky block: the picker card, then the column headings (outside it, lined up with the columns).
   z-index 3, like the Custom bar: under the shortcuts tab (.ch-right-nav-mobile-button, 4) */
.ch-ui-colours-scheme-sticky {position: sticky; top: 0; z-index: 3; margin-top: calc(var(--spacing-unit) * 2); background: var(--surface-colour);}
.ch-ui-colours-scheme-sticky .ch-ui-colours-quickbar {position: static; margin-top: 0;}
.ch-ui-colours-scheme-bar {display: flex; flex-wrap: wrap; align-items: center; gap: var(--spacing-unit) calc(var(--spacing-unit) * 2);}
.ch-ui-colours-scheme-bar .ant-form-item {margin-bottom: 0; min-width: 0;}
/* Custom: the picker keeps its one row (colours, table background); the fixes wrap below it when there's no room */
.ch-ui-colours-scheme-bar.ch-ui-colours-scheme-bar-custom {display: flex; flex-wrap: wrap; align-items: flex-start;}
.ch-ui-colours-scheme-bar-custom .ch-ui-colours-custom-pick {flex-wrap: nowrap;}
.ch-ui-colours-scheme-bar-custom > .ant-form-item {flex: 1 1 220px;}
/* Fixes half: the fixed AA result and changed colours, in line with the picker (32px, as the select) */
.ch-ui-colours-scheme-fixed {display: flex; flex-wrap: wrap; align-items: center; min-height: 32px; gap: var(--small-spacing-unit) calc(var(--spacing-unit) * 1.5); font-size: 13px;}
/* Current beside fixed: each card's pair in one row, so both are the same height (stacked only on phones) */
.ch-ui-colours-compare {display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: calc(var(--spacing-unit) * 2) calc(var(--spacing-unit) * 3);}
/* Custom: one column, each card with its own fix */
.ch-ui-colours-compare-headings {padding: calc(var(--spacing-unit) * 1.5) 0 var(--spacing-unit); border-bottom: 1px solid var(--border-colour);}
.ch-ui-colours-compare-label {font-size: 18px; font-weight: 600;}
/* A card's title and its fix choices, once across both columns */
.ch-ui-colours-compare-title {grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: var(--small-spacing-unit) calc(var(--spacing-unit) * 2); margin: var(--spacing-unit) 0 calc(var(--spacing-unit) * -1);}
.ch-ui-colours-compare-title h3 {font-size: 13px; font-weight: 600; margin: 0; color: var(--on-surface-mid-colour);}
.ch-ui-colours-compare-cell {display: flex; flex-direction: column; min-width: 0;}
.ch-ui-colours-compare-cell > .ch-ui-colours-card {flex: 1;}
/* Names each card's column: for screen readers beside each other (the sticky block shows them), shown on phones */
.ch-ui-colours-compare-cell-label {position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap;}
@media (max-width: 700px) {
    .ch-ui-colours-scheme-bar-custom .ch-ui-colours-custom-pick {flex-wrap: wrap;}
    .ch-ui-colours-compare {grid-template-columns: minmax(0, 1fr);}
    .ch-ui-colours-compare-headings {display: none;}
    .ch-ui-colours-compare-cell-label {position: static; width: auto; height: auto; overflow: visible; clip: auto; font-size: 13px; font-weight: 600; margin-bottom: var(--small-spacing-unit);}
}
/* Existing scheme's controls: current and fixed halves on their own row, under the mode switch */
.ch-ui-colours-controls-compare {flex-basis: 100%;}
.ch-ui-colours-controls-compare .ant-form-item {margin-bottom: var(--spacing-unit);}
/* Fix choices beside a card's title, one group per colour */
.ch-ui-colours-section-fixes {display: flex; flex-wrap: wrap; gap: var(--spacing-unit) calc(var(--spacing-unit) * 3);}
.ch-ui-colours-section-fix {display: flex; flex-wrap: wrap; align-items: center; gap: var(--small-spacing-unit) var(--spacing-unit);}
.ch-ui-colours-section-fix-label {font-size: 13px; font-weight: 600;}
/* Fix choices: short labels kept on one line each */
.ch-ui-colours-fix-choice {display: inline-flex;}
.ch-ui-colours-fix-choice .ant-radio-button-wrapper {white-space: nowrap;}
/* Whether the card meets AA with its fixes: icon and words */
.ch-ui-colours-fix-status {display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: var(--on-surface-colour);}
.ch-ui-colours-fix-status svg {font-size: 18px;}
/* AA green and red: 5.13:1 and 5.62:1 on white (--success-colour is 2.27:1, --incorrect-colour 3.68:1) */
.ch-ui-colours-fix-status svg.ch-ui-colours-fix-status-pass {color: #2E7D32;}
.ch-ui-colours-fix-status svg.ch-ui-colours-fix-status-fail {color: #C62828;}
.ch-ui-colours-controls-compare .ch-ui-colours-contrast {max-width: 100%;}
.ch-ui-colours-controls-compare .ch-ui-colours-contrast th, .ch-ui-colours-controls-compare .ch-ui-colours-contrast td {white-space: normal;}

/* A user's own notes beside a lesson's content, the React lesson's Add note (ui/lesson/contentNotes/ContentNotes.js, ES-3199).
   Notes are buttons at least 24px high (WCAG 2.5.8) in the link colour (5.9:1 on white) with a visible focus ring; while
   Add note is on, the content shows the note cursor and a dashed outline, and an instruction line says what to do. */
.ch-content-notes-body { position: relative; }
.ch-content-notes-adding .ch-content-notes-content {
    cursor: url('/users/generalFiles/images/icons/note-add-cursor.png'), cell;
    outline: 2px dashed var(--link-colour);
    outline-offset: 4px;
}
.ch-content-notes-instructions {
    margin: 0 0 12px;
    padding: 8px 12px;
    border: 1px solid var(--link-colour);
    border-radius: 6px;
    background: var(--surface-colour);
    color: var(--on-surface-colour);
}
.ch-content-note {
    position: absolute;
    right: 0;
    z-index: 1;
    max-width: 180px;
    min-width: 48px;
    min-height: 24px;
    padding: 3px 8px;
    border: 1px solid var(--link-colour);
    border-radius: 6px;
    background: var(--surface-colour);
    color: var(--link-colour);
    font-size: 0.8125rem;
    line-height: 1.3;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: grab;
    touch-action: none;
    box-shadow: 0 1px 3px rgba(var(--on-surface-colour-RGB), .16);
}
.ch-content-note:hover { background: rgba(var(--surface-colour-RGB), .92); text-decoration: underline; }
.ch-content-note:focus-visible { outline: 2px solid var(--link-colour); outline-offset: 2px; }
.ch-content-note-dragging { cursor: grabbing; z-index: 2; box-shadow: 0 4px 12px rgba(var(--on-surface-colour-RGB), .24); }

/* The content import page's Tabs tab (content/TabBrandEditor) */
.ch-tab-brand-editor h2 {margin-top: calc(var(--spacing-unit) * 1.5);}
.ch-tab-brand-help {max-width: 760px; color: var(--text-secondary-colour, #666);}
.ch-tab-brand-inherited {color: var(--text-secondary-colour, #666); font-size: 0.9em;}
.ch-tab-brand-preview-form {row-gap: 8px; margin-bottom: var(--spacing-unit);}
.ch-tab-brand-select {width: 320px; max-width: 100%;}
.ch-tab-brand-preview {margin-bottom: var(--spacing-unit);}
.ch-tab-brand-flags {display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 8px;}
.ch-tab-brand-flag-list {display: flex; flex-direction: column; align-items: flex-start; gap: 4px;}
.ch-tab-brand-flag-list .ant-tag {margin: 0;}
.ch-tab-brand-dialog-heading {margin: 0 0 var(--spacing-unit); text-wrap: balance;}

/* JSON editor (common/codeEditor/JsonEditor), bordered like an antd input */
.ch-json-editor {border: 1px solid #d9d9d9; border-radius: var(--container-radius); overflow: hidden; background: var(--surface-colour);}
.ch-json-editor:hover, .ch-json-editor:focus-within {border-color: var(--secondary-colour);}
.ch-json-editor:focus-within {box-shadow: 0 0 0 2px rgba(var(--secondary-colour-RGB), .1);}
.ch-json-editor-invalid, .ch-json-editor-invalid:hover, .ch-json-editor-invalid:focus-within {border-color: var(--error-colour);}
.ch-json-editor-invalid:focus-within {box-shadow: 0 0 0 2px rgba(244, 67, 54, .1);}
