/* Scoped video UI; existing dashboards and learning controls are unchanged. */
.rfv-video-open{display:inline-flex;align-items:center;justify-content:center;gap:8px;flex:none;min-height:40px;padding:10px 17px;border:1px solid #1768ff;border-radius:9px;background:#1768ff;color:#fff;font:inherit;font-size:14px;font-weight:700;white-space:nowrap;cursor:pointer;box-shadow:0 3px 9px #1768ff20}
.rfv-video-open svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7}.rfv-video-open svg path{fill:currentColor;stroke:none}.rfv-video-open:hover{background:#1055d6;border-color:#1055d6}.rfv-video-open:focus-visible,.rfv-video-close:focus-visible,.rfv-video-chapters button:focus-visible{outline:3px solid #7cacff;outline-offset:3px}
.rfv-video-dialog{width:min(1100px,calc(100vw - 40px));max-width:none;max-height:calc(100dvh - 40px);padding:0;border:1px solid #dce7f8;border-radius:18px;background:#fff;color:#102453;box-shadow:0 24px 90px #081b4840;overflow:auto;overscroll-behavior:contain;font-family:inherit}
.rfv-video-dialog::backdrop{background:rgb(15 30 55 / 55%)}.rfv-video-shell{padding:24px}.rfv-video-header{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;margin-bottom:18px}.rfv-video-header h2{margin:0;font-size:25px;line-height:1.35;letter-spacing:-.6px;color:#102453}.rfv-video-header p{margin:7px 0 0;color:#667c9e;font-size:14px;line-height:1.5}.rfv-video-close{flex:none;width:36px;height:36px;border:0;border-radius:8px;background:#f3f7fd;color:#506889;font:inherit;font-size:30px;line-height:1;cursor:pointer}.rfv-video-close:hover{background:#e5effe}
.rfv-video-player{display:block;width:100%;aspect-ratio:16/9;object-fit:contain;background:#fff;border:1px solid #dce5f2;border-radius:10px}.rfv-video-chapter-heading{display:flex;justify-content:space-between;gap:12px;align-items:center;margin:17px 0 10px;font-size:13px}.rfv-video-current{color:#677d9e;font-size:12px}.rfv-video-chapters{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:4px}.rfv-video-chapters button{display:grid;place-items:center;min-width:0;height:32px;border:1px solid #dce7f8;border-radius:6px;background:#f7faff;color:#46658d;font:inherit;font-size:13px;font-weight:700;cursor:pointer}.rfv-video-chapters button:hover{border-color:#1768ff;color:#1768ff}.rfv-video-chapters button[aria-pressed="true"]{background:#1768ff;border-color:#1768ff;color:#fff}
.rfv-video-footer{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-top:15px;color:#7185a1;font-size:12px;line-height:1.5}.rfv-video-footer a{color:#1768ff;white-space:nowrap;text-decoration:none}.rfv-video-footer a:hover{text-decoration:underline}
@media(max-width:700px){.rfv-video-open{min-height:37px;padding:8px 12px;font-size:13px}.rfv-video-dialog{width:calc(100vw - 20px);max-height:calc(100dvh - 20px);border-radius:12px}.rfv-video-shell{padding:15px}.rfv-video-header{margin-bottom:13px;gap:9px}.rfv-video-header h2{font-size:19px}.rfv-video-header p{font-size:12px}.rfv-video-close{width:30px;height:30px;font-size:26px}.rfv-video-chapters{grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}.rfv-video-chapter-heading{align-items:flex-start;flex-direction:column;gap:4px}.rfv-video-footer{align-items:flex-start;flex-direction:column;gap:9px}.top-actions:has(.rfv-video-open){flex-wrap:wrap}.page-tools:has(.rfv-video-open){flex-wrap:wrap}}
@media(max-width:400px){.rfv-video-chapters{grid-template-columns:repeat(2,minmax(0,1fr))}}

.rfb-welcome:has(.rfv-video-actions)>span{display:none}.rfv-video-actions{display:flex;flex:none;flex-direction:column;align-items:center;gap:6px}.rfv-video-actions>small{font-size:11px;color:#70829d}.rfv-video-chapters button{height:auto;min-height:35px;padding:7px 5px;font-size:12px;line-height:1.3}.home-v2-welcome:has(.rfv-video-actions){display:flex;justify-content:space-between;gap:16px}
@media(max-width:700px){.rfb-welcome:has(.rfv-video-actions){display:flex;flex-wrap:wrap;align-items:flex-start;gap:14px}.rfv-video-actions{align-items:flex-start}.rfv-video-chapters button{min-height:42px;font-size:12px}}
