/* Keep the course workspace aligned with the selected site theme. */
.lab-inner-page .lab-nav,
.lab-inner-page .lab-nav a,
.lab-inner-page .course-syllabus,
.lab-inner-page .syllabus-head h2,
.lab-inner-page .syllabus-head p,
.lab-inner-page .syllabus-head > span,
.lab-inner-page .lesson-item,
.lab-inner-page .lesson-status,
.lab-inner-page .lesson-note,
.lab-inner-page .lab-header {
  transition: color .3s ease, background-color .3s ease, border-color .3s ease, box-shadow .3s ease;
}

@media (min-width: 901px) {
  .lab-inner-page .lab-header {
    display: grid;
    grid-template-columns: auto auto auto minmax(0, 1fr) auto;
    gap: clamp(10px, 1.2vw, 16px);
    justify-content: initial;
  }

  .lab-inner-page .lab-brand { grid-column: 1; grid-row: 1; justify-self: start; }
  .lab-inner-page .theme-toggle { grid-column: 2; grid-row: 1; justify-self: center; }
  .lab-inner-page .locale-toggle { grid-column: 3; grid-row: 1; justify-self: center; }
  .lab-inner-page .lab-nav { grid-column: 4; grid-row: 1; justify-self: center; }
  .lab-inner-page .lab-exit { grid-column: 5; grid-row: 1; justify-self: start; }
  .lab-inner-page :is(.theme-toggle, .locale-toggle) { width: 38px; min-width: 38px; height: 38px; min-height: 38px; padding: 0; }
  .lab-inner-page .theme-toggle svg { width: 18px; height: 18px; }
}

@media (min-width: 601px) and (max-width: 900px) {
  .lab-inner-page .lab-header {
    display: grid;
    grid-template-columns: auto auto auto minmax(0, 1fr);
    gap: 12px;
    row-gap: 12px;
    align-items: center;
    padding: 12px;
  }

  .lab-inner-page .lab-brand { grid-column: 1; grid-row: 1; }
  .lab-inner-page .theme-toggle { grid-column: 2; grid-row: 1; justify-self: center; }
  .lab-inner-page .locale-toggle { grid-column: 3; grid-row: 1; justify-self: center; }
  .lab-inner-page .lab-exit { grid-column: 4; grid-row: 1; justify-self: end; }
  .lab-inner-page .lab-nav { grid-column: 1 / -1; grid-row: 2; justify-self: center; width: 100%; margin-top: 2px; }
  .lab-inner-page :is(.theme-toggle, .locale-toggle) { width: 38px; min-width: 38px; height: 38px; min-height: 38px; padding: 0; }
  .lab-inner-page .theme-toggle svg { width: 18px; height: 18px; }
}

html[data-theme="dark"] .lab-inner-page .lab-brand { color: #f0e4ed; }
html[data-theme="dark"] .lab-inner-page .lab-header {
  background: rgba(43, 36, 47, .9);
  border-color: rgba(225, 204, 222, .16);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .2);
}
html[data-theme="dark"] .lab-inner-page .lab-nav {
  color: #e5d7e2;
  background: #302934;
  border: 1px solid rgba(227, 206, 224, .13);
}
html[data-theme="dark"] .lab-inner-page .lab-nav a { color: #c7b5c5; }
html[data-theme="dark"] .lab-inner-page .lab-nav a:hover,
html[data-theme="dark"] .lab-inner-page .lab-nav a.is-active {
  color: #f4e6ef;
  background: #483947;
  box-shadow: inset 0 0 0 1px rgba(226, 184, 202, .1);
}
html[data-theme="dark"] .lab-inner-page .course-syllabus {
  color: #e9dce6;
  background: #2b2530;
  border-color: rgba(228, 205, 222, .14);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .18);
}
html[data-theme="dark"] .lab-inner-page .syllabus-head h2 { color: #f0e4ec; }
html[data-theme="dark"] .lab-inner-page .syllabus-head p { color: #dfa6b5; }
html[data-theme="dark"] .lab-inner-page .syllabus-head > span {
  color: #f2dbe4;
  background: #473541;
}
html[data-theme="dark"] .lab-inner-page .syllabus-progress {
  background: #443541;
  border-radius: 999px;
}
html[data-theme="dark"] .lab-inner-page .syllabus-list,
html[data-theme="dark"] .lab-inner-page .lesson-item { border-color: rgba(226, 203, 220, .1); }
html[data-theme="dark"] .lab-inner-page .lesson-item { color: #d8c8d5; }
html[data-theme="dark"] .lab-inner-page .lesson-item b { color: #e9dce6; }
html[data-theme="dark"] .lab-inner-page .lesson-item small { color: #bba9bc; }
html[data-theme="dark"] .lab-inner-page .lesson-item > i { color: #d5a7ad; }
html[data-theme="dark"] .lab-inner-page .lesson-item:hover,
html[data-theme="dark"] .lab-inner-page .lesson-item.is-active { background: #3a303d; }
html[data-theme="dark"] .lab-inner-page .lesson-status {
  color: #d4c3d1;
  background: #453946;
}
html[data-theme="dark"] .lab-inner-page .lesson-item.is-active .lesson-status {
  color: #fff7fa;
  background: #aa6c83;
}
html[data-theme="dark"] .lab-inner-page .lesson-item.is-locked { opacity: 1; }
html[data-theme="dark"] .lab-inner-page .lesson-item.is-locked .lesson-status {
  color: #aa9bad;
  background: #3b3340;
}
html[data-theme="dark"] .lab-inner-page .lesson-note {
  color: #dfcedb;
  background: #362b38;
  border: 1px solid rgba(224, 185, 205, .13);
}
html[data-theme="dark"] .lab-inner-page .lesson-note span { color: #e3b879; }

@media (prefers-reduced-motion: reduce) {
  .lab-inner-page .lab-nav,
  .lab-inner-page .course-syllabus,
  .lab-inner-page .lesson-note,
  .lab-inner-page .lab-header,
  .lab-inner-page .lab-nav a,
  .lab-inner-page .syllabus-head h2,
  .lab-inner-page .syllabus-head p,
  .lab-inner-page .syllabus-head > span,
  .lab-inner-page .lesson-item,
  .lab-inner-page .lesson-status,
  .auth-dialog .auth-field > div:not(.country-picker) { transition-duration: .01ms; }
}
