.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.lesson-block-editor{margin:24px 0}.lesson-block-editor>.section-header{gap:12px;align-items:baseline;flex-wrap:wrap}.lesson-block-editor>.section-header h3{margin:0}.lesson-block-editor>.section-header>.muted{font-size:11px}
.lesson-editor-block{min-width:0;margin:14px 0;border:1px solid #333;border-radius:14px;background:#101010;overflow:hidden}.lesson-block-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:7px 11px 7px 17px;border-bottom:1px solid #292929;background:#161616}.lesson-block-heading>span{font-size:12px;font-weight:700;color:#ccc}.lesson-block-tools{display:flex;gap:3px}.lesson-block-tools .btn{width:44px;height:44px;min-height:44px;padding:10px}.lesson-block-tools .icon{width:17px;height:17px}
.lesson-rich-toolbar{display:flex;align-items:center;gap:4px;flex-wrap:wrap;padding:8px;border-bottom:1px solid #2b2b2b;background:#111}.lesson-rich-toolbar .btn{min-width:40px;width:40px;height:40px;min-height:40px;padding:8px;font-size:16px}.lesson-rich-toolbar .btn:hover{background:#29211b}.lesson-format-size select{height:40px;max-width:130px;border:1px solid #393939;border-radius:7px;background:#181818;color:#eee;font:12px Manrope,Arial,sans-serif;padding:6px 10px}.lesson-color-control{position:relative;display:grid;place-items:center;width:40px;height:40px;min-width:40px;cursor:pointer;font-weight:700;font-size:16px;border-radius:7px;border:1px solid #393939}.lesson-color-control>input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.lesson-color-control>span{text-decoration:underline;text-decoration-color:#ff9a50;text-decoration-thickness:3px;text-underline-offset:4px}.lesson-color-control .lesson-highlight-mark{background:#9a541e;padding:2px 5px;border-radius:3px;text-decoration:none}
.lesson-rich-text{min-height:140px;padding:20px;outline:0;color:#eee;font:16px/1.8 Manrope,Arial,sans-serif;overflow-wrap:anywhere;white-space:normal}.lesson-rich-text:focus{box-shadow:inset 0 0 0 2px #ad571e}.lesson-rich-text:empty:before{content:attr(data-placeholder);color:#777;pointer-events:none}.lesson-rich-text p,.lesson-rich-content p{margin:0 0 1em}.lesson-rich-text p:last-child,.lesson-rich-content p:last-child{margin-bottom:0}.lesson-rich-content{overflow-wrap:anywhere}.lesson-rich-content h1,.lesson-rich-content h2,.lesson-rich-content h3,.lesson-rich-content h4{font-family:Manrope,Arial,sans-serif;line-height:1.45}.lesson-rich-text ul,.lesson-rich-content ul,.lesson-rich-text ol,.lesson-rich-content ol{padding-left:1.5em}.lesson-rich-text blockquote,.lesson-rich-content blockquote{margin:1em 0;padding:12px 18px;border-left:3px solid #ff7a1c;background:#251b13;border-radius:0 8px 8px 0}
.lesson-editor-block>.field{margin:16px 16px 12px}.lesson-block-media-preview{display:flex;align-items:center;justify-content:center;min-height:90px;max-height:320px;overflow:hidden;background:#080808}.lesson-block-media-preview img{display:block;max-width:100%;max-height:320px;width:auto;height:auto;object-fit:contain}.lesson-block-media-preview video{display:block;width:100%;max-height:300px;object-fit:contain}.lesson-block-media-preview>.muted{padding:22px;font-size:12px}.lesson-block-upload{position:relative;overflow:hidden;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:8px;max-width:100%;min-height:44px}.lesson-block-upload>input{position:absolute;inset:0;opacity:0;width:100%;height:100%;cursor:pointer}.lesson-editor-block>.lesson-block-upload{margin:0 16px}.lesson-block-status{font-size:11px;line-height:1.65;color:#a9bd9f;min-height:18px;margin:10px 16px 16px;overflow-wrap:anywhere}.lesson-block-status.is-error{color:#ffaaa4}.lesson-editor-block[data-upload-error=true]{border-color:#9f4940}.lesson-editor-block[data-uploading=true] .lesson-block-tools{pointer-events:none;opacity:.4}.lesson-add-blocks{display:flex;align-items:center;flex-wrap:wrap;gap:9px;padding:14px 0}.lesson-add-blocks .btn{min-height:44px;font-size:12px}.lesson-editor-feedback{font-size:12px;line-height:1.6;color:#bbb}.lesson-pdf-file{display:flex;align-items:center;gap:10px;padding:25px;font-size:12px;overflow-wrap:anywhere}.lesson-pdf-file .icon{width:25px;height:25px;flex-shrink:0}
.lesson-document{max-width:1060px;margin:0 auto;min-width:0;font:18px/1.9 Manrope,Arial,sans-serif;color:#e8e8e8}.lesson-document>.lesson-rich-content{margin:24px 0}.lesson-document>.lesson-rich-content:first-child{margin-top:0}.lesson-missing-file{padding:20px;border:1px dashed #633d25;border-radius:10px;color:#d4bba7;font-size:13px}
.lesson-image-open{position:relative;display:block;width:100%;min-width:0;padding:0;margin:0;border:0;background:transparent;cursor:zoom-in;text-align:inherit;border-radius:0;overflow:hidden}.lesson-image-open+.lesson-image-open{margin-top:2px}.lesson-image-open .lesson-image{display:block;width:100%;height:auto;border-radius:0;margin:0}.image-expand-mark{position:absolute;right:10px;bottom:10px;display:grid;place-items:center;width:34px;height:34px;border-radius:9px;background:#141414cf;color:white;font-size:20px;opacity:0;transition:opacity .15s}.lesson-image-open:hover .image-expand-mark,.lesson-image-open:focus-visible .image-expand-mark{opacity:1}.lesson-document-video{position:relative;margin:22px 0;background:#050505;max-height:75vh;overflow:hidden;border-radius:12px}.lesson-document-video video{display:block;width:100%;max-height:75vh;object-fit:contain}
.lesson-lightbox{position:fixed;inset:0;background:#020202f7;z-index:1000;display:flex;flex-direction:column;padding:14px 20px;color:white}.lesson-lightbox-toolbar{display:flex;align-items:center;justify-content:space-between;gap:15px;min-height:48px;flex-shrink:0}.lesson-lightbox-toolbar output{font-size:13px;color:#ccc;padding-left:9px}.lesson-lightbox .btn{min-width:48px;width:48px;height:48px;min-height:48px;border:1px solid #393939;border-radius:12px;background:#171717;color:white}.lesson-lightbox-stage{flex:1;min-height:0;display:grid;grid-template-columns:48px minmax(0,1fr) 48px;align-items:center;gap:14px}.lesson-lightbox-image{position:relative;align-self:stretch;min-height:0;min-width:0;display:flex;align-items:center;justify-content:center;overflow:hidden}.lesson-lightbox-image>img{display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;user-select:none}.lesson-lightbox .video-watermark{bottom:8%;top:auto}.lesson-lightbox-stage>.btn:disabled{opacity:.25;cursor:default}
.lesson-pdf-block{background:#111;border:1px solid #303030;border-radius:12px;overflow:hidden;margin:18px 0;min-width:0}.lesson-pdf-heading{position:sticky;top:0;display:flex;gap:12px;align-items:center;justify-content:space-between;min-width:0;padding:8px 12px;background:#171717;z-index:1;border-bottom:1px solid #333}.lesson-pdf-heading>strong{font-size:12px;overflow-wrap:anywhere;min-width:0}.lesson-pdf-heading>.btn{min-width:44px;width:44px;height:44px;min-height:44px;flex-shrink:0}.lesson-pdf-pages{padding:10px;min-width:0}.lesson-pdf-page{position:relative;margin:0 auto 10px;min-height:260px;aspect-ratio:.707;background:#242424;border:1px solid #333}.lesson-pdf-page canvas{display:block;max-width:100%;visibility:hidden}.lesson-pdf-page.is-rendered{aspect-ratio:auto;min-height:0;background:white}.lesson-pdf-page.is-rendered canvas{visibility:visible}.lesson-pdf-page-label{position:absolute;bottom:6px;right:8px;padding:3px 8px;font-size:10px;line-height:1.5;background:#111d;color:#eee;border-radius:6px;pointer-events:none}.lesson-pdf-page.is-page-error{aspect-ratio:auto;min-height:120px;display:grid;place-items:center;padding:20px}.lesson-pdf-page.is-page-error canvas{display:none}
.lesson-split{--lesson-note-size:20px;min-width:0}.lesson-split-tools{display:flex;gap:12px;align-items:center;justify-content:space-between;margin:0 0 12px;flex-wrap:wrap}.lesson-split-tools>.btn{min-height:44px;font-size:12px}.lesson-text-zoom{display:flex;align-items:center;gap:5px}.lesson-text-zoom .btn{width:44px;min-width:44px;height:44px;min-height:44px;padding:8px}.lesson-text-zoom output{min-width:24px;text-align:center;font-size:11px;color:#aaa}.lesson-split .study-grid{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr)}.lesson-split .study-notes{font-size:var(--lesson-note-size);line-height:1.8;min-width:0}.lesson-split .study-notes .song-sheet{font-size:var(--lesson-note-size);line-height:1.9}.lesson-split .study-notes .lesson-rich-content{font-size:var(--lesson-note-size);line-height:1.8}.lesson-split .study-notes .lesson-rich-content+.lesson-image-open{margin-top:20px}.lesson-split .study-notes .lesson-image-open+.lesson-rich-content{margin-top:20px}.lesson-split .study-video video::-webkit-media-controls-fullscreen-button{display:none}.lesson-split .study-video{top:90px}.lesson-split .study-caption,.lesson-split .study-notes>.eyebrow{display:none}
.lesson-split:fullscreen,.lesson-split.lesson-fullscreen-fallback{display:flex;flex-direction:column;background:#050505;padding:14px 20px;width:100vw;height:100dvh;max-width:none;overflow:hidden;box-sizing:border-box}.lesson-fullscreen-fallback{position:fixed!important;inset:0!important;z-index:900!important;margin:0!important}.lesson-split:fullscreen .lesson-split-tools,.lesson-split.lesson-fullscreen-fallback .lesson-split-tools{flex:0 0 auto}.lesson-split:fullscreen .study-grid,.lesson-split.lesson-fullscreen-fallback .study-grid{flex:1;min-height:0;align-items:stretch;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.lesson-split:fullscreen .study-video,.lesson-split.lesson-fullscreen-fallback .study-video{position:static;min-height:0;display:flex;flex-direction:column;justify-content:center;background:#000}.lesson-split:fullscreen .study-video>.video-frame,.lesson-split.lesson-fullscreen-fallback .study-video>.video-frame{max-height:calc(100dvh - 130px);min-height:0;aspect-ratio:16/9}.lesson-split:fullscreen .study-video .video-controls,.lesson-split.lesson-fullscreen-fallback .study-video .video-controls{flex-shrink:0}.lesson-split:fullscreen .study-notes,.lesson-split.lesson-fullscreen-fallback .study-notes{overflow-y:auto;overscroll-behavior:contain;min-height:0;padding:24px;font-size:var(--lesson-note-size);scrollbar-width:thin}.lesson-pdf-block:fullscreen,.lesson-pdf-block.lesson-fullscreen-fallback{height:100dvh;width:100vw;overflow:auto;border:0;border-radius:0;margin:0;background:#080808}.lesson-pdf-block:fullscreen .lesson-pdf-pages,.lesson-pdf-block.lesson-fullscreen-fallback .lesson-pdf-pages{max-width:1400px;margin:auto}
@media(max-width:800px){.lesson-split .study-grid{grid-template-columns:minmax(0,1fr)}.lesson-split .study-video{top:68px}.lesson-split .study-notes{padding:20px 16px}.lesson-split-tools>.btn{font-size:11px}.lesson-document{font-size:16px}.lesson-rich-text{padding:16px}.lesson-block-editor>.section-header>.muted{display:none}.lesson-add-blocks{gap:7px}.lesson-add-blocks .btn{flex:1;min-width:90px;padding:11px 10px}.lesson-lightbox{padding:8px}.lesson-lightbox-stage{grid-template-columns:40px minmax(0,1fr) 40px;gap:3px}.lesson-lightbox-stage>.btn{width:40px;min-width:40px;height:48px}.lesson-lightbox-toolbar>.btn{width:44px;min-width:44px;height:44px}.lesson-pdf-pages{padding:5px}.lesson-split:fullscreen,.lesson-split.lesson-fullscreen-fallback{padding:8px}.lesson-split:fullscreen .study-grid,.lesson-split.lesson-fullscreen-fallback .study-grid{grid-template-columns:minmax(0,1fr)}.lesson-split:fullscreen .study-notes,.lesson-split.lesson-fullscreen-fallback .study-notes{padding:18px}.lesson-split:fullscreen .study-video,.lesson-split.lesson-fullscreen-fallback .study-video{flex:none}.lesson-split:fullscreen .study-grid,.lesson-split.lesson-fullscreen-fallback .study-grid{display:flex;flex-direction:column;gap:10px}.lesson-split:fullscreen .study-video>.video-frame,.lesson-split.lesson-fullscreen-fallback .study-video>.video-frame{max-height:32dvh}.lesson-split:fullscreen .study-notes,.lesson-split.lesson-fullscreen-fallback .study-notes{flex:1;min-height:0}.lesson-split-tools .btn>span{white-space:normal}}
@media(orientation:landscape) and (max-width:1000px){.lesson-split:fullscreen .study-grid,.lesson-split.lesson-fullscreen-fallback .study-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.lesson-split:fullscreen .study-video>.video-frame,.lesson-split.lesson-fullscreen-fallback .study-video>.video-frame{max-height:calc(100dvh - 120px)}.lesson-split:fullscreen .study-notes,.lesson-split.lesson-fullscreen-fallback .study-notes{padding:14px}.lesson-split:fullscreen .lesson-split-tools,.lesson-split.lesson-fullscreen-fallback .lesson-split-tools{margin-bottom:6px}.lesson-split:fullscreen .lesson-split-tools>.btn,.lesson-split.lesson-fullscreen-fallback .lesson-split-tools>.btn{min-height:40px}}
.lesson-block-video-rate{display:flex;justify-content:center;align-items:center;gap:12px;background:#111;padding:7px}.lesson-block-video-rate .btn{width:44px;height:44px;min-height:44px}.lesson-block-video-rate output{min-width:44px;text-align:center;font-size:12px}.lesson-performance-settings>summary{min-height:44px;padding:12px 0;font-weight:700;cursor:pointer}.lesson-task{margin-top:24px}.lesson-split .study-notes>.song-sheet+.lesson-rich-content{margin-top:24px}
@media(max-width:800px){.lesson-lightbox-stage{grid-template-columns:44px minmax(0,1fr) 44px}.lesson-lightbox-stage>.btn{width:44px;min-width:44px}.lesson-rich-toolbar .btn,.lesson-format-size select,.lesson-color-control{height:44px;min-height:44px}.lesson-rich-toolbar .btn,.lesson-color-control{width:44px;min-width:44px}.lesson-format-size select{max-width:112px}.lesson-rich-toolbar{gap:3px;padding:6px}}
/* Split lessons use prepared chord pages as the primary reading surface. */
.lesson-page-upload{display:flex;align-items:center;gap:14px;padding:16px;margin:14px 0;border:1px dashed #664126;border-radius:12px;background:#1d150e}.lesson-page-upload>p{flex:1;min-width:0;margin:0;font-size:12px;line-height:1.75;color:#c1afa0}.lesson-page-upload>.lesson-block-upload{flex-shrink:0}.lesson-block-editor[data-editor-mode=document] .lesson-page-upload{display:none}.lesson-block-editor[data-editor-mode=split] .lesson-inline-image-upload,.lesson-block-editor[data-editor-mode=split] [data-lesson-action=add-video]{display:none}.lesson-optional-lyrics>summary{min-height:44px;padding:12px 0;cursor:pointer;font-size:12px;color:#b5b5b5}.lesson-page-stack{width:calc(100% * var(--lesson-page-scale,1));min-width:0;max-width:none}.lesson-page-stack>.lesson-image-open{width:100%;max-width:none}.lesson-page-stack>.lesson-image-open .lesson-image{width:100%;max-width:none;height:auto}.lesson-page-stack .inline-pdf-viewer canvas{width:100%!important;max-width:none!important;height:auto!important}.lesson-split[data-note-mode=pages] .study-notes{height:min(74dvh,860px);max-height:calc(100dvh - 150px);min-height:260px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:12px}.lesson-split[data-note-mode=pages] .lesson-text-zoom output{min-width:48px}.lesson-split:fullscreen[data-note-mode=pages] .study-notes,.lesson-split.lesson-fullscreen-fallback[data-note-mode=pages] .study-notes{height:100%;max-height:none;min-height:0;padding:10px}
@media(max-width:800px){.lesson-page-upload{align-items:stretch;flex-direction:column;padding:13px;gap:10px}.lesson-page-upload>.lesson-block-upload{width:100%}.lesson-split[data-note-mode=pages] .study-notes{height:58dvh;max-height:58dvh;min-height:240px;padding:8px}.lesson-split:fullscreen[data-note-mode=pages] .study-notes,.lesson-split.lesson-fullscreen-fallback[data-note-mode=pages] .study-notes{height:auto;min-height:0;max-height:none}}
@media(orientation:landscape) and (max-width:1000px){.lesson-split:fullscreen[data-note-mode=pages] .study-notes,.lesson-split.lesson-fullscreen-fallback[data-note-mode=pages] .study-notes{height:100%;min-height:0;max-height:none}}
.lesson-split .study-video .speed-control button{width:44px;height:44px;min-height:44px}.lesson-split:fullscreen .lesson-split-tools>.btn,.lesson-split.lesson-fullscreen-fallback .lesson-split-tools>.btn{min-height:44px}

/* One editable document: content stays visible; placement and replacement tools
   open at the exact point where the author needs them. */
.lesson-block-editor{border:1px solid #302d29;border-radius:15px;padding:18px;background:#0d0d0d;min-width:0}
.lesson-block-editor>.section-header{margin-bottom:10px}.lesson-block-editor>.section-header h3{font-size:16px}
.lesson-editor-block{position:relative;margin:0;border:0;border-radius:0;background:transparent;overflow:visible;min-width:0}
.lesson-block-heading{justify-content:flex-end;padding:0 3px;border:0;background:transparent}
.lesson-block-tools{gap:0}.lesson-block-tools .btn{color:#a9a29a}.lesson-block-tools .btn:hover{color:#fff;background:#29231d}
.lesson-rich-toolbar{border:1px solid #34302b;border-radius:10px 10px 0 0;background:#171512;gap:5px}
.lesson-format-size{display:flex;align-items:center;flex:0 0 70px;min-width:0}.lesson-format-size input{box-sizing:border-box;width:70px;min-width:0;height:40px;border:1px solid #494139;border-radius:7px;padding:7px 5px 7px 10px;background:#211c17;color:#fff;font:14px Manrope,Arial,sans-serif}
.lesson-format-size input:focus{outline:2px solid #bf6a29;outline-offset:1px}
.lesson-rich-text{min-height:120px;border:1px solid #34302b;border-top:0;border-radius:0 0 10px 10px;background:#101010}
.lesson-rich-text:focus{box-shadow:inset 0 0 0 1px #ad571e}
.lesson-block-media-preview{max-height:none;min-height:0;background:transparent;border-radius:8px;overflow:hidden}
.lesson-block-media-preview img{width:100%;height:auto;max-height:none;object-fit:contain}.lesson-block-media-preview video{max-height:380px;background:#000}
.lesson-media-change{padding:0 10px;border:1px solid #302d29;border-radius:9px;margin-top:7px;font-size:12px;color:#b7afa6;background:#111}
.lesson-media-change>summary,.lesson-existing-media>summary{display:flex;align-items:center;min-height:44px;cursor:pointer;list-style:none;gap:8px}
.lesson-media-change>summary:before,.lesson-existing-media>summary:before{content:'›';font-size:21px;color:#a98666}.lesson-media-change[open]>summary:before,.lesson-existing-media[open]>summary:before{transform:rotate(90deg)}
.lesson-media-change>summary::-webkit-details-marker,.lesson-existing-media>summary::-webkit-details-marker{display:none}
.lesson-media-change>.lesson-block-upload{margin:4px 0 6px}.lesson-existing-media{padding-bottom:8px}.lesson-existing-media .input{font-size:12px;margin-bottom:4px}
.lesson-block-status{margin:8px 3px 0;min-height:0}.lesson-block-status:empty{display:none}
.lesson-insert-menu{margin:7px 0;min-width:0;border:0;border-radius:9px;background:transparent;color:#a99b8e}
.lesson-insert-menu>summary{display:flex;align-items:center;justify-content:center;gap:7px;min-height:44px;list-style:none;cursor:pointer;font-size:11px;font-weight:600;outline-offset:2px}
.lesson-insert-menu>summary:before,.lesson-insert-menu>summary:after{content:'';height:1px;flex:1;background:#30291f}
.lesson-insert-menu>summary::-webkit-details-marker{display:none}.lesson-insert-menu>summary>.icon{width:15px;height:15px}
.lesson-insert-menu[open]{background:#1b150f;padding:0 8px 9px;border:1px solid #654023}
.lesson-insert-menu[open]>summary{color:#ffb275}.lesson-insert-options{display:flex;flex-wrap:wrap;gap:6px;justify-content:center;min-width:0}
.lesson-insert-options .btn{min-height:44px;font-size:12px;padding:10px 14px;color:#eee1d5;border:1px solid #443427;background:#241b13}
.lesson-insert-options .btn:hover{border-color:#a65e2d;background:#372315}
.lesson-block-editor[data-editor-mode=split] .lesson-insert-options .lesson-inline-image-upload,.lesson-block-editor[data-editor-mode=split] .lesson-insert-options [data-lesson-action=add-video]{display:inline-flex}
.lesson-add-blocks{display:block;padding:0}.lesson-add-blocks>.lesson-insert-menu{width:100%}.lesson-insert-start:has(+[data-lesson-block-list]:empty){display:none}
.lesson-editor-feedback:empty{display:none}
@media(max-width:800px){.lesson-block-editor{padding:10px;border-radius:12px}.lesson-format-size{flex-basis:66px}.lesson-format-size input{width:66px;height:44px;min-height:44px;font-size:16px}.lesson-rich-toolbar{gap:3px;padding:6px}.lesson-rich-text{font-size:16px;padding:14px;min-height:130px}.lesson-insert-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.lesson-insert-options .btn{min-width:0;width:100%;padding:10px 7px;font-size:11px}.lesson-media-change{padding:0 8px}}

/* The material is one continuous page. A single toolbar follows the active
   text position; the persisted ordered blocks stay compatible with old lessons. */
.lesson-document-toolbar{position:sticky;top:0;z-index:6;isolation:isolate;margin:0;border-radius:11px 11px 0 0;gap:3px;padding:8px;background:#1c1814;box-shadow:0 4px 12px #0005}
.lesson-document-toolbar .btn,.lesson-toolbar-file{width:40px;height:40px;min-height:40px;flex:0 0 40px;box-sizing:border-box}
.lesson-document-toolbar .lesson-paragraph-kind{width:144px;max-width:100%;height:40px;border:1px solid #494139;border-radius:7px;background:#211c17;color:#fff;padding:6px;font:12px Manrope,sans-serif}
.lesson-toolbar-divider{height:22px;width:1px;background:#514337;margin:0 3px}
.lesson-toolbar-file{position:relative;display:inline-flex;align-items:center;justify-content:center;margin:0;cursor:pointer;overflow:hidden;padding:8px!important}
.lesson-toolbar-file>input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.lesson-document-canvas{border:1px solid #34302b;border-top:0;border-radius:0 0 11px 11px;background:#101010;padding:22px;min-height:220px;min-width:0}
.lesson-document-canvas>.lesson-editor-block{margin:0;position:relative}
.lesson-document-canvas .lesson-rich-text{background:transparent;border:0;border-radius:0;min-height:54px;padding:14px 8px;box-shadow:none;font-size:16px}
.lesson-document-canvas .lesson-rich-text:focus{outline:1px solid #725132;outline-offset:-1px;box-shadow:none;background:#17130f}
.lesson-document-canvas .lesson-block-heading{position:absolute;right:3px;top:2px;z-index:3;opacity:0;transition:opacity .1s;max-width:100%;pointer-events:none}
.lesson-document-canvas .lesson-block-heading button{pointer-events:auto;background:#16120fe8;border-radius:7px}
.lesson-document-canvas .lesson-editor-block:hover>.lesson-block-heading,.lesson-document-canvas .lesson-editor-block:focus-within>.lesson-block-heading{opacity:1}
.lesson-document-canvas .lesson-editor-block[data-block-type=text]>.lesson-block-heading{top:auto;bottom:2px}
.lesson-document-canvas .lesson-block-media-preview{margin:0;border-radius:0}
.lesson-document-canvas .lesson-block-media-preview>img{display:block;width:100%;height:auto;margin:0}
.lesson-document-canvas .lesson-media-change{margin:5px 0;font-size:11px;border-color:#30271e}
.lesson-document-canvas .lesson-block-status{font-size:11px;margin:3px}
.lesson-document-canvas .lesson-editor-block>.lesson-insert-menu{position:absolute;right:0;bottom:-16px;margin:0;z-index:4;opacity:0;transition:opacity .1s;max-width:100%;background:#17110de8}
.lesson-document-canvas .lesson-editor-block:hover>.lesson-insert-menu,.lesson-document-canvas .lesson-editor-block:focus-within>.lesson-insert-menu{opacity:1}
.lesson-document-canvas .lesson-editor-block>.lesson-insert-menu>summary{min-height:34px;padding:0 8px;font-size:10px}
.lesson-document-canvas .lesson-editor-block>.lesson-insert-menu[open]{position:relative;right:auto;bottom:auto;opacity:1;padding:0 8px 8px;margin:5px 0}
.lesson-block-editor[data-editor-mode=document]+.lesson-performance-settings{display:none}
.lesson-block-editor:fullscreen,.lesson-block-editor.lesson-fullscreen-fallback{display:flex;flex-direction:column;gap:0;height:100dvh;width:100vw;overflow:hidden;padding:12px;background:#0b0b0b;border:0;border-radius:0}
.lesson-block-editor:fullscreen>.section-header,.lesson-block-editor.lesson-fullscreen-fallback>.section-header{flex:0 0 auto}
.lesson-block-editor:fullscreen>.lesson-document-canvas,.lesson-block-editor.lesson-fullscreen-fallback>.lesson-document-canvas{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;max-width:1000px;width:100%;align-self:center}
.lesson-block-editor:fullscreen>.lesson-document-toolbar,.lesson-block-editor.lesson-fullscreen-fallback>.lesson-document-toolbar{flex:0 0 auto;max-width:1046px;width:100%;align-self:center}
.lesson-emoji-picker{position:absolute;left:0;right:0;top:100%;width:min(430px,100%);box-sizing:border-box;padding:12px;background:#191919;border:1px solid #65472e;border-radius:12px;box-shadow:0 15px 45px #000a;z-index:10;color:#eee}
.lesson-emoji-picker[hidden]{display:none}.lesson-emoji-picker-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px;font-size:14px}
.lesson-emoji-picker-head .btn{width:36px;height:36px;min-height:36px;flex:0 0 36px}.lesson-emoji-picker>.input{font-size:13px;margin-bottom:8px;min-height:44px}
.lesson-emoji-groups{display:flex;gap:2px;overflow:auto;border-bottom:1px solid #3b3027;padding-bottom:5px}.lesson-emoji-groups>button{background:transparent;border:0;border-radius:6px;flex:0 0 36px;height:36px;font-size:23px;cursor:pointer}.lesson-emoji-groups>button[aria-pressed=true]{background:#63371b}
.lesson-emoji-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));max-height:260px;overflow:auto;gap:3px;padding:8px 0;overscroll-behavior:contain}
.lesson-emoji-grid>button{display:grid;place-items:center;min-width:0;width:100%;height:42px;padding:4px;border:0;border-radius:7px;background:transparent;cursor:pointer}.lesson-emoji-grid>button:hover,.lesson-emoji-grid>button:focus-visible{background:#423021;outline:1px solid #9c6439}
.lesson-emoji-caption{font-size:10px;line-height:1.6;color:#bfa890;margin:4px 0 0}
.lesson-emoji-frame{display:inline-block;position:relative;width:1.4em;height:1.4em;min-width:1.4em;overflow:hidden;vertical-align:-.3em;line-height:1;user-select:all}
.lesson-emoji-frame>img{position:absolute;display:block;max-width:none!important;max-height:none!important;object-fit:fill;margin:0!important;pointer-events:none}
.lesson-emoji-grid .lesson-emoji-frame{width:28px;height:28px;min-width:28px;font-size:20px;pointer-events:none}
@media(max-width:800px){.lesson-document-toolbar{padding:5px;gap:2px;top:0}.lesson-document-toolbar .btn,.lesson-toolbar-file,.lesson-document-toolbar .lesson-paragraph-kind{height:44px;min-height:44px}.lesson-document-toolbar .btn,.lesson-toolbar-file{width:44px;flex-basis:44px}.lesson-document-toolbar .lesson-paragraph-kind{width:136px}.lesson-toolbar-divider{display:none}.lesson-document-canvas{padding:10px}.lesson-document-canvas .lesson-rich-text{padding:13px 5px;min-height:64px}.lesson-document-canvas .lesson-block-heading{opacity:.8}.lesson-document-canvas .lesson-block-tools .btn{width:36px;height:36px;min-height:36px;padding:8px}.lesson-document-canvas .lesson-editor-block>.lesson-insert-menu{opacity:.85}.lesson-document-canvas .lesson-editor-block>.lesson-insert-menu>summary{min-height:44px}.lesson-emoji-picker{max-height:60dvh;overflow:auto;padding:9px}.lesson-emoji-grid{grid-template-columns:repeat(6,minmax(0,1fr));max-height:220px}.lesson-emoji-groups>button{flex-basis:40px;min-height:44px}.lesson-block-editor:fullscreen,.lesson-block-editor.lesson-fullscreen-fallback{padding:5px}}

/* Override the general input:not(...) rule: keep two digits readable beside
   both native number steppers and the datalist arrow on a narrow screen. */
.lesson-document-toolbar .lesson-format-size{flex:0 0 84px;width:84px;min-width:84px}
.lesson-block-editor .lesson-document-toolbar .lesson-format-size input[type="number"][data-rich-size]{box-sizing:border-box;flex:0 0 84px;width:84px;min-width:84px;height:44px;min-height:44px;padding:6px;font-size:16px;line-height:1.25;text-align:center}

/* v6: the ordinary document and the performance workspace are two real forms. */
.dialog:has(form[data-form="save-lesson"]){width:min(1240px,calc(100vw - 48px));max-width:none;padding:28px;max-height:94dvh}
[data-lesson-form]{min-width:0;display:grid;gap:16px}
.lesson-format-row{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(160px,.6fr);gap:16px;align-items:start}
.lesson-format-row>.field,.lesson-type-field>.field{margin:0}
[data-lesson-form-mode=split] .lesson-type-field,[data-lesson-form-mode=split] .lesson-document-settings{display:none}
[data-lesson-form-mode=split] .lesson-format-row{grid-template-columns:minmax(0,1fr)}
.lesson-block-editor{padding:0;border:0;margin:0;background:transparent}
.lesson-editor-document-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px;gap:12px}
.lesson-editor-document-heading h3{font-size:14px;margin:0;color:#ccc}
.lesson-editor-size-actions{display:flex;gap:4px}.lesson-editor-size-actions .btn{width:38px;height:38px;min-height:38px;padding:8px;font-size:18px}
.lesson-normal-editor{min-width:0}
.lesson-document-canvas{height:440px;min-height:260px;max-height:none;resize:vertical;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:22px;border-radius:12px;background:#101010;border:1px solid #35302b}
.lesson-document-toolbar{border-radius:12px;margin-bottom:10px;background:#161310;border-color:#35302b;box-shadow:none}
.lesson-normal-editor>.lesson-insert-start{margin:0 0 7px}
.lesson-rich-text,.lesson-rich-content{line-height:1.85}
.lesson-rich-text span[style*="background-color"],.lesson-rich-content span[style*="background-color"]{padding:.12em .07em;box-decoration-break:clone;-webkit-box-decoration-break:clone;border-radius:2px;line-height:1.9}
.lesson-document-canvas .lesson-rich-text{padding:16px 8px;min-height:80px}
.lesson-document-canvas .lesson-rich-text:focus{background:#13110f;outline-color:#68432a}
.lesson-editor-file-token{display:flex;align-items:center;gap:10px;min-height:58px;border:1px solid #433322;background:#20180f;border-radius:9px;padding:12px 16px;color:#f0d9c6;font-size:13px;line-height:1.6;min-width:0}
.lesson-editor-file-token>.icon{width:20px;height:20px;flex-shrink:0;color:#ff9f5a}
.lesson-editor-file-token>strong{flex:1;min-width:0;overflow-wrap:anywhere;font-weight:600}
.lesson-editor-file-token>small{flex-shrink:0;font-size:10px;color:#b79c85}
.lesson-normal-editor .lesson-editor-page-thumb{display:none!important}
.lesson-text-color-mark{text-decoration:underline;text-decoration-color:#ff6a00;text-decoration-thickness:3px;text-underline-offset:4px}
.lesson-highlight-mark{padding:2px 4px;background:#a8581f;border-radius:3px}
.lesson-color-popover{position:absolute;top:calc(100% + 6px);left:0;z-index:30;width:min(480px,100%);box-sizing:border-box;padding:18px;border:1px solid #704525;border-radius:14px;background:#15120f;box-shadow:0 14px 40px #000b}
.lesson-color-popover[hidden]{display:none}
.lesson-color-popover>strong{display:block;margin-bottom:14px;font-size:14px}
.lesson-color-fields{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.lesson-color-fields>input[type=color]{box-sizing:border-box;width:54px;min-width:54px;height:44px;min-height:44px;padding:3px;border:1px solid #5b4533;border-radius:8px;cursor:pointer;background:#171717}
.lesson-color-fields>label{display:grid;gap:4px;color:#baa38f;font-size:10px}
.lesson-color-fields [data-color-hex]{width:122px;min-width:0;box-sizing:border-box;padding:10px;font-size:14px;line-height:1.3;min-height:44px;text-transform:uppercase}
.lesson-color-sample{padding:10px;border-radius:5px;font-size:14px;line-height:1.8;color:#fff;background:#191919}
.lesson-color-hint{font-size:11px;line-height:1.7;color:#bda78f;margin:12px 0}
.lesson-color-actions{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.lesson-document-toolbar .lesson-color-actions .btn{width:auto;min-width:100px;flex:1 1 auto;min-height:44px;height:auto;padding:10px;font-size:12px}
.lesson-color-popover [data-color-status]{font-size:11px;color:#ffb8a9;line-height:1.6;margin:8px 0 0}
.lesson-color-popover [data-color-status]:empty{display:none}
.lesson-cover-columns{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px;align-items:start;min-width:0}
[data-editor-mode=document]>.lesson-cover-columns,[data-editor-mode=split]>.lesson-normal-editor{display:none}
.lesson-cover-video-zone,.lesson-cover-page-zone{min-width:0;padding:18px;border:1px solid #35302b;border-radius:16px;background:#101010}
.lesson-cover-zone-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:0;margin-bottom:14px}
.lesson-cover-zone-heading>h3{font-size:13px;line-height:1.6;margin:0;color:#ccc}
.lesson-cover-zone-heading>.btn{font-size:12px;padding:10px 12px;flex-shrink:0}
.lesson-cover-video-preview{aspect-ratio:16/9;background:#050505;border:1px solid #2a2723;border-radius:11px;overflow:hidden}
.lesson-cover-video-preview video{display:block;width:100%;height:100%;object-fit:contain}
.lesson-cover-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;height:100%;min-height:180px;color:#9f8b78;font-size:13px;line-height:1.8}
.lesson-cover-empty>.icon{width:38px;height:38px;color:#c28250;stroke-width:1.3}
.lesson-cover-upload{width:100%;margin-top:12px;font-size:12px}
.lesson-cover-video-library,.lesson-cover-variant-settings{font-size:11px;color:#bca38c;line-height:1.6;margin-top:8px}
.lesson-cover-video-library>summary,.lesson-cover-variant-settings>summary{cursor:pointer;min-height:44px;display:flex;align-items:center}
.lesson-cover-video-library:not([open])>:not(summary){display:none!important}
.lesson-cover-video-zone #variant-editors>.variant-editor:only-child .lesson-cover-variant-settings{display:none}
.lesson-cover-video-library .field,.lesson-cover-variant-settings .field{margin:4px 0 10px}
.lesson-cover-video-zone .variant-editor{padding:0;border:0;border-radius:0;background:transparent}
.lesson-cover-video-zone #variant-editors>.variant-editor:only-child>.lesson-variant-editor-heading{display:none}
.lesson-cover-video-zone .variant-editor+.variant-editor{padding-top:22px;margin-top:22px;border-top:1px solid #3d3128}
.lesson-cover-video-zone .lesson-variant-editor-heading{font-size:12px;line-height:1.5;gap:10px;align-items:center;margin-bottom:12px}
.lesson-cover-more{border-top:1px solid #2e2822;padding-top:8px;margin-top:14px}
.lesson-cover-more>.btn{font-size:11px;color:#c5a78e;padding:10px 0}
.lesson-cover-page-list{height:480px;min-height:260px;max-height:none;resize:vertical;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;border:1px dashed #403024;border-radius:10px;background:#070707;padding:10px}
.lesson-cover-page-list:empty:before{content:'Добавь картинки с аккордами. Они будут идти одна под другой.';display:flex;align-items:center;justify-content:center;min-height:180px;padding:20px;color:#9f8b78;font-size:12px;line-height:1.9;text-align:center}
.lesson-cover-page{position:relative;min-width:0;margin-bottom:10px}
.lesson-cover-page>.lesson-editor-page-thumb{display:block;width:100%;height:auto;border:0;border-radius:6px}
.lesson-cover-page>.lesson-editor-file-token{font-size:10px;padding:8px;border-radius:0 0 8px 8px;min-height:42px}
.lesson-cover-page>.lesson-editor-file-token>small{display:none}
.lesson-cover-page-tools{position:absolute;top:5px;right:5px;display:flex;gap:3px;padding:3px;border:1px solid #4b3828;border-radius:9px;background:#111e}
.lesson-cover-page-tools>.btn{min-height:36px;height:36px;width:36px;padding:8px;color:#fff}
.lesson-cover-page-status{font-size:11px;line-height:1.6;margin:10px 0 0;color:#d5ba9f}.lesson-cover-page-status:empty{display:none}
.lesson-document{max-width:960px;padding:30px 34px;border:1px solid #292623;border-radius:18px;background:#0c0c0c;color:#e8e5e2;box-sizing:border-box}
.lesson-document>.lesson-rich-content{margin:24px 0;line-height:1.9}
.lesson-document>.lesson-rich-content:first-child{margin-top:0}
.lesson-document>.lesson-image-open{margin:0;border-radius:5px;min-height:0;height:auto}
.lesson-document>.lesson-rich-content+.lesson-image-open,.lesson-document>.lesson-image-open+.lesson-rich-content{margin-top:24px}
.lesson-document-audio{margin:22px 0;padding:18px;border:1px solid #3a3027;border-radius:12px;background:#15110d;min-width:0}
.lesson-document-audio>figcaption{font-size:12px;line-height:1.7;margin-bottom:12px;overflow-wrap:anywhere;color:#d7c2b0}
.lesson-document-audio>audio{width:100%;display:block;min-width:0}
.lesson-pages-empty{display:grid;place-items:center;min-height:220px;margin:0;color:#a78f79;font-size:13px;line-height:1.8;text-align:center}
.lesson-document-toolbar [data-command][aria-pressed=true]{border-color:#87502a;color:#ffae72;background:#382213}
.lesson-block-editor:fullscreen>.lesson-normal-editor,.lesson-block-editor.lesson-fullscreen-fallback>.lesson-normal-editor{display:flex;flex-direction:column;flex:1;min-height:0;min-width:0;width:min(1100px,100%);align-self:center}
.lesson-block-editor:fullscreen .lesson-document-canvas,.lesson-block-editor.lesson-fullscreen-fallback .lesson-document-canvas{flex:1;min-height:0;height:auto!important;resize:none;overflow:auto}
.lesson-block-editor:fullscreen .lesson-editor-document-heading,.lesson-block-editor.lesson-fullscreen-fallback .lesson-editor-document-heading{flex-shrink:0}
.lesson-block-editor:fullscreen [data-lesson-action=editor-taller],.lesson-block-editor:fullscreen [data-lesson-action=editor-shorter],.lesson-block-editor.lesson-fullscreen-fallback [data-lesson-action=editor-taller],.lesson-block-editor.lesson-fullscreen-fallback [data-lesson-action=editor-shorter]{display:none}

/* One native A/V timeline, with controls that remain reachable on a phone. */
.lesson-video-player{min-width:0;width:100%;position:relative}
.lesson-video-player>.video-frame{aspect-ratio:var(--lesson-video-aspect,16/9);width:100%;min-height:0;background:#000}
.lesson-video-player>.video-frame video{display:block;width:100%;height:100%;object-fit:contain;background:#000}
.lesson-playback-controls{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;padding:8px 0}
.lesson-playback-controls .speed-control{display:flex;align-items:center;gap:4px;flex:0 0 auto;border:1px solid #37312a;border-radius:11px;background:#15120f;padding:1px}
.lesson-playback-controls .speed-control>.btn{width:44px;height:44px;min-height:44px;min-width:44px;border-radius:8px}
.lesson-playback-controls .speed-control>.btn:disabled{opacity:.32;cursor:default}
.lesson-video-rate-reset{border:0;background:transparent;color:#eee8de;min-width:65px;min-height:44px;padding:7px;font:700 13px Manrope,Arial,sans-serif;font-variant-numeric:tabular-nums;cursor:pointer}
.lesson-video-rate-reset:hover{background:#2c2118;border-radius:8px}.lesson-video-rate-reset:focus-visible{outline:2px solid #ff8a34;outline-offset:1px;border-radius:8px}
.lesson-quality-control{display:flex;align-items:center;gap:8px;font-size:11px;color:#bcb2a7;min-width:0}
.lesson-quality-control select{max-width:180px;min-width:112px;min-height:44px;border:1px solid #39322b;border-radius:9px;padding:8px 28px 8px 10px;background:#15120f;color:#eee8de;font:12px Manrope,Arial,sans-serif}
.lesson-video-original{font-size:11px;color:#948a81;padding:8px 0}.lesson-video-status{font-size:12px;line-height:1.6;color:#d9b995;margin:4px 0 10px}.lesson-video-status[hidden],.lesson-video-retry[hidden]{display:none}
.lesson-split .study-notes:focus-visible{outline:2px solid #b9692b;outline-offset:2px}
.lesson-split:fullscreen .study-video>.lesson-video-player,.lesson-split.lesson-fullscreen-fallback .study-video>.lesson-video-player{display:flex;flex-direction:column;flex:1;min-height:0;justify-content:center}
.lesson-split:fullscreen .lesson-video-player>.video-frame,.lesson-split.lesson-fullscreen-fallback .lesson-video-player>.video-frame{aspect-ratio:auto;flex:1;min-height:0;max-height:calc(100dvh - 150px)}
.lesson-split:fullscreen .lesson-playback-controls,.lesson-split.lesson-fullscreen-fallback .lesson-playback-controls{flex:0 0 auto;padding:6px 3px;margin:0}
.lesson-split:fullscreen .lesson-quality-control>span,.lesson-split.lesson-fullscreen-fallback .lesson-quality-control>span{display:none}
.lesson-split:fullscreen,.lesson-split.lesson-fullscreen-fallback{padding-left:max(8px,env(safe-area-inset-left));padding-right:max(8px,env(safe-area-inset-right));padding-top:max(8px,env(safe-area-inset-top));padding-bottom:max(8px,env(safe-area-inset-bottom))}
@media(max-width:800px){.lesson-playback-controls{gap:6px}.lesson-quality-control{gap:5px}.lesson-quality-control>span{display:none}.lesson-quality-control select{max-width:156px;min-width:110px}.lesson-video-original{font-size:10px}.lesson-split:fullscreen .study-video>.lesson-video-player,.lesson-split.lesson-fullscreen-fallback .study-video>.lesson-video-player{flex:none}.lesson-split:fullscreen .lesson-video-player>.video-frame,.lesson-split.lesson-fullscreen-fallback .lesson-video-player>.video-frame{flex:none;height:30dvh;max-height:30dvh}.lesson-split:fullscreen .study-video,.lesson-split.lesson-fullscreen-fallback .study-video{overflow:visible}.lesson-split:fullscreen .lesson-video-status,.lesson-split.lesson-fullscreen-fallback .lesson-video-status{margin:0;font-size:10px}}
@media(orientation:landscape) and (max-width:1000px){.lesson-split:fullscreen .study-video>.lesson-video-player,.lesson-split.lesson-fullscreen-fallback .study-video>.lesson-video-player{flex:1}.lesson-split:fullscreen .lesson-video-player>.video-frame,.lesson-split.lesson-fullscreen-fallback .lesson-video-player>.video-frame{flex:1;height:auto;max-height:none}.lesson-split:fullscreen .lesson-video-original,.lesson-split.lesson-fullscreen-fallback .lesson-video-original{display:none}.lesson-split:fullscreen .lesson-split-tools,.lesson-split.lesson-fullscreen-fallback .lesson-split-tools{gap:6px}.lesson-split:fullscreen .lesson-split-tools>.btn,.lesson-split.lesson-fullscreen-fallback .lesson-split-tools>.btn{font-size:10px;padding:8px;max-width:210px}.lesson-split:fullscreen .study-notes,.lesson-split.lesson-fullscreen-fallback .study-notes{border-radius:10px}}
@media(max-width:800px){.dialog:has(form[data-form="save-lesson"]){width:100%;max-width:100%;max-height:96dvh;padding:18px 12px;border-radius:18px 18px 0 0}.lesson-format-row{grid-template-columns:minmax(0,1fr);gap:12px}.lesson-cover-columns{grid-template-columns:minmax(0,1fr);gap:14px}.lesson-cover-video-zone,.lesson-cover-page-zone{padding:12px;border-radius:12px}.lesson-cover-page-list{height:400px;padding:7px}.lesson-cover-zone-heading>h3{font-size:12px}.lesson-document-canvas{height:400px;padding:10px}.lesson-color-popover{padding:12px}.lesson-color-fields{gap:8px}.lesson-color-sample{font-size:12px}.lesson-document-toolbar .lesson-color-actions .btn{min-width:80px;font-size:11px}.lesson-document{padding:20px 15px;border-radius:13px;font-size:16px}.lesson-document>.lesson-rich-content{line-height:1.9}.lesson-cover-page-tools>.btn{width:40px;height:40px;min-height:40px}.lesson-editor-size-actions .btn{width:44px;height:44px;min-height:44px}}
@media(max-width:800px){.lesson-color-popover{position:fixed;left:12px;right:12px;top:auto;bottom:14px;width:auto;max-height:calc(100dvh - 100px);overflow:auto}}
