:root {
  --purple: rgb(123, 31, 162);
  --violet: rgb(103, 58, 183);
  --pink: rgb(244, 143, 177);
  --liem-blue: #0058ca;
  --liem-blue-hover: #024cbb;
  --liem-surface: #181818;
  --liem-surface-raised: #1e1e1e;
  --liem-surface-soft: #252525;
  --liem-border: #333;
  --liem-text-muted: #b7c0cc;
  --liem-focus: #9ed0ff;
  --liem-motion: 0.18s ease;
  --teacher-glass-bg: rgba(30, 30, 30, 0.96);
  --teacher-glass-border: rgba(255, 255, 255, 0.08);
  --teacher-glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --teacher-glass-blur: blur(16px);
  --teacher-accent-gradient: linear-gradient(135deg, #0058ca, #337bd7);
}

html {
  height: 100%;
  overflow: hidden;
  font-family: "Quicksand", sans-serif;
  font-weight: 500;
}

body {
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  will-change: auto;
  background: url(/imgs/dark-diagonal-strips.png) repeat scroll 0 0 #292929;
  margin: 0px 0px;
  color: white;
  max-width: 100%;
  font-family: "Quicksand", sans-serif;
  font-weight: 500;
  animation: none;
}

body.liem-reduce-animations {
  animation: none;
}

body.panel-modal-open {
  overflow: hidden !important;
  will-change: auto !important;
}

html:has(body.courses-page) {
  height: auto;
  min-height: 100dvh;
  overflow-y: auto;
}

body.courses-page {
  height: auto;
  min-height: 100dvh;
  overflow-y: auto;
}

::backdrop {
  background: url(/imgs/dark-diagonal-strips.png) repeat scroll 0 0 #292929;
}

a {
  text-decoration: none !important;
  color: white;
}

button {
  font-family: "Quicksand", sans-serif;
  box-sizing: border-box;
  line-height: 1.15;
}

h1 {
  font-weight: 700;
}

h3 {
  font-weight: 700;
}

.titlebar {
  margin-top: 22px;
  height: 90px;
  width: 100%;
  background-color: #023363;
  position: relative;
  z-index: 10040;

  display: flex;
  align-content: center;
  justify-items: center;
  align-items: center;
  justify-content: center;

  z-index: 10040;
  position: relative;
  user-select: none;
  box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.4);
}

.titlebar .secondary {
  width: min(1320px, calc(100% - 20px));
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(8px, 1vw, 18px);
  position: relative;
}

.titlebar .brand-link {
  grid-column: 1;
  justify-self: start;
}

.titlebar .account-menu {
  position: relative;
  z-index: 10050;
  flex: 0 0 auto;
  grid-column: 3;
  justify-self: end;
}

.titlebar .headertxt {
  color: white;
  font-weight: 700;
  font-size: 34px;
  flex: 0 0 auto;
  white-space: nowrap;
}

.titlebar .menubar {
  margin: 4px 0 0;
  display: flex;
  flex: 0 0 auto;
  grid-column: 2;
  justify-self: center;
}

.titlebar .menubar .non-active-bar {
  margin-left: 160px;
  margin-right: 270px;
}

.titlebar .menubar-nonactive {
  margin-left: 130px;
}

.titlebar .menubar .nav-button {
  background-color: var(--liem-blue);
  width: 90px;
  height: 54px;
  color: white;

  border-radius: 8px;
  transition: background-color var(--liem-motion), box-shadow var(--liem-motion), transform var(--liem-motion), border-color var(--liem-motion);
  margin-left: 2px;

  border: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  align-content: center;
  justify-items: center;
  font-weight: 700;
  font-size: 12px;
  gap: 4px;
  overflow: hidden;
  text-align: center;
}

.titlebar .menubar .nav-button span {
  display: block;
  margin-top: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.titlebar .menubar .nav-button img {
  margin-top: 2px;
  display: block;
  width: 18px;
  height: 18px;
}

.titlebar .menubar .nav-link:hover .nav-button {
  cursor: pointer;

  background-color: var(--liem-blue-hover);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(158, 208, 255, 0.25);
  transform: translateY(-2px);
}

.titlebar .menubar .nav-link.is-active > .nav-button,
.titlebar .menubar .nav-content-link.is-active > a > .nav-button {
  background-color: var(--liem-blue-hover);
  box-shadow: inset 0 0 0 2px rgba(158, 208, 255, 0.48), 0 8px 18px rgba(0, 0, 0, 0.24);
}

.titlebar .menubar .nav-link {
  position: relative;
  display: block;
  text-decoration: none;
}

.titlebar .menubar .nav-link:focus-visible {
  outline: 2px solid #9ed0ff;
  outline-offset: 3px;
  border-radius: 8px;
}

.titlebar .menubar .nav-content-link.is-preview-open .nav-content-preview,
.titlebar .menubar .nav-student-summary:hover .nav-score-tooltip,
.titlebar .menubar .nav-student-summary:focus-within .nav-score-tooltip,
.titlebar .menubar .nav-teacher-summary:hover .nav-teacher-tooltip,
.titlebar .menubar .nav-teacher-summary:focus-within .nav-teacher-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  transition-delay: 0s;
}

/* Keep the Content explorer out of the score card's tooltip lane. */
.titlebar .menubar .nav-content-link.is-preview-open .nav-content-preview {
  transform: translate(-12px, 0);
}

.titlebar .menubar .nav-content-link.is-preview-open ~ .nav-student-summary .nav-score-tooltip,
.titlebar .menubar .nav-content-link.is-preview-open ~ .nav-teacher-summary .nav-teacher-tooltip {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateY(8px) !important;
}

.nav-content-preview,
.nav-score-tooltip,
.nav-teacher-tooltip {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translate(-50%, 8px);
  min-width: 168px;
  padding: 10px;
}
.nav-content-preview::before,
.nav-score-tooltip::before,
.nav-teacher-tooltip::before {
  content: "";
  position: absolute;
  top: -15px;
  left: 0;
  right: 0;
  height: 15px;
}
.nav-content-preview,
.nav-score-tooltip,
.nav-teacher-tooltip {
  border-radius: 8px;
  background: #102a44;
  border: 1px solid rgba(158, 208, 255, 0.32);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
  color: #e9f3ff;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform-origin: top right;
  will-change: opacity, transform;
  transition: opacity 0.22s ease-out, transform 0.15s ease-out, visibility 0s linear 0.22s;
  z-index: 10080;
}

.nav-content-preview {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 200px;
  left: auto;
  right: 0;
  transform: translate(-12px, 8px);
}

.nav-content-preview-header {
  border-bottom: 1px solid rgba(158, 208, 255, 0.2);
  padding-bottom: 6px;
  margin-bottom: 2px;
}

.nav-content-preview-header strong {
  color: #fff;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
}

.nav-content-preview-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.nav-content-item {
  display: flex;
  align-items: center;
  padding: 6px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.74rem;
  font-weight: 600;
  transition: background-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.nav-content-item:hover,
.nav-content-item:focus-visible {
  background: rgba(158, 208, 255, 0.2);
  box-shadow: inset 0 0 0 1px rgba(158, 208, 255, 0.16);
  transform: translateY(-1px);
}

.nav-content-readme-item {
  grid-column: auto;
}

.nav-student-summary,
.nav-teacher-summary {
  width: auto;
}

.titlebar .menubar .nav-score-widget,
.titlebar .menubar .nav-teacher-widget {
  height: 54px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  margin-left: 2px;
  transition: background-color var(--liem-motion), box-shadow var(--liem-motion), transform var(--liem-motion), border-color var(--liem-motion);
  text-align: center;
  background-color: var(--liem-blue);
  border: none;
}

.titlebar .menubar .nav-score-widget {
  width: 154px;
  padding: 4px 7px;
  gap: 2px;
}

.titlebar .menubar .nav-link:hover .nav-score-widget,
.titlebar .menubar .nav-link:hover .nav-teacher-widget {
  cursor: pointer;
  background-color: var(--liem-blue-hover);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(158, 208, 255, 0.25);
  transform: translateY(-2px);
}

.titlebar .menubar .nav-student-summary.is-active .nav-score-widget,
.titlebar .menubar .nav-teacher-summary.is-active .nav-teacher-widget {
  background-color: var(--liem-blue-hover);
  box-shadow: inset 0 0 0 2px rgba(158, 208, 255, 0.48), 0 8px 18px rgba(0, 0, 0, 0.24);
}

.nav-score-course {
  display: block;
  flex: 0 0 auto;
  width: 100%;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.68rem;
  line-height: 1.05;
}

.nav-score-line {
  display: flex;
  justify-content: center;
  gap: 5px;
  width: 100%;
  font-size: 0.62rem;
  line-height: 1;
}

.nav-score-line > span,
.nav-teacher-line > span {
  box-sizing: border-box;
  margin: 0 !important;
  padding: 2px 4px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  background: rgba(4, 29, 69, 0.64);
  color: #f7fbff;
  font-weight: 700;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.36);
}

.nav-score-line > span {
  padding: 1px 3px;
}

.nav-score-line strong {
  color: #fff;
  margin-left: 2px;
}

.status-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-left: 4px;
}
.dot-red { background: #f44336; }
.dot-blue { background: #2196f3; }

.nav-score-line strong.score-good {
  color: #7bd88f;
}

.nav-score-line strong.score-mid {
  color: #ffd166;
}

.nav-score-line strong.score-low {
  color: #ff8a80;
}

.nav-score-line strong.score-empty {
  color: #cbd5e1;
}

.nav-score-tooltip,
.nav-teacher-tooltip {
  left: auto;
  right: 0;
  transform: translateY(8px);
  display: grid;
  gap: 6px;
  width: 236px;
  font-size: 0.74rem;
  line-height: 1.35;
}

.nav-score-tooltip strong {
  color: #fff;
  font-size: 0.82rem;
}

.nav-teacher-tooltip {
  width: 286px;
}

.nav-teacher-tooltip strong {
  color: #fff;
  font-size: 0.82rem;
}

.nav-score-tooltip b:first-child {
  color: #7bd88f;
}

.nav-score-tooltip span:last-child b {
  color: #c7b8ff;
}

.titlebar .menubar .nav-teacher-widget {
  width: 244px;
  padding: 6px 8px;
}

.nav-teacher-line {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  width: 100%;
  font-size: 0.64rem;
  line-height: 1.15;
}

.nav-teacher-line span {
  min-width: 0;
  display: grid;
  grid-template-columns: auto auto;
  justify-content: center;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
}

.nav-teacher-line strong {
  color: #fff;
}

.nav-teacher-line em {
  color: #dbe8f8;
  font-size: 0.6rem;
  font-style: normal;
}

#navTeacherMarked {
  color: #7bd88f;
}

#navTeacherWarnings {
  color: #ffab91;
}

#navTeacherReports {
  color: #ffd166;
}

.titlebar .login-main-btn {
  width: auto;
  padding: 0 16px;
  height: 34px;
  border-radius: 8px;
  background-color: var(--liem-blue);
  text-shadow: #1a1a1a56 1px 1px;
  color: white;

  transition: background-color var(--liem-motion), box-shadow var(--liem-motion), transform var(--liem-motion), border-color var(--liem-motion);
  margin-top: 4px;
  display: flex;
  justify-content: center;
  align-items: center;
  user-select: none;
  font-weight: 700;
  box-sizing: border-box;
  border: 0;
  font: inherit;
}

.titlebar .login-main-btn:hover {
  cursor: pointer;
  background-color: var(--liem-blue-hover);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(158, 208, 255, 0.22);
  transform: translateY(-1px);
}

.titlebar .login-main-btn p {
  font-size: 13px;
  margin-left: 2px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  pointer-events: none;
}

.titlebar .login-main-btn img {
  width: 20px;
  height: 20px;
  margin-left: -4px;
  margin-right: 6px;
  pointer-events: none;
}

.titlebar .login-main-btn-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: max-content;
  min-width: max(100%, 172px);
  max-width: calc(100vw - 12px);
  flex-direction: column;
  font-size: 13px;
  transition: all 0.15s;
  z-index: 10060;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
  background-color: var(--liem-blue);
}

.titlebar .login-main-btn-dropdown.is-open {
  display: flex;
}

.titlebar .login-main-btn-dropdown .dropdown {
  width: 100%;
  box-sizing: border-box;
  min-height: 38px;
  height: auto;
  background-color: var(--liem-blue);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 0 14px;
  cursor: pointer;
  transition: background-color var(--liem-motion), transform var(--liem-motion);
  text-align: end;
  font-weight: 700;
  border: 0;
  color: white;
  font: inherit;
  text-decoration: none;
  white-space: nowrap;
}

.titlebar .login-main-btn-dropdown .dropdown:first-child {
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.titlebar .login-main-btn-dropdown .dropdown:last-child {
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

.titlebar .login-main-btn-dropdown .dropdown p {
  padding: 0;
  margin: 0;
}

.titlebar .login-main-btn-dropdown .dropdown:hover {
  background-color: var(--liem-blue-hover);
}

.titlebar .login-main-btn-dropdown .dropdown img {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

.titlebar #accountResetPassword img {
  filter: brightness(0) invert(1);
}

.base {
  width: min(1190px, calc(100vw - 32px));
  height: 430px;
  position: relative;
  margin-left: auto;
  margin-right: auto;
  margin-top: 36px;
  margin-bottom: 40px;
  border-radius: 16px;
  background-color: var(--liem-surface);
  font-size: 14px;
  color: rgb(183, 183, 183);
  border: 1px solid var(--liem-border);
  box-sizing: border-box;
  overflow: hidden;
}

.base .inside-base {
  width: 87%;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.4;
}

.login-bg {
  position: fixed;
  inset: 0;
  background-color: #000000ab;
  backdrop-filter: blur(5px);
  overflow: hidden;
  animation: opacity 0.1s both ease-in-out;
  z-index: 10020;
  display: none;
}

.sidebar-bg {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  bottom: 0;
  background-color: #000000ab;
  backdrop-filter: blur(5px);
  overflow: hidden;
  animation: opacity 0.1s both ease-in-out;
  z-index: 10010;
  display: none;
}

.login-win-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  bottom: auto;
  right: auto;
  margin: 0;
  transform: translate(-50%, -50%);
  width: min(340px, calc(100vw - 32px));
  min-height: 330px;
  height: auto;
  z-index: 10040;
  border-radius: 16px;
  background: var(--liem-surface-raised);
  border: 1px solid var(--liem-border);
  animation: opacity 0.2s both ease-in-out;

  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.48);

  display: none;
  justify-content: center;
  align-items: center;
  padding: 28px;
  box-sizing: border-box;
}

.login-win-popup label {
  display: block;
  margin-bottom: 5px;

  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  font-size: 0.78rem;
  color: var(--liem-text-muted);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.login-win-popup form {
  width: 100%;
  max-width: 260px;
  margin: 0 auto;

  color: var(--liem-text-muted);
  font-size: 14px;
  font-weight: 700;
}

.login-win-popup form button {
  width: 100%;
  min-height: 42px;
  margin-top: 20px;
  margin-left: 0;
  border: 0;
  border-radius: 999px;
  color: white;
  background-color: var(--liem-blue);
  transition: background-color var(--liem-motion), transform var(--liem-motion), box-shadow var(--liem-motion);
  font-size: 14px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
}

.login-win-popup form button:hover {
  cursor: pointer;
  background-color: var(--liem-blue-hover);
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(0, 88, 202, 0.26);
}

.login-win-popup form .form-group-password {
  padding-top: 20px;
}

.login-win-popup form input {
  width: 100%;
  background-color: var(--liem-surface-soft);
  height: 42px;
  border-radius: 8px;
  border: 1px solid var(--liem-border);
  outline: none;
  color: rgb(255, 255, 255);
  padding: 0 12px;
  font-size: 14px;
  box-sizing: border-box;
  transition: border-color var(--liem-motion), box-shadow var(--liem-motion), background-color var(--liem-motion);
}

.login-win-popup form input:focus {
  background-color: #282828;
  border-color: var(--liem-blue);
  box-shadow: 0 0 0 3px rgba(0, 88, 202, 0.22);
}

.login-win-popup form input:-webkit-autofill,
.login-win-popup form input:-webkit-autofill:hover,
.login-win-popup form input:-webkit-autofill:focus {
  -webkit-text-fill-color: #fff;
  caret-color: #fff;
  -webkit-box-shadow: 0 0 0 1000px var(--liem-surface-soft) inset;
  transition: background-color 9999s ease-out 0s;
}

.login-win-popup form input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #282828 inset, 0 0 0 3px rgba(0, 88, 202, 0.22);
}

