So it looks like samigo includes this header.inc, and in standalone mode it's designed to just use the standard css. If the site uses a different skin, then this can't be used. Some of this problem is mentioned on
SAK-23407, and this is how lessons links into it. The problem is that it's not easy to figure out the site context or what skin it should be using because the intention is that it generally should be running standalone. Maybe someone has some creative ideas for fixing this?
I was thinking that perhaps the portal (headscripts) it could just omit it's css and the header could 'fix up' the css of this iframe.
Or perhaps the page that requests the Begin Assessment page can send some data to pass along to the beginAssessment.
For instance Lessons passes a good amount of request data to /samigo-app/servlet/Login but it seems like much of it is discarded, even if some was passed along it could fix this.
// supply the standalone versions tool styles
"<link href=\"/library/skin/tool_base.css\" type=\"text/css\" rel=\"stylesheet\" media=\"all\" />\n" +
"<link href=\"/library/skin/default/tool.css\" type=\"text/css\" rel=\"stylesheet\" media=\"all\" />\n" +
"<link href=\"/samigo-app/css/tool_sam.css\" type=\"text/css\" rel=\"stylesheet\" media=\"all\" />\n");