:root { font-family: system-ui, sans-serif; color: #183331; background: #f4f6f3; line-height: 1.55; }
* { box-sizing: border-box; }
body { margin: 0; }
header, main { max-width: 900px; margin: auto; padding: 1.25rem; }
header { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; border-bottom: 1px solid #b8c6bf; }
h1 { font-size: 1.8rem; line-height: 1.2; }
h2 { font-size: 1.25rem; }
form, article, .panel { background: white; padding: 1.25rem; border: 1px solid #b8c6bf; border-radius: .5rem; margin: 1rem 0; }
form { max-width: 560px; }
label { display: block; margin: .8rem 0; font-weight: 600; }
input:not([type=checkbox]), select, textarea { display: block; width: 100%; font: inherit; padding: .65rem; border: 1px solid #637b72; border-radius: .25rem; margin-top: .3rem; }
input[type=checkbox] { width: 1.2rem; height: 1.2rem; vertical-align: middle; }
button { font: inherit; font-weight: 600; color: white; background: #205b4d; border: 1px solid #205b4d; padding: .7rem 1rem; border-radius: .3rem; cursor: pointer; margin: .3rem .3rem .3rem 0; min-height: 44px; }
button:disabled { opacity: .55; cursor: wait; }
:focus-visible { outline: 3px solid #936100; outline-offset: 3px; }
.muted { color: #4a6159; }
[role=alert] { color: #8c1721; font-weight: 600; }
main { overflow-wrap: anywhere; }
[data-testid=handoff] { border: 2px solid #936100; }
code { display: block; font-size: 1.2rem; user-select: all; }
[hidden] { display: none !important; }
@media(max-width: 500px) { header, main { padding: 1rem; } form, article, .panel { padding: 1rem; } }
nav ul { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,240px),1fr)); gap: .4rem; }
nav button { width: 100%; text-align: left; margin: 0; }
figure { margin: 1.5rem 0; }
figure img { display: block; width: 100%; height: auto; max-width: 600px; margin: auto; }
figcaption { color: #4a6159; font-size: .95rem; margin-top: .5rem; }
.lesson-text { max-width: 72ch; }
.table-scroll { overflow-x: auto; max-width: 100%; }
table { border-collapse: collapse; } th,td { border: 1px solid #637b72; padding: .5rem; }
button, textarea, select { scroll-margin: 1rem; }
#lesson form { max-width: 100%; }
.skip-link { position: absolute; left: 1rem; top: -5rem; background: white; padding: .6rem; z-index: 10; }
.skip-link:focus { top: 1rem; }
.preserve-lines { white-space: pre-wrap; }
/* Shared scientific-text renderer: same isotope/script geometry as the demo. */
.isotope-symbol { display: inline; vertical-align: baseline; white-space: nowrap; font-style: normal; line-height: 1; }
.isotope-scripts { display: inline-grid; grid-template-rows: 1fr 1fr; justify-items: end; margin-right: .08em; font-size: .7em; line-height: 1; vertical-align: .55em; }
.isotope-scripts > sup, .isotope-scripts > sub { position: static; vertical-align: baseline; font-size: 1em; line-height: 1; }
.isotope-element { font-style: normal; }
.relative-atomic-mass { white-space: nowrap; font-style: italic; }
.relative-atomic-mass > sub { font-style: normal; font-size: .75em; }

nav[aria-label='Workspace areas'] { display:flex; flex-wrap:wrap; gap:.4rem; margin:1rem 0; }
nav[aria-label='Workspace areas'] button { width:auto; }
button[aria-pressed='true'] { outline:2px solid #936100; outline-offset:2px; }
/* Authenticated course navigation follows the accepted demo's card/outline layout. */
:root { color:#183348; background:#f4f7fa; }
:root:has(.authenticated-shell) { color:#22364c; background:#fff; line-height:1.6; }
a { color:#1767a8; text-underline-offset:3px; }
body:has(.authenticated-shell) > header { display:none; }
main.authenticated-shell { max-width:1240px; padding:0 30px 40px; }
.topbar { display:flex; align-items:center; flex-wrap:wrap; gap:24px; min-height:90px; padding:18px 0; border-bottom:1px solid #dce5eb; }
.brand { font-size:25px; font-weight:850; letter-spacing:-1px; color:#17665f; text-decoration:none; }
.topbar nav { display:flex; flex-wrap:wrap; gap:20px; flex:1; }
.topbar nav a { color:#294962; font-weight:650; text-decoration:none; padding:.5rem 0; }
.topbar nav a[aria-current=page] { color:#17665f; text-decoration:underline; text-decoration-thickness:3px; }
.session-controls { display:flex; flex-wrap:wrap; align-items:center; gap:.5rem; max-width:100%; }
.session-controls p { max-width:30ch; margin:0; }
.session-controls button { margin:0; }
.authenticated-shell h1 { font-size:36px; letter-spacing:-1px; margin:24px 0 16px; }
.authenticated-shell h2 { font-size:23px; }
.lead { font-size:19px; color:#506477; max-width:780px; }
.course-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:22px; margin-top:24px; }
.card { border:1px solid #dae4eb; border-radius:9px; padding:24px; background:white; min-width:0; }
.card h2 { margin:0 0 18px; }
.course-row { border-top:1px solid #e6edf1; padding:16px 0 4px; }
.course-row > a { display:inline-block; font-size:20px; font-weight:650; min-height:44px; padding:4px 0; }
.course-row p { margin:0 0 10px; }
.unit-card,.unit { border:1px solid #d4e3eb; background:white; border-radius:1rem; margin:1rem 0; }
.unit-card { background:hsl(var(--unit-hue) 65% 95%); border-color:hsl(var(--unit-hue) 42% 74%); padding:0; overflow:hidden; }
.unit-card > summary { cursor:pointer; padding:1.25rem 3.25rem 1.25rem 1.25rem; position:relative; list-style:none; min-height:60px; }
.unit-card > summary::-webkit-details-marker { display:none; }
.unit-card > summary::after { content:'⌄'; position:absolute; right:1.25rem; top:1.25rem; font-size:1.5rem; }
.unit-card[open] > summary::after { content:'⌃'; }
.unit-card > summary:focus-visible { outline:3px solid #1767a8; outline-offset:-4px; border-radius:1rem; }
.unit-card-heading h2 { margin:0; font-size:20px; }
.unit > .unit-card-heading { padding:1.25rem; }
.unit-lessons { padding:0 1.25rem 1.25rem; }
.topic-row { display:flex; align-items:center; gap:1rem; justify-content:space-between; margin-top:12px; background:#f7fafc; border:1px solid #e5edf2; border-radius:6px; padding:20px 24px; }
.topic-row a { font-weight:600; padding:.4rem 0; min-height:44px; }
.topic-row p { margin:0; }
.empty-reading { border:1px dashed #8ba6b6; background:white; padding:1.5rem; border-radius:9px; }
@media(max-width:900px) { .course-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:600px) {
 main.authenticated-shell { padding:0 16px 32px; }
 .topbar { display:grid; grid-template-columns:auto minmax(0,1fr); gap:0 .6rem; min-height:0; padding:.45rem 0; }
 .topbar nav { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:0 .35rem; font-size:.78rem; }
 .topbar nav a { display:grid; align-content:center; min-height:44px; padding:.2rem 0; }
 .session-controls { grid-column:1 / -1; justify-content:space-between; flex-wrap:nowrap; }
 .session-controls p { min-width:0; overflow-wrap:anywhere; font-size:13px; }
 .session-controls button { flex:none; }
 nav[aria-label='Workspace areas'] { margin:.35rem 0; }
 nav[aria-label='Workspace areas'] button { padding:.45rem .8rem; }
 .workspace-content > h1 { margin:.65rem 0 .55rem; }
 .course-grid { grid-template-columns:1fr; gap:16px; }
 .authenticated-shell h1 { font-size:30px; }
 .card { padding:20px; }
 .topic-row { align-items:flex-start; gap:.6rem; }
 .unit-card-heading h2 { font-size:18px; }
 .unit-card > summary { padding:1rem 2.5rem 1rem 1rem; }
 .unit-card > summary::after { right:1rem; top:1rem; }
 .unit-lessons { padding:0 1rem 1rem; }
}

.progress-ring { position:relative; display:inline-grid; place-items:center; flex:0 0 58px; width:58px; height:58px; font-size:12px; font-weight:700; color:#17665f; }
.progress-ring svg { position:absolute; width:100%; height:100%; transform:rotate(-90deg); }
.progress-ring circle { fill:none; stroke-width:4; }
.ring-track { stroke:#e6edf1; }.ring-value { stroke:#268d84; stroke-linecap:round; }
.progress-ring > span { position:relative; }
.course-progress,.lesson-progress { display:flex; align-items:center; gap:1rem; }
.lesson-progress { border-bottom:1px solid #dce5eb; padding-bottom:1rem; margin-bottom:1rem; }
.lesson-progress p { margin:.3rem 0; }.review-cause { color:#795000; font-size:.9rem; }
.unit-card-heading { display:block; }
.linear-progress { margin:.65rem 0; }
.linear-progress p { margin:.25rem 0; font-size:.9rem; color:#5c7182; }
.linear-progress progress { width:min(100%,30rem); height:1rem; accent-color:#87909b; }
.course-row .linear-progress progress { width:100%; }
.reading-layout { max-width:900px; margin-inline:auto; padding:2rem; }
.reading-layout .lesson-text { line-height:1.8; }
@media(max-width:600px) { .reading-layout { padding:1rem; }.progress-ring { flex-basis:48px; width:48px; height:48px; font-size:11px; }.topic-row { flex-wrap:wrap; }.topic-row a { flex:1 1 180px; }.unit-card-heading h2 { flex:1; } }
/* Protected bank controls follow the accepted main set/filter layout. */
.bank-filters { display:flex; flex-wrap:wrap; align-items:end; gap:1rem; margin-bottom:.5rem; }
.bank-filters label { display:flex; flex-direction:column; gap:.25rem; min-width:0; }
.bank-filters select { max-width:100%; width:19rem; }
.bank-filters .bank-full-filter { flex-direction:row; align-items:center; padding:.5rem 0; }
.bank-full-filter input { width:auto; }
.bank-actions { display:flex; flex-wrap:wrap; gap:.6rem; margin:1rem 0; }
.bank-practice-layout { display:grid; grid-template-columns:minmax(0,1fr) 12rem; align-items:start; gap:1.5rem; margin-top:1rem; }
.bank-question-center { min-width:0; }
.bank-topic-status { display:flex; flex-wrap:wrap; align-items:center; gap:.35rem; margin:.5rem 0 1rem; }
.bank-topic-badge { background:#eaf0f4; border-radius:1rem; padding:.25rem .65rem; font-size:.85rem; }
.bank-topic-status button { background:#fff; color:#17665f; border-color:#61918a; font-size:.85rem; padding:.4rem .65rem; margin:0; }
.bank-question-center form { margin:1rem 0; }
.bank-question-nav { position:sticky; top:1rem; border:1px solid #ccdce8; border-radius:8px; padding:.8rem; min-width:0; }
.bank-question-nav p { margin:0 0 .7rem; font-size:.9rem; }
.bank-question-numbers { display:flex; flex-wrap:wrap; gap:.4rem; }
.bank-question-numbers button { margin:0; padding:.35rem .65rem; min-width:2.25rem; width:auto; text-align:center; }
.bank-question-numbers button[aria-current] { box-shadow:0 0 0 2px #1767a8; }
.bank-question-numbers button[data-answer-status=unseen],
.bank-question-numbers button[data-answer-status=saved] { background:#fff; color:#22364c; border:1px solid #b8c0ca; }
.bank-question-numbers button[data-answer-status=seen] { background:#e4e7eb; color:#526277; border:1px solid #a5afba; }
.bank-question-numbers button[data-answer-status=incorrect] { background:#fdecec; color:#8e2424; border:1px solid #bd3434; }
.bank-question-numbers button[data-answer-status=correct] { background:#e8f5ec; color:#175d39; border:1px solid #20845a; }
.bank-question-numbers button[data-answer-status=retried] { background:#fff1bd; color:#77500b; border:1px solid #b58220; }
.bank-question-nav .bank-answer-legend { margin:.9rem 0 0; font-size:.8rem; line-height:1.55; }
.authenticated-shell[data-area=learn] select.mcq-checked-answer[data-answer-status=correct],
select.mcq-checked-answer option[data-answer-status=correct] { background:#e8f5ec; color:#175d39; border-color:#20845a; opacity:1; }
.authenticated-shell[data-area=learn] select.mcq-checked-answer[data-answer-status=incorrect],
select.mcq-checked-answer option[data-answer-status=incorrect] { background:#fdecec; color:#8e2424; border-color:#bd3434; opacity:1; }
.multipart-part-outcome { border-left:4px solid #bd3434; background:#fdecec; color:#8e2424; padding:.45rem .65rem; font-weight:700; }
.multipart-part-outcome[data-answer-status=correct] { border-color:#20845a; background:#e8f5ec; color:#175d39; }
@media(max-width:600px) {
 .bank-filters { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.25rem .6rem; }
 .bank-filters label { margin:.15rem 0; gap:0; font-size:.9rem; }
 .bank-filters select { width:100%; min-height:44px; padding:.35rem; }
 .bank-filters .bank-full-filter { grid-column:1 / -1; gap:.35rem; min-height:44px; padding:.1rem 0; }
 .bank-toolbar { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:.25rem; margin:.25rem 0; }
 .bank-toolbar h1 { font-size:26px; margin:0; }
 .bank-toolbar button { margin:0; padding:.35rem .5rem; font-size:.8rem; }
 .bank-actions { gap:.3rem; margin:.4rem 0; }
 [aria-label='Question bank workspace'] .bank-actions { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); }
 .bank-actions button,.correction-sitting button { margin:0; padding:.35rem .5rem; font-size:.8rem; }
 .bank-actions + p { margin:.25rem 0; font-size:.875rem; }
 .bank-practice-layout { display:flex; flex-direction:column; gap:.45rem; margin-top:.55rem; }
 .bank-question-nav { order:-1; position:static; width:100%; display:flex; flex-wrap:wrap; align-items:center; gap:.3rem .5rem; padding:.4rem .55rem; }
 .bank-question-nav p { margin:0; }
 .bank-question-numbers button { min-width:44px; }
 .bank-question-nav .bank-answer-legend { flex-basis:100%; margin:0; font-size:.75rem; }
 .bank-question-center { width:100%; margin:.2rem 0; padding:.65rem; }
 .bank-question-center > h2 { margin:.35rem 0; line-height:1.25; }
 .bank-question-center > p { margin:.45rem 0; line-height:1.4; }
 .notebook-practice-layout .bank-question-center > h2:first-child { display:inline; }
 .notebook-practice-layout .bank-question-center > h2:first-child + .muted { display:inline; margin-left:.4rem; }
 .bank-topic-status { margin:.35rem 0; }
 .bank-topic-badge { padding:.15rem .4rem; font-size:.75rem; }
 [data-testid=bank-notice],[data-testid=notebook-notice] { margin:.3rem 0; }
 [data-testid=bank-notice]:empty,[data-testid=notebook-notice]:empty { margin:0; }
 .correction-sitting { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.3rem; padding:.55rem; margin:.5rem 0; }
 .correction-sitting p { grid-column:1 / -1; margin:0; line-height:1.4; }
}

.correction-sitting { margin-bottom:1rem; }
.correction-sitting p { margin-top:0; }
.notebook-practice-layout .bank-question-center { overflow-wrap:anywhere; }
.notebook-history { margin-top:1.3rem; border-top:1px solid #dce5eb; }
.notebook-history ol { padding-left:1.5rem; }
.notebook-history li + li { margin-top:1rem; border-top:1px solid #dce5eb; }
.notebook-history h4 { margin:.6rem 0; }
.notebook-history time { display:block; color:#526277; font-size:.9rem; }

.resume-panel { background:#e7f4f3; border-left:5px solid #087c78; border-radius:10px; padding:28px 34px; margin:30px 0; max-width:900px; }
.resume-panel .eyebrow { font-size:12px; font-weight:700; letter-spacing:1.5px; }
.resume-panel h2 { font-size:27px; }
.resume-panel h2,.resume-panel p { margin:0 0 .65rem; }
.resume-panel a { display:inline-flex; align-items:center; min-height:44px; font-weight:650; }
.focused-learning > [role=status]:empty { display:none; }
.lesson-layout { display:grid; grid-template-columns:minmax(14rem, 1fr) minmax(0, 3fr); gap:1.5rem; align-items:start; }
.lesson-layout .reading-layout { max-width:none; margin:0; min-width:0; }
.lesson-layout h1 { margin-top:1rem; }
.desktop-outline,.outline-drawer { background:white; border:1px solid #d4e3eb; border-radius:1rem; padding:1rem; }
.desktop-outline .outline-unit,.outline-drawer .outline-unit { background:hsl(var(--unit-hue) 65% 95%); border:1px solid hsl(var(--unit-hue) 42% 74%); border-radius:1rem; padding:.65rem; margin:.5rem 0; }
.desktop-outline { position:sticky; top:1rem; max-height:calc(100vh - 2rem); overflow:auto; }
.desktop-outline summary,.outline-drawer summary { padding:.5rem 0; font-weight:650; cursor:pointer; }
.desktop-outline a,.outline-drawer a { display:block; padding:.45rem .6rem; border-radius:.35rem; }
.outline-course { font-weight:750; margin-bottom:.4rem; }
.lesson-layout [aria-current=page] { color:#17665f; font-weight:700; }
.lesson-layout a[aria-current=page] { background:#e9f5f2; }
.outline-trigger { display:none; }
.outline-drawer { color:inherit; width:min(25rem,calc(100% - 2rem)); max-height:calc(100dvh - 2rem); overflow:auto; }
.outline-drawer[open] { display:flex; flex-direction:column; gap:.5rem; overflow:hidden; }
.outline-drawer > button { align-self:start; flex:none; }
.outline-drawer > nav { min-height:0; overflow:auto; padding:.3rem; }
.outline-drawer::backdrop { background:#18334880; }
.lesson-breadcrumb,.previous-next,.lesson-actions { display:flex; flex-wrap:wrap; gap:.35rem 1rem; align-items:center; }
.lesson-breadcrumb { font-size:.95rem; }
.previous-next,.lesson-actions { border-top:1px solid #dce5eb; margin-top:1rem; padding-top:.5rem; }
.previous-next a,.lesson-actions a { display:inline-flex; align-items:center; min-height:44px; }
@media(max-width:700px) {
 .lesson-layout { display:block; }
 .desktop-outline { display:none; }
 .outline-trigger { display:inline-block; margin:0 0 .75rem; }
}

.answer-attachments { margin-block: 1rem; }
.answer-attachments ul { padding-inline-start: 1.3rem; }
.answer-attachments li { margin-block: .45rem; }
.answer-attachments li > a, .answer-attachments li > button { margin-inline-start: .45rem; }
.attachment-image { display: block; max-width: min(100%, 600px); height: auto; margin-block: .5rem; }

/* Staff document editing uses the reading view inside a dedicated work surface. */
.document-selection { max-width: 100%; }
.document-editor, .staff-review { min-width: 0; }
.editor-fields { display: grid; gap: .4rem; }
.editor-fields textarea { resize: vertical; }
.text-formatting, .document-actions {
 display: flex; flex-wrap: wrap; gap: .45rem; margin-block: .8rem;
}
.text-formatting button, .document-actions button { margin: 0; }
.text-formatting [data-testid=format-bold] { font-weight: 750; }
.text-formatting [data-testid=format-italic] { font-style: italic; }
.symbol-picker, .document-editor details, .staff-review details {
 border: 1px solid #c9d8d0; border-radius: .5rem; padding: .7rem;
}
.symbol-picker > summary, .document-editor details > summary, .staff-review details > summary {
 cursor: pointer; font-weight: 650;
}
.symbol-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(44px,1fr)); gap: .3rem; margin-top: .5rem; }
.symbol-grid button { margin: 0; padding: .2rem; }
.document-editor .preview { max-width: 76ch; }
.document-editor details + details { margin-top: .5rem; }
.document-editor .editor-fields :is(input,textarea,select) { font-weight: 400; }
.document-editor .preview > h4 { font-size: clamp(1.25rem, 4.8vw, 1.65rem); margin: .7rem 0; }
.document-editor :is(.editor-fields,.symbol-picker) { max-width: 860px; }
.document-editor :is(.text-formatting,.symbol-grid,.document-actions) button,
.document-selection button, .staff-review .document-actions button {
 background: #1767a8; border-color: #1767a8;
}
.document-editor .preview { border: 2px solid #936100; }
.document-editor .preview > h5 { font-size: 1.1rem; }
.review-comparison-values { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .75rem; }
.review-comparison-values dt { font-weight: 700; }
.review-comparison-values dd { margin: .25rem 0 0; }
.review-comparison-values pre { white-space: pre-wrap; overflow-wrap: anywhere; }
@media(max-width:600px) { .review-comparison-values { grid-template-columns: 1fr; } }
.manage-navigation { display: inline-flex; margin: .4rem .8rem; }
.manage-navigation a { padding: .65rem 0; }
.dedicated-editor .document-selection { background: transparent; border: 0; padding: 0; max-width: 860px; }

/* Staff cards, roster tables and drill-down share the course layout. */
.management-jump { display: flex; flex-wrap: wrap; gap: .45rem; margin-block: .75rem; }
.management-jump button { width: auto; padding: .45rem .75rem; color: #205b4d; background: white; }
.management-panel { margin-block: 1.5rem; }
.management-subject { color: #17665f; font-weight: 700; }
.management-controls { border: 1px solid #d5e1e8; border-radius: .65rem; padding: 1rem; background: white; }
.management-fields { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%, 13rem),1fr)); gap: .5rem 1rem; }
.management-fields label { margin-block: .25rem .5rem; min-width: 0; }
.management-actions { display: flex; flex-wrap: wrap; gap: .4rem; margin-block-start: .4rem; }
.management-actions button { margin: 0; }
.management-form { padding: .75rem; margin-block: .75rem; border-color: #d5e1e8; }
.management-form label { margin-top: .25rem; }
.management-panel .access-account { margin-block: .7rem; }
.access-account summary { cursor: pointer; font-weight: 700; }
.access-table { width: 100%; border-collapse: collapse; table-layout: fixed; margin-block-start: .5rem; }
.access-table caption { text-align: left; padding: .35rem 0; color: #526277; }
.access-table :is(th,td) { padding: .5rem; text-align: left; border: 0; border-top: 1px solid #d5e1e8; }
.access-table button { padding: .35rem .5rem; margin: 0; }
.student-access-table th:nth-child(1) { width: 29%; }
.student-access-table th:nth-child(2) { width: 21%; }
.student-access-table th:nth-child(3) { width: 28%; }
.audit-events { padding-inline-start: 1.5rem; }
.audit-events li { border-bottom: 1px solid #d5e1e8; padding-block: .65rem; }
.audit-events p { margin: .25rem 0; }
.audit-events time { color: #526277; }
.statistics-filter { display: flex; flex-wrap: wrap; align-items: end; gap: .5rem 1rem; }
.statistics-filter label,.statistics-filter button { margin: 0; }
.statistics-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%, 22rem),1fr)); gap: .85rem; }
.statistics-card { margin: 0; }
.statistics-card-heading { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.statistics-card h5 { font-size: 1.05rem; margin: .3rem 0; }
.statistics-course { margin-block: 1rem; }
.statistics-course details { border-top: 1px solid #d5e1e8; padding: .5rem 0; }
.statistics-course summary { cursor: pointer; font-weight: 650; }
@media(max-width:600px) {
 .management-actions button { width: 100%; text-align: left; }
 .access-table :is(th,td) { padding: .35rem .2rem; font-size: .78rem; }
 .access-table button { padding-inline: .25rem; font-size: .8rem; }
 .statistics-filter label { width: 100%; }
}

/* The signed-in Learn pages use the pinned demo's visual rhythm. Account and
   permission checks remain in their existing server-backed components. */
.authenticated-shell { font-family:Inter,ui-sans-serif,system-ui,-apple-system,sans-serif; }
.authenticated-shell .topbar {
 position:sticky; top:0; z-index:5; width:100vw; margin-left:calc(50% - 50vw);
 min-height:76px; padding:14px max(24px,calc((100vw - 1240px)/2)); gap:36px;
 background:#fff; box-shadow:0 1px 3px #17344e08;
}
.authenticated-shell .topbar nav { gap:25px; }
.authenticated-shell .topbar nav a { font-weight:600; }
.authenticated-shell .topbar nav a[aria-current=page] { color:#294962; text-decoration:underline; }
.identity-compact { display:none; }
.authenticated-shell[data-area=learn] a { text-decoration:none; }
.authenticated-shell[data-area=learn] a:hover { text-decoration:underline; }
.authenticated-shell[data-area=learn] :where(button) { background:#1468b3; border-color:#1468b3; }
.authenticated-shell[data-area=learn] :where(button:hover:not(:disabled)) { background:#075293; }
.authenticated-shell[data-area=learn] :is(input,select,textarea) { border-color:#9baebd; color:#22364c; }
.authenticated-shell[data-area=learn] :focus-visible { outline-color:#e68d19; }
.authenticated-shell[data-area=learn] .muted { color:#5c7182; font-size:14px; }
.authenticated-shell[data-area=learn] .card { margin:0; }
.authenticated-shell[data-area=learn] .course-grid { margin-top:0; }
.authenticated-shell[data-area=learn] .courses-home { padding-top:19px; }
.authenticated-shell[data-area=learn] .course-page { padding-top:18px; }
.authenticated-shell[data-area=learn] h1[tabindex='-1']:focus { outline:none; }
.authenticated-shell[data-area=learn] .resume-panel { padding:40px 34px 19px; }
.authenticated-shell[data-area=learn] .resume-panel .eyebrow { margin-bottom:19px; }
.authenticated-shell[data-area=learn] .course-row > a { min-height:0; padding:0; }
.authenticated-shell[data-area=learn] .resume-panel a { font-weight:400; }
.authenticated-shell[data-area=learn] .linear-progress progress {
 appearance:none; -webkit-appearance:none; border:0; border-radius:1rem; overflow:hidden;
}
.authenticated-shell[data-area=learn] .linear-progress progress::-webkit-progress-bar { background:#e1e6eb; border-radius:1rem; }
.authenticated-shell[data-area=learn] .linear-progress progress::-webkit-progress-value { background:#2369ae; border-radius:1rem; }
.authenticated-shell[data-area=learn] .linear-progress[data-empty=true] progress::-webkit-progress-bar { background:#444; }
.authenticated-shell[data-area=learn] .topic-row { justify-content:initial; }
.authenticated-shell[data-area=learn] .topic-row > a { flex:1 1 auto; font-size:19px; }
.authenticated-shell[data-area=learn] .topic-row .progress-ring { order:-1; }
.authenticated-shell[data-area=learn] .progress-ring { flex:0 0 42px; width:42px; height:42px; color:#24364b; margin-right:.25rem; }
.authenticated-shell[data-area=learn] .progress-ring {
 border-radius:50%; background:radial-gradient(closest-side,#fff 73%,transparent 76%),
 conic-gradient(var(--ring-color,#8b949e) var(--progress),#e1e6eb 0);
}
.authenticated-shell[data-area=learn] .progress-ring > :is(svg,span) { display:none; }
.authenticated-shell[data-area=learn] .progress-ring[data-stage=read] { --ring-color:#c43e3e; }
.authenticated-shell[data-area=learn] .progress-ring[data-stage=submitted] { --ring-color:#e3b400; }
.authenticated-shell[data-area=learn] .progress-ring[data-stage=complete] { --ring-color:#20845a; }
.authenticated-shell[data-area=learn] .ring-track { stroke:#e1e6eb; }
.authenticated-shell[data-area=learn] .ring-value { stroke:#8b949e; }
.authenticated-shell[data-area=learn] .progress-ring[data-stage=read] .ring-value { stroke:#c43e3e; }
.authenticated-shell[data-area=learn] .progress-ring[data-stage=submitted] .ring-value { stroke:#e3b400; }
.authenticated-shell[data-area=learn] .progress-ring[data-stage=complete] .ring-value { stroke:#20845a; }
.authenticated-shell[data-area=learn] .lesson-layout { grid-template-columns:245px minmax(0,790px); gap:45px; }
.authenticated-shell[data-area=learn] .demo-reading { border:0; border-radius:0; background:transparent; padding:0 0 40px; max-width:790px; }
.authenticated-shell[data-area=learn] .demo-reading .lesson-breadcrumb { font-size:13px; color:#637787; }
.authenticated-shell[data-area=learn] .demo-reading > h1 { font-size:37px; margin:26px 0 12px; }
.authenticated-shell[data-area=learn] .demo-reading > h1[data-number]::before { content:attr(data-number) ' '; }
.authenticated-shell[data-area=learn] .demo-reading .lesson-text { font-size:18px; line-height:1.9; margin:24px 0; }
.authenticated-shell[data-area=learn] .demo-reading figure { margin:32px 0; }
.authenticated-shell[data-area=learn] .demo-reading img { max-width:100%; border-radius:5px; }
.authenticated-shell[data-area=learn] .demo-reading .lesson-progress { border:0; padding:0; margin:.7rem 0 1rem; gap:.35rem; align-items:center; }
.authenticated-shell[data-area=learn] .demo-reading .lesson-progress .progress-ring { flex-basis:42px; }
.authenticated-shell[data-area=learn] .demo-reading .lesson-progress p { display:inline-block; margin:.2rem .35rem .2rem 0; border-radius:1rem; background:#edf2f6; padding:.25rem .6rem; font-size:12px; }
.authenticated-shell[data-area=learn] .demo-reading .lesson-progress button { background:#fff; color:#087c78; border-color:#98bfbb; font-size:12px; padding:.35rem .65rem; min-height:44px; }
.authenticated-shell[data-area=learn] .demo-reading .lesson-progress button:hover { background:#e7f4f3; }
.authenticated-shell[data-area=learn] .demo-reading form { max-width:none; border-color:#d6e1e9; background:#f7fafc; border-radius:8px; margin:1.5rem 0; padding:24px; }
.authenticated-shell[data-area=learn] .demo-reading form > h2 { font-size:12px; font-weight:700; letter-spacing:1.5px; text-transform:uppercase; }
.authenticated-shell[data-area=learn] .desktop-outline { top:calc(var(--topbar-height,76px) + 16px); max-height:calc(100vh - var(--topbar-height,76px) - 26px); }
.authenticated-shell[data-area=learn] .bank-question-nav { top:calc(var(--topbar-height,76px) + 16px); }
.authenticated-shell[data-area=learn] .outline-topic-row { display:flex; align-items:center; min-width:0; gap:.15rem; }
.authenticated-shell[data-area=learn] .outline-topic-row a { flex:1; min-width:0; }
.authenticated-shell[data-area=learn] .outline-topic-row .progress-ring { flex:0 0 32px; width:32px; height:32px; font-size:9px; margin:0; }
.authenticated-shell[data-area=learn] .outline-drawer[open] { position:fixed; inset:0 auto 0 0; margin:0; width:min(360px,95vw); max-height:100dvh; border-radius:0; }
.authenticated-shell[data-area=learn] nav[aria-label='Your courses'] ul { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.6rem; padding:0; list-style:none; }
.authenticated-shell[data-area=learn] nav[aria-label='Your courses'] li button { background:#f7fafc; color:#1468b3; border:1px solid #d8e3eb; width:100%; text-align:left; margin:0; }
.authenticated-shell[data-area=learn] nav[aria-label='Your courses'] li button:hover { background:#eaf3fa; }
.authenticated-shell[data-area=learn] .bank-toolbar { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:.5rem; }
.authenticated-shell[data-area=learn] .bank-toolbar h1 { margin:24px 0 16px; }
.authenticated-shell[data-area=learn] .bank-toolbar button { font-size:13px; padding:.45rem .65rem; }
.authenticated-shell[data-area=learn] [data-testid=bank-notice]:empty,
.authenticated-shell[data-area=learn] [data-testid=notebook-notice]:empty { margin:0; }
.authenticated-shell[data-area=learn] .correction-sitting { background:#f4f8fb; border-color:#ccdce8; }
.authenticated-shell[data-area=learn] .bank-question-center { background:transparent; border:0; padding:0; margin:0; }
.authenticated-shell[data-area=learn] .practice-question-card { background:#f7fafc; border-color:#d6e1e9; padding:24px; margin:0; }
.authenticated-shell[data-area=learn] .notebook-practice-layout .practice-question-card { background:white; }
.authenticated-shell[data-area=learn] .question-kicker { font-size:12px; letter-spacing:1.5px; font-weight:750; text-transform:uppercase; margin:0 0 16px; }
.authenticated-shell[data-area=learn] .question-context { border-left:3px solid #6485a4; background:#edf3f7; padding:18px; margin:0 0 18px; }
.authenticated-shell[data-area=learn] .question-context-title { font-size:18px; font-weight:700; margin:0 0 16px; }
.authenticated-shell[data-area=learn] .question-context > p:last-child { margin-bottom:0; }
.authenticated-shell[data-area=learn] .question-prompt { font-size:21px; font-weight:700; line-height:1.3; margin:.5rem 0 1rem; }
.authenticated-shell[data-area=learn] .question-answer-form { background:transparent; border:0; padding:0; margin:1rem 0 0; max-width:100%; }
.authenticated-shell[data-area=learn] .question-answer-form label { font-weight:400; }
.authenticated-shell[data-area=learn] .question-answer-form .numeric-answer { width:min(100%,220px); }
.authenticated-shell[data-area=learn] .bank-topic-status button { background:#fff; color:#087c78; border-color:#98bfbb; }
.authenticated-shell[data-area=learn] .bank-topic-status button:hover { background:#e7f4f3; }
.authenticated-shell[data-area=learn] .bank-question-nav button[aria-current]:not([data-answer-status]) { background:#1468b3; color:#fff; }

@media(max-width:850px) {
 .authenticated-shell .topbar { flex-wrap:wrap; gap:15px; padding:12px 20px; }
 .authenticated-shell .topbar nav { order:3; flex-basis:100%; gap:17px; font-size:14px; }
 .authenticated-shell[data-area=learn] .lesson-layout { display:block; }
 .authenticated-shell[data-area=learn] .desktop-outline { display:none; }
 .authenticated-shell[data-area=learn] .outline-trigger { display:inline-block; margin:0 0 .75rem; }
}
@media(max-width:700px) {
 .authenticated-shell[data-area=learn] .bank-practice-layout { display:flex; flex-direction:column; }
 .authenticated-shell[data-area=learn] .bank-question-nav { order:-1; position:static; width:100%; }
}
@media(max-width:600px) {
 .authenticated-shell .topbar { display:grid; grid-template-columns:auto minmax(0,1fr); gap:0 12px; padding:12px 20px; }
 .authenticated-shell .topbar .brand { grid-column:1; grid-row:1; }
 .authenticated-shell .topbar .session-controls { grid-column:2; grid-row:1; justify-content:flex-end; gap:.35rem; }
 .authenticated-shell .topbar .session-controls p { max-width:calc(100% - 80px); min-width:0; font-size:12px; white-space:normal; overflow-wrap:anywhere; }
 .authenticated-shell .topbar .session-controls button { padding:.35rem .55rem; font-size:12px; }
 .authenticated-shell .topbar nav { grid-column:1 / -1; grid-row:2; display:flex; flex-wrap:nowrap; gap:8px; font-size:12px; }
 .authenticated-shell .topbar nav a { display:inline-flex; align-items:center; min-height:44px; padding:0; }
 .identity-full { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
 .identity-compact { display:inline; }
 .authenticated-shell[data-area=learn] .resume-panel { padding:39px 22px 0; }
 .authenticated-shell[data-area=learn] .resume-panel h2 { margin-bottom:0; }
 .authenticated-shell[data-area=learn] .topic-row { display:grid; grid-template-columns:42px minmax(0,1fr); align-items:center; }
 .authenticated-shell[data-area=learn] .topic-row > a { grid-column:2; min-width:0; }
 .authenticated-shell[data-area=learn] .topic-row > .progress-ring { grid-column:1; grid-row:1; }
 .authenticated-shell[data-area=learn] .topic-row > .muted { grid-column:1; }
 .authenticated-shell[data-area=learn] .lesson-layout .demo-reading { padding:0; }
 .authenticated-shell[data-area=learn] .demo-reading > h1 { font-size:30px; }
 .authenticated-shell[data-area=learn] .demo-reading .lesson-text { font-size:17px; }
 .authenticated-shell[data-area=learn] nav[aria-label='Your courses'] ul { grid-template-columns:1fr; }
 .authenticated-shell[data-area=learn] .bank-toolbar { align-items:flex-start; }
 .authenticated-shell[data-area=learn] .bank-toolbar h1 { margin:8px 0; font-size:26px; }
 .authenticated-shell[data-area=learn] .bank-toolbar button { max-width:125px; min-height:44px; }
 .authenticated-shell[data-area=learn] .bank-filters { display:grid; grid-template-columns:105px minmax(0,1fr); gap:0 8px; }
 .authenticated-shell[data-area=learn] .bank-filters label { margin:.1rem 0; }
 .authenticated-shell[data-area=learn] .bank-filters select { width:100%; min-height:44px; }
 .authenticated-shell[data-area=learn] .bank-filters .bank-full-filter { grid-column:1 / -1; }
 .authenticated-shell[data-area=learn] .bank-actions { margin:.3rem 0; }
 .authenticated-shell[data-area=learn] [data-testid=bank-result-count] { margin:.2rem 0; }
 .authenticated-shell[data-area=learn] .bank-practice-layout { margin-top:.3rem; }
 .authenticated-shell[data-area=learn] .bank-topic-status { margin:.1rem 0; }
 .authenticated-shell[data-area=learn] .practice-question-card { padding:.8rem; }
 .authenticated-shell[data-area=learn] .question-kicker { margin:0 0 .3rem; }
 .authenticated-shell[data-area=learn] .question-context { padding:.55rem .75rem; margin-bottom:.55rem; }
 .authenticated-shell[data-area=learn] .question-context-title { margin:0 0 .35rem; font-size:16px; }
 .authenticated-shell[data-area=learn] .question-context p { margin:.35rem 0; }
 .authenticated-shell[data-area=learn] .question-prompt { font-size:18px; margin:.4rem 0; }
 .authenticated-shell[data-area=learn] .question-answer-form { margin:.5rem 0 0; }
 .authenticated-shell[data-area=learn] .correction-sitting { margin:.4rem 0; }
}

/* Isolated current-platform preview: approved Manage A + list/detail C layout. */
:root:has(.authenticated-shell[data-area=manage]) { background:#f3f4ef; color:#223c32; }
main.authenticated-shell[data-area=manage] { max-width:none; padding:0; }
.authenticated-shell .separate-preview-indicator { font-size:10px; color:#657568; margin:0; flex-basis:100%; line-height:1.3; }
.authenticated-shell[data-area=manage] .topbar { padding:14px 32px 10px; min-height:76px; gap:12px 24px; background:#fafbf8; }
.authenticated-shell[data-area=manage] .topbar .brand { margin-right:auto; }
.authenticated-shell[data-area=manage] > nav[aria-label='Workspace areas'] { margin:0; padding:8px 32px; background:#fafbf8; border-bottom:1px solid #e1e5df; gap:20px; }
.authenticated-shell[data-area=manage] > nav[aria-label='Workspace areas'] button { color:#627268; background:transparent; border:0; margin:0; width:auto; padding:5px 0; font-size:13px; }
.authenticated-shell[data-area=manage] > nav[aria-label='Workspace areas'] button[aria-pressed=true] { color:#153f32; border-bottom:2px solid #153f32; border-radius:0; outline:0; }
.management-layout { display:grid; grid-template-columns:222px minmax(0,1fr); min-height:calc(100dvh - 134px); }
.management-sidebar { background:#153f32; color:#e5ede7; padding:30px 18px; }
.management-sidebar-title { font-size:20px; font-weight:600; margin:0 15px 24px; }
.management-sidebar-subject { color:#b4c9bc; font-size:12px; margin:-14px 15px 20px; text-transform:capitalize; }
.management-sidebar nav { display:grid; gap:5px; }
.management-sidebar nav button { display:block; width:100%; text-align:left; font-size:13px; font-weight:400; background:transparent; border:0; color:#d0ded5; margin:0; padding:10px 15px; outline-offset:-3px; }
.management-sidebar nav button:hover { background:#214e3e; }
.management-sidebar nav button[aria-current=page] { background:#315849; color:#fff; font-weight:600; outline:0; }
.management-mobile-select { display:none; }
.management-stage { min-width:0; padding:32px 38px 50px; max-width:1600px; width:100%; margin:auto; align-self:start; }
.authenticated-shell .management-stage > h1 { margin:0 0 24px; font-size:29px; font-weight:600; letter-spacing:-.7px; }
.management-body { min-width:0; }
.management-body [aria-label='Staff workspace'] > div:first-child { display:flex; justify-content:flex-end; }
.management-body [aria-label='Staff workspace'] > div:first-child button { margin:0 0 14px; padding:5px 10px; font-size:11px; background:transparent; color:#627268; border-color:#d5ddd2; }
.management-body [role=status]:empty { display:none; }
.management-body [data-manage-panel] > h2:first-child { margin:0 0 12px; font-size:20px; }
.management-body [data-manage-panel] > h2:first-child:has(+.management-list-filters),
.management-body .staff-review > h2 { display:none; }
.management-body .management-subject { display:none; }
.management-body button { background:#153f32; border-color:#153f32; font-size:13px; }
.management-body :is(form,article,.panel,.card) { border-color:#dce3d8; }
.management-body .management-list-filters { display:flex; align-items:end; gap:14px; margin:0 0 18px; }
.management-list-filters label { font-size:11px; font-weight:500; color:#68766a; margin:0; min-width:0; }
.management-list-filters label:first-child { flex:1; }
.management-list-filters :is(input,select) { background:#fafbf8; border-color:#d5ddd2; color:#223c32; font-size:13px; min-height:44px; }
.management-split { display:grid; grid-template-columns:minmax(230px,.8fr) minmax(0,1.4fr); gap:22px; align-items:start; }
.management-list,.management-detail { min-width:0; background:#fafbf8; border:1px solid #dfe5da; border-radius:8px; }
.management-list { overflow:hidden; max-height:calc(100dvh - 260px); overflow-y:auto; }
.management-body .management-queue-row { width:100%; display:block; text-align:left; background:transparent; color:#223c32; border:0; border-bottom:1px solid #e1e5df; border-radius:0; margin:0; padding:18px 19px; font-weight:400; outline-offset:-3px; }
.management-body .management-queue-row:hover { background:#f0f3ed; }
.management-body .management-queue-row[aria-pressed=true] { background:#eaf0e7; box-shadow:inset 3px 0 #153f32; outline:0; }
.management-queue-row strong { display:block; font-size:13px; font-weight:600; }
.management-row-meta,.management-row-question { display:block; font-size:11px; color:#6a786c; margin-top:5px; }
.management-row-question { color:#405445; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:3; overflow:hidden; }
.management-detail { padding:25px; }
.management-detail .review-content { background:transparent; border:0; padding:0; margin:0; }
.management-detail .marking-content > h2,.management-detail .review-content > h3 { margin:0 0 10px; font-size:19px; }
.management-detail form { max-width:none; }
.management-detail .document-actions { display:flex; flex-wrap:wrap; gap:6px; }
.management-empty { color:#6e7c70; font-size:13px; padding:25px 20px; margin:0; }
.management-body .management-back { display:none; }
.management-body .staff-review > p { font-size:12px; color:#6e7c70; }
.management-body .management-panel { margin-bottom:24px; }
.management-body .management-panel .management-controls { background:#fafbf8; }
.management-body .access-table { width:100%; }
.management-body .access-table th,.management-body .access-table td { border-color:#dfe5da; }
@media(max-width:1050px) {
 .management-layout { grid-template-columns:190px minmax(0,1fr); }
 .management-stage { padding:28px 24px; }
 .management-split { grid-template-columns:minmax(200px,.8fr) minmax(0,1.2fr); gap:15px; }
 .management-detail { padding:20px; }
}
@media(max-width:760px) {
 .authenticated-shell[data-area=manage] .topbar { padding:12px 18px; }
 .authenticated-shell[data-area=manage] > nav[aria-label='Workspace areas'] { padding:4px 18px; }
 .management-layout { display:block; min-height:0; }
 .management-sidebar { display:flex; align-items:center; justify-content:space-between; gap:15px; padding:12px 18px; }
 .management-sidebar-title { margin:0; font-size:18px; }
 .management-sidebar-subject,.management-sidebar nav { display:none; }
 .management-mobile-select { display:block; font-size:10px; color:#bbccbf; margin:0; font-weight:400; }
 .management-mobile-select select { background:#315849; color:#fff; border-color:#587361; font-size:12px; padding:7px; width:185px; min-height:44px; margin:0; }
 .management-stage { padding:24px 17px; }
 .authenticated-shell .management-stage > h1 { font-size:26px; margin-bottom:18px; }
 .management-split { display:block; }
 .management-list { max-height:none; }
 .management-split.has-selection .management-list { display:none; }
 .management-split:not(.has-selection) .management-detail { display:none; }
 .management-body .management-back { display:inline-block; background:transparent; color:#153f32; border-color:#cdd6cb; margin:0 0 20px; font-size:12px; }
 .management-body .management-list-filters { gap:9px; }
 .management-list-filters label:first-child { flex:1; }
 .management-list-filters label:last-child:not(:first-child) { max-width:140px; }
 .management-detail { padding:20px 16px; }
 .management-body .management-controls,.management-body .management-fields { min-width:0; }
}
.management-intro { color:#758078; font-size:13px; margin:0 0 24px; }
.management-overview-cards { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; margin-bottom:26px; }
.management-overview-card { padding:24px; background:#fafbf8; border:1px solid #e1e5df; border-radius:8px; min-width:0; }
.management-body .management-overview-card h2 { font-size:12px; font-weight:500; color:#758078; margin:0; }
.management-metric { font-size:36px; font-weight:550; line-height:1.2; margin:12px 0 18px; }
.management-body .management-overview-card button { border:0; border-bottom:1px solid #8c9d8c; background:transparent; color:#153f32; border-radius:0; padding:5px 0; font-size:12px; }
.management-body .management-overview-summary h2 { font-size:18px; color:#223c32; }
@media(max-width:900px) { .management-overview-cards { grid-template-columns:1fr; gap:12px; } }
.management-sidebar nav button:focus-visible,.management-body .management-queue-row:focus-visible { outline:3px solid #b78c4c; outline-offset:-4px; }
/* Keep the area switch reachable while focused detail headings scroll below it. */
.authenticated-shell[data-area=manage] > nav[aria-label='Workspace areas'] { position:sticky; top:var(--topbar-height,76px); z-index:4; }
.management-stage :is(h1,h2,h3,input,select,textarea,button) { scroll-margin-top:calc(var(--topbar-height,76px) + 90px); }
.authenticated-shell[data-area=manage] > nav[aria-label='Workspace areas'] button:focus-visible { outline:3px solid #b78c4c; outline-offset:2px; }

/* Shared preview design: the same shell and quiet surfaces in every area. */
:root:has(.authenticated-shell) { color:#223c32; background:#f3f4ef; }
main.authenticated-shell { max-width:none; padding:0; font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif; }
.authenticated-shell .topbar { width:100%; margin-left:0; padding:14px 32px 10px; min-height:76px; gap:12px 24px; background:#fafbf8; border-color:#e1e5df; box-shadow:none; }
.authenticated-shell .topbar .brand { color:#153f32; margin-right:auto; font-size:25px; font-weight:650; letter-spacing:1px; }
.authenticated-shell .session-controls { font-size:12px; }
.authenticated-shell .session-controls button { background:transparent; color:#153f32; border-color:#cdd6cb; padding:6px 12px; font-size:12px; }
.authenticated-shell > nav[aria-label='Workspace areas'] { position:sticky; top:var(--topbar-height,76px); z-index:4; margin:0; padding:8px 32px; background:#fafbf8; border-bottom:1px solid #e1e5df; gap:20px; }
.authenticated-shell > nav[aria-label='Workspace areas'] button { color:#627268; background:transparent; border:0; margin:0; width:auto; padding:5px 0; font-size:13px; }
.authenticated-shell > nav[aria-label='Workspace areas'] button[aria-pressed=true] { color:#153f32; border-bottom:2px solid #153f32; border-radius:0; outline:0; }
.authenticated-shell > nav[aria-label='Workspace areas'] button:focus-visible { outline:3px solid #b78c4c; outline-offset:2px; }
.area-layout { display:grid; grid-template-columns:222px minmax(0,1fr); min-height:calc(100dvh - 134px); }
.area-sidebar { position:sticky; top:calc(var(--topbar-height,76px) + 62px); align-self:start; min-height:calc(100dvh - var(--topbar-height,76px) - 62px); }
.area-sidebar nav a { display:flex; align-items:center; width:100%; min-height:44px; padding:10px 15px; color:#d0ded5; border-radius:5px; text-decoration:none; font-size:13px; line-height:1.55; }
.authenticated-shell[data-area=learn] .area-sidebar nav a { text-decoration:none; }
.area-sidebar nav a:hover { background:#214e3e; }
.area-sidebar nav a[aria-current=page] { background:#315849; color:#fff; font-weight:600; }
.area-sidebar nav a:focus-visible { outline:3px solid #b78c4c; outline-offset:-4px; }
.area-stage { min-width:0; width:100%; max-width:1600px; padding:32px 38px 50px; margin:0 auto; font-size:15px; }
.authenticated-shell .area-stage h1 { font-size:29px; font-weight:600; letter-spacing:-.7px; margin:0 0 24px; }
.authenticated-shell .area-stage h2 { font-size:21px; font-weight:600; }
.area-stage :is(h1,h2,h3,input,select,textarea,button) { scroll-margin-top:calc(var(--topbar-height,76px) + 90px); }
.authenticated-shell .area-stage :is(input,select,textarea) { background:#fafbf8; border-color:#c4cfc1; color:#223c32; font-size:14px; }
.authenticated-shell .area-stage :where(button):not([data-answer-status]) { background:#153f32; border-color:#153f32; font-size:13px; }
.authenticated-shell .area-stage :where(button:hover:not(:disabled)):not([data-answer-status]) { background:#214e3e; }
.authenticated-shell .area-stage :where(a) { color:#275e44; }
.authenticated-shell .area-stage :focus-visible { outline-color:#b78c4c; }
.authenticated-shell .area-stage .muted { color:#6e7c70; font-size:13px; }
.authenticated-shell .area-stage :is(.card,.panel,article,form,.bank-question-nav,.desktop-outline,.outline-drawer) { background:#fafbf8; border-color:#dfe5da; }
.authenticated-shell .area-stage .card { border-radius:8px; }
.authenticated-shell .area-stage .course-grid { grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr)); gap:18px; }
.authenticated-shell .area-stage :is(.courses-home,.course-page) { padding-top:0; }
.authenticated-shell .area-stage .course-row { border-color:#e1e5df; }
.authenticated-shell .area-stage .course-row > a { font-size:17px; }
.authenticated-shell .area-stage .resume-panel { margin:0 0 26px; padding:26px; background:#eaf0e7; border:1px solid #d8e2d3; border-left:3px solid #315849; border-radius:8px; }
.authenticated-shell .area-stage .resume-panel h2 { font-size:23px; }
.authenticated-shell .area-stage .resume-panel .eyebrow { font-size:11px; letter-spacing:1.3px; margin-bottom:14px; color:#657768; }
.authenticated-shell .area-stage :is(.unit-card,.desktop-outline .outline-unit,.outline-drawer .outline-unit) { background:#edf1e8; border-color:#d8e2d3; }
.authenticated-shell .area-stage .topic-row { background:#fafbf8; border-color:#dfe5da; padding:16px 20px; }
.authenticated-shell .area-stage .topic-row > a { font-size:17px; }
.authenticated-shell .area-stage .linear-progress progress::-webkit-progress-value { background:#52795d; }
.authenticated-shell .area-stage .linear-progress p { color:#6e7c70; font-size:12px; }
.authenticated-shell .area-stage .demo-reading { background:transparent; }
.authenticated-shell .area-stage .demo-reading > h1 { font-size:30px; }
.authenticated-shell .area-stage .lesson-text { font-size:18px; line-height:1.9; }
.authenticated-shell .area-stage :is(.question-context,.correction-sitting) { background:#eef1e8; border-color:#d7dfd1; }
.authenticated-shell .area-stage .question-context { border-left-color:#7c9579; }
.authenticated-shell .area-stage .practice-question-card { background:#fafbf8; border-color:#dfe5da; padding:24px; }
.authenticated-shell .area-stage .question-prompt { font-size:20px; }
.authenticated-shell .area-stage .question-answer-form { background:transparent; }
.authenticated-shell .area-stage .bank-topic-badge { background:#eaf0e7; }
.authenticated-shell .area-stage .bank-question-nav { top:calc(var(--topbar-height,76px) + 80px); }
.authenticated-shell .area-stage .desktop-outline { top:calc(var(--topbar-height,76px) + 80px); max-height:calc(100dvh - var(--topbar-height,76px) - 100px); }
.authenticated-shell .area-stage .bank-question-numbers button[aria-current] { box-shadow:0 0 0 2px #315849; }
.authenticated-shell[data-area=learn] .area-stage .bank-question-nav button[aria-current]:not([data-answer-status]) { background:#153f32; color:#fff; }
.authenticated-shell .area-stage .bank-question-numbers button[data-answer-status=unseen],
.authenticated-shell .area-stage .bank-question-numbers button[data-answer-status=saved] { background:#fff; color:#22364c; border-color:#b8c0ca; }
.authenticated-shell .area-stage .bank-question-numbers button[data-answer-status=seen] { background:#e4e7eb; color:#526277; border-color:#a5afba; }
.authenticated-shell .area-stage .bank-question-numbers button[data-answer-status=incorrect] { background:#fdecec; color:#8e2424; border-color:#bd3434; }
.authenticated-shell .area-stage .bank-question-numbers button[data-answer-status=correct] { background:#e8f5ec; color:#175d39; border-color:#20845a; }
.authenticated-shell .area-stage .bank-question-numbers button[data-answer-status=retried] { background:#fff1bd; color:#77500b; border-color:#b58220; }
.statistics-counting-guide { max-width:760px; padding:25px; border:1px solid #dfe5da; border-radius:8px; background:#fafbf8; }
.statistics-counting-guide p { font-size:16px; line-height:1.8; }
.authenticated-shell .area-stage .statistics-grid { grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr)); }
.authenticated-shell .area-stage .statistics-card-heading h5 { font-size:16px; }
.authenticated-shell .area-stage [role=status]:empty { display:none; }
@media(max-width:1100px) {
 .authenticated-shell[data-area=learn] .area-stage .lesson-layout { display:block; }
 .authenticated-shell[data-area=learn] .area-stage .desktop-outline { display:none; }
 .authenticated-shell[data-area=learn] .area-stage .outline-trigger { display:inline-block; }
}
@media(max-width:1050px) {
 .area-layout { grid-template-columns:190px minmax(0,1fr); }
 .area-stage { padding:28px 24px; }
}
@media(max-width:760px) {
 .authenticated-shell .topbar { padding:12px 18px; }
 .authenticated-shell > nav[aria-label='Workspace areas'] { padding:4px 18px; }
 .area-layout { display:block; min-height:0; }
 .area-sidebar { position:static; min-height:0; }
 .area-stage { padding:24px 17px; }
 .authenticated-shell .area-stage h1 { font-size:26px; margin-bottom:18px; }
 .authenticated-shell .area-stage .resume-panel { padding:22px; }
 .authenticated-shell .area-stage .lesson-text { font-size:17px; }
 .authenticated-shell .area-stage .bank-question-nav { position:static; }
 .authenticated-shell .area-stage .practice-question-card { padding:18px; }
 .authenticated-shell .area-stage .question-prompt { font-size:18px; }
 .authenticated-shell .area-stage .bank-filters select { width:100%; }
}
/* Personal-progress status colours remain the same after its Statistics move. */
.authenticated-shell[data-area=statistics] [aria-label='Learning workspace'] .progress-ring[data-stage=read] .ring-value { stroke:#c43e3e; }
.authenticated-shell[data-area=statistics] [aria-label='Learning workspace'] .progress-ring[data-stage=submitted] .ring-value { stroke:#e3b400; }
.authenticated-shell[data-area=statistics] [aria-label='Learning workspace'] .progress-ring[data-stage=complete] .ring-value { stroke:#20845a; }
/* Sidebar selects take precedence over Learn's generic field colours. */
.authenticated-shell .management-sidebar .management-mobile-select select { color:#fff; background:#315849; border-color:#587361; }

/* Statistics uses the same single-selection workspace as Manage. */
.statistics-toolbar { display:flex; justify-content:space-between; align-items:center; gap:16px; margin-bottom:18px; }
.authenticated-shell .area-stage .statistics-toolbar h2 { margin:0; font-size:20px; }
.authenticated-shell .area-stage .statistics-toolbar button { margin:0; background:transparent; border-color:#d5ddd2; color:#627268; padding:5px 10px; font-size:11px; }
.authenticated-shell .area-stage .statistics-roster-filters { display:grid; grid-template-columns:minmax(0,1fr) minmax(170px,.7fr) auto; align-items:end; gap:14px; max-width:none; margin:0 0 20px; padding:0; background:transparent; border:0; }
.statistics-roster-filters label { margin:0; font-size:11px; font-weight:500; color:#68766a; min-width:0; }
.statistics-roster-filters button { margin:0; }
.statistics-roster-count { margin:0; padding:13px 18px; color:#6e7c70; border-bottom:1px solid #e1e5df; font-size:12px; }
.statistics-split { grid-template-columns:minmax(220px,.72fr) minmax(0,1.6fr); }
.authenticated-shell .area-stage .statistics-split .management-queue-row { display:block; width:100%; text-align:left; background:transparent; color:#223c32; border:0; border-bottom:1px solid #e1e5df; border-radius:0; padding:18px 19px; margin:0; font-weight:400; }
.authenticated-shell .area-stage .statistics-split .management-queue-row:hover { background:#f0f3ed; }
.authenticated-shell .area-stage .statistics-split .management-queue-row[aria-pressed=true] { background:#eaf0e7; box-shadow:inset 3px 0 #153f32; outline:0; }
.authenticated-shell .area-stage .statistics-split .management-queue-row:focus-visible { outline:3px solid #b78c4c; outline-offset:-4px; }
.statistics-split .management-back { display:none; }
.statistics-student-detail > h3 { margin:0 0 5px; font-size:21px; font-weight:600; }
.statistics-student-detail > .muted { margin:0 0 18px; }
.statistics-student-detail > label { font-size:11px; color:#68766a; font-weight:500; }
.statistics-key-metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); border:1px solid #dfe5da; border-radius:6px; margin:20px 0; background:#f0f3eb; }
.statistics-key-metrics > div { padding:15px 10px; border-right:1px solid #dfe5da; min-width:0; }
.statistics-key-metrics > div:last-child { border:0; }
.statistics-key-metrics span { display:block; font-size:23px; font-weight:550; line-height:1.2; }
.statistics-key-metrics p { font-size:10px; line-height:1.4; margin:6px 0 0; color:#6e7c70; }
.statistics-tabs { display:flex; gap:20px; margin:0 0 20px; border-bottom:1px solid #dfe5da; }
.authenticated-shell .area-stage .statistics-tabs button { background:transparent; color:#6e7c70; border:0; border-radius:0; padding:8px 0; margin:0; font-size:12px; font-weight:500; }
.authenticated-shell .area-stage .statistics-tabs button[aria-selected=true] { color:#153f32; border-bottom:2px solid #153f32; }
.statistics-supporting-counts { font-size:12px; color:#6e7c70; line-height:1.8; }
.statistics-unit,.statistics-evidence { border-bottom:1px solid #e1e5df; padding:13px 0; }
.statistics-unit summary,.statistics-evidence > summary { cursor:pointer; font-size:13px; font-weight:500; padding:4px 0; }
.statistics-unit li { font-size:12px; margin:.6rem 0; }
.statistics-evidence .question-prompt { margin-top:20px; }
.statistics-history-event,.statistics-identifiers { margin:14px 0; padding:12px; background:#f0f3eb; border:1px solid #dfe5da; border-radius:5px; }
.statistics-history-event > summary,.statistics-identifiers > summary { cursor:pointer; font-size:12px; color:#627268; }
.statistics-identifiers p { font-size:11px; overflow-wrap:anywhere; margin:.5rem 0; }
@media(max-width:1050px) {
 .statistics-split { grid-template-columns:minmax(190px,.8fr) minmax(0,1.4fr); }
 .statistics-key-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .statistics-key-metrics > div { border-bottom:1px solid #dfe5da; }
 .statistics-key-metrics > div:nth-child(2) { border-right:0; }
 .statistics-key-metrics > div:nth-child(3) { border-bottom:0; }
}
@media(max-width:760px) {
 .authenticated-shell .area-stage .statistics-roster-filters { grid-template-columns:minmax(0,1fr) auto; gap:10px; }
 .statistics-roster-filters > label:first-child { grid-column:1 / -1; }
 .statistics-split .management-back { display:inline-block; background:transparent; color:#153f32; border-color:#cdd6cb; font-size:12px; margin:0 0 20px; }
 .statistics-toolbar { gap:10px; }
 .statistics-tabs { gap:22px; }
}
.authenticated-shell .area-stage .statistics-split .management-back { background:#fafbf8; color:#153f32; border-color:#cdd6cb; }
@media(max-width:760px) {
 .statistics-has-selection .statistics-roster-filters { display:none !important; }
}
/* Protected private chemistry library reuses the approved Manage workspace. */
.private-review-notice { color:#68766a; font-size:12px; margin:0 0 20px; }
.private-review-toolbar { display:flex; justify-content:space-between; align-items:center; gap:15px; margin-bottom:20px; }
.private-review-tabs { display:flex; gap:15px; }
.management-body .private-review-tabs button { background:transparent; color:#6e7c70; border:0; border-radius:0; font-size:13px; padding:7px 0; margin:0; }
.management-body .private-review-tabs button[aria-pressed=true] { color:#153f32; border-bottom:2px solid #153f32; outline:0; }
.management-body .private-review-toolbar > button { background:transparent; color:#627268; border-color:#d5ddd2; padding:5px 10px; font-size:11px; }
.private-review-filters { display:grid; grid-template-columns:minmax(0,1fr) minmax(130px,.6fr) minmax(170px,.9fr); gap:12px; margin-bottom:20px; }
.private-review-filters label { margin:0; color:#68766a; font-weight:500; font-size:11px; min-width:0; }
.private-review-count { margin:0; padding:13px 18px; color:#6e7c70; border-bottom:1px solid #e1e5df; font-size:12px; }
.private-review-split { grid-template-columns:minmax(230px,.75fr) minmax(0,1.7fr); }
.private-review-split .management-detail { overflow-wrap:anywhere; }
.private-review-split .management-detail > h2 { font-size:24px; margin-top:0; line-height:1.3; }
.private-review-split .management-detail .lesson-text { font-size:17px; line-height:1.85; }
.private-review-evidence { font-size:12px; margin-top:25px; }
.private-review-evidence pre { white-space:pre-wrap; max-height:350px; overflow:auto; font-size:11px; }
.private-review-practice { display:inline-flex; align-items:center; min-height:44px; margin:15px 0; }
.bank-part-label { font-weight:600; font-size:13px; }
.science-image-trigger { display:block; padding:0; border:0; border-radius:.3rem; background:transparent; width:fit-content; max-width:100%; margin:auto; cursor:zoom-in; }
.science-image-trigger:is(:hover,:active) { background:transparent; }
.science-image-trigger:focus-visible { outline:3px solid #216253; outline-offset:4px; }
.lesson-example { min-width:0; margin:1.25rem 0; padding:1rem clamp(.8rem,3vw,1.5rem); background:#eaf4ed; border-inline-start:4px solid #40815d; border-radius:.55rem; }
.lesson-example > :first-child { margin-block-start:0; }
.lesson-example > :last-child { margin-block-end:0; }
.lesson-example :is(.lesson-equation,.table-scroll) { max-width:100%; overflow-x:auto; }
.science-image-dialog { width:min(1300px,96vw); max-width:96vw; padding:16px; border:1px solid #aabda6; border-radius:8px; background:#fafbf8; color:#223c32; }
.science-image-dialog::backdrop { background:#153f32b3; }
.science-image-controls { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:10px; }
.science-image-controls button { font-size:12px; }
.science-image-viewport { max-height:78dvh; overflow:auto; overscroll-behavior:contain; touch-action:pan-x pan-y; }
.science-image-viewport img { display:block; max-width:none !important; height:auto; margin:0; }
@media(max-width:1050px) { .private-review-filters { grid-template-columns:1fr 1fr; } .private-review-filters > label:first-child { grid-column:1 / -1; } }
@media(max-width:760px) { .private-review-toolbar { align-items:start; gap:8px; } .private-review-split .management-detail { padding:18px; } .private-review-filters { gap:9px; } }
.private-review-evaluation-badge { display:inline-block; padding:6px 10px; border-radius:5px; background:#f3ecd9; color:#806532; font-size:12px; font-weight:600; }
.management-body .private-review-tabs button:focus-visible { outline:3px solid #b78c4c; outline-offset:3px; }
/* Preserve readable scientific table cells; narrow screens pan the local table. */
.authenticated-shell .table-scroll table { width:max-content; min-width:100%; }
.authenticated-shell .table-scroll :is(th,td) { min-width:7rem; overflow-wrap:normal; word-break:normal; }
@media(max-width:760px) {
 .private-review-toolbar { flex-wrap:wrap; }
 .private-review-tabs { flex:1 1 100%; justify-content:space-between; }
 .private-review-tabs button { white-space:nowrap; }
 .private-review-toolbar > button { margin-left:auto; }
}

/* Crop previews remain readable at the lesson width and on narrow screens. */
.question-crop-editor input:not([type=checkbox]){max-width:100%;box-sizing:border-box}.crop-rectangle{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.7rem}.crop-rectangle label{min-width:0}.crop-source-host img,.crop-preview canvas,.crop-saved-preview{display:block;max-width:100%;height:auto}.crop-source-host{max-height:320px;overflow:auto;border:1px solid var(--line,#ddd)}.crop-preview{margin:1rem 0}.crop-version{margin:1rem 0}.question-crop-editor label{display:block;margin:.6rem 0}.question-crop-editor input[type=checkbox]{margin-right:.5rem}

/* Neutral response headings stay inside the existing local table scroller. */
.response-format { min-width:0; max-width:100%; }
.authenticated-shell .response-format .response-format-row { min-width:2rem; width:2rem; }

/* One closed workspace drawer at every viewport; contextual lesson/question controls stay in place. */
body:has(.workspace-drawer[open]) { overflow:hidden; }
.authenticated-shell .area-layout,.authenticated-shell .management-layout { display:block; }
.workspace-drawer { box-sizing:border-box; position:fixed; inset:0 auto 0 0; margin:0; width:min(320px,calc(100vw - 40px)); height:100dvh; max-height:100dvh; max-width:none; padding:22px 18px; border:0; background:#224b3a; color:#fff; overflow-y:auto; }
.workspace-drawer::backdrop { background:rgb(0 0 0 / 45%); }
.workspace-drawer:not([open]) { display:none; }
.workspace-menu-toggle,.workspace-menu-close { min-width:44px; min-height:44px; }
.workspace-menu-toggle { margin:0 12px 0 0; font-size:24px; }
.workspace-menu-close { display:block; margin:0 0 20px auto; font-size:26px; }
.workspace-drawer nav { display:grid; gap:5px; }
.authenticated-shell .workspace-drawer nav :is(a,button) { box-sizing:border-box; display:block; width:100%; min-height:44px; margin:0; padding:12px; color:#fff; background:transparent; border:0; text-align:left; text-decoration:none; border-radius:5px; }
.authenticated-shell .workspace-drawer nav :is(a,button):hover,.authenticated-shell .workspace-drawer nav [aria-current=page],.authenticated-shell .workspace-drawer nav [aria-pressed=true] { background:#3d6351; }
.workspace-drawer .management-sidebar { display:block; position:static; width:auto; padding:22px 0 0; background:transparent; border:0; }
.workspace-drawer .management-sidebar nav { display:grid; }
.workspace-drawer .management-sidebar-title { margin:0 0 12px; }
.workspace-drawer [hidden] { display:none !important; }
.workspace-drawer :focus-visible { outline:2px solid #fff; outline-offset:-3px; }
@media(max-width:600px) {
 .authenticated-shell .topbar { grid-template-columns:44px auto minmax(0,1fr); gap:0 8px; }
 .authenticated-shell .topbar .workspace-menu-toggle { grid-column:1; grid-row:1; margin:0; padding:6px; }
 .authenticated-shell .topbar .brand { grid-column:2; grid-row:1; margin:0; }
 .authenticated-shell .topbar .session-controls { grid-column:3; grid-row:1; min-width:0; }
}

.authenticated-shell .workspace-menu-toggle,.authenticated-shell .workspace-menu-close { color:#fff; background:#205b4d; border-color:#205b4d; }
.authenticated-shell .workspace-drawer [aria-pressed=true] { outline:0; }
.authenticated-shell .workspace-drawer :focus-visible { outline:2px solid #fff; outline-offset:-3px; }
/* The existing secure workspace owns layout; editorial additions stay within it. */
.lesson-credits {display:flex;flex-wrap:wrap;gap:1.2rem;margin:.75rem 0 1.4rem;align-items:center;}
.lesson-curriculum-labels {display:flex;flex-wrap:wrap;gap:.4rem;list-style:none;padding:0;margin:0 0 .75rem;}
.lesson-curriculum-labels li {max-width:100%;padding:.22rem .65rem;border-radius:1rem;background:#edf0f5;color:#30405a;font-size:.83rem;font-weight:600;overflow-wrap:anywhere;}
.lesson-curriculum-labels [data-course=IGCSE] {background:#d9f2ea;color:#125342;}
.lesson-curriculum-labels [data-course='IGCSE FP'] {background:#e3f4da;color:#285617;}
.lesson-curriculum-labels [data-course=AS] {background:#e8e9fd;color:#383473;}
.lesson-curriculum-labels [data-course=A2] {background:#f9e5f0;color:#792a51;}
.lesson-curriculum-labels [data-course^=P] {background:#dfeefc;color:#1d4e79;}
.lesson-curriculum-labels [data-course=P2] {background:#cfe4fb;}
.lesson-curriculum-labels [data-course=P3] {background:#bcdbf8;}
.lesson-curriculum-labels [data-course=P4] {background:#add2f5;}
.lesson-curriculum-labels [data-course^=FP] {background:#eee5f8;color:#593481;}
.lesson-curriculum-labels [data-course=FP2] {background:#e6d7f6;}
.lesson-curriculum-labels [data-course=FP3] {background:#dcc8f2;}
.lesson-curriculum-labels [data-course^=S] {background:#f9ecd3;color:#684606;}
.lesson-curriculum-labels [data-course=S2] {background:#f8e2ba;}
.lesson-curriculum-labels [data-course=S3] {background:#f4d8a0;}
.lesson-curriculum-labels [data-course^=M] {background:#fbe6df;color:#80382b;}
.lesson-curriculum-labels [data-course=M2] {background:#f7d8ce;}
.lesson-curriculum-labels [data-course=M3] {background:#f5cbbd;}
.lesson-credit {display:flex;gap:.6rem;align-items:center;}
.lesson-credit small,.lesson-credit strong {display:block;}
.lesson-credit small {font-size:.75rem;color:#5b6d66;}
.lesson-avatar {display:grid;place-items:center;width:2.4rem;height:2.4rem;border-radius:50%;background:#e3ede6;color:#205b4d;font-weight:700;flex-shrink:0;}
.lesson-edit-actions {display:flex;gap:.4rem;flex-wrap:wrap;}
.pending-queue-badge {display:inline-grid;place-items:center;min-width:1.5rem;height:1.5rem;padding:0 .35rem;margin-left:.6rem;border-radius:1rem;background:#b42332;color:#fff;font-size:.8rem;font-weight:700;}
.workflow-row {display:flex;flex-wrap:wrap;justify-content:space-between;gap:.5rem;padding:1rem;margin:.5rem 0;}
.workflow-row>div {min-width:0;}
.workflow-row p {margin:.3rem 0;}
.workflow-detail:empty {display:none;}
.workflow-detail {margin-top:1.2rem;border-top:1px solid #b8c6bf;padding-top:1rem;}
.lesson-comparison {margin:1rem 0;min-width:0;}
.lesson-comparison-grid {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:1rem;}
.comparison-version {background:white;border:1px solid #cad4cf;border-radius:.5rem;padding:1rem;min-width:0;overflow-wrap:anywhere;}
.comparison-version>div {margin:.8rem 0;white-space:pre-wrap;}
.comparison-version h2 {border-bottom:1px solid #d6ded9;padding-bottom:.6rem;}
.comparison-version figure {margin:1rem 0;}
.comparison-version figure img {max-width:100%;}
.review-change {border-left:3px solid;padding:.7rem .8rem;border-radius:.3rem;margin:.8rem 0;}
.review-change>div {white-space:pre-wrap;}
.review-before {background:#fff2e4;border-color:#c47b24;}
.review-after {background:#eaf7ed;border-color:#388254;}
.change-badge {display:block;font-size:.72rem;font-weight:700;color:#4c554e;margin-bottom:.3rem;}
.lesson-equation {display:block;max-width:100%;overflow-x:auto;overflow-y:hidden;white-space:normal;padding:.5rem 0;}
.lesson-equation .katex-display {margin:.45rem 0;}
.lesson-equation .katex {font-size:1.12em;}
.publication-blocked {padding:.8rem;border-left:3px solid #ad6c1b;background:#fff2e4;color:#694614;}
.lesson-change-dialog {border:1px solid #b8c6bf;border-radius:.65rem;width:min(600px,calc(100vw - 2rem));max-height:90vh;overflow:auto;}
.lesson-change-dialog form,.workflow-review-form {max-width:100%;}
@media(max-width:760px){.lesson-comparison-grid {grid-template-columns:minmax(0,1fr);}.comparison-version{padding:.75rem}.workflow-row{display:block}.workflow-row .document-actions{display:flex;flex-wrap:wrap}.workflow-detail{max-width:100%;min-width:0}.lesson-credits{gap:.8rem}}
.review-rating-group {margin:1rem 0;}
.review-rating-title {font-weight:600;margin-bottom:.2rem;}
.review-rating-stars {display:flex;gap:.15rem;}
.review-rating-stars .rating-star {background:transparent;border:1px solid transparent;color:#76877e;font-size:1.9rem;line-height:1;padding:.35rem;min-width:44px;margin:0;}
.review-rating-stars .rating-star.is-selected {color:#946300;}
.review-rating-value {display:block;font-size:.85rem;color:#4a6159;margin-top:.25rem;}
.editing-statistics .statistics-key-metrics {grid-template-columns:repeat(auto-fit,minmax(100px,1fr));}
.editing-statistics table {width:100%;font-size:.9rem;}
.editing-statistics .table-scroll {max-width:100%;}
.editing-statistics-detail:empty {display:none;}
.editing-statistics-detail {margin-top:1rem;}
@media print {.editing-statistics button,.editing-statistics input,.editing-statistics select,.editing-statistics .management-list-filters{display:none}.editing-statistics .table-scroll{overflow:visible}.editing-statistics table{font-size:9pt}}

/* STEP teaching and independently fetched worked solutions */
.course-stage-heading { margin-block: 1.4rem .55rem; }
.step-teaching-block p, .step-teaching-block li, .step-designated-question p, .step-designated-question li { white-space: pre-line; }
.step-teaching-block :is(ol,ul), .step-designated-question ol { padding-inline-start:1.45rem; }
.step-teaching-block .katex, .step-designated-question .katex { font-size:1em; }
.step-teaching-block .lesson-equation, .step-designated-question .lesson-equation { display:block; max-width:100%; overflow-x:auto; }
.step-designated-question { padding:clamp(.85rem, 3vw, 1.5rem); margin-top:1.8rem; border:1px solid #bbcfc3; border-radius:12px; background:#f5faf7; }
.step-question-source { margin:0; color:#365849; font-weight:650; }
.step-designated-question button { min-height:44px; }
.step-designated-question [role=status]:empty { display:none; }

.offline-choice-list label {display:block;padding:.45rem;border-radius:.4rem}
.offline-correct {background:#def5e3}
.offline-incorrect {background:#fbe1e1}

.offline-choice-list { min-width:0; margin:1rem 0; padding:.45rem; border:1px solid #cadacf; border-radius:.5rem; }
.offline-option-row { display:flex; align-items:center; gap:.5rem; min-width:0; margin:.15rem 0; border-radius:.45rem; }
.offline-choice-list .offline-option-row label { display:flex; align-items:center; gap:.6rem; min-width:0; margin:0; cursor:pointer; }
.offline-option-row label > span:last-child:not(:nth-child(2)) { font-weight:400; }
.offline-option-row input[type=radio] { display:inline-block; width:1.15rem; min-width:1.15rem; height:1.15rem; margin:0; padding:0; accent-color:#216253; }
.offline-option-figure { min-width:0; max-width:min(100%,34rem); }
.offline-option-figure figure { margin:.25rem 0; }
.offline-option-figure img { width:auto; max-width:100%; }