.login-win-popup form a:hover {
  cursor: pointer;
}

.main-loading-overlay {
  cursor: default !important;
  overflow: hidden;
  z-index: 100000000;
  transition: visibility 0s 0.3s, opacity 0.3s linear;
  visibility: visible;
  opacity: 1;
  display: flex;
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  align-items: center;
  justify-content: center;
  background: linear-gradient(rgba(9, 24, 43, 0.66), rgba(9, 24, 43, 0.66)), url(/imgs/dark-diagonal-strips.png) repeat scroll 0 0 #292929;
  isolation: isolate;
}

.main-loading-overlay,
.main-loading-overlay * {
  filter: none !important;
}

.main-loading-overlay .spinner-content {
  position: relative;
  z-index: 1;
}

.loading-spinner {
  animation: spinner 1.5s infinite linear;
}

.main-loading-overlay .ping {
  --uib-size: 45px;
  --uib-speed: 2s;
  --uib-color: rgb(255, 255, 255);

  position: relative;
  height: var(--uib-size);
  width: var(--uib-size);
}

.ping::before,
.ping::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  border-radius: 50%;
  background-color: var(--uib-color);
  animation: pulse var(--uib-speed) linear infinite;
  transform: scale(0);
  opacity: 0;
}

.ping::after {
  animation-delay: calc(var(--uib-speed) / -2);
}

@keyframes pulse {
  0% {
    transform: scale(0);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 0;
  }
}

.login-win-popup ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  color: var(--liem-text-muted);
}

.login-win-popup ul li {
  margin: 0;
  padding: 0;
}

.login-win-popup ul a {
  color: var(--liem-focus);
  text-decoration: none;
  padding: 0;
  transition: color var(--liem-motion);
  white-space: normal;
  word-wrap: break-word;
  display: block;
}

.login-win-popup ul a:hover {
  color: #7a9bff;
}

.fadeInDown {
  animation: fadeInDown 0.16s;
}

.whitefilter {
  filter: invert(100%) sepia(100%) saturate(0%) hue-rotate(254deg)
    brightness(105%) contrast(108%);
}

.outline-cards {
  margin-top: 90px;
  margin-bottom: 140px;

  display: flex;
  justify-content: center;
  user-select: none;
  margin-left: auto;
  margin-right: auto;
  flex-wrap: wrap;
}

.outline-cards .project {
  transform: translate(-50%, -50%);
  margin-right: 100px;
  width: 20px;
  height: 20px;
  cursor: pointer;
  animation: outlineCardEnter 0.15s ease-out both;
}

.outline-cards .project:nth-child(2) { animation-delay: 45ms; }
.outline-cards .project:nth-child(3) { animation-delay: 90ms; }
.outline-cards .project:nth-child(4) { animation-delay: 135ms; }
.outline-cards .project:nth-child(5) { animation-delay: 180ms; }
.outline-cards .project:nth-child(6) { animation-delay: 225ms; }

@keyframes outlineCardEnter {
  from { opacity: 0; scale: 0.82; }
  to { opacity: 1; scale: 1; }
}

.outline-cards .project:first-child {
  margin-left: 24px;
}

.outline-cards .project:last-child {
  margin-right: 0px;
}

.outline-cards .project:hover .imgMasked {
  clip-path: circle(100px at center);
}

.outline-cards .project:hover .project-hail {
  width: 120px;
  height: 120px;
  border-radius: 120px;
}

.outline-cards .project:hover .project-hail2 {
  width: 120px;
  height: 120px;
  border-radius: 120px;
  opacity: 0;
}

.outline-cards .project:hover .project-name {
  left: 200%;
  opacity: 1;
}

.outline-cards .project:hover .project-name:before {
  width: 100%;
}

.outline-cards .project-hail {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  border-radius: 40px;
  transition: 0.5s;
}

.outline-cards .project-hail2 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  border-radius: 0;
  transition: 0.7s;
  border: 32px solid #f0544f;
  border-radius: 40px;
  pointer-events: none;
}

.outline-cards .imgMasked {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  top: 50%;
  height: 120px;
  clip-path: circle(20px at center);
  transition: 0.5s;
  pointer-events: none;
}

.outline-cards .project-name {
  position: absolute;
  max-width: 600px;
  min-width: 150px;
  left: 0;
  top: 150%;
  pointer-events: none;
  transition: 0.5s;
  color: white;
  padding: 3px 6px;
  z-index: 2;
  opacity: 0;
  font-weight: 700;
}

.outline-cards .project-name:before {
  content: "";
  width: 0;
  height: 100%;
  background-color: #023363;
  border-radius: 10px;
  position: absolute;
  top: 0;
  left: 0;
  transition: 0.3s;
  z-index: -1;
}

.pdf-controller {
  user-select: none;
  display: flex;
  justify-content: center;
  justify-items: center;
  align-items: center;
  margin-top: 20px;
  margin-bottom: 10px;
  width: 100%;
  font-weight: 700;
  font-size: 13px;
}

.pdf-controller div {
  display: flex;
}

.pdf-controller button {
  border: none;
  background-color: rgba(99, 88, 238, 1);
  background-image: linear-gradient(
    83.2deg,
    rgba(150, 93, 233, 1) 10.8%,
    rgba(99, 88, 238, 1) 94.3%
  );
  margin-left: 4px;
  border-radius: 6px;
  transition: all 0.1s;
  outline: none;
  width: 62px;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 22px;
  color: white;
  font-size: 11px;
  transition: background-image 0.2s ease-in-out;
  font-weight: 700;
}

.pdf-controller button:hover {
  background-image: linear-gradient(
    83.2deg,
    rgb(126, 74, 204) 10.8%,
    rgb(76, 65, 226) 94.3%
  );
  transition: background-image 0.2s ease-in-out;
  border-radius: 6px;
}

.testOpeningScene {
  width: 100%;
  height: 100%;
  z-index: 2;
  background: url(/imgs/dark-diagonal-strips.png) repeat scroll 0 0 #292929;
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 22px;
  justify-content: center;
  align-items: center;
}

.testStartWarning {
  max-width: min(620px, calc(100vw - 32px));
  padding: 18px 22px;
  border: 1px solid rgba(255, 222, 96, 0.45);
  border-radius: 16px;
  background: rgba(20, 20, 20, 0.86);
  color: #f4f4f4;
  font-size: clamp(15px, 2.4vw, 20px);
  line-height: 1.45;
  text-align: center;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25);
}

.testStartWarning strong {
  color: #ffe169;
}

.testOpeningScene button {
  width: 120px;
  height: 40px;
  border: none;
  border-radius: 14px;
  background-color: #1360c5;
  color: white;
  transition: all 0.1s;
  font-weight: 700;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2);
}

.testOpeningScene button:hover {
  background-color: #024cbb;
  transition: all 0.1s;
  border-radius: 12px;
}

.notification {
  position: fixed;
  z-index: 9999;
  width: min(360px, calc(100vw - 32px));
  min-height: 90px;
  height: auto;
  display: none;
  top: 112px;
  left: calc(env(safe-area-inset-left, 0px) + 16px);
  right: auto;
  bottom: auto;

  background-color: #1d1d1d;
  border-radius: 15px;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.42);
  padding: 15px;
  border: 1px solid rgba(255,255,255,0.14);
  color: #fff;
  box-sizing: border-box;
}

.notificationAnim {
  animation: notificationAnim 0.28s ease-out both;
}

.notification .desc {
  width: 100%;
  min-height: 42px;
  height: auto;
  font-size: 14px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.notification .buttons {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.notification .buttons button {
  border: none;
  width: auto;
  min-width: 90px;
  height: auto;
  min-height: 30px;
  background-color: #1360c5;
  color: white;
  font-weight: 700;
  border-radius: 10px;
  transition: all 0.1s;
  margin-left: 5px;
}

.notification .buttons button:hover {
  border-radius: 8px;
  background-color: #024cbb;
  transition: all 0.1s;
}

.icon {
  width: 150px;
  height: 150px;
}

.view-tiles {
  user-select: none;
  margin-bottom: 60px;
  margin-left: 20px;
}

.view-tiles li {
  margin-bottom: 6px;
  font-size: 16px;
  transition: all 0.2s;
  list-style: none;
  display: table;
  transition: all 0.1s;
}

.view-tiles li .name {
  width: 100%;
  background-position: 0px 2px;
}

.view-tiles span {
  display: inline-block;
}

.view-tiles .date {
  display: none;
}

.view-tiles .size {
  display: none;
}

.view-tiles li .name {
  text-indent: 20px;
  background-repeat: no-repeat;
}

.view-tiles li:hover {
  transition: all 0.2s;
}

.titlebar-content {
  height: 50px;
  width: 100%;
  background-color: #232323;
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 40px;
}

.titlebar-content .homebtn {
  display: flex;
  align-content: center;
  justify-content: center;
  align-items: center;
  position: absolute;
  left: 14px;
  background-color: #1360c5;
  border: none;
  color: white;
  border-radius: 10px;
  transition: all 0.1s;
  height: 28px;
  width: 80px;
  font-weight: 700;
}

.titlebar-content a.homebtn {
  text-decoration: none;
}

.titlebar-content .homebtn:hover {
  background-color: #024cbb;
  transition: all 0.1s;
}

.titlebar-content .panelbtn {
  left: 104px;
  text-decoration: none;
}

.titlebar-content .content-upbtn {
  left: 104px;
  width: 64px;
  background: #30343a;
  border: 1px solid rgba(255, 255, 255, 0.13);
}

.titlebar-content .content-upbtn:not([hidden]) + .content-context-nav {
  margin-left: 178px;
}

.page-context-nav-row {
  width: min(1190px, calc(100% - 32px));
  min-height: 32px;
  margin: 10px auto 0;
  display: flex;
  align-items: center;
}

.panel-page .page-context-nav-row {
  width: min(1530px, calc(100% - 32px));
}

.courses-page .page-context-nav-row + .courses-base {
  margin-top: 12px;
}

.courses-page .page-context-nav-row {
  justify-content: center;
  margin-top: 14px;
}

.courses-page .context-switcher-nav {
  max-width: none;
}

.courses-page .context-switcher-nav a {
  min-width: 92px;
}

.courses-page .context-switcher-nav span {
  max-width: none;
  margin-left: 6px;
  opacity: 1;
}

.context-switcher-nav {
  display: flex;
  align-items: center;
  /* Treat this as one compact control, like ELSIE's navigation.  The outer
     radius owns the silhouette; adjacent items meet cleanly without seams. */
  gap: 0;
  max-width: 180px;
  padding: 2px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  isolation: isolate;
  transition: max-width 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.context-switcher-nav:hover,
.context-switcher-nav:focus-within {
  max-width: 500px;
  border-color: rgba(100, 181, 246, 0.42);
  background: rgba(19, 96, 197, 0.16);
}

.context-switcher-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 28px;
  padding: 0 10px;
  gap: 4px;
  border: 0;
  border-radius: 7px;
  box-shadow: none;
  color: #fff;
  background: transparent;
  font-size: 0.76rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.16s ease;
}

.context-switcher-nav a:hover,
.context-switcher-nav a:focus-visible {
  background: #1360c5;
  outline: none;
}

.course-switcher-nav {
  --course-indicator-x: 3px;
  --course-indicator-y: 3px;
  --course-indicator-width: 78px;
  --course-indicator-height: 32px;
  position: relative;
  display: inline-flex;
  max-width: min(100%, 720px);
  overflow-x: auto;
  gap: 2px;
  margin: 8px auto 18px;
  padding: 3px;
  border: 1px solid rgba(100, 181, 246, 0.42);
  border-radius: 10px;
  background: rgba(19, 96, 197, 0.16);
  isolation: isolate;
}

.course-switcher-indicator {
  position: absolute;
  z-index: 0;
  left: 0;
  top: 0;
  box-sizing: border-box;
  width: var(--course-indicator-width);
  height: var(--course-indicator-height);
  border: 1px solid rgba(170, 214, 255, 0.48);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(72, 139, 244, 0.94), rgba(19, 96, 197, 0.92)),
    rgba(33, 113, 218, 0.86);
  box-shadow:
    0 7px 18px rgba(0, 71, 175, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -1px 0 rgba(4, 42, 107, 0.28);
  opacity: 0;
  pointer-events: none;
  transform: translate3d(var(--course-indicator-x), var(--course-indicator-y), 0);
  transition:
    transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
    width 0.22s cubic-bezier(0.22, 1, 0.36, 1),
    height 0.22s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.18s ease;
}

.course-switcher-nav.has-active-course .course-switcher-indicator {
  opacity: 1;
}

.course-switcher-nav button {
  position: relative;
  z-index: 1;
  min-width: 78px;
  min-height: 32px;
  padding: 0 14px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.2s ease, text-shadow 0.2s ease, background-color 0.16s ease;
}

.course-switcher-nav button:hover,
.course-switcher-nav button:focus-visible {
  background: rgba(69, 141, 238, 0.24);
  outline: none;
}

.course-switcher-nav button.is-active {
  background: transparent;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 38, 91, 0.55);
}

/* Course changes keep the page frame stationary. Only the title, description,
   and lesson surface trade places, with direction matching the glass selector. */
#title,
#desc,
#courses-content {
  transform-origin: 50% 16px;
}

.course-swap-leaving {
  opacity: 0;
  filter: blur(2px);
  transition: opacity 0.11s ease, filter 0.11s ease, transform 0.11s ease;
}

.course-swap-leaving.course-swap-next { transform: translateX(-10px); }
.course-swap-leaving.course-swap-previous { transform: translateX(10px); }
.course-swap-leaving.course-swap-initial { transform: translateY(-6px); }

.course-swap-entering {
  animation: courseSurfaceSwapIn 0.15s ease-out both;
  animation-delay: var(--course-swap-delay, 0ms);
}

.course-swap-entering.course-swap-next { --course-swap-from-x: 18px; --course-swap-from-y: 0px; }
.course-swap-entering.course-swap-previous { --course-swap-from-x: -18px; --course-swap-from-y: 0px; }
.course-swap-entering.course-swap-initial { --course-swap-from-x: 0px; --course-swap-from-y: 9px; }

