/* Classroom 0.2.2. Scoped so ordinary student layouts retain their own styles. */
.ch-classroom-entry {display:flex;justify-content:flex-end;margin:0 0 .75rem;gap:.5rem}
.ch-classroom-button {font:inherit;font-size:1rem;font-weight:650;line-height:1.25;color:#193b41;background:#fff;border:1px solid #a5bac0;border-radius:7px;padding:.65rem .85rem;cursor:pointer;min-height:42px;text-transform:none;box-shadow:none}
.ch-classroom-button:hover:not(:disabled){background:#ecf4f4;border-color:#51747b}
.ch-classroom-button:focus-visible,#ch-classroom-portal :focus-visible{outline:3px solid #276d92;outline-offset:3px}
.ch-classroom-button:disabled{opacity:.5;cursor:default}
body.ch-classroom-active{overflow:hidden!important}
body.ch-classroom-active > :not(#ch-classroom-portal){display:none!important}
#ch-classroom-portal[hidden]{display:none!important}
#ch-classroom-portal {position:fixed;inset:0;z-index:2147482000;display:grid;grid-template-rows:auto minmax(0,1fr) auto;background:#f5f8fa;color:#182d35;width:100%;height:100dvh;font-family:inherit;line-height:1.5;text-align:left;isolation:isolate}
#ch-classroom-portal .ch-classroom-toolbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.7rem 1rem;padding:.65rem 1.2rem;background:#fff;border-bottom:1px solid #cfdbdf}
#ch-classroom-title {font-size:1.15rem;line-height:1.25;font-weight:700;margin:0;max-width:38ch;color:#1c3f48}
#ch-classroom-portal .ch-classroom-actions{display:flex;align-items:center;flex-wrap:wrap;gap:.45rem}
#ch-classroom-portal [data-classroom-action="reveal"]{background:#195768;color:#fff;border-color:#195768}
#ch-classroom-portal .ch-classroom-workspace{overflow:auto;overscroll-behavior:contain;padding:clamp(1rem,2.5vw,2.2rem);scrollbar-gutter:stable}
#ch-classroom-portal .ch-classroom-workspace > * {width:100%;max-width:1500px;margin:0 auto;border:0;border-radius:10px;box-shadow:none;padding:clamp(.75rem,2vw,1.6rem);background:#fff;font-size:clamp(1.125rem,1.48vw,1.55rem)}
#ch-classroom-portal .ch-classroom-footer {display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:.35rem 1rem;background:#fff;border-top:1px solid #cfdbdf;padding:.4rem 1.3rem;min-height:2.2rem}
#ch-classroom-portal .ch-classroom-brand{font-size:1.05rem;font-weight:750;color:#28586a;letter-spacing:.01em;margin-left:auto;white-space:nowrap}
#ch-classroom-portal .ch-classroom-status{font-size:.8rem;color:#51626b}
#ch-classroom-portal .ch-classroom-concealed {display:none!important}
#ch-classroom-portal:not(.ch-classroom-show-settings) .ch-classroom-settings{display:none!important}
#ch-classroom-portal .ch-classroom-settings{font-size:1rem;border-bottom:1px solid #d3dfe3;margin:0 0 1.1rem;padding:.5rem 0 1rem}
#ch-classroom-portal .ch-classroom-settings select{font-size:1rem;max-width:100%;min-height:42px}
#ch-classroom-portal .ch-classroom-question {font-size:1.06em;line-height:1.6;max-width:none}
#ch-classroom-portal .ch-classroom-question p,#ch-classroom-portal .ch-classroom-answer p{font-size:inherit;line-height:1.6}
#ch-classroom-portal .ch-classroom-question h2,#ch-classroom-portal .ch-classroom-answer h2{font-size:1.35em;line-height:1.3}
#ch-classroom-portal .ch-classroom-question h3,#ch-classroom-portal .ch-classroom-answer h3{font-size:1.15em;line-height:1.4}
#ch-classroom-portal .ch-classroom-answer{font-size:1em;line-height:1.6;border:1px solid #a9c8cf;border-left:5px solid #28768a;background:#f2f9fa;padding:1.1rem 1.4rem;margin:1.4rem 0 0;max-width:none;box-shadow:none}
#ch-classroom-portal .ch-classroom-answer:empty{display:none}
#ch-classroom-portal .solution-panel table,#ch-classroom-portal .question-box table,#ch-classroom-portal .ch-classroom-question table{font-size:inherit;line-height:1.5}
#ch-classroom-portal th,#ch-classroom-portal td{padding:.6em .75em}
#ch-classroom-portal .ch-classroom-question table,#ch-classroom-portal .ch-classroom-question th,#ch-classroom-portal .ch-classroom-question td,#ch-classroom-portal .ch-classroom-response table,#ch-classroom-portal .ch-classroom-response th,#ch-classroom-portal .ch-classroom-response td{font-size:1em;line-height:1.5}
#ch-classroom-portal .ch-classroom-question .ep-data-table{font-size:1.1em}
#ch-classroom-portal .ch-classroom-question .ep-data-table th,#ch-classroom-portal .ch-classroom-question .ep-data-table td{font-size:1em;padding:.7em .8em}
#ch-classroom-portal .ch-classroom-question .ep-chem-line,#ch-classroom-portal .ch-classroom-question .ep-overall-equation,#ch-classroom-portal .ch-classroom-question .titration-equation{font-size:1.05em}
#ch-classroom-portal .ch-classroom-question small,#ch-classroom-portal .ch-classroom-response small{font-size:.9em}
#ch-classroom-portal .table-scroll{overflow-x:auto;max-width:100%}
#ch-classroom-portal svg{max-width:100%}
#ch-classroom-portal canvas{max-width:100%}
#ch-classroom-portal .question-box,#ch-classroom-portal .detective-case-file{font-size:inherit;padding:1rem 1.3rem;margin-top:0}
#ch-classroom-portal .evidence-card p{font-size:inherit}
#ch-classroom-portal .evidence-card{padding:.7rem 1rem}
#ch-classroom-portal .evidence-type{font-size:.8em;text-transform:none}
#ch-classroom-portal .clue-card,#ch-classroom-portal .feedback-panel{font-size:1em}
#ch-classroom-portal .colour-prompt{padding:1.5rem 1rem}
#ch-classroom-portal .colour-prompt h2{font-size:clamp(2.6rem,5vw,4rem)}
#ch-classroom-portal .colour-context{font-size:1.15em}
#ch-classroom-portal .colour-game-header{justify-content:flex-end;border:0;margin:0;padding:0}
#ch-classroom-portal .ep-notation-worked{font-size:1.3em;flex-wrap:wrap}
#ch-classroom-portal .ep-question-meta,#ch-classroom-portal .moles-question-meta,#ch-classroom-portal .hess-question-meta,#ch-classroom-portal .isotope-question-meta,#ch-classroom-portal .titration-question-meta,#ch-classroom-portal .nmr-question-meta,#ch-classroom-portal .ie-question-meta,#ch-classroom-portal .practical-question-meta{font-size:.8em;margin-top:0}
#ch-classroom-portal .shell{max-width:none;padding-left:0;padding-right:0}
#ch-classroom-portal .bbuilder-head,#ch-classroom-portal .shape-lab-head,#ch-classroom-portal .structure-lab-head{background:transparent;padding:0 0 .7rem}
#ch-classroom-portal .bbuilder-head h1,#ch-classroom-portal .shape-lab-head h1,#ch-classroom-portal .structure-lab-head h1{font-size:1.35em;margin:.3rem 0}
#ch-classroom-portal .bbuilder-head p,#ch-classroom-portal .shape-lab-head p,#ch-classroom-portal .structure-lab-head p{display:none}
#ch-classroom-portal .bbuilder-body,#ch-classroom-portal .shape-lab-body,#ch-classroom-portal .structure-lab-body{padding-top:0}
#ch-classroom-portal .sh-molecule-viewer{min-height:320px}
#ch-classroom-portal .sh-molecule-viewer svg{width:100%;height:auto;max-height:55vh}
#ch-classroom-portal .ie-plotter-app .ie-plotter-toolbar{font-size:1rem}
#ch-classroom-portal .boltz-controls{font-size:1rem}
#ch-classroom-portal .boltz-app,#ch-classroom-portal .ie-plotter-app{max-width:1550px}
#ch-classroom-portal .bt-question-actions{font-size:1rem}
#ch-classroom-portal .bt-exam-section,#ch-classroom-portal .bt-guided-section{border:0}
@media (max-width:1024px){
 #ch-classroom-portal .ch-classroom-toolbar{padding:.55rem .8rem;gap:.5rem}
 #ch-classroom-title{max-width:none;font-size:1rem}
 #ch-classroom-portal .ch-classroom-button{font-size:.9rem;padding:.55rem .65rem}
 #ch-classroom-portal .ch-classroom-workspace{padding:.8rem}
 #ch-classroom-portal .ch-classroom-workspace > *{font-size:1.125rem;padding:.85rem}
}
@media (max-width:600px){
 #ch-classroom-portal .ch-classroom-actions{gap:.3rem}
 #ch-classroom-portal .ch-classroom-status{display:none}
 #ch-classroom-portal th,#ch-classroom-portal td{padding:.4em}
 #ch-classroom-portal .ch-classroom-answer{padding:.8rem}
 #ch-classroom-portal .ch-classroom-question{overflow-wrap:anywhere}
}
@media(prefers-reduced-motion:reduce){#ch-classroom-portal *{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
@media print {#ch-classroom-portal{position:static;height:auto;display:block;overflow:visible}#ch-classroom-portal .ch-classroom-toolbar{display:none}#ch-classroom-portal .ch-classroom-workspace{overflow:visible}#ch-classroom-portal .ch-classroom-footer{display:flex}}

/* The exam-paper component uses its own rem sizes; scale its content explicitly. */
#ch-classroom-portal .bt-exam-question p,#ch-classroom-portal .bt-exam-question li,
#ch-classroom-portal .exam-question p,#ch-classroom-portal .exam-question li,
#ch-classroom-portal .exam-paper p,#ch-classroom-portal .exam-paper li,
#ch-classroom-portal .exam-stem,#ch-classroom-portal .exam-part-prompt{font-size:inherit;line-height:1.5}
#ch-classroom-portal .bt-exam-paper,#ch-classroom-portal .exam-paper{font-size:inherit;box-shadow:none}
#ch-classroom-portal .ch-classroom-response{margin:.8rem 0;font-size:1em;line-height:1.5}
#ch-classroom-portal .ch-classroom-response label{display:block;padding:.45rem .7rem;min-height:0;cursor:default}
#ch-classroom-portal .ch-classroom-response label:has(.ch-classroom-options){padding:.35rem 0}
#ch-classroom-portal .ch-classroom-options{margin:.5rem 0 .5rem 1.9rem;padding:0;display:grid;gap:.3rem}
#ch-classroom-portal .ch-classroom-options li{padding:.15rem .4rem;font-size:inherit}
#ch-classroom-portal .ch-classroom-blank{white-space:nowrap;padding:0 .5rem;color:#49616a}
#ch-classroom-portal .ch-classroom-response svg{pointer-events:none}
#ch-classroom-portal .ch-classroom-response:empty,#ch-classroom-portal .feedback-panel:empty{display:none}
#ch-classroom-portal .colour-context{letter-spacing:normal;text-transform:none}

#ch-classroom-portal .bt-paper-body{padding:1rem 1.25rem;font-size:inherit}
#ch-classroom-portal .bt-paper-body p,#ch-classroom-portal .bt-paper-body li,#ch-classroom-portal .bt-paper-body .equation{font-size:inherit;line-height:1.5}
#ch-classroom-portal .bt-paper-body p{margin:.55em 0}
#ch-classroom-portal .bt-paper-header{padding:.65rem 1rem}
#ch-classroom-portal .bt-paper-header p{letter-spacing:normal;font-size:1em}
#ch-classroom-portal .bt-paper-task{padding-top:.7rem;margin-top:.8rem;font-size:inherit}
#ch-classroom-portal .bt-paper-task p{font-size:inherit}
#ch-classroom-portal .bt-help-buttons:has(.ch-classroom-concealed){margin:0;padding:0}

/* Visual labs keep their workspace controls, with the page introduction folded away. */
#ch-classroom-portal .structure-lab-title-row > div:first-child,
#ch-classroom-portal .shape-lab-title-row > div:first-child,
#ch-classroom-portal .bbuilder-title-row > div:first-child{display:none}
#ch-classroom-portal .structure-lab-title-row,#ch-classroom-portal .shape-lab-title-row,#ch-classroom-portal .bbuilder-title-row{display:flex;justify-content:flex-end;margin:0;min-height:0}
#ch-classroom-portal .structure-lab-head,#ch-classroom-portal .shape-lab-head,#ch-classroom-portal .bbuilder-head{padding:0 0 .55rem;margin:0;color:#193b41}
#ch-classroom-portal .structure-board-switch button,#ch-classroom-portal .shape-board-switch button,#ch-classroom-portal .bbuilder-board-switch button{font-size:1rem;color:#193b41;background:#fff;border:1px solid #93afb7;padding:.5rem .9rem;min-height:40px}
#ch-classroom-portal .structure-board-switch button.is-active,#ch-classroom-portal .shape-board-switch button.is-active,#ch-classroom-portal .bbuilder-board-switch button.is-active{background:#195768;color:#fff}
#ch-classroom-portal .shape-extension-toggle{color:#193b41;font-size:1rem}
#ch-classroom-portal .structure-mode-tabs,#ch-classroom-portal .shape-mode-tabs,#ch-classroom-portal .bbuilder-tabs{margin:0 0 .65rem;box-shadow:none}
#ch-classroom-portal .structure-mode-tabs button,#ch-classroom-portal .shape-mode-tabs button,#ch-classroom-portal .bbuilder-tabs button{padding:.55rem .75rem;font-size:1rem;min-height:42px;line-height:1.3;letter-spacing:normal;text-transform:none}
#ch-classroom-portal .structure-mode-tabs button span,#ch-classroom-portal .shape-mode-tabs button span,#ch-classroom-portal .bbuilder-tabs button span{display:none}
#ch-classroom-portal .structure-session-bar,#ch-classroom-portal .shape-session-bar,#ch-classroom-portal .bbuilder-session-bar{display:none}
#ch-classroom-portal .structure-workspace,#ch-classroom-portal .shape-workspace,#ch-classroom-portal .bbuilder-workspace{padding:.7rem 1rem;border:0;box-shadow:none;margin:0}
#ch-classroom-portal .sl-kicker,#ch-classroom-portal .sh-kicker,#ch-classroom-portal .bb-kicker{font-size:1rem;letter-spacing:normal;text-transform:none;margin:0 0 .4rem}
#ch-classroom-portal .shape-workspace:has([data-explore-regions]) > .sh-question-title,
#ch-classroom-portal .shape-workspace:has([data-explore-regions]) > .sh-question-copy{display:none}
#ch-classroom-portal .sh-split{margin-top:.6rem;gap:1.3rem;grid-template-columns:minmax(260px,.9fr) minmax(350px,1.1fr)}
#ch-classroom-portal .sh-control-group{margin:0 0 .85rem}
#ch-classroom-portal .sh-result-readout{gap:.4rem;margin:.8rem 0}
#ch-classroom-portal .sh-result-readout article{padding:.5rem .7rem}
#ch-classroom-portal .sh-result-readout strong{font-size:1rem}
#ch-classroom-portal .sh-control-panel > .sh-question-copy{font-size:1rem;line-height:1.5}
#ch-classroom-portal .sh-viewer-top{font-size:1rem}
#ch-classroom-portal .sh-viewer-top span{font-size:.85rem}
#ch-classroom-portal .sh-molecule-viewer{min-height:300px}
#ch-classroom-portal .shape-board-note,#ch-classroom-portal .bbuilder-board-note{font-size:1rem}
#ch-classroom-portal .boltz-board-tabs{margin:0 0 .7rem}
#ch-classroom-portal .boltz-board-tabs button{font-size:1rem;padding:.5rem}
#ch-classroom-portal .boltz-change-strip,#ch-classroom-portal .boltz-particles{display:none}
#ch-classroom-portal .boltz-layout{gap:1rem;margin-top:0;grid-template-columns:minmax(0,1fr) 290px;align-items:start}
#ch-classroom-portal .boltz-graph-frame{padding:.3rem}
#ch-classroom-portal .boltz-controls{max-height:calc(100dvh - 245px);overflow-y:auto;overscroll-behavior:contain;padding:.8rem}
#ch-classroom-portal .boltz-controls .range-control{margin-bottom:.7rem}
#ch-classroom-portal .boltz-controls .switch-row{padding:.7rem 0}
#ch-classroom-portal .boltz-legend{font-size:.85rem;gap:.6rem}
#ch-classroom-portal .boltz-metrics{font-size:1rem;margin:.5rem 0}
#ch-classroom-portal .ie-plotter-header{display:none}
#ch-classroom-portal .ie-plotter-title-row h2{font-size:1.15em;margin:.5rem 0 .3rem}
#ch-classroom-portal .ie-plotter-toolbar{margin:0 0 .5rem;gap:.7rem}
#ch-classroom-portal .ie-explorer-graph svg{max-height:calc(100dvh - 310px);min-height:300px;width:100%}
@media(max-width:800px){
 #ch-classroom-portal .sh-split,#ch-classroom-portal .boltz-layout{grid-template-columns:1fr}
 #ch-classroom-portal .boltz-controls{max-height:none}
}
/* Keep the complete plot visible on 720p projectors, including both axis labels. */
#ch-classroom-portal .ie-plotter-stage{padding:.5rem .75rem}
#ch-classroom-portal #ie-plotter-meta,#ch-classroom-portal #ie-plotter-subtitle{display:none}
#ch-classroom-portal .ie-plotter-toolbar{padding:.55rem .75rem}
#ch-classroom-portal .ie-plotter-title-row{margin:.35rem 0}
#ch-classroom-portal .ie-plotter-title-row h2{margin:0;font-size:1.12em;line-height:1.3}
#ch-classroom-portal .ie-explorer-graph{max-width:1100px;margin:.5rem auto 0;padding:.2rem}
#ch-classroom-portal .ie-explorer-graph svg{height:calc(100dvh - 380px);max-height:calc(100dvh - 380px);min-height:260px;width:100%}
@media(max-height:740px){
 #ch-classroom-portal .sh-molecule-viewer{min-height:285px;height:285px}
 #ch-classroom-portal .sh-molecule-viewer svg{max-height:285px}
 #ch-classroom-portal .shape-workspace:has([data-explore-regions]) .sh-kicker{display:none}
}
#ch-classroom-portal .bt-paper-equation,
#ch-classroom-portal .bt-paper-equation-pair > span,
#ch-classroom-portal .bt-paper-equations > span,
#ch-classroom-portal .equation-strip > span{font-size:inherit;line-height:1.5;padding:.4em .65em}
#ch-classroom-portal .ie-explorer-graph .ie-xlabels text,
#ch-classroom-portal .ie-explorer-graph .ie-ylabels text,
#ch-classroom-portal .ie-explorer-graph .ie-value-labels text{font-size:22px}
#ch-classroom-portal .ie-explorer-graph .ie-ytitle,
#ch-classroom-portal .ie-explorer-graph .ie-xtitle{font-size:21px}
/* Preserve the source graph's left-axis gutter while enlarging tick labels. */
#ch-classroom-portal .ie-explorer-graph .ie-ylabels text,
#ch-classroom-portal .ie-explorer-graph .ie-value-labels text{font-size:18px}
#ch-classroom-portal .ie-explorer-graph .ie-ytitle{font-size:16px;translate:-7px 0}

/* Display to class 0.2.0. Controls live below the projected content. */
#ch-classroom-portal{display:flex;flex-direction:column;background:#f5f8fa;--ch-size-factor:1;--ch-dock-height:110px}
#ch-classroom-portal[data-display-size="large"]{--ch-size-factor:1.25}
#ch-classroom-portal[data-display-size="extra"]{--ch-size-factor:1.5}
#ch-classroom-portal .ch-classroom-workspace{flex:1 1 auto;min-height:0;display:flex;flex-direction:column;padding:.65rem clamp(.6rem,1.8vw,1.5rem);scroll-padding:.65rem;overflow:auto}
#ch-classroom-portal .ch-classroom-workspace > *{flex:0 0 auto;min-width:0;max-width:1500px;margin:0 auto;padding:.65rem 1rem;border-radius:4px;font-size:calc(clamp(1.25rem,1.55vw,1.9rem) * var(--ch-size-factor));line-height:1.5}
#ch-classroom-portal[data-display-position="centre"]:not(.ch-classroom-high) .ch-classroom-workspace > *{margin-block:auto}
/* “Keep content high” still keeps the projected material top-aligned, but it no longer
   shrinks the teaching viewport to 60dvh. The old cap exposed the decorative blue
   frame as a large empty slab and could hide the bottom of long questions. */
#ch-classroom-portal.ch-classroom-high .ch-classroom-workspace{flex:1 1 auto;height:auto;max-height:none}
#ch-classroom-portal.ch-classroom-high.ch-classroom-clock-visible .ch-classroom-workspace{height:auto;max-height:none}
#ch-classroom-portal .ch-classroom-dock{flex:0 0 auto;margin-top:auto;max-height:65dvh;overflow:auto;background:#fff;border-top:1px solid #cfdbdf}
#ch-classroom-portal .ch-classroom-toolbar{border:0;padding:.45rem .8rem}
#ch-classroom-portal .ch-classroom-toolbar[hidden],#ch-classroom-portal .ch-classroom-footer[hidden],#ch-classroom-portal .ch-classroom-panels[hidden],#ch-classroom-portal .ch-classroom-panel[hidden],#ch-classroom-portal .ch-classroom-restore[hidden],#ch-classroom-portal .ch-classroom-clock[hidden],#ch-classroom-portal [data-timer-countdown][hidden],#ch-classroom-portal [data-timer-custom-wrap][hidden]{display:none!important}
#ch-classroom-portal .ch-classroom-footer{min-height:1.5rem;padding:.15rem .8rem;border:0}
#ch-classroom-title{font-size:1rem;max-width:30ch}
#ch-classroom-portal .ch-classroom-brand{font-size:.9rem}
#ch-classroom-portal .ch-classroom-actions{gap:.35rem}
#ch-classroom-portal .ch-classroom-button{font-size:.95rem;min-height:42px;padding:.55rem .7rem}
#ch-classroom-portal .ch-classroom-restore{display:flex;justify-content:flex-end;padding:.25rem .6rem}
#ch-classroom-portal .ch-classroom-panels{padding:.65rem 1rem;border-bottom:1px solid #cfdbdf;max-height:34dvh;overflow:auto}
#ch-classroom-portal .ch-classroom-panel{display:flex;align-items:end;flex-wrap:wrap;gap:.6rem 1rem;font-size:1rem;color:#193b41}
#ch-classroom-portal .ch-classroom-panel label{display:flex;flex-direction:column;gap:.2rem;font-weight:600;font-size:1rem}
#ch-classroom-portal .ch-classroom-panel select,#ch-classroom-portal .ch-classroom-panel input[type="text"]{font:inherit;color:#193b41;background:white;border:1px solid #93afb7;border-radius:5px;padding:.5rem;min-height:42px;max-width:100%}
#ch-classroom-portal .ch-classroom-panel input[type="text"]{width:8em}
#ch-classroom-portal .ch-classroom-panel .ch-classroom-check{flex-direction:row;align-items:center;min-height:42px}
#ch-classroom-portal .ch-classroom-check input{width:1.1rem;height:1.1rem;margin-right:.35rem}
#ch-classroom-portal .ch-classroom-help{flex-basis:100%;margin:.2rem 0 0;font-size:.9rem;line-height:1.4;color:#51626b}
#ch-classroom-portal #ch-timer-error:empty{display:none}
#ch-classroom-portal #ch-timer-error:not(:empty){color:#822d22}
#ch-classroom-portal .ch-classroom-clock{flex:none;align-self:flex-end;font-size:clamp(1.6rem,3vw,2.6rem);font-variant-numeric:tabular-nums;font-weight:700;line-height:1.1;color:#193b41;padding:.3rem 1rem;border-bottom:2px solid #195768;margin-right:1.5rem}
#ch-classroom-portal .ch-classroom-clock.is-ended{color:#822d22;border-color:#822d22}
#ch-classroom-portal .ch-classroom-timer-readout{font-size:1.4rem;line-height:42px;font-variant-numeric:tabular-nums;white-space:nowrap}
#ch-classroom-portal .ch-classroom-masked{display:none!important}
#ch-classroom-portal .ch-classroom-question{margin-top:0;line-height:1.5}
#ch-classroom-portal .ch-classroom-question :is(p,li,th,td),#ch-classroom-portal .ch-classroom-answer :is(p,li,th,td),#ch-classroom-portal .ch-classroom-response :is(p,li,label,th,td){font-size:inherit;line-height:1.5}
#ch-classroom-portal .ch-classroom-question :is(.equation,.thermo-equation,.thermo-reaction,.thermo-data-row){font-size:inherit}
#ch-classroom-portal .ch-classroom-focus{padding:.5rem 1rem}
#ch-classroom-portal .ch-classroom-focus-list{display:grid;gap:.6rem}
#ch-classroom-portal .ch-classroom-focus-list .ch-classroom-button{text-align:left;font-size:1em;line-height:1.4;padding:.65em}
#ch-classroom-portal .ch-classroom-focus h2{font-size:1.15em;line-height:1.35;margin:.25em 0 .6em}
#ch-classroom-portal .ch-classroom-focus-copy{border:0;box-shadow:none;margin:0;padding:0;max-width:none;color:#182d35;background:#fff}
#ch-classroom-portal .ch-classroom-focus-copy :is(p,li,td,th,.prose,.spec-revision-body,.spec-revision-equation,.spec-revision-example,.spec-revision-warning,.practical-diagram-note){font-size:inherit;line-height:1.5}
#ch-classroom-portal .ch-classroom-focus-copy :is(.spec-revision-body,.spec-revision-example,.spec-revision-warning){max-width:none;padding:.5em 0;border:0;box-shadow:none;background:transparent;display:block}
#ch-classroom-portal .ch-classroom-focus-copy :is(.spec-revision-ref,.eyebrow){font-size:.75em;display:block;text-transform:none;letter-spacing:normal}
#ch-classroom-portal .ch-classroom-focus-copy table{width:100%;font-size:inherit;border-collapse:collapse}
#ch-classroom-portal .ch-classroom-focus-copy :is(th,td){border:1px solid #b6c9cf;padding:.5em}
#ch-classroom-portal .ch-classroom-focus-copy :is(img,svg){max-width:100%;height:auto;object-fit:contain}
#ch-classroom-portal .ch-classroom-focus-copy .practical-diagram-figure{width:100%;max-width:100%;margin:1em 0}
#ch-classroom-portal .thermo-practice-app .thermo-app-header,#ch-classroom-portal .thermo-practice-app .thermo-app-footer{display:none}
#ch-classroom-portal .thermo-practice-app .thermo-question-meta{font-size:.8em}
#ch-classroom-portal .thermo-practice-app .thermo-question{font-size:inherit}
@media(max-width:600px){
 #ch-classroom-portal .ch-classroom-workspace{padding:.4rem}
 #ch-classroom-portal .ch-classroom-workspace > *{padding:.55rem}
 #ch-classroom-portal .ch-classroom-toolbar{gap:.3rem}
 #ch-classroom-portal .ch-classroom-button{padding:.5rem;font-size:.85rem}
 #ch-classroom-portal .ch-classroom-panels{max-height:30dvh}
}
@media print{#ch-classroom-portal .ch-classroom-dock,#ch-classroom-portal .ch-classroom-clock{display:none!important}#ch-classroom-portal .ch-classroom-workspace{height:auto!important;max-height:none!important;overflow:visible}}

/* Authored diagrams fit as complete figures within the available teaching area. */
#ch-classroom-portal .ch-classroom-focus-copy :is(img,svg){display:block;width:auto;height:auto;max-width:100%;max-height:calc(var(--ch-view-height,75dvh) - 2rem);object-fit:contain;margin-inline:auto}
#ch-classroom-portal .ch-classroom-focus-copy .practical-diagram-figure{margin:.2rem 0}
#ch-classroom-portal.ch-classroom-high :is(.moles-question-meta,.hess-question-meta,.isotope-question-meta,.titration-question-meta,.nmr-question-meta,.ie-question-meta,.practical-question-meta,.thermo-question-meta,.ep-question-meta){display:none}

/* Native challenges use their own questions inside the shared projection shell. */
#ch-classroom-portal .nom-app,#ch-classroom-portal .fg-app.is-classroom{min-height:0;max-width:1500px}
#ch-classroom-portal .nom-stage,#ch-classroom-portal .fg-stage{height:clamp(200px,46dvh,540px);max-height:calc(var(--ch-view-height,75dvh) - 5rem);min-height:150px;overflow:visible;margin:.3rem auto}
#ch-classroom-portal .nom-stage svg,#ch-classroom-portal .fg-drawing svg{width:100%;height:100%;max-height:100%;object-fit:contain}
#ch-classroom-portal .nom-context{font-size:.7em;margin:0;padding:0}
#ch-classroom-portal .nom-why,#ch-classroom-portal .fg-explanation{font-size:inherit;max-width:none}
#ch-classroom-portal .nom-feedback #nom-expected,#ch-classroom-portal .fg-result-formula{font-size:1.4em}
#ch-classroom-portal .fg-prompt{font-size:1.1em}
#ch-classroom-portal .fg-bottom:has([data-fg-toast]:empty){display:none}
#ch-classroom-portal .fg-measure{position:fixed!important;left:-10000px!important;top:0!important;display:block!important}

/* Keep the complete live Gibbs graph available in the upper teaching area. */
#ch-classroom-portal #thermo-temperature-lab .thermo-graph-layout{padding:.25rem .4rem;gap:1rem}
#ch-classroom-portal #thermo-temp-canvas{height:clamp(300px,calc(var(--ch-view-height,75dvh) - 9rem),540px)}
#ch-classroom-portal .thermo-live-readout strong{font-size:1em}
#ch-classroom-portal .thermo-live-readout small,#ch-classroom-portal .thermo-live-readout span{font-size:.7em}
#ch-classroom-portal .thermo-live-readout > div{padding:.4em}
#ch-classroom-portal .thermo-temperature-slider{font-size:.85em;margin-top:.4em}

#ch-classroom-portal .ch-classroom-announcement{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}


/* SITE 3.24.3 — permanent Chemistry Help surround, with restrained edge branding. */
#ch-classroom-portal{
 --ch-frame-width:26px;
 box-sizing:border-box;
 padding:var(--ch-frame-width);
 background:linear-gradient(135deg,#102b3f 0%,#173e55 58%,#0c5c5b 100%);
 box-shadow:inset 0 0 0 1px rgba(245,240,230,.18),inset 0 0 0 4px rgba(182,107,61,.28),inset 0 0 18px rgba(0,0,0,.28);
}
#ch-classroom-portal .ch-classroom-frame{position:absolute;inset:0;z-index:5;pointer-events:none;overflow:hidden;color:rgba(245,240,230,.72);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:clamp(.58rem,.64vw,.72rem);font-weight:800;letter-spacing:.095em;text-shadow:0 1px 0 rgba(255,255,255,.18),0 -1px 0 rgba(0,0,0,.82);user-select:none}
#ch-classroom-portal .ch-classroom-frame-edge{position:absolute;display:flex;align-items:center;justify-content:center;white-space:nowrap;overflow:hidden;line-height:1;opacity:.88}
#ch-classroom-portal .ch-classroom-frame-edge.is-top,#ch-classroom-portal .ch-classroom-frame-edge.is-bottom{left:var(--ch-frame-width);right:var(--ch-frame-width);height:var(--ch-frame-width);justify-content:space-evenly}
#ch-classroom-portal .ch-classroom-frame-edge.is-top{top:0}
#ch-classroom-portal .ch-classroom-frame-edge.is-bottom{bottom:0}
#ch-classroom-portal .ch-classroom-frame-edge.is-left,#ch-classroom-portal .ch-classroom-frame-edge.is-right{top:var(--ch-frame-width);bottom:var(--ch-frame-width);width:var(--ch-frame-width);writing-mode:vertical-rl;text-orientation:mixed}
#ch-classroom-portal .ch-classroom-frame-edge.is-left{left:0;transform:rotate(180deg)}
#ch-classroom-portal .ch-classroom-frame-edge.is-right{right:0}
#ch-classroom-portal .ch-classroom-frame-label{display:block}
#ch-classroom-portal .ch-classroom-workspace,#ch-classroom-portal .ch-classroom-dock{position:relative;z-index:1}
#ch-classroom-portal .ch-classroom-workspace{background:#f5f8fa}
@media(max-width:600px){#ch-classroom-portal{--ch-frame-width:18px}#ch-classroom-portal .ch-classroom-frame{font-size:.52rem;letter-spacing:.06em}}

/* SITE 3.26.2 hotfix — let a visible join panel use the full teaching area. */
#ch-classroom-portal.ch-classroom-high:has(.ch-live-panel:not([hidden]) .ch-live-join-layout) .ch-classroom-workspace{
  flex:1 1 auto;
  height:auto;
  max-height:none;
}

/* Make the action that removes the projected join details obvious while they are visible. */
#ch-classroom-portal:has(.ch-live-panel:not([hidden]) .ch-live-join-layout) [data-live-command="hide_join"]{
  background:#822d22;
  color:#fff;
  border-color:#822d22;
}
#ch-classroom-portal:has(.ch-live-panel:not([hidden]) .ch-live-join-layout) [data-live-command="hide_join"]:hover:not(:disabled){
  background:#6f241e;
  border-color:#6f241e;
}
