.protected-content{position:relative;isolation:isolate}
.lesson-watermark{position:fixed;inset:0;z-index:5;display:none;grid-template-columns:repeat(3,1fr);align-content:space-around;gap:7vh 3vw;transform:none;opacity:.10;font-size:11px;line-height:1.7;pointer-events:none;user-select:none;overflow:hidden}
.protected-content.is-active .lesson-watermark{display:grid}
.lesson-watermark span{max-width:270px;overflow-wrap:anywhere;transform:rotate(-20deg)}
.video-watermark{z-index:8;pointer-events:none;user-select:none;left:4%;top:12%;max-width:72%;font:500 clamp(10px,1.2vw,15px)/1.45 Arial,sans-serif;letter-spacing:.03em;opacity:.66;color:white;text-shadow:0 1px 3px #000,1px 0 2px #000;white-space:normal}
.video-watermark[data-position="1"]{left:24%;top:34%}.video-watermark[data-position="2"]{left:8%;top:62%}.video-watermark[data-position="3"]{left:27%;top:18%}.video-watermark[data-position="4"]{left:18%;top:49%}
.video-shell mux-player{--pip-button:none;--cast-button:none;--airplay-button:none;--fullscreen-button:none}
.video-shell mux-player::part(pip),.video-shell mux-player::part(cast),.video-shell mux-player::part(airplay),.video-shell mux-player::part(fullscreen){display:none}
.protected-fullscreen{position:absolute;right:10px;top:10px;z-index:10;width:38px;height:34px;border:1px solid #9996;border-radius:6px;background:#0009;color:#fff;font-size:19px}
.video-shell:fullscreen,.video-shell.video-expanded{width:100%;height:100%;border-radius:0;background:#000}
.video-shell.video-expanded{position:fixed;inset:0;z-index:1000}.video-expanded-open{overflow:hidden}
.content-protection-notice{font-size:10px;line-height:1.6;color:#aaa397;margin:12px 0}
.material-viewer{color:#eee8dc;background:#111;border:1px solid #49443c;border-radius:12px;padding:18px;width:min(94vw,1160px);max-height:94dvh;overflow:auto}
.material-viewer::backdrop{background:#000c}.material-viewer-head{display:flex;align-items:center;justify-content:space-between;gap:16px;position:sticky;top:-18px;padding:10px 0;background:#111;z-index:1}.material-viewer h2{font-size:16px;margin:0}.material-viewer button{padding:9px 14px;border:1px solid #60574a;background:#191919;color:#eee8dc;border-radius:6px}.material-viewer button:disabled{opacity:.4}
.material-viewer canvas{display:block;max-width:100%;height:auto;margin:12px auto;background:#fff}.material-viewer-controls{display:flex;gap:18px;justify-content:center;align-items:center}.material-identity{font:11px/1.5 monospace;overflow-wrap:anywhere;color:#b6ad9f}.material-actions{display:grid;gap:5px}.material-explicit-download{font-size:10px;background:none;border:0;color:#aaa397;text-align:left;min-height:30px}
.protected-content,.material-viewer{-webkit-touch-callout:none}.protected-content :not(input):not(textarea),.material-viewer canvas{-webkit-user-select:none;user-select:none}
.print-protection-notice{display:none}
@media(max-width:600px){.lesson-watermark{grid-template-columns:repeat(2,1fr);font-size:9px;gap:8vh 8px}.material-viewer{padding:12px}.video-watermark{font-size:10px}}
@media print{body>*{display:none!important}body>.print-protection-notice{display:block!important;color:#000;font:16px/1.6 Arial,sans-serif;padding:30px}.material-viewer{display:none!important}}

.video-expanded-open .protected-content{isolation:auto;animation:none}.video-expanded-open .topbar{visibility:hidden}

.material-pages{overflow:auto;max-height:68dvh;touch-action:pan-x pan-y}.material-pages canvas{max-width:none}.material-zoom{margin:10px 0;font-size:11px;gap:12px}.material-zoom button{padding:5px 12px}

.protected-video-status{font-size:13px;line-height:1.65;color:#d0c4b1}.protected-video-browser{display:inline-block;margin:8px 0 14px;font-size:13px;color:#dcc5a1}.protected-video-browser[hidden]{display:none}
