/* Frame the release UI in the teaching page. Keep site typography and
   navigation outside the replica; the two apps supply their own controls. */
.lab-monitor-course {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin: 0 0 12px;
  padding: 14px 18px;
  border: 1px solid #cbd9ee;
  border-radius: 12px;
  color: #172945;
  background: #f0f5ff;
}
.lab-monitor-course[hidden] { display: none; }
.lab-monitor-course > div:first-child { flex: 1 1 360px; }
.lab-monitor-course small { color: #405c8a; }
.lab-monitor-course h2 { margin: 3px 0; font-size: 1.05rem; }
.lab-monitor-course p { margin: 0; max-width: 76ch; font-size: .92rem; }
.lab-course-actions { display: flex; flex-wrap: wrap; gap: 6px; }
#workspace[data-course-page="updates"] [data-form="save-package"][data-id="windows-x64"] button,
#workspace[data-course-page="connect"] [data-mg="open-client-connection"] {
  box-shadow: 0 0 0 2px var(--md-primary);
}
.lab-frame.client-frame { display:block; min-height:0; }
.client-surface { min-width:0; width:100%; }
.lab-frame.cm-app { --sub:var(--md-on-surface-variant); --ink:var(--md-on-surface); position:relative; isolation:isolate; height:clamp(580px,calc(100dvh - 135px),1050px); min-height:0; overflow:hidden; }
.cm-app > .rail { height:100%; position:static; }
.cm-app > .frame { height:100%; min-height:0; overflow:auto; scrollbar-width:thin; }
.cm-app header.top { min-height:64px; flex:none; flex-wrap:nowrap; border:0; justify-content:normal; }
.cm-app header.top .brand-mark img, .cm-app .rail .brand-mark img { width:24px; height:24px; }
.cm-app footer { border:0; background:var(--md-surface-container); }
.cm-app h1, .cm-app h2, .cm-app h3 { text-wrap:initial; }
.cm-app a.button-link, .cm-app button, .cm-app input, .cm-app select, .cm-app textarea { font-family:inherit; }
.cm-app .brand-name { font-family:inherit; }
.cm-app .sheet { width:auto; }
.cm-app .cm-disabled-reason { font-size:12px; color:var(--md-on-surface-variant); }
.cm-app .toasts, .cm-app .analytics-toast:not([hidden]) { position:absolute; }
.cm-app.cm-wall > .rail, .cm-app.cm-wall > .bottom-nav, .cm-app.cm-wall header.top, .cm-app.cm-wall footer { display:none; }
.cm-app.cm-wall { display:block; }
.cm-app.cm-wall .sheet { border-radius:0; margin:0; }
@media(max-width:839px) {
  .lab-frame.cm-app { display:flex; flex-direction:column; height:clamp(485px,calc(100dvh - 96px),900px); }
  .cm-app > .frame { height:auto; flex:1; min-height:0; }
  .cm-app > .bottom-nav { position:relative; flex:none; height:68px; padding-block:8px; }
  .cm-app .bar-more .dropdown-menu { position:absolute; bottom:100%; right:6px; max-height:min(65vh,430px); overflow:auto; }
  .cm-app footer { padding-bottom:16px; }
}
