/* Shared section placement for every lesson surface; course content is untouched. */
.demo-lesson-layout,.demo-section-panels,.demo-section-sidebar{min-width:0}
.demo-section-sidebar-title{display:none}
@media(min-width:701px){
 body .lesson-workspace,body .class-lesson-layout,body .demo-lesson-layout{display:grid!important;grid-template-columns:minmax(0,1fr) clamp(160px,22vw,240px)!important;gap:clamp(16px,2.5vw,36px);align-items:start}
 body .lesson-workspace>.lesson-canvas,body .class-lesson-layout>.lesson-section-panels,body .demo-lesson-layout>.demo-section-panels{grid-column:1;grid-row:1;min-width:0;width:100%;max-width:100%}
 body .lesson-workspace>.lesson-sections,body .class-lesson-layout>.class-section-sidebar,body .demo-lesson-layout>.demo-section-sidebar{display:block!important;grid-column:2;grid-row:1;order:0;position:sticky;top:16px;align-self:start;width:100%;min-width:0;max-height:calc(100dvh - 32px);overflow-y:auto;overscroll-behavior-y:contain;scrollbar-width:thin;padding:0 4px 8px;box-sizing:border-box;z-index:55}
 body .class-section-sidebar-title,body .demo-section-sidebar-title{display:block;margin:0 0 14px;font:650 18px/1.4 system-ui;color:inherit}
 body .lesson-sections .section-control{display:grid;width:100%;margin:8px 0;grid-template-columns:minmax(0,1fr) 30px 26px;gap:4px}
 body .lesson-sections .section-control .section-name{width:100%;min-width:0;min-height:54px;white-space:normal;overflow-wrap:anywhere;line-height:1.35}
 body .lesson-sections .add-section-bottom{width:100%;margin-top:12px}
 body .class-section-sidebar .lesson-student-tabs,body .fire-demo-workspace .demo-section-sidebar .cp-tabs{position:static;display:flex;flex-direction:column;flex-wrap:nowrap!important;align-items:stretch;gap:10px;width:100%;max-width:100%;overflow:visible;padding:0;margin:0;border:0;border-radius:0;box-shadow:none;background:transparent}
 body .class-section-sidebar .lesson-student-tabs .section-name,body .fire-demo-workspace .demo-section-sidebar .section-name{flex:none;width:100%;min-width:0;min-height:54px;padding:13px 12px;text-align:left;justify-content:flex-start;white-space:normal;overflow-wrap:anywhere;line-height:1.35;font-size:clamp(15px,1.7vw,18px);box-sizing:border-box}
 body .class-lesson-layout .class-exercise:first-child,body .demo-section-panels>.fire-exercise:first-child{margin-top:0}
 body .class-lesson-layout [data-lesson-section-panel]{min-width:0;scroll-margin-top:24px}
 body .lesson-workspace .lesson-metadata-link{max-width:100%;white-space:normal}
}
@media(max-width:700px){
 .demo-lesson-layout{display:flex;flex-direction:column}
 .demo-section-sidebar{order:-1;min-width:0;max-width:100%}
 body .fire-demo-workspace .demo-section-sidebar .cp-tabs{display:flex;flex-wrap:nowrap!important;overflow-x:auto;max-width:100%;gap:8px;overscroll-behavior-x:contain}
 body .fire-demo-workspace .demo-section-sidebar .section-name{flex:0 0 auto;white-space:nowrap}
}
