.tv-rich-wrap{border:1px solid #d8e1ee;border-radius:16px;background:#fff;overflow:hidden;box-shadow:0 8px 24px rgba(15,23,42,.04)}
.tv-rich-toolbar{display:flex;align-items:center;gap:5px;flex-wrap:wrap;padding:8px;background:linear-gradient(180deg,#fbfdff,#f5f8fc);border-bottom:1px solid #e3e9f1;position:sticky;top:0;z-index:2}
.tv-rich-toolbar button,.tv-rich-toolbar select{min-width:34px;height:34px;border:1px solid #d8e1ec;background:#fff;border-radius:9px;color:#24324a;font-weight:750;padding:0 9px;cursor:pointer;width:auto}
.tv-rich-toolbar button:hover{background:#eef4ff;border-color:#bdd0f5;color:#1d4ed8}.tv-rich-toolbar select{min-width:112px}.tv-rich-toolbar input[type=color]{width:36px;height:34px;padding:2px;border:1px solid #d8e1ec;border-radius:9px;background:#fff}
.tv-rich-editor{min-height:230px;padding:18px 20px;outline:0;line-height:1.75;color:#293548;background:#fff;overflow:auto}.tv-rich-editor:focus{box-shadow:inset 0 0 0 2px rgba(37,99,235,.10)}
.tv-rich-editor h2,.tv-rich-editor h3,.tv-rich-editor h4{color:#0f2a5d}.tv-rich-editor blockquote{border-left:4px solid #6366f1;padding:10px 14px;margin:12px 0;background:#f5f3ff;border-radius:0 10px 10px 0}.tv-rich-editor table{border-collapse:collapse;width:100%;margin:12px 0}.tv-rich-editor td,.tv-rich-editor th{border:1px solid #d7dfeb;padding:8px}.tv-rich-editor pre{white-space:pre-wrap;background:#0f172a;color:#e2e8f0;padding:14px;border-radius:10px}
.tv-rich-help{font-size:11px;color:#667085;margin:7px 2px 0}.lesson-copy.rich-content{white-space:normal!important}.rich-content p:first-child{margin-top:0}.rich-content table{border-collapse:collapse;width:100%;display:block;overflow:auto}.rich-content th,.rich-content td{border:1px solid #dbe2ec;padding:9px}.rich-content blockquote{border-left:4px solid #6366f1;padding:10px 14px;background:#f5f3ff;margin-left:0}.rich-content pre{white-space:pre-wrap;background:#0f172a;color:#e2e8f0;padding:14px;border-radius:10px}.rich-content a{text-decoration:underline}
.material-viewer{margin-top:22px;border:1px solid #dfe6ef;border-radius:16px;overflow:hidden;background:#f8fafc}.material-viewer-head{display:flex;justify-content:space-between;align-items:center;padding:12px 14px;background:#fff;border-bottom:1px solid #e5eaf1}.material-viewer iframe{width:100%;height:650px;border:0;background:#fff}.local-video-player{width:100%;height:100%;object-fit:contain;background:#05070a}
.media-choice{display:grid;grid-template-columns:1fr 1fr;gap:12px}.upload-note{font-size:11px;color:#667085;margin-top:5px}.lesson-admin-actions{display:flex;gap:6px;align-items:center}.lesson-admin-actions .btn{padding:7px 10px!important;font-size:11px}.content-editor-badge{display:inline-flex;align-items:center;gap:5px;background:#ecfdf3;color:#047857;border:1px solid #a7f3d0;border-radius:999px;padding:5px 8px;font-size:10px;font-weight:800}
@media(max-width:700px){.tv-rich-toolbar{gap:4px}.tv-rich-toolbar button{padding:0 7px}.tv-rich-editor{min-height:200px;padding:14px}.media-choice{grid-template-columns:1fr}.material-viewer iframe{height:460px}}
.chapter-admin-summary{margin-top:8px;max-width:850px;color:#5b677a;font-size:11px;line-height:1.55}.chapter-admin-summary p{margin:3px 0}.chapter-admin-summary h2,.chapter-admin-summary h3,.chapter-admin-summary h4{font-size:12px;margin:5px 0;color:#263a5d}
