/* Shared lesson alignment refinements; homepage styling remains unchanged. */
.layout{width:100%;max-width:1100px;margin:0 auto;grid-template-columns:minmax(0,1fr) 260px;align-items:start}
.layout>section{min-width:0}.layout .panel{width:100%;min-width:0}.panel>p,.panel>h1,.panel>h2,.panel>h3{max-width:76ch}.panel .card{height:100%}
.grid>.card{display:flex;flex-direction:column;min-width:0}.grid>.card .button{margin-top:auto}.panel label{display:block;width:100%;margin:16px 0 0}.panel textarea,.panel input,.panel select{display:block;width:100%;max-width:100%;box-sizing:border-box}
.actions{align-items:stretch}.actions .button{min-height:46px;white-space:normal}.teacher{width:100%;max-width:260px;overflow:visible}.teacher img{max-width:100%;height:auto;max-height:230px}.teacher-help{width:100%;max-width:100%}
@media(max-width:900px){.layout{grid-template-columns:minmax(0,1fr) 220px}.teacher{max-width:220px}}
@media(max-width:700px){.layout{display:flex;flex-direction:column}.layout>section,.teacher{width:100%;max-width:none}.teacher{order:2}.layout .panel{padding:20px}.actions .button{flex:1 1 150px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition-duration:.01ms!important}}
