.beta-label {
  display: inline-block;
  padding: .16em .42em;
  border-radius: 999px;
  background: #ffebd5;
  color: #653e00;
  font: 750 clamp(.625rem, .45em, .8rem)/1.3 system-ui, sans-serif;
  letter-spacing: .035em;
  vertical-align: .14em;
  white-space: nowrap;
}
/* Unified site-wide sticky header matching homepage (.dashboard-header: 68px, max-width 1560px, padding 0 28px) */
html {
  scrollbar-gutter: stable;
}

body .dashboard-header,
body .header,
body .lab-bar,
body .site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 68px;
  min-height: 68px;
  background: rgba(251, 248, 255, .96);
  border-bottom: 1px solid #e4e7f1;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

body .dashboard-header-inner,
body .header .wrap,
body .lab-bar .lab-wrap,
body .site-header .header-inner {
  box-sizing: border-box;
  width: 100%;
  max-width: 1560px;
  height: 68px;
  min-height: 68px;
  margin-inline: auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

body .dashboard-header-inner:has(.lab-header-search, .portal-search),
body .header .wrap:has(.lab-header-search, .portal-search),
body .lab-bar .lab-wrap:has(.lab-header-search, .portal-search),
body .site-header .header-inner:has(.lab-header-search, .portal-search) {
  display: grid;
  grid-template-columns: 1fr minmax(220px, 460px) 1fr;
  align-items: center;
  gap: 16px;
}

body .dashboard-header-inner:has(.lab-header-search, .portal-search) > :first-child,
body .header .wrap:has(.lab-header-search, .portal-search) > :first-child,
body .lab-bar .lab-wrap:has(.lab-header-search, .portal-search) > :first-child,
body .site-header .header-inner:has(.lab-header-search, .portal-search) > :first-child {
  justify-self: start;
  min-width: 0;
}

.lab-header-search {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-self: center;
  width: 100%;
  max-width: 460px;
  min-height: 44px;
  margin: 0;
  padding: 0 14px;
  border: 1px solid #ded4ef;
  border-radius: 999px;
  background: #efebf7;
  color: #252137;
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.lab-header-search:hover {
  background: #e8e1f4;
  border-color: #c7b8e2;
}

.lab-header-search:focus-within {
  background: #ffffff;
  border-color: #634395;
  box-shadow: 0 0 0 3px rgba(99, 67, 149, .14);
}

button.lab-header-search-btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #534563;
  cursor: pointer;
}

button.lab-header-search-btn:focus-visible {
  outline: 2px solid #634395;
  outline-offset: 2px;
  border-radius: 999px;
}

input.lab-header-search-input {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  height: 42px;
  border: 0;
  padding: 0;
  background: transparent;
  color: #252137;
  font: 600 .875rem/1.2 'Plus Jakarta Sans', Inter, system-ui, sans-serif;
  outline: none;
}

input.lab-header-search-input::placeholder {
  color: #6b5d80;
  font-weight: 500;
}

body input.lab-header-search-input:focus,
body input.lab-header-search-input:focus-visible,
body .portal-search input:focus,
body .portal-search input:focus-visible {
  outline: none !important;
  box-shadow: none !important;
  border: 0 !important;
  background: transparent !important;
}

body .brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  line-height: 1.1;
  text-decoration: none;
  flex: none;
}

body .brand img.logo,
body .brand img.brandmark,
body .dashboard-header .brand img.logo,
body .lab-bar .brand img.logo,
body .header .brand img.logo,
body .site-header .brand img.brandmark {
  display: block;
  flex: none;
  width: 36px;
  height: 36px;
  object-fit: contain;
  background: transparent;
  border-radius: 0;
}

body .brand > span,
body .brand .brandtext {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  width: max-content;
  line-height: 1.05;
}

body .brand b,
body .brand strong,
body .dashboard-header .brand b,
body .lab-bar .brand b,
body .header .brand b,
body .site-header .brand strong {
  display: block;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.035em;
  color: #252137;
  white-space: nowrap;
}

body .brand small,
body .dashboard-header .brand small,
body .lab-bar .brand small,
body .header .brand small,
body .site-header .brand small {
  display: block;
  width: 100%;
  margin-top: 2px;
  font: 600 9.5px/1.25 Inter, system-ui, sans-serif;
  letter-spacing: .28em;
  text-indent: .28em;
  text-align: center;
  white-space: nowrap;
  color: #534563;
}

