/* Loaded by each module page. Only active when the page is shown inside the Student Portal shell
   (the page adds class "embed" to <html> when opened with ?embed=1 inside a frame). The shell already
   provides the brand, sign-out, notifications and navigation, so the module's own chrome is hidden. */
html.embed,html.embed body{background:transparent!important;min-height:0}

/* Beginners / Intermediate academy pages — sidebar becomes a slim tab strip */
html.embed .academy-topbar,
html.embed .academy-sidebar-brand,
html.embed .academy-sidebar-footer,
html.embed .academy-overlay,
html.embed .acad-nav-item[href]{display:none!important}
html.embed .academy-shell{display:block;min-height:0}
html.embed .academy-sidebar{position:sticky;top:0;bottom:auto;left:auto;width:auto;transform:none!important;box-shadow:none;z-index:60;
  background:rgba(4,14,26,.82);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);border-right:0;border-bottom:1px solid rgba(72,171,255,.18)}
html.embed .acad-nav{display:flex;overflow-x:auto;flex:none}
html.embed .acad-nav-item{width:auto;flex:none;margin:0;white-space:nowrap}
html.embed .academy-main{margin-left:0}

/* Exam Portal / Challenge top bars, Recaps nav */
html.embed .topbar,
html.embed .er-nav{display:none!important}

/* While an embedded module is still deciding whether the student is signed in, don't flash its own login */
html.embed.embed-boot #login-screen,html.embed.embed-boot #conflict-modal{display:none!important}
