/* Guru's desktop title had overflow:visible and could displace close controls into its course sidebar. */
.guru-lesson .guru-lesson-header{gap:12px;min-width:0}
.guru-lesson .guru-lesson-header-l{flex:1 1 auto;min-width:0;overflow:hidden}
.guru-lesson .guru-lesson-header-label{width:auto;max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.guru-lesson .guru-lesson-header-r{flex:0 0 auto;min-width:max-content}
.guru-lesson .guru-lesson-header-r a{flex:0 0 44px;width:44px;height:44px;line-height:44px}

/* The essay result reserves an unused 30% column and another 10% for labels.
   Stack the labels above the question/answer, leaving feedback controls intact. */
#g_myquizzesstats .guru-quiz__answers>.uk-width-1-1>.uk-grid>.uk-width-large-7-10{width:100%;min-width:0}
#g_myquizzesstats .guru-quiz__answers>.uk-width-1-1>.uk-grid>.uk-width-large-3-10:not(:has(*)){display:none}
#g_myquizzesstats .guru-quiz__answers>.uk-width-1-1>.uk-grid>.uk-width-large-7-10>.uk-grid{margin-left:0}
#g_myquizzesstats .guru-quiz__answers>.uk-width-1-1>.uk-grid>.uk-width-large-7-10>.uk-grid>:is(.uk-width-large-1-10,.uk-width-large-9-10){width:100%;padding-left:0;min-width:0}
#g_myquizzesstats .guru-quiz__answers>.uk-width-1-1>.uk-grid>.uk-width-large-7-10>.uk-grid>.uk-width-large-1-10{margin-bottom:8px}

/* Rich S1P assignments already have their own canvas and inner spacing.
   Use the available lesson width both before submission and on the result. */
#the_quiz:has(article[data-s1p-lesson]),
#the_quiz .guru-quiz__question:has(article[data-s1p-lesson]){background:transparent}
#the_quiz .guru-quiz__question:has(article[data-s1p-lesson]){padding:0}
#the_quiz article[data-s1p-lesson]{width:100%!important;max-width:none!important;box-sizing:border-box}
@media(max-width:600px){
 .gru-lesson-content:has(#the_quiz),#g_myquizzesstats:has(#the_quiz){padding:12px}
 #the_quiz article[data-s1p-lesson]{padding:16px!important}
}