body .lab-header-actions,
body .site-header .header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  justify-self: end;
  flex-wrap: nowrap;
  gap: 8px;
}

.lab-status-pill {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff0df;
  border: 1px solid #f5d8b3;
  color: #7c4200;
  font: 700 .75rem/1.2 'Plus Jakarta Sans', Inter, system-ui, sans-serif;
  letter-spacing: .01em;
  white-space: nowrap;
}

.lab-status-dot {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d97706;
  box-shadow: 0 0 0 2.5px rgba(217, 119, 6, .22);
}

a.lab-home-btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid #ded4ef;
  border-radius: 9px;
  background: #f2edf9;
  color: #3d2b55;
  text-decoration: none;
  transition: background .15s ease, border-color .15s ease;
}

a.lab-home-btn:hover {
  background: #e8dff5;
  border-color: #634395;
  text-decoration: none;
}

a.lab-home-btn:focus-visible {
  outline: 2px solid #634395;
  outline-offset: 2px;
}

button.lab-language {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 44px;
  padding: 6px 12px;
  border: 1px solid #ded4ef;
  border-radius: 9px;
  background: #f2edf9;
  color: #3d2b55;
  font: inherit;
  font-size: .8125rem;
  font-weight: 750;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}
button.lab-language:hover { background:#e8dff5; }
button.lab-language:focus-visible { outline:2px solid #634395; outline-offset:2px; }
button.lab-language[hidden] { display: none !important; }
@media (max-width:1000px) {
  body .dashboard-header-inner,
  body .header .wrap,
  body .lab-bar .lab-wrap,
  body .site-header .header-inner { padding: 0 20px; }
}
@media (max-width:900px) {
  body .dashboard-header-inner:has(.lab-header-search, .portal-search),
  body .header .wrap:has(.lab-header-search, .portal-search),
  body .lab-bar .lab-wrap:has(.lab-header-search, .portal-search),
  body .site-header .header-inner:has(.lab-header-search, .portal-search) {
    display: flex;
    justify-content: space-between;
    gap: 12px;
  }
  .lab-header-search {
    flex: 1 1 auto;
    max-width: none;
    padding: 0 12px;
  }
}
@media (max-width:760px) {
  body .dashboard-header,
  body .header,
  body .lab-bar,
  body .site-header { height: 64px; min-height: 64px; }
  body .dashboard-header-inner,
  body .header .wrap,
  body .lab-bar .lab-wrap,
  body .site-header .header-inner { padding: 0 16px; height: 64px; min-height: 64px; gap: 8px; }
  .lab-header-search { padding: 0 10px; }
  input.lab-header-search-input { font-size: 16px; }
  .lab-status-pill { display: none; }
}
@media (max-width:560px) {
  body .dashboard-header-inner,
  body .header .wrap,
  body .lab-bar .lab-wrap,
  body .site-header .header-inner { padding: 0 12px; gap: 8px; }
  .lab-brand-group { gap: 6px; }
  button.lab-drawer-btn { width: 36px; height: 36px; }
  button.lab-settings-btn { width: 40px; height: 40px; }
  body .brand img.logo,
  body .brand img.brandmark,
  body .dashboard-header .brand img.logo,
  body .lab-bar .brand img.logo,
  body .header .brand img.logo,
  body .site-header .brand img.brandmark { width: 32px; height: 32px; }
  body .brand b,
  body .brand strong,
  body .dashboard-header .brand b,
  body .lab-bar .brand b,
  body .header .brand b,
  body .site-header .brand strong { font-size: 16px; }
  body .brand small,
  body .dashboard-header .brand small,
  body .lab-bar .brand small,
  body .header .brand small,
  body .site-header .brand small { display: none; }
}
@media (max-width:480px) {
  body .lab-header-actions,
  body .site-header .header-actions { gap: 6px; }
  button.lab-language { padding-inline: 8px; }
}
@media (max-width:440px) {
  body .dashboard-header .brand > span,
  body .header .brand > span,
  body .lab-bar .brand > span,
  body .site-header .brand .brandtext { display: none; }
}

/* Unified single-line simulation title bar (logo + simulation name + Tingkatan & Bab) */
body .lab-intro.has-module-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  margin-bottom: 14px;
}
body .lab-intro.has-module-logo .lab-module-logo,
.sim-title-row .sim-module-logo {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 5px;
  border-radius: 11px;
  color: #9f4122;
  background: #fff0ea;
  box-sizing: border-box;
}
.sim-title-row .sim-module-logo.is-physics { color: #3730a3; background: #eef2ff; }
.sim-title-row .sim-module-logo.is-chem { color: #0f766e; background: #ecfdf5; }
.sim-title-row .sim-module-logo.is-math { color: #9f4122; background: #fff0ea; }
body .lab-intro.has-module-logo .lab-module-logo svg,
.sim-title-row .sim-module-logo svg {
  display: block;
  width: 100%;
  height: 100%;
}
body .lab-intro.has-module-logo .lab-module-heading {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 10px 14px;
}
body .lab-intro.has-module-logo h1 {
  margin: 0;
  min-width: 0;
  font-size: clamp(1.15rem, 2.2vw, 1.7rem);
  line-height: 1.2;
  letter-spacing: -.025em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
body .lab-intro.has-module-logo .lab-subject-badge,
.sim-title-row .sim-subject-badge {
  flex: none;
  margin-inline-start: auto;
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  color: #10418d;
  background: #dbe8fb;
  font-family: Inter, system-ui, sans-serif;
  font-size: .8rem;
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: .01em;
  white-space: nowrap;
}
.sim-title-row {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 12px;
  width: 100%;
  min-width: 0;
}
.intro:has(.sim-title-row),
.lab-title:has(.sim-title-row) {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}
.sim-title-row h1 {
  margin: 0 !important;
  flex: 1 1 auto;
  min-width: 0;
  font-size: clamp(1.15rem, 2.2vw, 1.65rem) !important;
  font-weight: 800;
  line-height: 1.2 !important;
  letter-spacing: -.025em;
  color: #252137;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
@media (max-width: 640px) {
  body .lab-intro.has-module-logo,
  .sim-title-row {
    flex-wrap: wrap;
    gap: 8px 10px;
  }
  body .lab-intro.has-module-logo .lab-module-logo,
  .sim-title-row .sim-module-logo {
    width: 36px;
    height: 36px;
  }
  body .lab-intro.has-module-logo .lab-module-heading {
    flex-wrap: wrap;
    gap: 6px 10px;
  }
  body .lab-intro.has-module-logo .lab-subject-badge,
  .sim-title-row .sim-subject-badge {
    margin-inline-start: 0;
    font-size: .74rem;
    padding: 4px 10px;
  }
}

/* Under-development notice for Nota Pembelajaran & Video Pembelajaran panels */
.lab-dev-notice {
  margin: 4px 0 0;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px dashed #d6cde6;
  background: #faf8fe;
  color: #5b5370;
  font-size: .875rem;
  line-height: 1.55;
}

/* Unified multi-column site footer across Makmal STEM pages */
body .site-footer {
  box-sizing: border-box;
  display: block;
  width: 100%;
  margin: clamp(32px, 5vw, 56px) 0 0;
  padding: 0;
  background: linear-gradient(180deg, #211c33 0%, #191528 100%);
  color: #d6d0e6;
  border-top: 1px solid rgba(167, 139, 250, 0.24);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  text-align: left;
}
body .site-footer *, body .site-footer *::before, body .site-footer *::after {
  box-sizing: border-box;
}
.site-footer-inner {
  box-sizing: border-box;
  width: 100%;
  max-width: 1560px;
  margin-inline: auto;
  padding: clamp(22px, 2.8vw, 30px) clamp(18px, 3vw, 28px) clamp(14px, 2vw, 18px);
}
.site-footer-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1.45fr) repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.6vw, 34px);
  align-items: start;
}
.site-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  text-decoration: none;
  margin-bottom: 10px;
}
.site-footer-brand img {
  display: block;
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 9px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14);
}
.site-footer-brand > span {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  width: max-content;
  line-height: 1.05;
}
.site-footer-brand strong {
  display: block;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.035em;
  color: #ffffff;
  white-space: nowrap;
}
.site-footer-brand small {
  display: block;
  width: 100%;
  margin-top: 2px;
  font: 600 9.5px/1.25 Inter, system-ui, sans-serif;
  letter-spacing: .28em;
  text-indent: .28em;
  text-align: center;
  white-space: nowrap;
  color: #c4b5fd;
  text-transform: uppercase;
}
.site-footer-desc {
  margin: 0 0 14px;
  max-width: 32ch;
  font-size: 13px;
  line-height: 1.6;
  text-align: left;
  text-wrap: pretty;
  color: #cbc4df;
}
.site-footer-socials {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin-top: 2px;
}
.site-footer-social {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(196, 181, 253, 0.22);
  color: #c4b5fd;
  text-decoration: none;
  transition: color .15s ease, background .15s ease, border-color .15s ease, transform .15s ease;
}
.site-footer-social:hover,
.site-footer-social:focus-visible {
  color: #fde047;
  background: rgba(253, 224, 71, 0.12);
  border-color: rgba(253, 224, 71, 0.45);
  transform: translateY(-2px);
}
.site-footer-social svg {
  display: block;
  width: 19px;
  height: 19px;
}
.site-footer-col h3 {
  margin: 0 0 10px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #a79bc4;
}
.site-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.site-footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 550;
  line-height: 1.4;
  color: #ece8f8;
  text-decoration: none;
  transition: color .15s ease, transform .15s ease;
}
.site-footer-links a:hover,
.site-footer-links a:focus-visible {
  color: #fde047;
  transform: translateX(2px);
}
.site-footer-muted {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 550;
  line-height: 1.4;
  color: #9c92b8;
  cursor: default;
}
.site-footer-soon {
  font-size: 11px;
  font-weight: 650;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(196, 181, 253, 0.12);
  color: #c4b5fd;
}
.site-footer-bottom {
  margin-top: clamp(18px, 2.4vw, 24px);
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px 20px;
  font-size: 12.5px;
  color: #b4abd0;
}
.site-footer-bottom p {
  margin: 0;
  color: inherit;
}
@media (max-width: 980px) {
  .site-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 24px;
  }
}
@media (max-width: 560px) {
  .site-footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }
  .site-footer-bottom {
    flex-direction: column;
    align-items: center;
  }
}