@keyframes courseSurfaceSwapIn {
  from {
    opacity: 0;
    filter: blur(3px);
    transform: translate3d(var(--course-swap-from-x, 0), var(--course-swap-from-y, 0), 0) scale(0.992);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .course-switcher-indicator {
    transition: opacity 0.01ms linear;
  }

  .course-swap-entering,
  .course-swap-leaving {
    animation: none;
    filter: none;
    transform: none;
    transition: none;
  }
}

html.liem-reduce-animations .course-switcher-indicator {
  transition: opacity 0.01ms linear;
}

html.liem-reduce-animations .course-swap-entering,
html.liem-reduce-animations .course-swap-leaving {
  animation: none;
  filter: none;
  transform: none;
  transition: none;
}

.context-switcher-nav img {
  width: 14px;
  height: 14px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  flex: 0 0 auto;
}

.context-switcher-nav span {
  max-width: 0;
  overflow: hidden;
  opacity: 0;
  margin-left: 0;
  transition: max-width 0.2s ease, opacity 0.16s ease, margin-left 0.2s ease;
}

.context-switcher-nav a:hover span,
.context-switcher-nav a:focus-visible span {
  max-width: 72px;
  opacity: 1;
  margin-left: 6px;
}

.context-switcher-nav[data-current="panel"] [data-app="panel"],
.context-switcher-nav[data-current="content"] [data-app="content"],
.context-switcher-nav[data-current="courses"] [data-app="courses"],
.context-switcher-nav[data-current="editor"] [data-app="editor"] {
  background: #1360c5;
  box-shadow: inset 0 0 0 1px rgba(158, 208, 255, 0.34);
}

.content-context-nav {
  position: static;
  max-width: 156px;
  margin-left: 104px;
}

/* Shared, topmost acknowledgement used for lightweight course/content events.
   It deliberately sits below the browser-safe area but above page chrome. */
.course-status-toast,
.content-status-toast {
  position: fixed;
  top: var(--liem-fixed-notice-top, 112px);
  right: calc(env(safe-area-inset-right, 0px) + 16px);
  bottom: auto;
  left: auto;
  width: min(360px, calc(100vw - 32px));
  max-width: none;
  box-sizing: border-box;
  z-index: 2147483646;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.38);
}

.course-deep-link-target {
  border-color: #4d94f2 !important;
  box-shadow: 0 0 0 2px rgba(46, 107, 208, 0.2), 0 10px 24px rgba(0, 0, 0, 0.24);
  animation: courseDeepLinkSettle 0.15s ease-out;
}

.course-deep-link-action {
  outline: 2px solid #75b8ff;
  outline-offset: 3px;
}

@keyframes courseDeepLinkSettle {
  from { opacity: 0.45; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.titlebar-content .homebtn img {
  width: 14px;
}

.titlebar-content .homebtn span {
  margin-left: 6px;
}

.titlebar-content .content-url {
  font-size: 18px;
  font-weight: 700;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100% - 232px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin: 0;
}

.content-locked-link,
.content-preview-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
}

.content-locked-link {
  color: #9aa3af !important;
  filter: grayscale(1);
  opacity: 0.72;
  cursor: not-allowed;
}

.content-locked-link .name {
  color: #9aa3af !important;
}

.content-lock-badge,
.content-preview-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 20px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.content-lock-badge::before {
  content: "\1F512";
  margin-right: 4px;
}

.content-lock-badge {
  color: #d1d5db;
  background: rgba(107, 114, 128, 0.2);
  border: 1px solid rgba(156, 163, 175, 0.38);
}

.content-preview-badge {
  color: #dff1ff;
  background: rgba(19, 96, 197, 0.28);
  border: 1px solid rgba(158, 208, 255, 0.36);
}

.content-split-layout {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 16px;
}

.content-file-list {
  flex: 1 1 auto;
  min-width: 0;
}

.content-preview-shell {
  display: none;
  width: 800px;
  max-width: 62%;
  flex: 0 1 auto;
  min-width: 0;
  margin: 0 0 0 auto;
  overflow: hidden;
  border-radius: 12px;
  background: rgba(18, 24, 31, 0.94);
  border: 1px solid rgba(158, 208, 255, 0.24);
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.35);
  position: sticky;
  top: 20px;
  transition: width 0.15s ease-out;
}

.content-preview-shell.is-open {
  display: block;
}

.content-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  color: #fff;
  background: #242a31;
  border-bottom: 1px solid #3b444f;
}

.content-preview-head strong {
  flex: 1 1 auto;
  text-align: center;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.content-preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.content-preview-actions button {
  width: auto;
  min-width: 34px;
  height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: #30363e;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
}

.content-preview-actions button:hover {
  background: #3b444f;
}

#contentPreviewZoomIn, #contentPreviewZoomOut {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  color: #fff;
}

#contentPreviewZoomIn:hover, #contentPreviewZoomOut:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-1px);
}

#contentPreviewZoomIn:active, #contentPreviewZoomOut:active {
  transform: translateY(1px);
}

.content-preview-body {
  min-height: min(58vh, 560px);
  background: #0b0f14;
}

.content-preview-body iframe,
.content-preview-body img,
.content-preview-body video {
  display: block;
  width: 100%;
  height: min(68vh, 640px);
  border: 0;
  object-fit: contain;
  background: #fff;
}

@media only screen and (max-width: 700px) {
  .titlebar-content {
    min-height: 54px;
    height: auto;
    padding: 8px;
    gap: 8px;
    flex-wrap: wrap;
    box-sizing: border-box;
    margin-bottom: 16px;
  }

  .titlebar-content .homebtn {
    position: static;
    flex: 0 0 auto;
    min-width: 74px;
  }

  .content-context-nav {
    position: static;
    max-width: 156px;
    margin-left: 0;
  }

  .titlebar-content .content-upbtn:not([hidden]) + .content-context-nav {
    margin-left: 0;
  }

  .page-context-nav-row {
    width: calc(100% - 20px);
    margin-top: 8px;
  }

  .titlebar-content .content-url {
    position: static;
    flex: 1 1 100%;
    transform: none;
    min-width: 0;
    max-width: 100%;
    margin: 0;
    font-size: clamp(12px, 4vw, 16px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: right;
  }

  .view-tiles {
    width: calc(100vw - 20px);
    margin: 0 auto 18px;
    padding: 0;
  }

  .view-tiles li {
    display: block;
    width: 100%;
    min-width: 0;
    font-size: clamp(12px, 4vw, 16px);
  }

  .view-tiles li .name,
  .view-tiles span {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .content-locked-link,
  .content-preview-link {
    width: 100%;
    align-items: flex-start;
    justify-content: space-between;
  }

  .content-split-layout {
    flex-direction: column;
    padding: 0;
  }

  .content-preview-shell {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100vw;
    margin: 0;
    border-radius: 20px 20px 0 0;
    z-index: 10080;
    max-height: 80dvh;
    border: none;
    border-top: 1px solid rgba(158, 208, 255, 0.3);
    box-shadow: 0 -10px 40px rgba(0,0,0,0.6);
    transform: translateY(100%);
    transition: transform 0.15s ease-out;
  }

  .content-preview-shell.is-open {
    transform: translateY(0);
    display: flex;
    flex-direction: column;
  }

  .content-preview-body {
    flex: 1 1 auto;
    overflow-y: auto;
    min-height: 220px;
  }

  .content-preview-body iframe,
  .content-preview-body img,
  .content-preview-body video {
    height: min(52vh, 420px);
  }
}

@media only screen and (max-width: 600px) {
  .content-preview-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .content-preview-actions button {
    flex: 1 1 auto;
  }

  .content-preview-actions {
    width: 100%;
  }
}

.panel {
  width: 800px;
  position: relative;
  margin-left: auto;
  margin-right: auto;
  margin-top: 30px;
  border-radius: 20px;
  background-color: #181818;
  padding: 50px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  margin-bottom: 40px;
  border: 1px solid #0000009f;
}

.panel > div {
  margin-top: 12px;
  padding: 10px;
  margin-right: auto;
}

.panel > div:last-child {
  margin-left: 80px;
}

.panelTwo {
  width: 800px;
  position: relative;
  margin-left: auto;
  margin-right: auto;
  border-radius: 20px;
  background-color: #181818;
  padding: 50px;
  flex-direction: row;
  justify-content: center;
  margin-bottom: 40px;
  border: 1px solid #0000009f;
}

.panelTwo input {
  width: 84px;
  height: 30px;
  margin-top: 4px;
  border: 0;
  border-radius: 10px;
  color: white;
  background-color: #0058ca;
  transition: all 0.2s;
  font-size: 13px;
  font-weight: 700;
  margin-right: 4px;
}

.panelTwo input:hover {
  background-color: #024cbb;
  transition: all 0.12s;
}
.panelTwo #log {
  width: 25rem;
  height: 15rem;
  background-color: black;
  border: 1px solid black;
  padding: 0.5rem;
  overflow: scroll;
}
.panelTwo button {
  width: 75px;
  height: 32px;
  margin-top: 4px;
  margin-left: auto;
  border: 0;
  border-radius: 10px;
  color: white;
  background-color: #0058ca;
  transition: all 0.2s;
  font-size: 13px;
  font-weight: 700;
}

.panelTwo button:hover {
  background-color: #024cbb;
  transition: all 0.12s;
}

.panelTwo #sendButton {
  width: 40px;
  height: 15px;
  margin: 3px;
  color: black;
  background-color: white;
  font-size: 11px;
  font-family: monospace;
  white-space: pre;
}

.panel .csvAdmin {
  margin-top: 40px;
}

.panel .csvAdmin button {
  display: inline-block;
}

.panel .csvAdmin input {
  display: block;
}

.panel .csvAdmin p {
  display: inline-block;
  margin-right: 4px;
}

.panel input {
  display: block;
  border-radius: 6px;
  border: none;
  background-color: #ececec;
  height: 20px;
  outline: none;
  width: 180px;
  padding-left: 5px;
  padding-top: 3px;
  padding-bottom: 3px;
  padding-right: 3px;
  margin-top: 5px;
  margin-bottom: 5px;
}

.panel input[class="options"] {
  cursor: pointer;
}

.panel button {
  width: 150px;
  height: 32px;
  margin-top: 4px;
  margin-left: auto;
  border: 0;
  border-radius: 10px;
  color: white;
  background-color: #0058ca;
  transition: all 0.2s;
  font-size: 13px;
  font-weight: 700;
}

.panel button:hover {
  background-color: #024cbb;
  transition: all 0.12s;
}

.panel .switch {
  width: auto;
  height: auto;
  margin-top: 4px;
  display: flex;
  justify-content: center;
}
.panel .smallbtn {
  width: 100px;
  margin: auto;
  margin-top: 5px;
}

.children {
  margin-left: auto;
}

.panel input[type="button"] {
  width: 150px;
  height: 32px;
  margin-top: 4px;
  border: 0;
  border-radius: 10px;
  color: white;
  background-color: #0058ca;
  transition: all 0.2s;
  font-size: 13px;
  font-weight: 700;
}

.panel input[type="button"]:hover {
  background-color: #024cbb;
  transition: all 0.12s;
}

.panel form .first-password {
  margin-bottom: 2px;
}

.panel form .second-password {
  margin-bottom: 6px;
}

.csvAdmin .adminPrompt {
  margin-top: 10px;
}

.panel .panelUsername {
  font-size: 24px;
  font-weight: 700;
  display: block;
  text-align: center;
}

.panel .AdministratorTxT {
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 14px;
}

.hscroll {
  overflow-x: visible !important;
  overflow-y: visible !important;
}

.noscroll {
  overflow-x: hidden !important;
  overflow-y: hidden !important;
}

.noscrolly {
  overflow-x: scroll !important;
  overflow-y: hidden !important;
}

.pdfViewerBody {
  width: 100vw;
  height: 100vh;
  overflow-x: hidden;
  overflow-y: hidden !important;
}

.pdf-viewer-page {
  min-height: 100dvh;
  height: 100dvh;
  overflow: hidden;
}

