.lesson { scroll-margin-top: 1rem; }
.lesson form { padding: 1rem; background: #edf5f7; border-radius: .6rem; }
.lesson label { display: block; margin-top: .8rem; font-weight: 600; }
.lesson input[type="range"] { display: block; width: 100%; min-height: 44px; padding: 0; accent-color: #075c82; }
.lesson select { display: block; width: 100%; max-width: 28rem; min-height: 44px; }
.lesson button { min-height: 44px; margin-top: 1rem; }
.lesson-diagram { max-width: 100%; overflow-x: auto; margin: 1rem 0; }
.lesson svg { display: block; width: 100%; min-width: 480px; height: auto; margin: auto; max-width: 42rem; background: #f5f8fb; border: 1px solid #b8cad4; border-radius: .5rem; }
.lesson svg text { fill: #172b3a; font: 16px system-ui, sans-serif; }
.lesson .axis { stroke: #465c6a; stroke-width: 2; }
.lesson .curve { fill: none; stroke: #075c82; stroke-width: 3; }
.lesson .point { fill: #963d00; stroke: #fff; stroke-width: 2; }
.lesson .reference { stroke: #963d00; stroke-width: 2; stroke-dasharray: 7 5; }
.lesson .box { fill: #e3f0f4; stroke: #075c82; stroke-width: 2; }
.lesson output { display: block; min-height: 3rem; padding: .8rem; background: #e3f0f4; color: #172b3a; border-left: 4px solid #075c82; }
.lesson-table { overflow-x: auto; }
.lesson table { border-collapse: collapse; width: 100%; }
.lesson th, .lesson td { padding: .5rem; text-align: left; border: 1px solid #b8cad4; }
.lesson pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.lesson [hidden] { display: none; }
@media print { .lesson form { display: none; } .lesson svg { break-inside: avoid; } }