/* Global Header Settings System */
.lab-settings-wrap {
  position: relative;
  flex: none;
  display: inline-flex;
  align-items: center;
}

button.lab-settings-btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #ded4ef;
  border-radius: 9px;
  background: #f2edf9;
  color: #3d2b55;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}

button.lab-settings-btn svg {
  display: block;
  transition: transform .22s ease;
}

button.lab-settings-btn:hover {
  background: #e8dff5;
  border-color: #634395;
}

button.lab-settings-btn[aria-expanded="true"] {
  background: #e8dff5;
  border-color: #634395;
  color: #252137;
}

button.lab-settings-btn[aria-expanded="true"] svg {
  transform: rotate(45deg);
}

button.lab-settings-btn:focus-visible {
  outline: 2px solid #634395;
  outline-offset: 2px;
}

.lab-settings-popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 60;
  width: min(304px, calc(100vw - 24px));
  max-height: calc(100dvh - 80px);
  overflow-y: auto;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid #ded4ef;
  background: #fbf8ff;
  color: #252137;
  box-shadow: 0 16px 36px rgba(37, 33, 55, .14), 0 2px 6px rgba(37, 33, 55, .06);
  font-family: 'Plus Jakarta Sans', Inter, system-ui, -apple-system, sans-serif;
  text-align: left;
  box-sizing: border-box;
  transform-origin: top right;
  animation: labSettingsIn .16s ease-out;
}