.pdf-viewer-workspace {
  min-height: 100dvh;
  height: 100dvh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.pdf-viewer-toolbar {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  box-sizing: border-box;
  padding: 8px 16px;
  background: rgba(20, 20, 20, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  position: relative;
  z-index: 20;
}

/* Match ELSIE's icon-first navigation: labels reveal on hover or keyboard
   focus without moving the PDF controls onto a second row. */
.pdf-viewer-toolbar .pdf-context-nav {
  flex: 0 0 auto;
  max-width: none;
  overflow: visible;
  margin-right: auto;
}

.pdf-viewer-toolbar .pdf-context-nav a {
  flex: 0 0 40px;
  min-width: 40px;
  padding-inline: 0;
  transition: flex-basis 0.18s ease, padding 0.18s ease, background-color 0.16s ease;
}

.pdf-viewer-toolbar .pdf-context-nav a span {
  position: static;
  width: auto;
  max-width: 0;
  padding: 0;
  margin: 0;
  overflow: hidden;
  clip: auto;
  opacity: 0;
  white-space: nowrap;
  border: 0;
  transition: max-width 0.18s ease, opacity 0.14s ease, margin-left 0.18s ease;
}

.pdf-viewer-toolbar .pdf-context-nav a:hover,
.pdf-viewer-toolbar .pdf-context-nav a:focus-visible {
  flex-basis: 74px;
  padding-inline: 7px;
}

.pdf-viewer-toolbar .pdf-context-nav a:hover span,
.pdf-viewer-toolbar .pdf-context-nav a:focus-visible span {
  max-width: 44px;
  margin-left: 5px;
  opacity: 1;
}

.pdf-assist-tools {
  display: inline-grid;
  grid-template-columns: 112px minmax(0, auto);
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 3px 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
}

.pdf-magnifier-controls {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 32px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #f3f7ff;
  font-size: 0.76rem;
  font-weight: 800;
}

.pdf-copy-text {
  border: 1px solid rgba(100, 181, 246, 0.52);
  background: rgba(19, 96, 197, 0.18);
  color: #eaf4ff;
  border-radius: 7px;
  padding: 6px 9px;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.pdf-copy-text:hover,
.pdf-copy-text:focus-visible {
  background: #1360c5;
  outline: none;
}

.pdf-magnifier-touch-hint {
  display: none;
}

.pdf-magnifier-toggle,
.pdf-magnifier-option {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.pdf-magnifier-toggle {
  cursor: pointer;
  color: #fff;
}

.pdf-magnifier-toggle input {
  width: 15px;
  height: 15px;
  accent-color: #2f78df;
}

.pdf-magnifier-option input[type="range"] {
  width: 78px;
  accent-color: #62a4ff;
}

.pdf-magnifier-option input:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.pdf-magnifier-option output {
  min-width: 32px;
  color: #9cc5ff;
  font-variant-numeric: tabular-nums;
}

.pdf-viewer-page .pdfViewerBody {
  width: 100%;
  height: auto;
  min-height: 0;
}

.pdf-viewer-page .pdfViewer {
  height: calc(100% - 4vh);
  margin-top: 2vh;
  margin-bottom: 2vh;
}

.pdfViewer {
  display: flex;
  flex-direction: column;
  width: 95vw;
  margin: 0 auto;
  margin-bottom: 3vh;
  height: 95vh;
  overflow-y: auto !important;
  overflow-x: auto;
}

.pdf-page-zoom {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #eaf4ff;
  font-size: 0.8rem;
}
.pdf-page-zoom button {
  min-width: 34px;
  min-height: 34px;
  border: 1px solid rgba(100,181,246,0.4);
  border-radius: 8px;
  background: #2857aa;
  color: white;
  font: inherit;
  cursor: pointer;
}
.pdf-page-zoom button:disabled { opacity: 0.45; cursor: default; }
.pdf-page-zoom button:focus-visible { outline: 2px solid #a5d4ff; outline-offset: 2px; }
.pdf-page-zoom output { min-width: 42px; text-align: center; }

.pdfViewer canvas {
  width: 100%;
  border-radius: 12px;
}

/* Keep PDF text selectable without changing the visual canvas. The layer uses
   PDF-space pixels and is scaled in loadpdf.js to exactly match the canvas at
   every viewport size. */
.pdf-page-wrapper .textLayer {
  position: absolute;
  inset: 0 auto auto 0;
  z-index: 2;
  overflow: hidden;
  line-height: 1;
  transform-origin: top left;
  user-select: text;
  -webkit-user-select: text;
}

.pdf-page-wrapper {
  min-height: 0;
  overflow: visible;
  flex-shrink: 0;
}

.pdf-page-wrapper.pdf-exercise-target {
  outline: 3px solid rgba(82, 154, 255, 0.9);
  outline-offset: 7px;
  border-radius: 7px;
  animation: pdfExerciseTarget 1.05s ease-out 2;
}

@keyframes pdfExerciseTarget {
  0%, 100% { outline-color: rgba(82, 154, 255, 0.38); }
  50% { outline-color: rgba(137, 196, 255, 1); }
}

.pdf-page-wrapper .pdf-code-actions {
  position: absolute;
  z-index: 6;
  top: 10px;
  left: calc(100% + 10px);
  width: 120px;
  display: grid;
  gap: 5px;
}

.pdf-page-wrapper .pdf-code-actions .pdf-copy-code,
.pdf-page-wrapper .pdf-code-actions .pdf-edit-code {
  position: static;
  width: 100%;
  padding: 7px 9px;
  border: 1px solid #5384b8;
  border-radius: 7px;
  background: #214b87;
  color: #f0f7ff;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
}

.pdf-page-wrapper .pdf-code-actions .pdf-edit-code {
  background: #2b3038;
  border-color: #596573;
}

@media (max-width: 900px) {
  .pdf-page-wrapper .pdf-code-actions {
    left: auto;
    right: 10px;
    top: 10px;
    width: auto;
    max-width: 115px;
  }
}

@media (max-width: 600px) {
  .pdf-page-wrapper .pdf-code-actions {
    right: 5px;
    width: 68px;
    max-width: 68px;
    gap: 3px;
  }

  .pdf-page-wrapper .pdf-code-actions .pdf-copy-code,
  .pdf-page-wrapper .pdf-code-actions .pdf-edit-code {
    min-height: 26px;
    padding: 4px 5px;
    border-radius: 6px;
    font-size: 10px;
    line-height: 1.1;
    white-space: nowrap;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.24);
  }
}

.pdf-code-editor-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(9, 11, 14, 0.74);
  backdrop-filter: blur(12px);
}

.pdf-code-editor {
  width: min(680px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  overflow: auto;
  box-sizing: border-box;
  padding: 22px;
  border: 1px solid rgba(82, 145, 238, 0.46);
  border-radius: 14px;
  background: #1b1b1b;
  color: #f4f8ff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
  animation: pdfCodeEditorIn 0.15s ease-out;
}

.pdf-code-editor h2 { margin: 0 0 6px; }
.pdf-code-editor > p { margin: 0 0 14px; color: #b8c7d9; }
.pdf-code-editor textarea {
  width: 100%;
  min-height: 280px;
  box-sizing: border-box;
  resize: vertical;
  padding: 13px;
  border: 1px solid #3e4b5b;
  border-radius: 9px;
  outline: none;
  background: #111419;
  color: #e8f2ff;
  font: 14px/1.5 Consolas, "Courier New", monospace;
  tab-size: 4;
}
.pdf-code-editor textarea:focus { border-color: #5794e4; box-shadow: 0 0 0 2px rgba(46,107,208,0.22); }
.pdf-code-editor-status { min-height: 20px; margin: 8px 0 !important; color: #ffb4ac !important; }
.pdf-code-editor-actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.pdf-code-editor-actions button {
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid #4e5967;
  border-radius: 8px;
  background: #30343a;
  color: #fff;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}
.pdf-code-editor-actions button.primary { border-color: #337bd7; background: #0058ca; }
.pdf-code-editor-actions button:disabled { opacity: 0.55; cursor: wait; }
@keyframes pdfCodeEditorIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

.pdf-page-wrapper.is-loading {
  min-height: clamp(360px, 70vh, 900px);
}

.pdf-page-wrapper.is-loading::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  background: #171717;
}

.pdf-page-wrapper.is-loading::after {
  content: "";
  position: absolute;
  z-index: 4;
  top: 50%;
  left: 50%;
  width: 30px;
  height: 30px;
  margin: -17px 0 0 -17px;
  border: 3px solid rgba(255, 255, 255, 0.18);
  border-top-color: #8a8a8a;
  border-radius: 50%;
  animation: pdf-page-loading-spin 0.8s linear infinite;
}

.pdf-page-wrapper.has-error::after {
  content: "Page unavailable";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #d0d0d0;
  font-weight: 700;
}

@keyframes pdf-page-loading-spin {
  to { transform: rotate(360deg); }
}

.pdf-load-error {
  align-self: center;
  display: grid;
  justify-items: center;
  gap: 12px;
  margin: min(18vh, 140px) 20px 0;
  padding: 20px;
  color: #f0f5ff;
  text-align: center;
}

.pdf-load-error p {
  margin: 0;
}

.pdf-load-error button {
  min-height: 44px;
  padding: 9px 16px;
  border: 1px solid rgba(126, 177, 255, 0.7);
  border-radius: 9px;
  background: #225fba;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.pdf-page-wrapper .textLayer span,
.pdf-page-wrapper .textLayer br,
.pdf-page-wrapper .textLayer .markedContent {
  position: absolute;
  color: transparent;
  white-space: pre;
  cursor: text;
  transform-origin: 0 0;
}

.pdf-page-wrapper .textLayer br {
  position: static;
}

.pdf-page-wrapper .textLayer .ocr-word {
  position: absolute;
  display: block;
  overflow: visible;
  color: transparent;
  line-height: 1;
  white-space: pre;
  cursor: text;
  transform-origin: top left;
}

.pdf-page-wrapper .textLayer.has-ocr-text {
  pointer-events: auto;
}

.pdf-text-status {
  display: block;
  width: 112px;
  min-width: 112px;
  max-width: 112px;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #b7c9e3;
  font-size: 0.76rem;
  font-weight: 650;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.pdf-text-status:empty {
  opacity: 0;
}

.pdf-page-wrapper .textLayer::selection,
.pdf-page-wrapper .textLayer ::selection {
  background: rgba(54, 132, 255, 0.62);
  color: transparent;
}

.student-raw-scores-entrance {
  animation: none;
}

.dynamic-container {
  isolation: isolate;
  border-radius: 0;
}

@media (prefers-reduced-motion: reduce) {
  .student-raw-scores-entrance {
    animation: none;
  }
}

.pdfViewer p {
  margin-left: 5px;
  margin-bottom: 5px;
  margin-top: 0px;
  color: rgb(255, 255, 255);
  font-weight: 700;
}

.testLayout {
  display: flex;
  color: #000000;
  margin-top: 40px;
}

.testLayout .pdfViewer {
  display: flex;
  margin-left: auto;
  margin-right: 10px;
  border-radius: 12px;
  width: 50%;
  max-width: 850px;
  min-width: 300px;
  height: 89vh;
  margin-top: 0px !important;
  margin-bottom: 40px;
}

.testLayout .pdfViewer canvas {
  width: 100%;
  border-radius: 12px;
}

.testLayout .testSheet {
  overflow-y: scroll;
  position: sticky;
  width: 50%;
  max-width: 730px;
  min-width: 300px;
  height: 600px;
  margin-bottom: 70px;
  border-radius: 12px;
  margin-right: auto;
  user-select: none !important;
}

.testLayout .testSheet div {
  background-image: linear-gradient(
    160deg,
    rgb(126, 74, 204) 10.8%,
    rgb(76, 65, 226) 94.3%
  );
  padding: 10px;
  color: rgb(255, 255, 255);
  border-radius: 14px;
  width: 150px;
  display: inline-block;
  margin: 4px;
}

.testLayout .testSheet p {
  font-weight: 700;
  margin-top: -4px;
  margin-bottom: 2px;
  font-size: 18px;
}

.testLayout .testSheet txt {
  font-weight: 700;
  position: absolute;
  display: inline-block;
  margin-left: 5px;
  margin-top: 5px;
}

.testLayout .testSheet .top {
  padding: 0 !important;
  background-image: none !important;
  display: flex !important;
}

.flagBtn {
  width: 16px;
  padding: 2px;
  transition: all 0.1s;
  border-radius: 4px;
  margin-left: auto;
  margin-top: -2px;
  margin-right: 7px;
}

.flagBtn:hover {
  cursor: pointer;
  transition: all 0.1s;
}

.testAnswerParent input[type="checkbox"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  background-color: rgb(255, 255, 255);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s;
  margin-top: 28px;
}

.testAnswerParent input[type="checkbox"]:checked {
  transition: all 0.15s;
  scale: 1.4;
  border: solid 5px rgb(36, 36, 36);
}

.fullScreen {
  background: rgb(66, 133, 244) !important;
  font-weight: 700;
}

.fullScreen:hover {
  cursor: pointer;
}

.submit {
  background: rgb(244, 180, 00) !important;
  font-weight: 700;
}

.submit:hover {
  cursor: pointer;
}

.splitPage {
  background: rgb(219, 68, 55) !important;
  font-weight: 700;
}

.splitPage:hover {
  cursor: pointer;
}

.save {
  background: rgb(15, 157, 88) !important;
  font-weight: 700;
}

.save:hover {
  cursor: pointer;
}

.courses-base {
  width: 1190px;
  max-width: calc(100vw - 24px);
  position: relative;
  margin-left: auto;
  margin-right: auto;
  margin-top: 36px;
  border-radius: 20px;
  background-color: #181818;
  font-size: 14px;
  border: 1px solid #0000009f;
  margin-bottom: 60px;
  padding: 40px;
  box-sizing: border-box;
}

.button-1 {
  background-color: #0058ca;
  border-radius: 8px;
  border-style: none;
  box-sizing: border-box;
  color: #ffffff;
  cursor: pointer;
  display: inline-block;
  font-weight: 700;
  font-size: 14px;
  height: 35px;
  white-space: nowrap;
  width: auto;
  min-width: 66px;
  padding: 0 12px;
  outline: none;
  vertical-align: baseline;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  margin: 4px;
  transition: all 0.15s;
}
.button-flag {
  background-color: #0058ca;
  border-radius: 8px;
  border-style: none;
  box-sizing: border-box;
  color: #ffffff;
  cursor: pointer;
  display: inline-block;
  font-weight: 700;
  font-size: 14px;
  height: 28px;
  width: 28px;
  outline: none;
  vertical-align: baseline;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  margin: 2px;
  transition: all 0.15s;
}

.button-flag2 {
  background-color: #000000;
  border-radius: 8px;
  border-style: none;
  box-sizing: border-box;
  color: #ffffff;
  cursor: pointer;
  display: inline-block;
  font-weight: 700;
  font-size: 14px;
  height: 25px;
  width: 25px;
  outline: none;
  vertical-align: baseline;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  margin-left: 6px;
  transition: all 0.15s;
}
.button-1:hover,
.button-1:focus {
  background-color: #024cbb;
  transition: all 0.15s;
}

.courses-header {
  margin-top: 30px;
  display: none;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  font-size: 16px;
}

.courses-header .desc {
  width: 700px;
  display: none;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 40px;
  font-size: 14px;
}

.courses-content {
  width: 70%;
  display: none;
  border-radius: 15px;
  margin-left: auto;
  margin-right: auto;
  border: 5px solid rgb(0, 81, 255);
  padding: 14px;
}

.courses-content .collapsible {
  position: relative;
  display: block;
  margin-left: auto;
  margin-right: auto;
  background-color: rgba(90, 90, 90, 0.2);
  color: white;
  cursor: pointer;
  padding: 18px;
  width: 100%;
  border: none;
  text-align: left;
  font-size: 14px;
  font-weight: 700;
  transition: all 0.1s ease-in-out;
  border-radius: 10px;
  margin-bottom: 10px;
}

.courses-content .collapsible:last-of-type {
  margin-bottom: 0px;
}

.courses-content .active,
.collapsible:hover {
  transition: all 0.1s ease-in-out;
  scale: 1.015;
}

.courses-content .collapsible:first-child {
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.courses-content .collapsible:last-of-type {
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

.courses-content .collapsible.is-locked::before {
  content: "🔒 ";
}

.courses-content .collapsible.is-locked::after {
  content: "Locked";
  float: right;
  color: #ffc56b;
  font-size: 0.82em;
  font-weight: 800;
}

.courses-content .content {
  display: none;
  margin-left: auto;
  margin-right: auto;
  font-size: 15px;
  margin: 20px;
  border-radius: 10px;
  overflow: hidden;
  background-color: rgba(90, 90, 90, 0.2);
  animation: fadeIn 0.3s ease-in both;
  font-weight: 700;
}

.courses-content .content:last-child {
  border-radius: 10px;
}

.courses-content .locked-course-unit-notice {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 8px 12px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 190, 92, 0.28);
  border-radius: 8px;
  background: rgba(75, 53, 20, 0.24);
  color: #e8d7b2;
  font-size: 0.9rem;
}

.courses-content .locked-course-unit-notice strong {
  color: #ffc56b;
}

.courses-content .content p {
  margin-left: 20px;
  margin-bottom: 20px;
  font-size: 14px;
}

.table-marks {
  display: inline-table;
  border-collapse: collapse;
  margin: 15px 0;
  font-size: 0.9em;
  min-width: 200px;
  overflow: hidden;
  background-color: #1f1f1f;
  border: 10px solid rgba(0, 128, 0, 0);
  border-radius: 20px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}
.table-marks th,
.table-marks td {
  border-bottom: 2px solid rgba(200, 200, 200, 0.3);
  padding: 12px 15px;
  text-align: center;
}
.table-marks tr:hover:not(:first-child) {
  background-color: #181818;
}

.monitor-page {
  min-height: 100vh;
  margin: 0;
  color: #f4f7fb;
  background: url(/imgs/dark-diagonal-strips.png) repeat scroll 0 0 #24272c;
}

.monitor-shell {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 32px 0 48px;
}

.monitor-hero,
.monitor-card {
  background: linear-gradient(145deg, rgba(27, 31, 38, 0.98), rgba(20, 22, 27, 0.98));
  border: 1px solid rgba(92, 137, 204, 0.25);
  border-radius: 16px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.3);
}

.monitor-hero {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 22px;
  margin-bottom: 18px;
}

.monitor-eyebrow {
  color: #8fc5ff;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.monitor-hero h1,
.monitor-card h2 {
  margin: 0;
}

.monitor-hero h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1;
}

.monitor-hero p,
.monitor-card p {
  margin: 7px 0 0;
  color: #9aa6b3;
}

.monitor-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  align-items: center;
}

.monitor-actions button {
  border: 1px solid rgba(143, 197, 255, 0.28);
  border-radius: 8px;
  padding: 10px 16px;
  background: #2d63bd;
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.monitor-actions button:hover:not(:disabled),
.monitor-actions button:focus-visible,
.monitor-card-actions button:hover:not(:disabled),
.monitor-card-actions button:focus-visible {
  background: #3974d2;
  border-color: rgba(174, 212, 255, 0.62);
  outline: none;
}

.monitor-actions button:disabled,
.monitor-card-actions button:disabled {
  opacity: 0.58;
  cursor: wait;
}

.monitor-actions button.danger {
  background: rgba(178, 34, 34, 0.22);
  border-color: rgba(255, 110, 110, 0.45);
  color: #ffb8b8;
}

.monitor-audio {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #cbd7e3;
  font-size: 0.86rem;
  font-weight: 800;
}

.monitor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.monitor-events-card {
  margin-bottom: 18px;
}

.monitor-card {
  padding: 18px;
  min-width: 0;
}

.monitor-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 12px;
}

.monitor-count {
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(76, 175, 80, 0.18);
  color: #8ee88e;
  font-weight: 900;
}

.monitor-count.warning {
  background: rgba(255, 152, 0, 0.18);
  color: #ffd48a;
}

.monitor-table {
  display: table;
  width: 100%;
  margin: 0;
  border: 0;
  border-radius: 12px;
}

.monitor-empty {
  border: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  color: #8d98a5;
  padding: 26px;
  text-align: center;
  background: rgba(0, 0, 0, 0.16);
}

.monitor-connection,
.monitor-updated {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 0.75rem;
  font-weight: 850;
  white-space: nowrap;
}

.monitor-connection {
  border: 1px solid rgba(82, 196, 122, 0.38);
  background: rgba(48, 143, 82, 0.14);
  color: #a8edbd;
}

.monitor-connection.offline {
  border-color: rgba(255, 170, 70, 0.4);
  background: rgba(186, 111, 25, 0.14);
  color: #ffd39b;
}

.monitor-updated {
  color: #aebdce;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.monitor-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 14px;
}

.monitor-test-card {
  background: #22262c;
  border: 1px solid #363d47;
  border-radius: 12px;
  padding: 14px;
  color: #eef4fb;
  box-shadow: 0 8px 22px rgba(0,0,0,.2);
  display: grid;
  gap: 12px;
}

.monitor-test-card.danger { border-color: rgba(224, 76, 76, .68); background: #2b2022; }
.monitor-test-card.lockout { border-color: rgba(238, 83, 83, .88); box-shadow: 0 0 0 2px rgba(220,55,55,.14), 0 10px 24px rgba(80,0,0,.22); }
.monitor-test-title { display:flex; justify-content:space-between; gap:10px; align-items:flex-start; font-weight:900; color:#fff; }
.monitor-test-name { display:flex; flex-direction:column; gap:3px; }
.monitor-test-name small { color:#9facba; font-weight:800; }
.monitor-pill { display:inline-flex; border-radius:999px; padding:4px 9px; font-size:.7rem; font-weight:900; background:rgba(47,128,237,.16); color:#abd5ff; border:1px solid rgba(78,151,238,.42); }
.monitor-pill.warn { background:rgba(220,65,65,.16); color:#ffc0c0; border-color:rgba(232,78,78,.5); }
.monitor-pill.ok { background:rgba(46,170,105,.14); color:#a9efc3; border-color:rgba(64,188,113,.38); }

.nav-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 800;
  background: rgba(47, 128, 237, 0.16);
  color: #abd5ff;
  border: 1px solid rgba(78, 151, 238, 0.42);
  text-decoration: none;
  transition: all 0.15s ease;
}

.nav-pill:hover,
.nav-pill:focus-visible {
  background: rgba(47, 128, 237, 0.28);
  border-color: rgba(78, 151, 238, 0.6);
  color: #c9e4ff;
  outline: none;
}

.monitor-card-actions { display:flex; gap:8px; flex-wrap:wrap; }
.monitor-card-actions button { border:1px solid rgba(143,197,255,.28); border-radius:9px; padding:8px 11px; background:#2d63bd; color:#fff; font-weight:900; cursor:pointer; }
.monitor-card-actions button.secondary { background:#2a2f36; color:#d7eaff; }
.monitor-live-preview { position:relative; min-height:118px; border-radius:10px; border:1px solid #363d47; background:#191c21; padding:11px; margin-top:2px; overflow:hidden; }
.monitor-live-preview.danger { outline:2px solid rgba(225,74,74,.72); }
.monitor-live-preview > *:not(.monitor-mouse-dot) { position:relative; z-index:2; }
.monitor-mouse-dot { position:absolute; z-index:1; width:10px; height:10px; border-radius:50%; background:#7eb6ff; box-shadow:0 0 0 4px rgba(73,137,220,.2); transform:translate(-50%,-50%); pointer-events:none; }
.monitor-answer-list { font-size:.78rem; color:#dce8f8; line-height:1.45; word-break:break-word; }
.monitor-meta-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; font-size:.78rem; color:#b7c4d6; }
.monitor-meta-grid div { min-width:0; overflow-wrap:anywhere; }
.monitor-meta-grid b { color:#fff; }
.monitor-section-title { margin:10px 0 5px; color:#82b9ff; font-size:.74rem; font-weight:900; text-transform:uppercase; letter-spacing:.04em; }
.monitor-security-list { display:grid; gap:6px; margin-top:8px; }
.monitor-security-item { border-radius:8px; background:#2a2022; border:1px solid rgba(227,91,91,.28); padding:7px 8px; font-size:.76rem; color:#ffd0d0; }
.monitor-small { font-size:.74rem; color:#aeb9c8; margin-top:6px; line-height:1.35; }
.monitor-events-list { display:grid; gap:8px; }
.monitor-event-item { border-radius:9px; padding:9px 11px; background:#22262c; border:1px solid #363d47; display:flex; justify-content:space-between; gap:12px; color:#dbe8f6; font-weight:800; }
.monitor-event-item.warn { border-color:rgba(225,90,90,.35); background:#2a2022; color:#ffd0d0; }
.monitor-event-item.ok { border-color:rgba(76,175,80,.3); background:#1b2921; color:#c8ffd8; }
.monitor-event-item small { color:#9aa6b3; white-space:nowrap; }

@media (max-width: 820px) {
  .monitor-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .monitor-actions {
    justify-content: flex-start;
  }

  .monitor-grid {
    grid-template-columns: 1fr;
  }
}
.remove {
  display: none;
}

.mobile-hamburger {
  margin: 0 40px 0 0;
  display: none !important;
  height: 30px;
  width: 30px;
  position: relative;
  z-index: 10070;
  cursor: pointer;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
}

.menu-icon__line {
  height: 2px;
  width: 30px;
  display: block;
  background-color: #fff;
  margin-bottom: 7px;
  cursor: pointer;
  transition: background-color 0.5s ease, -webkit-transform 0.2s ease;
  transition: transform 0.2s ease, background-color 0.5s ease;
  transition: transform 0.2s ease, background-color 0.5s ease,
    -webkit-transform 0.2s ease;
}
.menu-icon__line-left {
  width: 16.5px;
  transition: all 200ms linear;
}
.menu-icon__line-right {
  width: 16.5px;
  float: right;
  transition: all 200ms linear;
}
.menu-icon:hover .menu-icon__line-left,
.menu-icon:hover .menu-icon__line-right {
  width: 30px;
}

.sidebar-open {
  position: fixed;
  width: min(340px, calc(100vw - 24px));
  height: 100dvh;
  top: 0;
  bottom: 0;
  background-color: #023363;
  z-index: 10030;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;

  transition: transform 0.2s ease-in-out;
  transform: translateX(-110%);
  visibility: hidden;
  pointer-events: none;
  border-top-right-radius: 24px;
  border-bottom-right-radius: 24px;
  padding-top: 90px;
  box-sizing: border-box;
}

.sidebar-open.is-open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

.sidebar-open .menu-items {
  width: min(260px, calc(100% - 42px));
  margin-left: 0;
  margin-top: 0;
  margin-bottom: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}
.sidebar-open li {
  list-style: none;
  margin-top: 0;
  font-weight: 700;
}

.sidebar-open li:first-child {
  margin-top: 0px;
}

.sidebar-open a {
  color: #ffffff;
}

.sidebar-open .sidebar-nav-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 15px;
  border-radius: 12px;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.025), 0 12px 24px rgba(0, 0, 0, 0.16);
  transition: background-color 0.18s ease, transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.sidebar-open .sidebar-nav-card img {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.sidebar-open .sidebar-nav-card span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-open .sidebar-nav-card:hover,
.sidebar-open .sidebar-nav-card:focus-visible {
  background: rgba(0, 88, 202, 0.72);
  border-color: rgba(158, 208, 255, 0.42);
  transform: translateX(4px);
  box-shadow: inset 0 0 0 1px rgba(158, 208, 255, 0.14), 0 16px 32px rgba(0, 0, 0, 0.22);
  outline: none;
}

.sidebar-open .sidebar-nav-card.is-active {
  background: rgba(0, 88, 202, 0.72);
  border-color: rgba(158, 208, 255, 0.52);
  box-shadow: inset 0 0 0 1px rgba(158, 208, 255, 0.18), 0 14px 28px rgba(0, 0, 0, 0.2);
}

.select-course {
  text-align: center;
}

.select-course .button-1 {
  min-width: 86px;
  width: auto;
  padding: 0 14px;
}

.guideBase {
  width: 1190px;
  position: relative;
  margin-left: auto;
  margin-right: auto;
  margin-top: 36px;
  margin-bottom: 40px;
  border-radius: 20px;
  background-color: #181818;
  font-size: 14px;
  color: rgb(220, 220, 220);
  border: 1px solid #0000009f;
  display: flex;
  align-items: center;
  flex-direction: column;
  padding-top: 30px;
  padding-bottom: 50px;
}

.guideBase ul {
  margin: 0px !important;
}

.guideBase .desc {
  margin-top: 10px;
  justify-content: center;
  display: flex;
  flex-direction: column;
  width: 84%;
}

.guideBase img {
  border-radius: 16px;
  border: 3px rgb(48, 54, 202) solid;
  width: 38vw;
}

.guideBase h3 {
  margin: 0px !important;
}

.guideBase h2 {
  margin-bottom: 8px !important;
}

.guideBase h4 {
  margin: 0px !important;
}

.guideBase .desc p {
  margin-top: 0px !important;
}

.about-preview-shell {
  margin: 24px 0 8px;
  padding: clamp(16px, 3vw, 26px);
  border-radius: 22px;
  border: 1px solid rgba(91, 156, 245, 0.28);
  background:
    radial-gradient(circle at 15% 0%, rgba(0, 191, 255, 0.18), transparent 34%),
    linear-gradient(135deg, rgba(255,255,255,0.055), rgba(255,255,255,0.015));
  display: grid;
  grid-template-columns: minmax(220px, 0.85fr) minmax(320px, 1.15fr);
  gap: clamp(18px, 4vw, 34px);
  align-items: center;
  overflow: hidden;
}

.about-elsie-live-preview {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  flex: 0 0 100%;
  max-width: 1100px;
  margin: 24px auto 8px;
  overflow: hidden;
  border: 1px solid #343434;
  border-radius: 14px;
  background: #181818;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
}

.about-elsie-live-preview-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}

.about-elsie-live-preview iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}

@media only screen and (max-width: 600px) {
  .about-elsie-live-preview {
    border-radius: 10px;
  }

  .about-elsie-live-preview-viewport {
    aspect-ratio: 4 / 3;
  }

}

.about-preview-copy {
  min-width: 0;
}

.about-preview-eyebrow {
  display: inline-flex;
  width: fit-content;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(0, 191, 255, 0.12);
  border: 1px solid rgba(0, 191, 255, 0.32);
  color: #9ed0ff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.about-preview-copy h3 {
  margin: 0 0 8px !important;
  color: #fff;
  font-size: clamp(1.05rem, 2.2vw, 1.5rem);
}

.about-preview-copy p {
  color: #c6d4e4;
  line-height: 1.55;
}

.about-device-preview {
  position: relative;
  min-height: 280px;
  display: grid;
  place-items: center;
}

.about-editor-preview {
  width: min(100%, 560px);
  border-radius: 18px;
  background: #151515;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 18px 45px rgba(0,0,0,0.35);
  padding: 16px;
  box-sizing: border-box;
}

.about-editor-path {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: #f4f4f4;
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 900;
  margin-bottom: 14px;
  overflow-wrap: anywhere;
}

.about-editor-path span {
  flex: 0 0 auto;
  padding: 5px 10px;
  border-radius: 999px;
  background: #6caf5d;
  color: #fff;
  font-size: 0.82rem;
}

.about-editor-body {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.about-editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  align-content: start;
}

.about-editor-actions input[type="button"],
.about-editor-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 72px;
  min-height: 36px;
  height: auto;
  margin: 0;
  padding: 8px 14px;
  border: none;
  border-radius: 999px;
  background: #315ab1;
  color: white;
  font-family: "Quicksand", sans-serif;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.15;
  cursor: pointer;
  box-sizing: border-box;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.about-editor-actions input[type="button"]:hover,
.about-editor-actions button:hover {
  background: #254b9c;
  transform: translateY(-1px);
}

.about-editor-actions button {
  background: #1053ab;
}

.about-editor-actions .about-editor-ai-button {
  background: #0058ca;
}

.about-editor-actions input[value="Delete File"] {
  background: #9b2f34;
}

.about-editor-actions input[value="Rename"],
.about-editor-actions input[value="Create"] {
  background: #315ab1;
}

.about-editor-screen {
  min-width: 0;
  border-radius: 14px;
  background: #1f1f1f;
  border: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
}

.about-editor-screen pre {
  margin: 0;
  min-height: 150px;
  padding: 14px;
  color: #f7f7f7;
  background: #272822;
  font-family: Consolas, "Courier New", monospace;
  font-size: 13px;
  line-height: 1.5;
  white-space: pre;
  overflow-x: auto;
}

.about-editor-code {
  tab-size: 2;
}

.about-code-line {
  display: block;
  min-height: 1.5em;
}

.about-code-gutter {
  display: inline-block;
  width: 24px;
  margin-right: 12px;
  color: #777;
  text-align: right;
  user-select: none;
}

.tok-tag {
  color: #f92672;
}

.tok-attr {
  color: #a6e22e;
}

.tok-string {
  color: #e6db74;
}

.tok-text {
  color: #f8f8f2;
}

.about-ai-feedback-preview {
  margin: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #16161e;
  border: 1px solid rgba(102,126,234,0.35);
  color: #e9eefc;
  font-size: 0.78rem;
  line-height: 1.45;
}

.about-ai-feedback-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.about-ai-feedback-head strong {
  color: #fff;
}

.about-ai-feedback-head span {
  padding: 3px 8px;
  border-radius: 999px;
  background: #6caf5d;
  color: #fff;
  font-weight: 900;
}

.about-ai-feedback-preview ul {
  margin: 0;
  padding-left: 18px;
}

.about-ai-feedback-preview li {
  margin: 3px 0;
}

.about-ai-feedback-preview b {
  color: #7bd88f;
}

.about-editor-status {
  padding: 10px 12px;
  color: #9ed0ff;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.82rem;
  font-weight: 800;
}

.about-preview-shell.about-elsie-shell {
  grid-template-columns: minmax(240px, 0.58fr) minmax(0, 1.42fr);
  align-items: stretch;
  gap: 18px;
  padding: 16px;
  border-radius: 10px;
  background: #151515;
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
}

.about-elsie-shell.is-open {
  grid-template-columns: 1fr;
}

.about-elsie-shell.is-open .about-preview-copy,
.about-elsie-shell.is-intro .about-elsie-window {
  display: none;
}

.about-open-preview-btn,
.about-elsie-toolbar button,
.about-elsie-tool-row button,
.about-elsie-tree button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  border: none;
  border-radius: 8px;
  background: #1360c5;
  color: #fff;
  font-family: "Quicksand", sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.15;
  transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.about-open-preview-btn {
  width: fit-content;
  min-height: 36px;
  padding: 0 16px;
  margin-top: 10px;
}

.about-open-preview-btn:hover,
.about-elsie-toolbar button:not(:disabled):hover {
  background: #024cbb;
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(19, 96, 197, 0.28);
}

.about-elsie-toolbar button:disabled,
.about-elsie-tool-row button:disabled,
.about-elsie-tree button:disabled {
  cursor: not-allowed;
  opacity: 0.72;
}

.about-elsie-window {
  display: grid;
  grid-template-rows: 54px minmax(0, 1fr);
  width: 100%;
  height: min(650px, 78vh);
  min-height: 470px;
  overflow: hidden;
  border-radius: 8px;
  background: #1e1e1e;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.about-elsie-toolbar {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
  height: 54px;
  padding: 0 14px;
  background: #1e1e1e;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-sizing: border-box;
}

.about-elsie-home {
  gap: 6px;
  width: 80px;
}

.about-elsie-home img {
  width: 14px;
  height: 14px;
}

.about-elsie-path {
  min-width: 0;
  max-width: 42%;
  margin-left: 18px;
  padding: 5px 12px;
  overflow: hidden;
  color: #d7d7d7;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
}

.about-elsie-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: clamp(1.15rem, 2.2vw, 1.85rem);
  font-weight: 800;
  white-space: nowrap;
  pointer-events: none;
}

.about-elsie-actions {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.about-elsie-actions button {
  min-width: 78px;
  padding: 0 10px;
}

.about-elsie-content {
  display: grid;
  grid-template-columns: 302px minmax(0, 1fr);
  min-height: 0;
}

.about-elsie-sidebar {
  min-height: 0;
  overflow: auto;
  padding: 18px 18px 80px;
  background: #1e1e1e;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  box-sizing: border-box;
}

.about-elsie-tool-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.about-elsie-tool-row button {
  flex: 1 1 86px;
  padding: 0 9px;
}

.about-elsie-user {
  margin-bottom: 14px;
  color: #f5f5f5;
  font-size: 1.12rem;
  font-weight: 800;
}

.about-elsie-current-dir {
  margin-bottom: 12px;
  overflow-wrap: anywhere;
  color: #cfd8ff;
  font-size: 0.82rem;
  font-weight: 700;
}

.about-elsie-tree {
  display: grid;
  gap: 7px;
}

.about-elsie-tree button {
  justify-content: space-between;
  width: 100%;
  min-height: 34px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #f1f5f9;
}

.about-elsie-tree button.active {
  background: #0f4ea3;
  outline: 1px solid rgba(100, 181, 246, 0.58);
}

.about-elsie-tree span,
.about-elsie-score strong {
  padding: 3px 8px;
  border-radius: 999px;
  background: #4f9f48;
  color: #fff;
  font-size: 0.72rem;
}

.about-elsie-score {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  color: #e5e7eb;
  font-weight: 800;
}

.about-elsie-main {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(230px, 0.72fr);
  grid-template-rows: minmax(0, 1fr) 112px;
  min-width: 0;
  min-height: 0;
  background: #181818;
}

.about-elsie-editor-wrap,
.about-elsie-preview-pane {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.about-elsie-editor-wrap {
  border-right: 2px solid #292929;
  border-bottom: 2px solid #292929;
}

.about-ace-editor {
  width: 100%;
  height: 100%;
  min-height: 320px;
  font-family: Consolas, "Courier New", monospace;
}

.about-elsie-preview-pane {
  background: #fff;
  border-bottom: 2px solid #292929;
}

.about-elsie-preview-pane iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

.about-elsie-terminal {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 10px 12px;
  overflow: auto;
  background: #000;
  color: #d1d5db;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.78rem;
}

.about-elsie-terminal span {
  color: #64b5f6;
  font-family: "Quicksand", sans-serif;
  font-weight: 800;
}

.about-elsie-terminal code {
  color: #e5e7eb;
  white-space: normal;
}

.about-elsie-shell.show-code .about-elsie-preview-pane {
  display: none;
}

.about-elsie-shell.show-code .about-elsie-editor-wrap {
  grid-column: 1 / -1;
  border-right: none;
}

.about-elsie-shell.show-preview .about-elsie-editor-wrap {
  display: none;
}

.about-elsie-shell.show-preview .about-elsie-preview-pane {
  grid-column: 1 / -1;
}

@media only screen and (max-width: 980px) {
  .about-elsie-window {
    height: auto;
    min-height: 0;
  }

  .about-elsie-toolbar {
    height: auto;
    min-height: 54px;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px;
  }

  .about-elsie-title {
    position: static;
    transform: none;
    order: -1;
    width: 100%;
    text-align: center;
  }

  .about-elsie-path {
    flex: 1 1 220px;
    max-width: none;
    margin-left: 0;
  }

  .about-elsie-actions {
    margin-left: 0;
  }

  .about-elsie-content {
    grid-template-columns: 1fr;
  }

  .about-elsie-sidebar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 14px;
    padding: 14px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .about-elsie-tool-row,
  .about-elsie-user,
  .about-elsie-current-dir,
  .about-elsie-tree,
  .about-elsie-score {
    margin: 0;
  }

  .about-elsie-main {
    min-height: 520px;
  }
}

@media only screen and (max-width: 680px) {
  .about-preview-shell.about-elsie-shell {
    padding: 10px;
  }

  .about-elsie-sidebar,
  .about-elsie-main {
    grid-template-columns: 1fr;
  }

  .about-elsie-main {
    grid-template-rows: minmax(360px, 1fr) minmax(280px, 0.8fr) 104px;
  }

  .about-elsie-editor-wrap {
    border-right: 0;
  }

  .about-elsie-preview-pane {
    border-top: 2px solid #292929;
  }

  .about-ace-editor {
    min-height: 360px;
  }

  .about-elsie-toolbar button,
  .about-elsie-tool-row button,
  .about-elsie-tree button {
    font-size: 0.72rem;
  }

  .about-elsie-actions,
  .about-elsie-home {
    flex: 1 1 auto;
  }

  .about-elsie-actions button {
    flex: 1 1 88px;
  }
}

@media only screen and (max-width: 360px) {
  .about-elsie-toolbar,
  .about-elsie-sidebar {
    padding: 8px;
  }

  .about-elsie-tool-row {
    gap: 6px;
  }

  .about-elsie-tool-row button,
  .about-elsie-actions button {
    min-width: 0;
    padding: 0 7px;
  }

  .about-elsie-current-dir,
  .about-elsie-tree button,
  .about-elsie-terminal {
    font-size: 0.7rem;
  }
}

.about-desktop-frame,
.about-phone-frame {
  box-sizing: border-box;
  box-shadow: 0 18px 45px rgba(0,0,0,0.35);
}

.about-desktop-frame {
  width: min(100%, 520px);
  min-height: 260px;
  border-radius: 18px;
  background: #151515;
  border: 1px solid rgba(255,255,255,0.12);
  padding: 14px;
}

.about-preview-toolbar {
  display: flex;
  gap: 8px;
  padding: 8px 8px 14px;
  color: #aaa;
  font-size: 0.72rem;
  font-weight: 800;
}

.about-preview-toolbar span:first-child {
  color: #fff;
  border-bottom: 2px solid #5ab2ff;
  padding-bottom: 4px;
}

.about-preview-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 10px;
}

.about-preview-card {
  min-height: 82px;
  padding: 13px;
  border-radius: 14px;
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(255,255,255,0.09);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.about-preview-card small {
  color: #8fa0b4;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.about-preview-card strong {
  color: #fff;
  font-size: 1rem;
}

.about-preview-card span {
  color: #b8c7d8;
  font-size: 0.78rem;
}

.about-score-card strong {
  font-size: 2.2rem;
  line-height: 1;
  color: #9ed0ff;
}

.about-feedback-card {
  grid-column: 1 / -1;
  border-left: 4px solid #00bfff;
}

.about-chip {
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(76, 175, 80, 0.16);
  color: #9be7b0 !important;
  border: 1px solid rgba(76, 175, 80, 0.3);
  font-weight: 800;
}

.about-phone-frame {
  display: none;
  width: min(100%, 270px);
  min-height: 410px;
  border-radius: 34px;
  padding: 18px 14px;
  background: #141414;
  border: 1px solid rgba(255,255,255,0.16);
}

.about-phone-notch {
  width: 74px;
  height: 7px;
  margin: 0 auto 22px;
  border-radius: 999px;
  background: rgba(255,255,255,0.2);
}

.about-phone-tabs {
  display: flex;
  gap: 14px;
  margin-bottom: 16px;
  color: #777;
  font-weight: 900;
}

.about-phone-tabs .active {
  color: #fff;
  border-bottom: 2px solid #5ab2ff;
  padding-bottom: 5px;
}

.about-phone-card {
  padding: 14px;
  border-radius: 14px;
  background: rgba(255,255,255,0.06);
  border-left: 5px solid #ffb347;
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}

.about-phone-card strong {
  color: #f5f5f5;
}

.about-phone-card span {
  color: #9ed0ff;
  font-weight: 800;
}

.about-phone-card button {
  width: fit-content;
  color: #aaa;
  background: transparent;
  border: 1px solid #444;
  border-radius: 7px;
  padding: 3px 9px;
}

.about-phone-card.muted {
  opacity: 0.78;
  border-left-color: #5ab2ff;
}

@media only screen and (max-width: 1600px) {
  .testLayout .testSheet {
    width: 370px;
  }
}

@media only screen and (max-width: 1300px) {
  .base {
    width: 90%;
    height: auto;
    min-height: 0;
    padding-bottom: 40px;
  }

  .base .inside-base {
    margin-bottom: 0;
  }

  .outline-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 60px;
    margin-bottom: 60px;
  }
  .outline-cards .project {
    transform: none !important;
    margin: 0 !important;
    width: 100px;
    height: 100px;
    position: relative;
  }
  .outline-cards .project .imgMasked {
    transform: translate(-50%, -50%) !important;
  }

  .titlebar .menubar {
    margin-left: 0;
  }



  .courses-base {
    font-size: 14px;
    width: 85%;
  }

  .guideBase {
    width: 86%;
  }

  .about-preview-shell {
    grid-template-columns: 1fr;
  }

  .about-preview-shell.about-elsie-shell {
    grid-template-columns: 1fr;
  }

  .about-device-preview {
    min-height: 260px;
  }
}

@media only screen and (max-width: 1250px) {
  .base {
    font-size: 14px;
    width: 86%;
  }

  .titlebar .menubar {
    display: none;
  }

  .titlebar .secondary {
    width: 100%;
    padding: 0 18px;
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) minmax(44px, auto);
    justify-content: initial;
    align-items: center;
    box-sizing: border-box;
    gap: 12px;
  }

  .titlebar .secondary > a {
    min-width: 0;
  }

  .titlebar .brand-link {
    grid-column: 2;
    justify-self: center;
  }

  .titlebar .secondary.secondary-guest {
    grid-template-columns: 54px minmax(0, 1fr) minmax(44px, auto);
  }

  .titlebar .secondary.secondary-guest > a {
    grid-column: 2 / 3;
    justify-self: center;
  }

  .titlebar .secondary.secondary-guest .account-menu {
    grid-column: 3 / 4;
    justify-self: end;
  }

  .titlebar .headertxt {
    font-size: clamp(24px, 4vw, 34px);
    line-height: 1;
    text-align: center;
    min-width: 0;
  }

  .titlebar .account-menu {
    margin-left: 0;
    justify-self: end;
    max-width: min(220px, 30vw);
  }

  .titlebar .login-main-btn {
    margin-top: 0;
    max-width: 100%;
    overflow: hidden;
  }



  .courses-base .desc {
    width: 87%;
  }

  .courses-content .collapsible {
    position: relative;
    display: block;
    margin-left: auto;
    margin-right: auto;
    color: white;
    cursor: pointer;
    padding: 18px;
  }

  .courses-content {
    width: 88%;
    display: none;
    border-radius: 10px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 60px;
  }

  .mobile-hamburger {
    display: block !important;
    flex: 0 0 30px;
    margin: 0;
    justify-self: start;
  }
}

@media only screen and (max-width: 600px) {
  .panel {
    width: 70%;
  }

  .titlebar {
    height: 90px;
  }

  .titlebar .headertxt {
    font-size: 24px;
  }

  .titlebar .secondary.secondary-guest {
    padding: 0 12px;
    gap: 8px;
  }

  .titlebar .secondary.secondary-guest .headertxt {
    font-size: clamp(22px, 8vw, 30px);
  }

  .courses-base {
    width: calc(100vw - 20px);
    max-width: 430px;
    box-sizing: border-box;
    margin-top: 18px;
    margin-bottom: 28px;
    padding: 18px 12px 22px;
    border-radius: 18px;
    font-size: 13px;
    overflow: visible;
  }

  .select-course {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .course-switcher-nav {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    max-width: 100%;
    overflow: visible;
    box-sizing: border-box;
  }

  .course-switcher-nav button {
    width: 100%;
    min-width: 0;
    padding-inline: 8px;
  }

  .select-course h3 {
    flex: 0 0 100%;
    margin: 4px 0 8px;
    font-size: 16px;
    line-height: 1.25;
  }

  .select-course .button-1 {
    min-width: 94px;
    height: 42px;
    margin: 0;
    border-radius: 999px;
    padding: 0 16px;
    box-shadow: 0 8px 18px rgba(0, 88, 202, 0.22);
  }

  .courses-header {
    margin-top: 8px;
    font-size: 14px;
  }

  .courses-header h1 {
    font-size: clamp(24px, 9vw, 34px);
    line-height: 1.05;
    margin: 0 0 10px;
  }

  .courses-header .desc,
  .courses-base .desc {
    width: 100%;
    max-width: none;
    margin-bottom: 18px;
    font-size: 13px;
    line-height: 1.45;
  }

  .courses-content {
    width: 100%;
    box-sizing: border-box;
    padding: 8px;
    border-width: 2px;
    border-radius: 14px;
    margin-bottom: 24px;
  }

  .courses-content .collapsible {
    padding: 14px 12px;
    font-size: 13px;
    line-height: 1.25;
    margin-bottom: 8px;
    border-radius: 10px;
  }

  .courses-content .active,
  .collapsible:hover {
    scale: 1;
  }

  .courses-content .content {
    margin: 8px 0 12px;
    padding: 8px;
    font-size: 13px;
    overflow-x: auto;
  }

  .courses-content .content p {
    margin: 8px 0;
    font-size: 13px;
    overflow-wrap: anywhere;
  }

  .courses-content .content .button-1 {
    width: auto;
    min-width: 72px;
    height: 34px;
    margin: 4px 0 8px;
    padding: 0 12px;
  }

  .outline-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 60px;
    margin-bottom: 60px;
  }
  .outline-cards .project {
    transform: none !important;
    margin: 0 !important;
    width: 100px;
    height: 100px;
    position: relative;
  }
  .outline-cards .project .imgMasked {
    transform: translate(-50%, -50%) !important;
  }

  .mobile-hamburger {
    margin: 0;
  }

  .titlebar .login-main-btn img {
    margin-left: 0px;
  }

  .titlebar .login-main-btn {
    width: 44px;
    height: 38px;
    padding: 0;
  }

  .titlebar .account-menu {
    max-width: 44px;
  }

  .titlebar .login-main-btn img {
    margin-right: 0px;
  }

  .titlebar .login-main-btn p {
    display: none;
  }

  .titlebar .login-main-btn-dropdown .dropdown {
    width: 100%;
    min-width: 120px;
  }

  .panel {
    flex-direction: column;
  }
  .panel .panelUsername {
    margin-top: 0px;
  }

  .panel .table-marks {
    margin-top: 0px;
  }

  .guideBase {
    width: 92%;
    padding-top: 20px;
    border-radius: 16px;
  }

  .guideBase .desc {
    width: 88%;
  }

  .about-preview-shell {
    padding: 16px;
    border-radius: 18px;
  }

  .about-device-preview {
    min-height: 420px;
  }

  .about-editor-preview {
    padding: 12px;
  }

  .about-editor-body {
    grid-template-columns: 1fr;
  }

  .about-editor-actions {
    justify-content: flex-start;
  }

  .about-editor-actions input[type="button"],
  .about-editor-actions button {
    min-height: 38px;
    padding: 8px 13px;
  }

  .about-desktop-frame {
    display: none;
  }

  .about-phone-frame {
    display: block;
  }
}

@media only screen and (max-width: 900px) {
  .titlebar .account-menu {
    max-width: 44px;
  }

  .titlebar .login-main-btn {
    width: 44px;
    height: 38px;
    padding: 0;
  }

  .titlebar .login-main-btn img {
    margin-left: 0;
    margin-right: 0;
  }

  .titlebar .login-main-btn p {
    display: none;
  }

  .titlebar .login-main-btn-dropdown {
    width: max-content;
    min-width: 172px;
  }

  .base {
    width: calc(100vw - 24px);
    height: auto;
    min-height: 0;
    padding-bottom: 32px;
  }

  .base .inside-base {
    width: min(90%, 720px);
    overflow-wrap: anywhere;
  }
}

@keyframes rotate {
  0%,
  49.999%,
  100% {
    transform: none;
  }

  50%,
  99.999% {
    transform: rotate(90deg);
  }
}

@keyframes shift-left {
  0%,
  100% {
    transform: translateX(0%);
  }

  50% {
    transform: scale(0.65) translateX(-75%);
  }
}

@keyframes shift-right {
  0%,
  100% {
    transform: translateX(0%);
  }

  50% {
    transform: scale(0.65) translateX(75%);
  }
}

@keyframes opacity {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@keyframes liemFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

html.liem-reduce-animations *,
body.liem-reduce-animations * {
  animation-duration: 0.01ms !important;
  animation-delay: 0ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
  transition-delay: 0ms !important;
  scroll-behavior: auto !important;
}

/* Script-created outlines can have dozens of units.  The native hidden
   attribute needs an author-level rule here because the legacy display:block
   declaration otherwise wins in some Chromium builds for a frame. */
.courses-content .collapsible[hidden],
.courses-content .content[hidden] {
  display: none !important;
}
.course-units-more {
  display: block;
  width: min(100%, 780px);
  margin: 12px auto 4px;
  min-height: 40px;
  border: 1px solid rgba(93, 159, 237, .55);
  border-radius: 10px;
  background: rgba(28, 74, 142, .32);
  color: #dcecff;
  font: 800 .84rem/1 Quicksand, Arial, sans-serif;
  cursor: pointer;
}
.course-units-more:hover,
.course-units-more:focus-visible { background: rgba(42, 100, 183, .48); border-color: #8bc4ff; }

@media (prefers-reduced-motion: reduce) {
  html:not(.liem-motion-enabled) *,
  html:not(.liem-motion-enabled) *::before,
  html:not(.liem-motion-enabled) *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }

}

:where(a, button, input, select, textarea, summary, [tabindex]:not([tabindex="-1"])):focus-visible {
  outline: 2px solid var(--liem-focus) !important;
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(158, 208, 255, 0.22);
}

@media only screen and (max-width: 360px), only screen and (max-height: 360px) {
  html,
  body {
    min-width: 0 !important;
    max-width: 100vw;
    overflow-x: hidden;
  }

  body {
    font-size: clamp(11px, 4vw, 14px);
  }

  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }

  img,
  canvas,
  video,
  iframe,
  table {
    max-width: 100%;
  }

  input,
  button,
  select,
  textarea,
  .button-1 {
    max-width: 100%;
    min-width: 0;
  }

  .titlebar {
    height: auto;
    min-height: 48px;
    margin-top: 0;
    padding: 6px;
  }

  .titlebar .secondary {
    width: 100%;
    min-width: 0;
    gap: 4px;
  }

  .titlebar .headertxt {
    min-width: 0;
    font-size: clamp(15px, 7vw, 22px);
    overflow-wrap: anywhere;
  }

  .titlebar .menubar,
  .titlebar .menubar-nonactive {
    max-width: 100%;
    margin: 0;
    gap: 3px;
    flex-wrap: wrap;
  }

  .titlebar .menubar button {
    width: auto;
    min-width: 44px;
    height: 34px;
    padding: 0 7px;
    font-size: 10px;
  }

  .mobile-sidebar,
  .titlebar .login-main-btn-dropdown {
    width: min(220px, calc(100vw - 12px));
    max-width: calc(100vw - 12px);
  }

  .base,
  .guideBase,
  .monitor-shell,
  .content,
  .courses-content,
  .about-preview-shell {
    width: calc(100vw - 10px) !important;
    max-width: calc(100vw - 10px) !important;
    min-width: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 6px !important;
    padding-right: 6px !important;
  }

  .base,
  .guideBase {
    height: auto;
    min-height: 0;
  }

  .base .inside-base,
  .guideBase .desc {
    width: 100%;
    min-width: 0;
  }

  .panel,
  .monitor-hero,
  .monitor-grid,
  .about-preview-shell,
  .about-editor-body {
    display: flex;
    flex-direction: column;
  }

  .monitor-card,
  .about-editor-preview,
  .about-device-preview,
  .about-editor-screen,
  .about-editor-screen pre {
    min-width: 0;
    max-width: 100%;
  }

  .about-device-preview {
    min-height: 0;
  }

  .about-editor-actions {
    gap: 5px;
  }

  .about-editor-actions input[type="button"],
  .about-editor-actions button,
  .courses-content .content .button-1 {
    min-height: 32px;
    padding: 6px 9px;
    font-size: 12px;
  }

  .courses-content .content {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .courses-content .content table,
  .table-marks {
    display: block;
    overflow-x: auto;
  }

  .outline-cards {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 60px;
    margin-bottom: 60px;
  }
  .outline-cards .project {
    transform: none !important;
    margin: 0 !important;
    width: 100px;
    height: 100px;
    position: relative;
  }
  .outline-cards .project .imgMasked {
    transform: translate(-50%, -50%) !important;
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    scale: 0.6;
  }

  to {
    opacity: 1;
    scale: 1;
  }
}

@keyframes background-pan {
  from {
    background-position: 0% center;
  }

  to {
    background-position: -200% center;
  }
}

@keyframes scale {
  from,
  to {
    transform: scale(0);
  }

  50% {
    transform: scale(1);
  }
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(180deg);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes notificationAnim {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cooltxt > .magic {
  display: inline-block;
  position: relative;
  font-weight: 700;
  max-width: 900px;
}

.cooltxt > .magic > .magic-star {
  --size: clamp(20px, 1.5vw, 30px);
  animation: scale 700ms ease forwards;
  display: block;
  height: var(--size);
  left: var(--star-left);
  position: absolute;
  top: var(--star-top);
  width: var(--size);
}

.cooltxt > .magic > .magic-star:nth-child(1) {
  --star-left: -0.7rem;
  --star-top: -0.7rem;
}

.cooltxt > .magic > .magic-star:nth-child(2) {
  --star-left: 45%;
  --star-top: -1.05rem;
}

.cooltxt > .magic > .magic-star:nth-child(3) {
  --star-left: calc(100% - 0.3rem);
  --star-top: -0.5rem;
}

.cooltxt > .magic > .magic-star > svg {
  animation: rotate 1000ms linear infinite;
  display: block;
  opacity: 0.7;
}

.cooltxt > .magic > .magic-star > svg > path {
  fill: var(--violet);
}

.cooltxt > .magic > .magic-text {
  animation: background-pan 3s linear infinite;
  background: linear-gradient(to right, var(--purple), var(--violet), var(--pink), var(--purple));
  background-size: 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
}

.broadcast {
  display: none;
  width: min(1190px, calc(100vw - 32px));
  margin: 28px auto 0;
  padding: 22px clamp(18px, 4vw, 56px);
  border: 1px solid #0000009f;
  border-radius: 20px;
  background:
    radial-gradient(circle at top left, rgba(58, 96, 174, 0.16), transparent 38%),
    #181818;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  color: rgb(183, 183, 183);
  text-align: center;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.broadcast.broadcast-visible {
  display: block;
}

.broadcast:empty {
  display: none;
}

.broadcast h1,
.broadcast h2,
.broadcast h3,
.broadcast p {
  margin: 0 0 0.65rem;
}

.broadcast h1:last-child,
.broadcast h2:last-child,
.broadcast h3:last-child,
.broadcast p:last-child {
  margin-bottom: 0;
}

.broadcast .broadcast-magic,
.broadcast .magic {
  display: inline-block;
  position: relative;
  font-weight: 900;
}

.broadcast .magic-text {
  animation: background-pan 3s linear infinite;
  background: linear-gradient(
    to right,
    var(--purple),
    var(--violet),
    var(--pink),
    var(--purple)
  );
  background-size: 200%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
}

.broadcast .magic-star {
  display: inline-block;
  color: var(--violet);
  filter: drop-shadow(0 0 6px var(--violet));
  margin: 0 2px;
}

[contenteditable][data-placeholder]:empty::before {
  content: attr(data-placeholder);
  color: rgba(255, 255, 255, 0.38);
  pointer-events: none;
}

/* The switch - the box around the slider */
.switch {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 24px;
}

/* Hide default HTML checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* The slider */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: 0.4s;
  transition: 0.4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: 0.4s;
  transition: 0.4s;
}

input:checked + .slider {
  background-color: #2196f3;
}

input:focus + .slider {
  box-shadow: 0 0 1px #2196f3;
}

input:checked + .slider:before {
  -webkit-transform: translateX(18px);
  -ms-transform: translateX(18px);
  transform: translateX(18px);
}

/* Rounded sliders */
.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

::-webkit-scrollbar {
  width: 12px;
  background: rgba(121, 121, 121, 0);
  height: 12px;
}

::-webkit-scrollbar:hover {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-thumb {
  background: #63636396;
  border-radius: 10px;

  border-right: 2px solid transparent;
  border-left: 2px solid transparent;
  border-top: 2px solid transparent;
  border-bottom: 2px solid transparent;
  background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
  background: #83838396;
  border-radius: 10px;
}

::-webkit-scrollbar-track-piece {
  display: none;
}

::-webkit-scrollbar-corner {
  display: none;
}

#files {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0;
}

#files li {
  display: block;
  background: rgba(30, 30, 30, 0.4);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  transition: transform 0.15s, border-color 0.15s;
}

#files li:hover {
  transform: translateY(-2px);
  border-color: #1360c5;
  background: rgba(40, 40, 40, 0.6);
}

#files li a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  padding: 24px 16px;
  text-decoration: none;
  color: white;
  height: 100%;
  box-sizing: border-box;
  text-align: center;
}

#files li a .name {
  margin-top: 12px;
  font-weight: 500;
  font-size: 0.9rem;
  word-break: break-word;
}

#files li a .icon {
  display: none; /* Hide default tiny icon */
}

#files li.dir a::before {
  content: "📁";
  font-size: 3rem;
  line-height: 1;
}

#files li.file a::before {
  content: "📄";
  font-size: 3rem;
  line-height: 1;
}

#files li a.content-preview-link .content-preview-badge {
  margin-top: 8px;
}

#files li a.content-locked-link::before {
  filter: grayscale(1) opacity(0.5);
}

#files li.content-up-entry a.content-up-link .name {
  background-image: url("/imgs/svgs/folder-up.svg") !important;
}

.content-lock-badge::after {
  content: "🔒";
  font-size: 1.2rem;
  margin-left: 8px;
}

@media only screen and (max-width: 600px) {
  /* The desktop outline label deliberately slides beside its icon. On touch
     layouts that invisible 150px label used to extend past the last card and
     create horizontal page scrolling. Keep the label inside its own card; the
     icon remains the same size and the name can wrap when it is revealed. */
  .home-page .outline-cards .project-name,
  .home-page .outline-cards .project:hover .project-name,
  .home-page .outline-cards .project:focus-visible .project-name {
    left: 0;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding-inline: 2px;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .about-preview-shell.about-elsie-shell {
    display: grid;
    flex-direction: initial;
    padding: 8px !important;
    border-radius: 10px;
  }

  .about-preview-shell.about-elsie-shell .about-elsie-content,
  .about-preview-shell.about-elsie-shell .about-elsie-main {
    display: grid;
  }

  .about-preview-shell.about-elsie-shell .about-elsie-main {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(340px, 1fr) minmax(260px, 0.8fr) 100px;
  }

  .about-preview-shell.about-elsie-shell.show-code .about-elsie-main,
  .about-preview-shell.about-elsie-shell.show-preview .about-elsie-main {
    grid-template-rows: minmax(420px, 1fr) 100px;
  }
}
.titlebar, .toolbar { view-transition-name: liem-navbar; }
  
.courses-content .content .pdf-row-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  width: calc(100% - 32px);
  min-width: 0;
  gap: 15px;
  margin: 10px 16px;
}

.courses-content .content .pdf-row-container .button-1 {
  flex: 0 0 auto;
  margin: 0;
}

@media only screen and (max-width: 700px) {
  .pdf-viewer-page {
    height: auto;
    min-height: 100dvh;
    overflow: auto;
  }

  .pdf-viewer-workspace {
    height: auto;
    min-height: 100dvh;
    display: block;
  }

  .pdf-viewer-toolbar {
    gap: 8px;
    padding: 8px;
  }

  .pdf-magnifier-controls {
    box-sizing: border-box;
    gap: 7px;
    flex-wrap: wrap;
  }

  .pdf-assist-tools {
    width: 100%;
    grid-template-columns: 96px minmax(0, 1fr);
    box-sizing: border-box;
  }

  .pdf-text-status {
    width: 96px;
    min-width: 96px;
    max-width: 96px;
  }

  .pdf-magnifier-touch-hint {
    display: block;
    flex: 1 0 100%;
    margin: 0;
    text-align: center;
    color: #c9d9ef;
    font-size: 0.72rem;
  }

  .pdf-viewer-page .pdfViewerBody {
    height: calc(100dvh - 150px);
    min-height: 480px;
  }

  .courses-content .content .pdf-row-container {
    width: calc(100% - 16px);
    margin: 8px;
    gap: 9px;
  }
}


/* --- Teacher Dashboard Sidebar Architecture --- */
.teacher-app-container {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
  background-color: #0d1117;
  color: #c9d1d9;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

@media (max-width: 900px) {
  .teacher-app-container {
    grid-template-columns: 1fr;
  }
  .teacher-sidebar {
    display: flex !important;
    position: sticky;
    top: 0;
    z-index: 20;
    height: auto;
    min-height: 0;
    padding: 8px;
    flex-direction: row;
    gap: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    border-right: 0;
    border-bottom: 1px solid #30363d;
    scrollbar-width: thin;
  }
  .teacher-sidebar-brand {
    display: none;
  }
  .sidebar-nav-item {
    flex: 0 0 auto;
    width: auto;
    min-height: 42px;
    padding: 9px 12px;
    font-size: 0.9rem;
    white-space: nowrap;
  }
  .teacher-main-content {
    height: auto;
    min-height: calc(100vh - 58px);
    padding: 18px 12px;
  }
}

.teacher-sidebar {
  background-color: #1e1e1e;
  border-right: 1px solid #30363d;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: sticky;
  top: 0;
  height: 100dvh;
  overflow: hidden;
}

.teacher-sidebar-brand {
  font-size: 1.2rem;
  font-weight: 700;
  color: #c9d1d9;
  padding: 0 12px 16px 12px;
  margin-bottom: 8px;
  border-bottom: 1px solid #30363d;
}

.teacher-sidebar-separator {
  width: calc(100% - 16px);
  height: 0;
  margin: 3px 8px 2px;
  border-top: 1px dotted #505760;
  flex: 0 0 auto;
}

.sidebar-nav-item {
  padding: 12px 16px;
  border-radius: 8px;
  cursor: pointer;
  color: #8b949e;
  transition: all 0.2s ease;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  border: none;
  text-align: left;
  font-size: 1rem;
  width: 100%;
}

.sidebar-nav-item:hover {
  background-color: rgba(177, 186, 196, 0.12);
  color: #c9d1d9;
}

.sidebar-nav-item.active {
  background-color: rgba(31, 111, 235, 0.1);
  color: #58a6ff;
}

.teacher-sidebar-preferences {
  margin-top: auto;
  padding: 16px 4px 0;
  border-top: 1px dotted #505760;
}

.teacher-motion-toggle {
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 11px;
  border: 1px solid #3d4650;
  border-radius: 10px;
  background: #24292f;
  color: #dce6f1;
  cursor: pointer;
  text-align: left;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.teacher-motion-toggle:hover,
.teacher-motion-toggle:focus-visible {
  border-color: #6aa8ef;
  background: #293440;
  box-shadow: 0 0 0 3px rgba(72, 142, 224, 0.15);
  outline: none;
}

.teacher-motion-toggle > span {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.teacher-motion-toggle strong {
  color: #edf5ff;
  font-size: 0.78rem;
  line-height: 1.2;
}

.teacher-motion-toggle small {
  color: #8fa0b2;
  font-size: 0.62rem;
  line-height: 1.25;
}

.teacher-motion-toggle em {
  flex: 0 0 auto;
  min-width: 42px;
  padding: 4px 8px;
  border: 1px solid #62a873;
  border-radius: 999px;
  background: rgba(71, 155, 91, 0.14);
  color: #93e0a2;
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 800;
  text-align: center;
}

.teacher-motion-toggle[aria-pressed="true"] em {
  border-color: #d2a84e;
  background: rgba(210, 168, 78, 0.14);
  color: #f1ca75;
}

.teacher-main-content {
  padding: 32px 40px;
  box-sizing: border-box;
  min-height: 100dvh;
  height: auto;
  overflow: visible;
  background: #292929 url("/imgs/dark-diagonal-strips.png");
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Final responsive overrides live after the desktop teacher styles.  Keeping
   them here prevents the desktop declarations above from winning by source
   order on a phone or tablet. */
@media (max-width: 1250px) {
  .sidebar-open {
    align-items: flex-start;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 24px 12px;
  }

  .sidebar-open .menu-items {
    width: 100%;
    max-width: 260px;
    margin: 0 auto;
  }
}

@media (max-width: 700px) {
  .titlebar {
    height: 72px;
    margin-top: 0;
  }

  .titlebar .secondary {
    grid-template-columns: 36px minmax(0, 1fr) 44px;
    gap: 8px;
    padding: 0 12px;
  }

  .titlebar .headertxt {
    font-size: clamp(20px, 7.2vw, 28px);
  }

  .titlebar .mobile-hamburger {
    width: 30px;
  }
}

.teacher-view-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  border-bottom: 1px solid #30363d;
  padding-bottom: 16px;
}

.teacher-view-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
}

/* Premium card for content inside views */
.teacher-content-card {
  background-color: #161b22;
  border: 1px solid #30363d;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Keep this after the desktop dashboard declarations: the earlier mobile
   block was being overridden by those declarations at the same specificity. */
@media (max-width: 900px) {
  .teacher-app-container {
    grid-template-columns: minmax(0, 1fr);
    min-width: 0;
  }

  .teacher-sidebar {
    display: grid !important;
    position: sticky;
    top: 0;
    z-index: 20;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    align-items: stretch;
    gap: 6px;
    width: 100%;
    height: auto;
    min-height: 0;
    padding: 8px;
    overflow: visible;
    border-right: 0;
    border-bottom: 1px solid #30363d;
    box-sizing: border-box;
  }

  .teacher-sidebar-brand {
    display: none;
  }

  .teacher-sidebar-separator {
    grid-column: 1 / -1;
    width: 100%;
    margin: 2px 0;
  }

  .teacher-sidebar-preferences {
    grid-column: 1 / -1;
    margin-top: 2px;
    padding: 8px 0 0;
  }

  .teacher-motion-toggle {
    max-width: 360px;
    margin: 0 auto;
  }

  .sidebar-nav-item {
    width: 100%;
    min-height: 42px;
    padding: 9px 12px;
    font-size: 0.9rem;
    white-space: normal;
    justify-content: center;
    text-align: center;
  }

  .teacher-app-container .sidebar-nav-item:hover {
    transform: none;
  }

  .teacher-main-content {
    width: 100%;
    min-height: calc(100dvh - 58px);
    height: auto;
    padding: 18px 12px;
    box-sizing: border-box;
  }

  .teacher-view-header {
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 12px;
  }

  .teacher-view-title {
    font-size: clamp(1.35rem, 6vw, 1.8rem);
  }

  .teacher-content-card {
    padding: 16px;
  }
}

@media (max-width: 360px), (max-height: 360px) {
  .titlebar {
    height: auto;
    min-height: 52px;
    padding: 6px;
  }

  .titlebar .secondary {
    grid-template-columns: 30px minmax(0, 1fr) 40px;
    gap: 6px;
    padding: 0 4px;
  }

  .titlebar .headertxt {
    font-size: clamp(16px, 6.4vw, 22px);
  }

  .titlebar .login-main-btn {
    width: 40px;
    height: 36px;
  }
}

@media (max-width: 600px) {
  .context-switcher-nav {
    flex-wrap: nowrap;
    width: auto;
    max-width: 100% !important;
    height: 34px;
    justify-content: center;
    overflow: hidden;
    transition: none;
  }
  .context-switcher-nav:hover,
  .context-switcher-nav:focus-within { max-width: 100% !important; }
  .context-switcher-nav a { flex: 0 0 34px; min-width: 34px; width: 34px; padding: 0; }
  .context-switcher-nav span,
  .context-switcher-nav:hover span,
  .context-switcher-nav:focus-within span { display: none; max-width: 0; margin-left: 0; opacity: 0; }
}

body[data-pdf-text-selection="disabled"] .pdf-page-wrapper .textLayer {
  display: none !important;
  pointer-events: none !important;
  user-select: none !important;
  -webkit-user-select: none !important;
}


.content-upbtn[hidden] { display: none !important; }
.collaboration-panel { width: min(100% - 24px, 1180px); margin: 8px auto 18px; padding: clamp(18px,4vw,30px); background: #191919; border: 1px solid #303030; border-radius: 16px; color: #eee; }
.collaboration-panel h2, .collaboration-panel h3 { margin: 0 0 12px; }
.collaboration-panel p, .collaboration-panel small { color: #bbb; line-height: 1.5; }
.collaboration-heading, .collaboration-toolbar, .collaboration-roster-head, .collaboration-selection-head, .collaboration-list-head, .collaboration-save-row { display:flex; align-items:center; justify-content:space-between; gap:14px; flex-wrap:wrap; }
.collaboration-heading p, .collaboration-list-head small { margin:0; }
.collaboration-count, .collaboration-kind { border:1px solid #3f669b; background:#172538; color:#b9d9ff; border-radius:999px; padding:5px 10px; font-size:.74rem; font-weight:800; }
.collaboration-toolbar { margin:20px 0; padding:14px; background:#212121; border:1px solid #373737; border-radius:12px; }
.collaboration-toolbar label { display:grid; gap:6px; min-width:min(100%,260px); color:#cbd4df; font-size:.78rem; font-weight:800; }
.collaboration-panel select { padding: 9px; border-radius: 7px; color: #eee; background: #292929; border: 1px solid #444; }
.collaboration-panel button, .collaboration-picker button { padding: 8px 14px; border-radius: 8px; background: #2e66bd; border: 1px solid #4f83d1; color: white; font: inherit; font-weight:750; cursor: pointer; }
.collaboration-panel button:disabled { opacity: .5; cursor: default; }
.collaboration-panel button.secondary { background: #2b2b2b; border-color: #505050; }
.collaboration-panel button.danger { color:#ffb7b7; border-color:#754545; }
.collaboration-selection { padding:16px; background:#202020; border:1px solid #3b4655; border-radius:12px; margin-bottom:18px; }
.collaboration-selection-head > div { min-width:0; flex:1; }
.collaboration-selection code { display:block; overflow-wrap:anywhere; margin:8px 0; color:#a9cdf9; }
.collaboration-roster-head { margin:14px 0 9px; }
.collaboration-roster-head > div { display:grid; gap:2px; }
.collaboration-roster-head small { margin:0; }
.collaboration-roster-head input { min-width:min(100%,230px); background:#171717; border:1px solid #444; color:white; border-radius:8px; padding:9px 11px; }
.collaboration-roster-actions { display:flex; justify-content:flex-end; gap:8px; margin:0 0 10px; flex-wrap:wrap; }
.collaboration-student-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(155px,1fr)); gap:7px; max-height:290px; overflow:auto; padding:2px; }
.collaboration-panel button.collaboration-student { display:flex; align-items:center; gap:8px; min-width:0; background:#262626; border-color:#3b3b3b; color:#ddd; text-align:left; overflow:hidden; }
.collaboration-panel button.collaboration-student.selected { background:#203b62; border-color:#5a8bd0; color:white; }
.collaboration-check { display:inline-flex; width:17px; height:17px; flex:0 0 17px; align-items:center; justify-content:center; border:1px solid #6683aa; border-radius:4px; font-size:.7rem; }
.collaboration-save-row { justify-content:flex-end; margin-top:12px; }
.collaboration-list-head { margin-top:8px; }
.collaboration-session-list { display:grid; gap:8px; }
.collaboration-session { background:#222; border:1px solid #353535; border-radius:11px; overflow:hidden; }
.collaboration-session.expanded { border-color:#4d6d99; }
.collaboration-panel button.collaboration-session-summary { width:100%; display:flex; align-items:center; gap:11px; padding:13px 14px; border:0; border-radius:0; background:transparent; text-align:left; }
.collaboration-file-icon { display:grid; place-items:center; width:32px; height:32px; flex:0 0 32px; border-radius:8px; background:#1f3960; color:#b9d7ff; }
.collaboration-file-icon::before { content:""; width:17px; height:17px; background:currentColor; -webkit-mask:center / contain no-repeat; mask:center / contain no-repeat; }
.collaboration-file-icon.is-folder::before { -webkit-mask-image:url('/imgs/svgs/folder-closed.svg'); mask-image:url('/imgs/svgs/folder-closed.svg'); }
.collaboration-file-icon.is-file::before { -webkit-mask-image:url('/imgs/svgs/regular/file-code.svg'); mask-image:url('/imgs/svgs/regular/file-code.svg'); }
.collaboration-session-copy { display:grid; min-width:0; flex:1; gap:2px; }
.collaboration-session-copy strong { overflow-wrap:anywhere; }
.collaboration-session-copy small { margin:0; }
.collaboration-avatar-stack { display:flex; justify-content:flex-end; padding-left:10px; }
.collaboration-avatar-stack i { display:grid; place-items:center; width:28px; height:28px; margin-left:-8px; border:2px solid #222; border-radius:50%; background:#315f9f; color:#fff; font-style:normal; font-size:.58rem; font-weight:900; }
.collaboration-chevron { display:grid;place-items:center;width:24px;height:24px;border:1px solid #4b535c;border-radius:7px;background:#282d32;color:#c7d2dc;font-size:1rem;line-height:1;transition:background .16s ease,border-color .16s ease; }
.collaboration-session.expanded .collaboration-chevron { background:#303840;border-color:#647588;transform:none; }
.collaboration-session-detail { animation:collaborationDetailIn .24s cubic-bezier(.16,1,.3,1) both; }
@keyframes collaborationRowIn { from { opacity:0; transform:translateY(5px); } to { opacity:1; transform:none; } }
@keyframes collaborationDetailIn { from { opacity:0; transform:translateY(-4px); } to { opacity:1; transform:none; } }
.collaboration-session-detail { display:flex; justify-content:space-between; gap:14px; flex-wrap:wrap; padding:13px 14px; border-top:1px solid #353535; background:#1d1d1d; }
.collaboration-session-detail > div:first-child { flex:1; min-width:200px; overflow-wrap:anywhere; }
.collaboration-session-detail p { margin:4px 0 0; }
.collaboration-live { color:#8fd4a8 !important; }
.collaboration-session-actions { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.collaboration-empty { display:grid; gap:4px; padding:22px; border:1px dashed #444; border-radius:11px; text-align:center; color:#bcbcbc; }
.collaboration-picker-overlay { position: fixed; inset: 0; z-index: 2147483645; background: #0009; display: grid; place-items: center; padding: 12px; }
.collaboration-picker { width: min(1300px, 100%); height: min(90dvh, 950px); background: #1e1e1e; border: 1px solid #444; border-radius: 12px; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 20px 80px #0008; }
.collaboration-picker header { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; gap: 12px; color: white; }
.collaboration-picker iframe { flex: 1; min-height: 0; width: 100%; border: 0; }
@media(max-width:620px){.collaboration-toolbar>*{width:100%}.collaboration-toolbar button{min-height:44px}.collaboration-avatar-stack{display:none}.collaboration-session-actions{width:100%}.collaboration-session-actions button{flex:1}.collaboration-student-grid{grid-template-columns:1fr 1fr}.collaboration-roster-head input{width:100%}}

/* Content preview controls and placement share the centered file-browser axis. */
.content-split-layout { flex-direction: column; align-items: stretch; }
.content-split-layout .content-preview-shell, .content-preview-shell { max-width: calc(100% - 24px); margin: 16px auto; align-self: center; }
.content-preview-actions { flex-wrap: wrap; justify-content: center; }
.content-preview-actions a, .content-open-widget { color: #a6ccff; font-size: 12px; border: 1px solid #445d7a; border-radius: 5px; padding: 4px 7px; text-decoration: none; }
.content-open-widget { display: inline-block; margin: 3px 6px; }
.pdf-home-button { display: inline-flex; align-items: center; gap: 7px; padding: 8px 11px; background: #272b30; color: white; border: 1px solid #454e59; border-radius: 8px; text-decoration: none; }
.pdf-home-button img { width: 18px; height: 18px; }

.global-test-notice.is-minimized { padding: 7px 10px; min-height: 0; }
.global-test-notice.is-minimized .global-test-notice__detail,
.global-test-notice.is-minimized .global-test-notice__time,
.global-test-notice.is-minimized .global-test-notice__progress,
.global-test-notice.is-minimized .global-test-notice__actions button:not(.is-dismiss) { display: none; }
.global-test-notice.is-minimized .global-test-notice__title { font-size: 12px; }

/* Touch screens have no persistent hover state. Keep the compact navigation
   labels visible there so every destination is identifiable before the tap. */
@media (hover: none) and (pointer: coarse) and (max-width: 600px) {
  .context-switcher-nav {
    justify-content: flex-start;
    height: auto;
    max-width: 100% !important;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .context-switcher-nav::-webkit-scrollbar { display: none; }
  .context-switcher-nav a,
  .context-switcher-nav a:hover,
  .context-switcher-nav a:focus-visible {
    flex: 0 0 auto;
    width: auto;
    min-width: 34px;
    padding-inline: 7px;
  }
  .context-switcher-nav span,
  .context-switcher-nav:hover span,
  .context-switcher-nav:focus-within span,
  .context-switcher-nav a:hover span,
  .context-switcher-nav a:focus-visible span {
    display: inline;
    max-width: 72px;
    margin-left: 4px;
    opacity: 1;
  }
  .pdf-viewer-toolbar .pdf-context-nav a,
  .pdf-viewer-toolbar .pdf-context-nav a:hover,
  .pdf-viewer-toolbar .pdf-context-nav a:focus-visible {
    flex-basis: auto;
    padding-inline: 7px;
  }
  .pdf-viewer-toolbar .pdf-context-nav a span,
  .pdf-viewer-toolbar .pdf-context-nav a:hover span,
  .pdf-viewer-toolbar .pdf-context-nav a:focus-visible span {
    max-width: 72px;
    margin-left: 4px;
    opacity: 1;
  }
}
