.lesson-panel[hidden],.lesson-panel [hidden]{display:none!important}
.lesson-panel{position:fixed;top:88px;right:24px;z-index:8;width:440px;max-width:calc(100vw - 32px);max-height:calc(100dvh - 112px);display:flex;flex-direction:column;background:#171e14;color:#e7eddf;border:1px solid #536842;border-radius:14px;box-shadow:0 20px 75px #0009;overflow:hidden}
.lesson-heading{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:19px 22px 17px;border-bottom:1px solid #35422c;flex:none}
.lesson-heading h2{font-family:'Barlow Condensed',sans-serif;font-size:32px;font-weight:500;margin-top:5px}
.lesson-heading .section-kicker{font-size:10px;letter-spacing:1.8px;color:#a9b69b}
.lesson-close{width:38px;height:38px;flex:none;border:1px solid #3c4b31;border-radius:50%;background:#24301d;font-size:27px;line-height:1;color:#dbe8cf}
.lesson-body{padding:21px 22px 24px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#536842 transparent}
.lesson-source+.lesson-source{border-top:1px solid #35422c;margin-top:27px;padding-top:24px}
.lesson-source-heading{display:flex;gap:10px;align-items:center;justify-content:space-between}
.lesson-source h3{font-size:17px;font-weight:600;color:#edf4e5}
.lesson-badge{padding:5px 7px;border:1px solid #526442;border-radius:4px;color:#c5dfaa;font-size:9px;font-weight:600;letter-spacing:1.2px;white-space:nowrap}
.lesson-help{font-size:13px;line-height:1.65;color:#b1bda5;margin:11px 0 15px}
.lesson-file-label,.youtube-form>label{font-size:12px;color:#e1e9d8;display:block;margin-bottom:9px}
#lesson-file{max-width:100%;width:100%;color:#bdcbae;font-size:12px;background:#10170d;border:1px solid #3c4a31;padding:9px;border-radius:6px}
#lesson-file::file-selector-button{background:#c5f277;color:#203312;border:0;border-radius:4px;padding:8px 10px;margin-right:9px;font:600 12px 'DM Sans',sans-serif;cursor:pointer}
.lesson-note{font-size:11px;line-height:1.6;color:#97a889;margin-top:8px}
.lesson-video{display:block;width:100%;height:auto;max-height:230px;min-height:140px;object-fit:contain;background:#0b1009;border:1px solid #35422c;border-radius:7px;margin-top:16px}
.lesson-status{color:#adc29b;font-size:12px;line-height:1.6;margin-top:11px;overflow-wrap:anywhere;min-height:20px}
.lesson-status[data-error=true]{color:#f4b99b}
.lesson-options{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:17px}
.lesson-options .switch-row{font-size:12px;gap:10px}
.lesson-small-button{background:none;border:1px solid #4a5b3d;border-radius:5px;padding:8px 10px;font-size:11px;white-space:nowrap;color:#c0d0b2}
.lesson-volume-label{margin-top:19px;margin-bottom:10px;font-size:12px}
.youtube-form{margin-top:16px}
.youtube-input-row{display:flex;gap:8px}
#youtube-url{min-width:0;flex:1;background:#0e150b;border:1px solid #485b39;border-radius:5px;padding:10px;color:#eff5e8;font-size:12px}
#youtube-url::placeholder{color:#7d9170}
.lesson-load-button{border:0;border-radius:5px;padding:10px 13px;background:#c5f277;color:#203312;font-size:12px;font-weight:700;flex:none}
.youtube-player{width:100%;min-width:200px;min-height:200px;aspect-ratio:16/9;background:#080c06;margin-top:16px;border-radius:6px;overflow:hidden}
.youtube-player iframe{display:block;width:100%;height:100%;min-width:200px;min-height:200px;aspect-ratio:16/9;border:0}
@media(max-width:900px){.lesson-panel{top:100px;max-height:calc(100dvh - 124px)}}
@media(max-width:600px){.lesson-panel{top:12px;right:12px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px)}.lesson-heading{padding:16px}.lesson-body{padding:18px 16px 22px}.topbar nav{gap:15px}.lesson-options{flex-wrap:wrap}.youtube-input-row{flex-wrap:wrap}.youtube-input-row input{flex-basis:200px}.lesson-load-button{min-height:38px}}
@media(max-width:600px){.lesson-panel{width:calc(100% - 24px);max-width:calc(100% - 24px)}.topbar{height:auto;flex-wrap:wrap;gap:8px;padding:14px 18px 0}.topbar nav{order:2;width:100%;height:42px;gap:12px;justify-content:space-between}.topbar .nav-item{white-space:nowrap}}