.lab-settings-popover[hidden] {
  display: none;
}

@keyframes labSettingsIn {
  from {
    opacity: 0;
    transform: translateY(-4px) scale(.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.lab-settings-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid #ece5f6;
}

.lab-settings-title {
  font-size: .875rem;
  font-weight: 800;
  letter-spacing: -.01em;
  color: #252137;
}

.lab-settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #ece5f6;
}

.lab-settings-row:last-child {
  padding-bottom: 2px;
  border-bottom: 0;
}

.lab-settings-row-stack {
  flex-direction: column;
  align-items: stretch;
  gap: 9px;
}

.lab-settings-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.lab-settings-row-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.lab-settings-label {
  font-size: .8125rem;
  font-weight: 700;
  color: #252137;
  line-height: 1.25;
}

.lab-settings-sub {
  font-size: .75rem;
  font-weight: 500;
  color: #534563;
  line-height: 1.25;
}

.lab-settings-value {
  font-size: .75rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #534563;
}

.lab-settings-lang-group {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(44px, 1fr));
  padding: 3px;
  border-radius: 9px;
  background: #f2edf9;
  border: 1px solid #ded4ef;
  gap: 3px;
}

button.lab-settings-lang-opt {
  appearance: none;
  border: 0;
  border-radius: 6px;
  padding: 6px 10px;
  background: transparent;
  color: #534563;
  font: inherit;
  font-size: .75rem;
  font-weight: 750;
  line-height: 1;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}

button.lab-settings-lang-opt:hover {
  color: #252137;
  background: #e8dff5;
}

button.lab-settings-lang-opt[aria-pressed="true"] {
  background: #634395;
  color: #ffffff;
}

button.lab-settings-lang-opt:focus-visible {
  outline: 2px solid #634395;
  outline-offset: 1px;
}

.lab-settings-volume {
  display: flex;
  align-items: center;
  gap: 10px;
}

button.lab-settings-mute-btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid #ded4ef;
  border-radius: 8px;
  background: #f2edf9;
  color: #3d2b55;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}

button.lab-settings-mute-btn:hover {
  background: #e8dff5;
  border-color: #634395;
}

button.lab-settings-mute-btn[aria-pressed="true"] {
  color: #534563;
  background: #ece5f6;
}

button.lab-settings-mute-btn:focus-visible {
  outline: 2px solid #634395;
  outline-offset: 2px;
}

input.lab-settings-slider {
  flex: 1 1 auto;
  min-width: 0;
  height: 6px;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 999px;
  background: #ded4ef;
  accent-color: #634395;
  cursor: pointer;
}

input.lab-settings-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #634395;
  border: 2px solid #fbf8ff;
  box-shadow: 0 1px 4px rgba(37, 33, 55, .28);
  cursor: pointer;
}

input.lab-settings-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #634395;
  border: 2px solid #fbf8ff;
  box-shadow: 0 1px 4px rgba(37, 33, 55, .28);
  cursor: pointer;
}

input.lab-settings-slider:focus-visible {
  outline: 2px solid #634395;
  outline-offset: 4px;
}

button.lab-settings-switch {
  position: relative;
  flex: none;
  width: 44px;
  height: 26px;
  padding: 0;
  border: 1px solid #d4c8ea;
  border-radius: 999px;
  background: #e8dff5;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease;
}

button.lab-settings-switch[aria-checked="true"] {
  background: #634395;
  border-color: #634395;
}

button.lab-settings-switch[disabled] {
  opacity: .5;
  cursor: not-allowed;
}

button.lab-settings-switch:focus-visible {
  outline: 2px solid #634395;
  outline-offset: 2px;
}

.lab-settings-switch-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(37, 33, 55, .24);
  transition: transform .18s ease;
}

button.lab-settings-switch[aria-checked="true"] .lab-settings-switch-thumb {
  transform: translateX(18px);
}

@media (max-width: 480px) {
  .lab-settings-popover {
    width: min(296px, calc(100vw - 20px));
    padding: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  button.lab-settings-btn,
  button.lab-settings-btn svg,
  .lab-settings-popover,
  button.lab-settings-lang-opt,
  button.lab-settings-mute-btn,
  button.lab-settings-switch,
  .lab-settings-switch-thumb,
  .lab-drawer,
  .lab-drawer-backdrop,
  .lab-burger span {
    transition: none;
    animation: none;
  }
}

/* Global Off-Canvas Sidepanel (Drawer) */
.lab-brand-group {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

button.lab-drawer-btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: #252137;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}

button.lab-drawer-btn:hover,
button.lab-drawer-btn[aria-expanded="true"] {
  background: #f2edf9;
  border-color: #ded4ef;
}

button.lab-drawer-btn:focus-visible {
  outline: 2px solid #634395;
  outline-offset: 2px;
}

.lab-burger {
  position: relative;
  display: block;
  width: 18px;
  height: 14px;
}

.lab-burger span {
  position: absolute;
  left: 0;
  top: 50%;
  width: 18px;
  height: 2px;
  margin-top: -1px;
  border-radius: 999px;
  background: currentColor;
  transform-origin: center;
  transition: transform .26s cubic-bezier(.22, 1, .36, 1), opacity .18s ease;
}

.lab-burger span:nth-child(1) {
  transform: translateY(-5.5px);
}

.lab-burger span:nth-child(2) {
  transform: translateY(0);
}

.lab-burger span:nth-child(3) {
  transform: translateY(5.5px);
}

button.lab-drawer-btn[aria-expanded="true"] .lab-burger span:nth-child(1) {
  transform: translateY(0) rotate(45deg);
}

button.lab-drawer-btn[aria-expanded="true"] .lab-burger span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

button.lab-drawer-btn[aria-expanded="true"] .lab-burger span:nth-child(3) {
  transform: translateY(0) rotate(-45deg);
}

.lab-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 75;
  background: rgba(20, 17, 34, .44);
  opacity: 0;
  transition: opacity .22s ease;
}

.lab-drawer-backdrop.is-open {
  opacity: 1;
}

.lab-drawer-backdrop[hidden] {
  display: none;
}

body aside#lab-drawer.lab-drawer {
  position: fixed;
  top: 68px;
  left: 0;
  bottom: 0;
  z-index: 80;
  width: min(286px, 86vw);
  margin: 0;
  padding: 0;
  background: #ffffff;
  border-top: 1px solid #ece5f6;
  border-right: 1px solid #e4e7f1;
  box-shadow: 12px 0 36px rgba(20, 17, 34, .18);
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  visibility: hidden;
  transition: transform .24s cubic-bezier(.22, 1, .36, 1), visibility .24s;
  font-family: 'Plus Jakarta Sans', Inter, system-ui, -apple-system, sans-serif;
}

body aside#lab-drawer.lab-drawer.is-open {
  transform: translateX(0);
  visibility: visible;
}

@media (max-width: 760px) {
  body aside#lab-drawer.lab-drawer {
    top: 64px;
  }
}

body.lab-drawer-open .dashboard-header,
body.lab-drawer-open .header,
body.lab-drawer-open .lab-bar,
body.lab-drawer-open .site-header {
  z-index: 90;
}

body.lab-drawer-open .portal-search,
body.lab-drawer-open .lab-header-search,
body.lab-drawer-open .lab-header-actions,
body.lab-drawer-open .header-actions {
  opacity: .35;
  pointer-events: none;
  transition: opacity .22s ease;
}

body aside#lab-drawer.lab-drawer .sidebar-inner {
  position: static;
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 16px 14px 24px;
}

body aside#lab-drawer.lab-drawer .sidebar-label {
  display: block;
  padding: 0 10px;
  margin: 22px 0 8px;
  color: #666d83;
  font: 700 10px/1.4 Inter, system-ui, sans-serif;
  letter-spacing: 1px;
  text-transform: uppercase;
}

body aside#lab-drawer.lab-drawer .sidebar-label:first-child {
  margin-top: 0;
}

body aside#lab-drawer.lab-drawer .sidebar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 6px 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #434b65;
  text-align: left;
  text-decoration: none;
  font-family: inherit;
  font-weight: 650;
  font-size: 13px;
  cursor: pointer;
  box-sizing: border-box;
  transition: background .15s ease, color .15s ease;
}

body aside#lab-drawer.lab-drawer .sidebar-item + .sidebar-item {
  margin-top: 3px;
}

body aside#lab-drawer.lab-drawer .sidebar-item:hover {
  background: #f6f5ff;
  text-decoration: none;
}

body aside#lab-drawer.lab-drawer .sidebar-item[aria-pressed="true"] {
  color: #372abb;
  background: #eeebff;
}

body aside#lab-drawer.lab-drawer .sidebar-item:focus-visible {
  outline: 2px solid #634395;
  outline-offset: 2px;
}

body aside#lab-drawer.lab-drawer .sidebar-icon {
  display: grid;
  place-items: center;
  flex: 0 0 25px;
  width: 25px;
  height: 25px;
  border-radius: 6px;
  color: #5144ce;
  background: #f0edff;
}

body aside#lab-drawer.lab-drawer .sidebar-icon svg {
  width: 15px;
  height: 15px;
}

body aside#lab-drawer.lab-drawer .sidebar-item.math .sidebar-icon {
  color: #9f4122;
  background: #fff0ea;
}

body aside#lab-drawer.lab-drawer .sidebar-item.physics .sidebar-icon {
  color: #3730a3;
  background: #eef2ff;
}

body aside#lab-drawer.lab-drawer .sidebar-item.chem .sidebar-icon {
  color: #0f766e;
  background: #ecfdf5;
}

body aside#lab-drawer.lab-drawer .sidebar-count {
  margin-left: auto;
  color: #62677c;
  font: 600 11px Inter, system-ui, sans-serif;
}

body.lab-drawer-open {
  overflow: hidden;
}
