html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.form-control:focus,
.form-check-input:focus {
  border-color: rgba(56, 115, 203, 0.55);
  box-shadow: 0 0 0 0.18rem rgba(56, 115, 203, 0.18);
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 0;
}

body.is-video-modal-open,
body.is-doveline-modal-open {
  overflow: hidden;
}

body > header {
  position: sticky;
  top: 0;
  z-index: 1100;
}

body > header .navbar {
  position: relative;
  margin-bottom: 0.75rem;
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.94) !important;
}

body.gateway-login-page > header .navbar,
body.gateway-course-page > header .navbar {
  margin-bottom: 0 !important;
}

:root {
  --gateway-action-blue-start: #3873cb;
  --gateway-action-blue-end: #4f8fe0;
  --gateway-action-blue-start-hover: #2f66b8;
  --gateway-action-blue-end-hover: #3873cb;
  --gateway-action-blue-border: #4f8fe0;
  --gateway-action-blue-shadow: 0 0.65rem 1.35rem rgba(56, 115, 203, 0.18);
  --gateway-header-logo-space: clamp(10.25rem, 15vw, 11.8rem);
  /* Contrast rule: text and field content on light surfaces should always use these dark tokens. */
  --gateway-text-on-light: #0f172a;
  --gateway-muted-on-light: #475569;
  --gateway-placeholder-on-light: #64748b;
  --gateway-error-text: #b42318;
}

.text-danger,
.field-validation-error {
  color: var(--gateway-error-text) !important;
}

body > header .navbar > .container {
  width: 100%;
  max-width: none;
  min-width: 0;
  margin-inline: 0;
  padding-left: var(--gateway-header-logo-space);
  padding-right: 1.25rem;
  gap: 0.75rem;
}

.gateway-nav-menu {
  flex: 0 0 auto;
  position: relative;
}

.gateway-user-menu {
  position: relative;
}

.gateway-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
  gap: 0.65rem;
  margin-left: auto;
}

.gateway-signed-out-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.gateway-signed-out-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  border: 1px solid rgba(56, 115, 203, 0.42);
  border-radius: 999px;
  padding: 0.62rem 1rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.gateway-signed-out-link-secondary {
  background: rgba(255, 255, 255, 0.92);
  color: #2f66b8;
}

.gateway-signed-out-link-secondary:hover,
.gateway-signed-out-link-secondary:focus-visible {
  border-color: rgba(47, 102, 184, 0.7);
  background: rgba(37, 99, 235, 0.09);
  color: #244f93;
}

.gateway-signed-out-link-primary {
  background: linear-gradient(135deg, #3873cb, #4f8fe0);
  color: #f8fbff;
  box-shadow: var(--gateway-action-blue-shadow);
}

.gateway-signed-out-link-primary:hover,
.gateway-signed-out-link-primary:focus-visible {
  border-color: rgba(47, 102, 184, 0.48);
  background: linear-gradient(135deg, #2f66b8, #3873cb);
  color: #ffffff;
}

.gateway-signed-out-menu {
  display: none;
}

.gateway-header-brand {
  display: inline-flex;
  align-items: center;
  position: absolute;
  left: 1.6rem;
  top: 50%;
  z-index: 2;
  flex: 0 0 auto;
  transform: translateY(-50%);
  text-decoration: none;
}

.doveline-wordmark {
  display: inline-flex;
  flex-direction: column;
  width: max-content;
  color: #102a63;
  font-family: "Avenir Next", "Segoe UI", Inter, Arial, sans-serif;
  line-height: 1;
  user-select: none;
}

.doveline-wordmark-name {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.055em;
  white-space: nowrap;
}

.doveline-wordmark-pause {
  display: inline-flex;
  align-items: flex-end;
  align-self: center;
  justify-content: center;
  width: 0.5em;
  height: 0.76em;
  margin: 0 0.04em 0 0.075em;
  gap: 0.11em;
  transform: translateY(-0.075em);
}

.doveline-wordmark-pause > span {
  display: block;
  flex: 1 1 0;
  height: 100%;
  border-radius: 0.075em;
  background: linear-gradient(180deg, #4f8fe0 0%, #2563eb 58%, #102a63 100%);
  box-shadow: 0 0.06em 0.12em rgba(37, 99, 235, 0.16);
}

.doveline-wordmark-pause > .doveline-wordmark-i {
  height: 72%;
}

.doveline-wordmark-academy {
  align-self: center;
  margin-top: 0.22rem;
  padding-left: 0;
  color: #3873cb;
  font-size: 0.67rem;
  font-weight: 750;
  letter-spacing: 0.21em;
  line-height: 1;
  text-transform: uppercase;
  transform: translateX(-0.18rem);
}

.gateway-header-brand .doveline-wordmark {
  min-width: clamp(7.75rem, 12vw, 9rem);
}

.gateway-nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(56, 115, 203, 0.42);
  border-radius: 999px;
  width: 2.85rem;
  height: 2.85rem;
  padding: 0;
  background: linear-gradient(135deg, #3873cb, #4f8fe0);
  color: #f8fbff;
  box-shadow: 0 0.65rem 1.35rem rgba(56, 115, 203, 0.18);
}

.gateway-nav-toggle:hover,
.gateway-nav-toggle:focus-visible,
.gateway-nav-toggle.show {
  border-color: rgba(47, 102, 184, 0.48);
  background: linear-gradient(135deg, #2f66b8, #3873cb);
  color: #ffffff;
}

.gateway-nav-toggle-bars {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.22rem;
  width: 1.05rem;
}

.gateway-nav-toggle-bars span {
  display: block;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.gateway-nav-dropdown-menu {
  min-width: max-content;
  margin-top: 0.55rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 1rem;
  padding: 0.45rem;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 1.1rem 2.2rem rgba(15, 23, 42, 0.18);
}

.gateway-nav-dropdown-item {
  border-radius: 0.75rem;
  padding: 0.7rem 0.85rem;
  color: #1e293b;
  font-weight: 600;
}

.gateway-nav-dropdown-item:hover,
.gateway-nav-dropdown-item:focus-visible {
  background: rgba(37, 99, 235, 0.12);
  color: #0f172a;
}

.gateway-user-menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  width: min(18rem, 32vw);
  min-width: 11rem;
  max-width: 18rem;
  border: 1px solid rgba(56, 115, 203, 0.38);
  border-radius: 999px;
  padding: 0.42rem 0.75rem 0.42rem 0.5rem;
  background: linear-gradient(135deg, #3873cb, #4f8fe0);
  color: #f8fbff;
  box-shadow: 0 0.75rem 1.5rem rgba(56, 115, 203, 0.18);
}

.gateway-user-menu-toggle:hover,
.gateway-user-menu-toggle:focus-visible,
.gateway-user-menu-toggle.show {
  border-color: rgba(47, 102, 184, 0.46);
  background: linear-gradient(135deg, #2f66b8, #3873cb);
  color: #ffffff;
}

.gateway-user-menu-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  background: rgba(125, 211, 252, 0.16);
  color: #dbeafe;
  flex-shrink: 0;
}

.gateway-user-menu-icon svg {
  width: 1.28rem;
  height: 1.28rem;
  stroke: currentColor;
  stroke-width: 1.6;
  fill: none;
}

.gateway-user-menu-text {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.gateway-user-menu-caption {
  color: rgba(191, 219, 254, 0.76);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gateway-user-menu-name {
  max-width: 100%;
  overflow: hidden;
  color: #ffffff;
  font-size: 0.96rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gateway-user-dropdown-menu {
  min-width: 14rem;
}

.gateway-user-menu-divider {
  margin: 0.35rem 0;
}

.gateway-user-menu-form {
  margin: 0;
}

.gateway-user-menu-signout {
  width: 100%;
}

.gateway-site-footer {
  position: static;
  width: 100%;
  border-top: 1px solid rgba(96, 165, 250, 0.28);
  padding: 2.4rem max(1.25rem, env(safe-area-inset-right)) 1.1rem max(1.25rem, env(safe-area-inset-left));
  background:
    radial-gradient(circle at 14% 0%, rgba(59, 130, 246, 0.18), transparent 22rem),
    linear-gradient(160deg, #07142f 0%, #0b1f46 58%, #07142f 100%);
  color: #cbd5e1;
  line-height: 1.5;
}

.gateway-site-footer-inner,
.gateway-site-footer-bottom {
  width: min(100%, 78rem);
  margin-inline: auto;
}

.gateway-site-footer-inner {
  display: grid;
  grid-template-columns: minmax(16rem, 1.2fr) minmax(22rem, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
}

.gateway-site-footer-summary {
  min-width: 0;
}

.gateway-site-footer-brand {
  display: inline-flex;
  margin-bottom: 0.8rem;
  text-decoration: none;
}

.gateway-site-footer-brand .doveline-wordmark-name {
  color: #f8fbff;
}

.gateway-site-footer-brand .doveline-wordmark-academy {
  align-self: flex-end;
  color: #93c5fd;
  transform: none;
}

.gateway-site-footer-summary > p {
  max-width: 38rem;
  margin: 0;
  color: #b8c7dc;
}

.gateway-site-footer-pledge {
  margin-top: 1rem !important;
  border-left: 3px solid #5eead4;
  padding-left: 0.9rem;
  color: #e5f9f6 !important;
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.65;
}

.gateway-site-footer-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.gateway-site-footer-links > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
}

.gateway-site-footer-links h2 {
  margin: 0 0 0.2rem;
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gateway-site-footer a {
  color: #bfdbfe;
  text-underline-offset: 0.2em;
}

.gateway-site-footer a:hover,
.gateway-site-footer a:focus-visible {
  color: #ffffff;
}

.gateway-site-footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  padding-top: 1rem;
  color: #94a3b8;
  font-size: 0.78rem;
}

html {
  font-family: "helvetica neue", helvetica, arial, sans-serif;
}

.login-container {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 300px;
    text-align: center;
}
.login-container h1 {
    margin-bottom: 20px;
    font-size: 24px;
    color: #333;
}
.login-container input[type="text"],
.login-container input[type="password"] {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
}
.login-container button {
    width: 100%;
    padding: 10px;
    background-color: #007bff;
    border: none;
    border-radius: 5px;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
}
.login-container button:hover {
    background-color: #0056b3;
}
.login-container .forgot-password {
    display: block;
    margin-top: 10px;
    color: #007bff;
    text-decoration: none;
}
.login-container .forgot-password:hover {
    text-decoration: underline;
}

#cinema {
  position: fixed;
  bottom: 0;
  width: 100%;
  background-color: #f8f9fa;
  padding: 20px;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

#cinema video {
  margin: 10px;
}

.course-video-stage {
  align-items: center;
  display: flex;
  justify-content: center;
  position: relative;
  width: 100%;
  background: #000;
  border-radius: 0;
  overflow: hidden;
}

.course-video-stage-embed {
  aspect-ratio: 16 / 9;
}

.course-video-stage-direct {
  background: #000;
  width: 100%;
}

.course-video-stage-direct.has-video-dimensions {
  aspect-ratio: var(--course-video-aspect-ratio);
  max-height: min(68vh, 42rem);
}

.course-video-stage .ratio {
  width: 100%;
}

.course-video-stage video {
  display: block;
  border: 0;
  /* Safari Live Text can cover sibling controls when a paused video is inside element fullscreen. */
  -webkit-user-select: none;
  user-select: none;
}

.course-video-stage video {
  background: #000;
  height: auto;
  margin-inline: auto;
  max-height: min(68vh, 42rem);
  max-width: 100%;
  object-fit: contain;
  width: auto;
}

.course-video-stage-direct .course-video-backdrop {
  position: absolute;
  inset: -2rem;
  z-index: 0;
  width: calc(100% + 4rem);
  height: calc(100% + 4rem);
  max-width: none;
  max-height: none;
  margin: 0;
  object-fit: cover;
  filter: blur(28px) saturate(1.18) brightness(0.78);
  transform: scale(1.04);
  pointer-events: none;
}

.course-video-stage-direct::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(2, 6, 23, 0.14);
  pointer-events: none;
}

.course-video-stage-direct .course-video-main {
  position: relative;
  z-index: 1;
  width: auto;
  height: auto;
  max-height: min(68vh, 42rem);
  max-width: 100%;
  margin-inline: auto;
  object-fit: contain;
  background: transparent;
}

.course-video-pause-frame {
  position: relative;
  z-index: 1;
  display: block;
  width: auto;
  height: auto;
  max-height: min(68vh, 42rem);
  max-width: 100%;
  margin-inline: auto;
  background: transparent;
}

.course-video-pause-backdrop[hidden],
.course-video-pause-frame[hidden] {
  display: none;
}

.course-video-stage-direct .course-video-pause-backdrop {
  position: absolute;
  inset: -2rem;
  z-index: 0;
  display: block;
  width: calc(100% + 4rem);
  height: calc(100% + 4rem);
  max-width: none;
  max-height: none;
  margin: 0;
  object-fit: cover;
  filter: blur(28px) saturate(1.18) brightness(0.78);
  transform: scale(1.04);
  pointer-events: none;
}

.course-video-stage-direct .course-video-pause-backdrop[hidden] {
  display: none;
}

.course-video-stage-direct.is-safari-paused-frame .course-video-backdrop,
.course-video-stage-direct.is-safari-paused-frame .course-video-main {
  display: none;
}

.course-video-stage iframe {
  border: 0;
  display: block;
  width: 100%;
}

.course-player-shell {
  position: relative;
  border-radius: 0.45rem;
  overflow: hidden;
  background: transparent;
}

.player-chapters-popover {
  position: absolute;
  z-index: 40;
  left: 0.75rem;
  bottom: 0;
  display: flex;
  flex-direction: column;
  width: min(21.75rem, calc(100% - 1.5rem));
  max-height: 24rem;
  padding: 0;
  overflow: hidden;
  color: #f8fafc;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.96) 0%, rgba(15, 23, 42, 1) 100%);
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 0.75rem;
  box-shadow: 0 0.8rem 2rem rgba(2, 6, 23, 0.48);
}

.player-chapters-popover:focus,
.player-chapters-popover:focus-visible {
  outline: none;
}

.player-chapters-header,
.player-chapter-row,
.player-chapter-form-actions { display: flex; align-items: center; gap: 0.65rem; }
.player-chapters-header { flex: 0 0 auto; justify-content: space-between; padding: 0.75rem 0.9rem; border-bottom: 1px solid rgba(148, 163, 184, 0.22); }
.player-chapters-header h3 { margin: 0; font-size: 1.15rem; }
.player-chapters-close { border: 0; background: transparent; color: #cbd5e1; font-size: 1.5rem; line-height: 1; }
.player-chapters-list { min-height: 0; flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; scrollbar-color: #64748b #0f172a; }
.player-chapters-empty { padding: 0.85rem 0.9rem; margin: 0; color: #cbd5e1; }
.player-chapter-row { position: relative; min-height: 2.85rem; padding: 0.5rem 0.85rem; border-bottom: 1px solid rgba(148, 163, 184, 0.16); cursor: pointer; transition: background-color 120ms ease; }
.player-chapter-row:hover,
.player-chapter-row:focus-visible { background: rgba(59, 130, 246, 0.18); outline: none; }
.player-chapter-row.is-current::before {
  position: absolute;
  top: 0.38rem;
  bottom: 0.38rem;
  left: 0.12rem;
  width: 0.18rem;
  border-radius: 999px;
  background: rgba(96, 165, 250, 0.82);
  content: "";
  pointer-events: none;
}
.player-chapter-row.is-selected { background: rgba(59, 130, 246, 0.22); outline: 1px solid rgba(147, 197, 253, 0.38); outline-offset: -1px; }
.player-chapter-row.is-current .player-chapter-title { font-weight: 700; }
.player-chapter-seek { flex: 0 0 auto; border: 0; border-radius: 999px; padding: 0.25rem 0.55rem; color: #dbeafe; background: #1e3a5f; font-weight: 700; }
.player-chapter-title { min-width: 0; flex: 1; overflow-wrap: anywhere; }
.player-chapter-actions { display: flex; gap: 0.25rem; }
.player-chapter-actions button { border: 0; background: transparent; color: #93c5fd; padding: 0.25rem; }
.player-chapter-actions [data-chapter-delete] { color: #fda4af; }
.player-chapter-warning { color: #fcd34d; font-size: 0.75rem; font-weight: 700; }
.player-chapter-row.is-invalid-time { background: rgba(161, 98, 7, 0.3); }
.player-chapters-manager { flex: 0 0 auto; padding: 0.7rem 0.9rem; border-top: 1px solid rgba(148, 163, 184, 0.24); background: #17243b; }
.player-chapter-form { display: grid; grid-template-columns: minmax(0, 1fr) 7rem; gap: 0.55rem; padding: 0; background: transparent; }
.player-chapter-form label { display: grid; gap: 0.25rem; color: #e2e8f0; font-size: 0.82rem; font-weight: 700; }
.player-chapter-form label:first-child { position: relative; }
.player-chapter-field-error { position: absolute; z-index: 2; top: calc(100% + 0.1rem); left: 0; color: #fda4af; font-size: 0.76rem; font-weight: 600; line-height: 1.2; }
.player-chapter-field-error:empty { display: none; }
.player-chapter-form-actions { grid-column: 1 / -1; justify-content: flex-end; }
.player-chapter-form .form-control,
.player-chapter-inline-form .form-control { color: #f8fafc; background: #1e293b; border-color: #475569; }
.player-chapter-add { margin: 0; }
.player-chapter-capacity { margin: 0.55rem 0 0; color: #cbd5e1; font-size: 0.85rem; }
.player-chapter-inline-form { display: grid; grid-template-columns: 5.8rem minmax(0, 1fr) auto; align-items: center; gap: 0.5rem; width: 100%; }
.player-chapter-inline-time { border-radius: 999px; text-align: center; font-weight: 700; }
.player-chapter-inline-actions { display: flex; gap: 0.25rem; }
.player-chapter-inline-actions button { padding: 0.25rem 0.45rem; }
.player-chapters-button { flex: 0 0 auto; color: #dbeafe; }
.player-chapters-button[aria-expanded="true"] { color: #93c5fd; background: rgba(59, 130, 246, 0.2); }

@media (max-width: 575.98px) {
  .player-chapters-popover { left: 0.5rem; width: calc(100% - 1rem); }
  .player-chapter-actions { flex-direction: column; }
  .player-chapter-form { grid-template-columns: minmax(0, 1fr) 6rem; }
  .player-chapter-inline-form { grid-template-columns: 5rem minmax(0, 1fr); }
  .player-chapter-inline-actions { grid-column: 1 / -1; justify-content: flex-end; }
}

.course-player-toolbar {
  display: grid;
  gap: 0.65rem;
  padding: 0.75rem 0.9rem 0.9rem;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.96) 0%, rgba(15, 23, 42, 1) 100%);
  color: #f8fafc;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.player-progress-row,
.player-control-row,
.player-control-group {
  display: flex;
  align-items: center;
}

.player-progress-row {
  gap: 0.65rem;
}

.player-control-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.8rem;
}

.player-control-group {
  gap: 0.45rem;
  min-width: 0;
}

.player-control-row > .player-control-group:first-child {
  grid-column: 1;
}

.player-control-group-right {
  grid-column: 3;
  flex: 0 0 auto;
  justify-content: flex-end;
}

.player-bookmark-action-wrapper {
  display: inline-flex;
}

.student-preview-action-wrapper {
  display: inline-flex;
  align-items: center;
  cursor: not-allowed;
}

.student-preview-action-wrapper > :disabled,
.player-bookmark-action-wrapper > :disabled,
.player-video-action-wrapper > :disabled {
  pointer-events: none;
}

.player-action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 0.55rem 0.95rem;
  background: rgba(148, 163, 184, 0.18);
  color: inherit;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.player-action-button:hover:not(:disabled):not(.is-disabled) {
  background: rgba(148, 163, 184, 0.28);
  transform: translateY(-1px);
}

.player-action-button.is-discussion-seek-focus:focus {
  outline: none;
  box-shadow: none;
}

.player-action-button:disabled,
.player-action-button.is-disabled {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none;
}

.player-symbol-button {
  width: 2.1rem;
  height: 2.1rem;
  padding: 0;
}

.player-control-icon {
  width: 1.05rem;
  height: 1.05rem;
  pointer-events: none;
}

.player-control-icon path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.player-control-icon .player-play-icon {
  fill: currentColor;
  stroke: none;
}

.player-speed-button {
  min-width: 3rem;
  padding-inline: 0.7rem;
}

.player-bookmark-action {
  gap: 0.38rem;
  padding-inline: 0.72rem 0.9rem;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  box-shadow: none;
}

.player-bookmark-plus {
  display: inline-flex;
  width: 1.08rem;
  height: 1.08rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.player-bookmark-plus svg {
  display: block;
  width: 0.72rem;
  height: 0.72rem;
}

.player-bookmark-plus path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
}

.player-bookmark-action:hover:not(:disabled):not(.is-disabled) {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.player-video-action-button {
  gap: 0.38rem;
  padding-inline: 0.72rem 0.9rem;
  background: linear-gradient(135deg, #15803d 0%, #166534 100%);
  box-shadow: none;
}

.player-video-action-wrapper {
  display: inline-flex;
}

.player-video-action-button:hover:not(:disabled):not(.is-disabled) {
  background: linear-gradient(135deg, #22a653 0%, #15803d 100%);
}

.player-action-plus {
  display: inline-flex;
  width: 1.08rem;
  height: 1.08rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.player-action-plus svg {
  display: block;
  width: 0.72rem;
  height: 0.72rem;
}

.player-action-plus path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
}

.player-time-readout {
  min-width: 3rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
  color: #cbd5e1;
}

.player-duration-readout {
  color: #94a3b8;
}

.player-progress {
  --player-progress-ratio: 0%;
  --player-progress-thumb-radius: 7px;
  -webkit-appearance: none;
  appearance: none;
  position: relative;
  z-index: 2;
  width: 100%;
  height: 1.35rem;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  cursor: pointer;
}

.player-progress::-webkit-slider-runnable-track {
  height: var(--player-progress-track-height);
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    #60a5fa 0%,
    #60a5fa var(--player-progress-ratio),
    rgba(148, 163, 184, 0.58) var(--player-progress-ratio),
    rgba(148, 163, 184, 0.58) 100%);
  box-shadow: inset 0 1px 1px rgba(2, 6, 23, 0.55);
}

.player-progress::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: calc(var(--player-progress-thumb-radius) + var(--player-progress-thumb-radius));
  height: calc(var(--player-progress-thumb-radius) + var(--player-progress-thumb-radius));
  margin-top: -5px;
  border: 2px solid #dbeafe;
  border-radius: 50%;
  background: #3b82f6;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.72), 0 0.12rem 0.35rem rgba(2, 6, 23, 0.5);
  transition: box-shadow 120ms ease, transform 120ms ease;
}

.player-progress:hover::-webkit-slider-thumb,
.player-progress:focus-visible::-webkit-slider-thumb {
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.8), 0 0 0 3px rgba(96, 165, 250, 0.28);
  transform: scale(1.06);
}

.player-progress::-moz-range-track {
  height: var(--player-progress-track-height);
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.58);
  box-shadow: inset 0 1px 1px rgba(2, 6, 23, 0.55);
}

.player-progress::-moz-range-progress {
  height: var(--player-progress-track-height);
  border-radius: 999px;
  background: #60a5fa;
}

.player-progress::-moz-range-thumb {
  width: calc(var(--player-progress-thumb-radius) + var(--player-progress-thumb-radius));
  height: calc(var(--player-progress-thumb-radius) + var(--player-progress-thumb-radius));
  border: 2px solid #dbeafe;
  border-radius: 50%;
  background: #3b82f6;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.72), 0 0.12rem 0.35rem rgba(2, 6, 23, 0.5);
  transition: box-shadow 120ms ease, transform 120ms ease;
}

.player-progress:hover::-moz-range-thumb,
.player-progress:focus-visible::-moz-range-thumb {
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.8), 0 0 0 3px rgba(96, 165, 250, 0.28);
  transform: scale(1.06);
}

.player-progress-shell {
  --player-progress-track-height: 0.28rem;
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
}

.player-chapter-markers {
  position: absolute;
  inset: 50% 0 auto;
  height: 0;
  pointer-events: none;
  z-index: 3;
}

.player-chapter-marker {
  position: absolute;
  top: 0.24px;
  box-sizing: border-box;
  width: 0.517rem;
  height: calc(var(--player-progress-track-height) + 0.34rem + 2.34px);
  color: #f8fafc;
  opacity: 1;
  transform: translate(-50%, -50%);
  transition: opacity 80ms ease;
}

.player-chapter-marker.is-under-playhead {
  opacity: 0;
}

.player-chapter-marker.is-at-start {
  transform: translate(0, -50%);
}

.player-chapter-marker-shape {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.player-chapter-marker-shape path {
  fill: currentColor;
  stroke: none;
}

.player-action-markers {
  position: absolute;
  z-index: 4;
  inset: 0;
  pointer-events: none;
}

.player-action-marker {
  position: absolute;
  top: 50%;
  width: 1.5rem;
  height: 1.15rem;
  padding: 0;
  border: 0;
  color: #99f6e4;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
  transform: translate(-50%, calc(-100% - 0.35rem));
}

.player-action-marker::before {
  position: absolute;
  top: 0.58rem;
  left: 50%;
  width: 0.46rem;
  height: 0.46rem;
  content: "";
  border: 1px solid rgba(204, 251, 241, 0.92);
  border-radius: 0.08rem;
  background: #2dd4bf;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.76);
  transform: translate(-50%, -50%) rotate(45deg);
  transition: background-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.player-action-marker:hover::before,
.player-action-marker:focus-visible::before {
  background: #5eead4;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.9), 0 0 0 3px rgba(94, 234, 212, 0.24);
  transform: translate(-50%, -50%) rotate(45deg) scale(1.08);
}

.player-action-marker.is-completed::before {
  background: #173f4b;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.8);
  opacity: 0.72;
}

.player-action-marker.is-cluster::before {
  width: 0.92rem;
  height: 0.62rem;
  border-radius: 999px;
  background: #115e59;
  border-color: rgba(153, 246, 228, 0.78);
  box-shadow: 0 1px 2px rgba(2, 6, 23, 0.65);
  transform: translate(-50%, -50%);
}

.player-action-marker.is-cluster.has-three-digit-count::before {
  width: 1.22rem;
}

.player-action-marker.is-cluster:hover::before,
.player-action-marker.is-cluster:focus-visible::before {
  transform: translate(-50%, -50%) scale(1.08);
}

.player-action-marker-count {
  position: absolute;
  z-index: 1;
  top: 0.58rem;
  left: 50%;
  min-width: 1rem;
  color: #ecfeff;
  font-size: 0.49rem;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  text-shadow: 0 1px 1px rgba(4, 47, 46, 0.72);
  transform: translate(-50%, -50%);
}

.player-action-marker.is-completed .player-action-marker-count {
  color: #ecfeff;
}

.player-action-marker-tooltip {
  position: absolute;
  bottom: calc(100% + 0.15rem);
  left: 50%;
  width: max-content;
  max-width: min(16rem, 70vw);
  padding: 0.32rem 0.48rem;
  border: 1px solid rgba(94, 234, 212, 0.32);
  border-radius: 0.38rem;
  color: #ecfeff;
  background: rgba(8, 29, 48, 0.98);
  box-shadow: 0 0.45rem 1rem rgba(2, 6, 23, 0.42);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: left;
  white-space: pre-line;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 0.2rem);
  transition: opacity 120ms ease, transform 120ms ease;
}

.player-action-marker.is-near-start .player-action-marker-tooltip {
  left: 0;
  transform: translate(0, 0.2rem);
}

.player-action-marker.is-near-end .player-action-marker-tooltip {
  right: 0;
  left: auto;
  transform: translate(0, 0.2rem);
}

.player-action-marker:hover .player-action-marker-tooltip,
.player-action-marker:focus-visible .player-action-marker-tooltip {
  opacity: 1;
  transform: translate(-50%, 0);
}

.player-action-marker.is-near-start:hover .player-action-marker-tooltip,
.player-action-marker.is-near-start:focus-visible .player-action-marker-tooltip,
.player-action-marker.is-near-end:hover .player-action-marker-tooltip,
.player-action-marker.is-near-end:focus-visible .player-action-marker-tooltip {
  transform: translate(0, 0);
}

@media (prefers-reduced-motion: reduce) {
  .player-action-marker::before,
  .player-action-marker-tooltip {
    transition: none;
  }
}

.player-scrub-preview {
  position: absolute;
  z-index: 45;
  bottom: calc(100% + 0.7rem);
  left: 0;
  display: grid;
  justify-items: center;
  box-sizing: border-box;
  width: 10.75rem;
  padding: 0.35rem;
  color: #f8fafc;
  background: linear-gradient(160deg, rgba(20, 35, 61, 0.99), rgba(10, 19, 36, 0.99));
  border: 1px solid rgba(96, 165, 250, 0.48);
  border-radius: 0.55rem;
  box-shadow: 0 0.55rem 1.5rem rgba(2, 6, 23, 0.5), 0 0 0 1px rgba(15, 23, 42, 0.7);
  pointer-events: none;
  transform: translateX(-50%);
}

.player-scrub-preview[hidden] { display: none; }
.player-scrub-preview-frame { position: relative; width: 160px; height: 90px; margin-bottom: 0.35rem; overflow: hidden; background-color: #071426; border-radius: 0.35rem; box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.55), 0 0 0 1px rgba(147, 197, 253, 0.45); }
.player-scrub-preview-frame img { position: absolute; top: 0; left: 0; display: block; max-width: none; transform-origin: top left; will-change: transform; pointer-events: none; user-select: none; }
.player-scrub-preview-frame.is-unavailable { display: none; }
.player-scrub-preview-chapter { display: block; width: 100%; max-width: 9.75rem; overflow: hidden; color: #dbeafe; text-align: center; text-overflow: ellipsis; white-space: nowrap; font-size: 0.78rem; font-weight: 700; }
.player-scrub-preview-chapter:empty { display: none; }
.player-scrub-preview-time { margin-top: 0.1rem; color: #93c5fd; font-size: 0.75rem; font-weight: 700; font-variant-numeric: tabular-nums; }

.player-volume {
  width: 6.75rem;
  accent-color: #60a5fa;
}

.player-current-chapter {
  display: inline-flex;
  grid-column: 2;
  min-width: 0;
  max-width: clamp(8rem, 19vw, 20rem);
  align-items: baseline;
  justify-self: center;
  gap: 0.3rem;
  padding: 0.3rem 0.35rem;
  margin-left: 0.2rem;
  overflow: hidden;
  white-space: nowrap;
  cursor: default;
  user-select: text;
  -webkit-user-select: text;
}

.player-current-chapter::selection,
.player-current-chapter *::selection {
  color: #ffffff;
  background: rgba(59, 130, 246, 0.68);
}

.player-current-chapter.is-manager-view {
  max-width: clamp(6rem, 12vw, 12rem);
}

.player-current-chapter[hidden] {
  display: none;
}

.player-current-chapter-number {
  flex: 0 0 auto;
  color: #94a3b8;
  font-size: 0.75rem;
  font-weight: 700;
}

.player-current-chapter-title {
  min-width: 0;
  overflow: hidden;
  color: #dbeafe;
  font-size: 0.82rem;
  font-weight: 600;
  text-overflow: ellipsis;
}

.player-settings {
  position: relative;
}

.player-settings-menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.7rem);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 5.5rem;
  padding: 0.5rem;
  border-radius: 0.85rem;
  background: rgba(15, 23, 42, 0.96);
  box-shadow: 0 1rem 2rem rgba(15, 23, 42, 0.35);
  border: 1px solid rgba(148, 163, 184, 0.18);
  z-index: 5;
}

.player-speed-option {
  border: 0;
  border-radius: 0.7rem;
  padding: 0.45rem 0.7rem;
  background: transparent;
  color: #e2e8f0;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.player-speed-option:hover,
.player-speed-option.is-active {
  background: rgba(96, 165, 250, 0.18);
  color: #ffffff;
}

.bookmark-dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.34);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

.bookmark-dialog-backdrop[hidden] {
  display: none;
}

.bookmark-dialog {
  width: min(100%, 25rem);
  padding: 0.9rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 1.25rem 3rem rgba(15, 23, 42, 0.28);
}

.bookmark-dialog-header {
  margin-bottom: 0.55rem;
}

.bookmark-dialog-title {
  margin: 0;
  color: #0f172a;
  font-size: 1.05rem;
  font-weight: 700;
}

.bookmark-dialog textarea {
  resize: vertical;
}

.bookmark-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.55rem;
  margin-top: 0.65rem;
}

.video-action-author-backdrop,
.video-action-delete-backdrop,
.video-action-viewer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1220;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.42);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
}

.video-action-viewer-backdrop {
  z-index: 1320;
  background: rgba(2, 6, 23, 0.52);
}

.video-action-delete-backdrop {
  z-index: 1420;
}

.video-action-author-backdrop[hidden],
.video-action-delete-backdrop[hidden],
.video-action-viewer-backdrop[hidden] {
  display: none;
}

.video-action-author-card {
  width: min(100%, 44rem);
  max-height: min(44rem, calc(100vh - 2rem));
  overflow: auto;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 1.15rem;
  padding: 1.15rem;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  color: #0f172a;
  box-shadow: 0 1.75rem 4rem rgba(2, 6, 23, 0.3);
}

.interject-delete-card {
  width: min(100%, 34rem);
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;
  border: 1px solid rgba(191, 219, 254, 0.9);
  border-radius: 1.15rem;
  padding: 1.15rem;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  color: #0f172a;
  box-shadow: 0 1.75rem 4rem rgba(2, 6, 23, 0.32);
  animation: video-action-dialog-enter 180ms ease-out both;
}

.interject-delete-card h2 {
  margin: 0;
  color: #1e3a8a;
  font-size: 1.2rem;
  font-weight: 800;
}

.interject-delete-card p {
  margin: 0.28rem 0 0;
  color: #64748b;
  font-size: 0.88rem;
}

.interject-delete-options {
  display: grid;
  gap: 0.62rem;
  margin-top: 1rem;
}

.interject-delete-option {
  display: grid;
  gap: 0.18rem;
  width: 100%;
  border: 1px solid #d7e2f1;
  border-radius: 0.85rem;
  padding: 0.78rem 0.85rem;
  background: #ffffff;
  color: #1e3a5f;
  text-align: left;
  transition: border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}

.interject-delete-option:hover,
.interject-delete-option:focus-visible {
  border-color: #7aa6df;
  background: #f6faff;
  box-shadow: 0 0 0 3px rgba(56, 115, 203, 0.1);
  outline: none;
}

.interject-delete-option strong {
  font-size: 0.88rem;
  line-height: 1.3;
}

.interject-delete-option span {
  color: #64748b;
  font-size: 0.77rem;
  line-height: 1.35;
}

.interject-delete-option.is-popup-only {
  border-color: #86efac;
  background: #f0fdf4;
}

.interject-delete-option.is-popup-only strong {
  color: #166534;
}

.interject-delete-option.is-popup-only span {
  color: #3f6f50;
}

.interject-delete-option.is-popup-only:hover,
.interject-delete-option.is-popup-only:focus-visible {
  border-color: #22c55e;
  background: #dcfce7;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.12);
}

.interject-delete-option.is-post-delete {
  border-color: #f6c453;
  background: #fffbeb;
}

.interject-delete-option.is-post-delete strong {
  color: #92400e;
}

.interject-delete-option.is-post-delete span {
  color: #785425;
}

.interject-delete-option.is-post-delete:hover,
.interject-delete-option.is-post-delete:focus-visible {
  border-color: #eab308;
  background: #fef3c7;
  box-shadow: 0 0 0 3px rgba(234, 179, 8, 0.13);
}

.interject-delete-option.is-destructive {
  border-color: #fda4af;
  background: #fff1f2;
}

.interject-delete-option.is-destructive strong {
  color: #9f1239;
}

.interject-delete-option.is-destructive span {
  color: #7f4154;
}

.interject-delete-option.is-destructive:hover,
.interject-delete-option.is-destructive:focus-visible {
  border-color: #ef4444;
  background: #ffe4e6;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.09);
}

.interject-delete-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.85rem;
}

.quick-check-response-decision-card {
  width: min(100%, 38rem);
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;
  border: 1px solid rgba(191, 219, 254, 0.92);
  border-radius: 1.15rem;
  padding: 1.15rem;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  color: #0f172a;
  box-shadow: 0 1.75rem 4rem rgba(2, 6, 23, 0.34);
  animation: video-action-dialog-enter 180ms ease-out both;
}

.quick-check-response-decision-card.is-poll-decision {
  width: min(100%, 42rem);
}

.quick-check-response-decision-card h2 {
  margin: 0;
  color: #1e3a8a;
  font-size: 1.2rem;
  font-weight: 800;
}

.quick-check-response-decision-card p {
  margin: 0.3rem 0 0;
  color: #64748b;
  font-size: 0.86rem;
  line-height: 1.4;
}

.quick-check-response-decision-options {
  display: grid;
  gap: 0.68rem;
  margin-top: 1rem;
}

.quick-check-response-decision-option {
  display: grid;
  gap: 0.28rem;
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 0.9rem;
  padding: 0.85rem 0.9rem;
  background: #ffffff;
  color: #1e3a5f;
  text-align: left;
  transition: border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}

.quick-check-response-decision-option strong {
  font-size: 0.9rem;
  line-height: 1.3;
}

.quick-check-response-decision-option > span {
  color: #64748b;
  font-size: 0.76rem;
  line-height: 1.42;
}

.quick-check-response-decision-option > small {
  margin-top: 0.18rem;
  color: #475569;
  font-size: 0.7rem;
  font-style: italic;
  font-weight: 700;
  line-height: 1.35;
}

.quick-check-response-decision-option.is-keep {
  border-color: #86efac;
  background: #f0fdf4;
}

.quick-check-response-decision-option.is-keep strong {
  color: #166534;
}

.quick-check-response-decision-option.is-keep:hover,
.quick-check-response-decision-option.is-keep:focus-visible {
  border-color: #22c55e;
  background: #dcfce7;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.12);
  outline: none;
}

.quick-check-response-decision-option.is-reset {
  border-color: #fda4af;
  background: #fff1f2;
}

.quick-check-response-decision-option.is-reset strong {
  color: #9f1239;
}

.quick-check-response-decision-option.is-reset:hover,
.quick-check-response-decision-option.is-reset:focus-visible {
  border-color: #ef4444;
  background: #ffe4e6;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.09);
  outline: none;
}

.quick-check-response-decision-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.85rem;
}

.video-action-author-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.video-action-author-header h2 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 760;
}

.video-action-picker-intro {
  margin: 0.55rem 0 1rem;
  color: #64748b;
  font-size: 0.9rem;
}

.video-action-picker-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 6.75rem;
  gap: 0.7rem;
}

.video-action-picker-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.9rem;
  background: linear-gradient(145deg, #f8fafc, #e2e8f0);
  color: #334155;
  font-size: 0.82rem;
  font-weight: 750;
  box-shadow: 0 0.45rem 1rem rgba(15, 23, 42, 0.08);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease, color 0.18s ease;
}

.video-action-picker-option:hover,
.video-action-picker-option:focus-visible {
  border-color: #64748b;
  color: #0f172a;
  box-shadow: 0 0.65rem 1.25rem rgba(15, 23, 42, 0.14);
  outline: none;
  transform: translateY(-2px);
}

.video-action-picker-label {
  flex: 0 0 auto;
  min-height: 1.2em;
  color: #334155;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
  transform: translateY(0.16rem);
}

.video-action-picker-description {
  display: block;
  flex: 0 0 auto;
  min-height: 2.56em;
  max-width: 8.5rem;
  color: #64748b;
  font-size: 0.7rem;
  font-weight: 550;
  line-height: 1.28;
  text-align: center;
}

.video-action-picker-icon,
.video-action-type-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #475569;
}

.video-action-picker-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.3);
  transform: translateY(0.16rem);
}

.video-action-picker-icon img,
.video-action-type-icon img {
  width: 1.8rem;
  height: 1.8rem;
  object-fit: contain;
}

.video-action-picker-icon img {
  width: 2.05rem;
  height: 1.9rem;
}

.video-action-prompt-icon svg,
.video-action-prompt-row-icon,
.video-action-quick-check-icon svg,
.video-action-quick-check-row-icon,
.video-action-poll-icon svg,
.video-action-poll-row-icon {
  width: 1.9rem;
  height: 1.9rem;
}

.video-action-prompt-icon path,
.video-action-prompt-row-icon path,
.video-action-quick-check-icon rect,
.video-action-quick-check-icon path,
.video-action-quick-check-icon circle,
.video-action-quick-check-row-icon rect,
.video-action-quick-check-row-icon path,
.video-action-quick-check-row-icon circle,
.video-action-poll-icon rect,
.video-action-poll-icon path,
.video-action-poll-row-icon rect,
.video-action-poll-row-icon path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.video-action-editor-form {
  display: grid;
  gap: 0.85rem;
  margin-top: 1rem;
}

.video-action-editor-form label {
  display: grid;
  gap: 0.35rem;
  color: #334155;
  font-size: 0.82rem;
  font-weight: 720;
}

.video-action-editor-form textarea {
  min-height: 8.5rem;
  resize: vertical;
}

.video-quick-check-editor {
  display: grid;
  gap: 0.85rem;
}

.video-quick-check-editor[hidden] {
  display: none;
}

.video-quick-check-editor.is-poll-editor .video-quick-check-correct-selector,
.video-quick-check-editor.is-poll-editor .video-quick-check-explanation-field,
.video-quick-check-editor.is-poll-editor .video-quick-check-counts-option {
  display: none;
}

.video-quick-check-choice-fieldset {
  min-width: 0;
  margin: 0;
  border: 0;
  padding: 0;
}

.video-quick-check-field-heading {
  display: flex;
  float: none;
  width: 100%;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.45rem;
  padding: 0;
  color: #334155;
  font-size: 0.82rem;
  font-weight: 750;
}

.video-quick-check-field-heading > small {
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 550;
}

.video-quick-check-field-title {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.video-quick-check-choice-editor-list {
  display: grid;
  gap: 0.45rem;
}

.video-quick-check-choice-editor-row {
  display: grid;
  grid-template-columns: 1.65rem 2rem minmax(0, 1fr) 2rem;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  border: 1px solid #dbe5ef;
  border-radius: 0.72rem;
  padding: 0.42rem;
  background: #ffffff;
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.video-quick-check-editor.is-poll-editor .video-quick-check-choice-editor-row {
  grid-template-columns: 1.65rem minmax(0, 1fr) 2rem;
}

.video-quick-check-choice-editor-row.is-dragging {
  border-color: #8fb6ea;
  background: #f2f7ff;
  box-shadow: 0 0.65rem 1.35rem rgba(31, 74, 125, 0.14);
  opacity: 0.72;
}

.video-quick-check-choice-editor-row:focus-within {
  border-color: #93c5fd;
  background: #fbfdff;
  box-shadow: 0 0 0 0.18rem rgba(37, 99, 235, 0.1);
}

.video-action-editor-form .video-quick-check-correct-selector {
  position: relative;
  display: inline-grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  cursor: pointer;
}

.video-quick-check-drag-handle {
  display: inline-grid;
  width: 1.65rem;
  height: 2rem;
  place-items: center;
  border: 0;
  border-radius: 0.45rem;
  padding: 0;
  background: transparent;
  color: #94a3b8;
  cursor: grab;
  touch-action: none;
  transition: background-color 150ms ease, color 150ms ease;
}

.video-quick-check-drag-handle:hover,
.video-quick-check-drag-handle:focus-visible {
  background: #eaf2ff;
  color: #316db7;
  outline: none;
}

.video-quick-check-drag-handle:active {
  cursor: grabbing;
}

.video-quick-check-drag-handle svg {
  width: 1.05rem;
  height: 1.05rem;
  fill: currentColor;
}

.video-quick-check-correct-selector input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.video-quick-check-correct-selector > span {
  display: grid;
  width: 1.7rem;
  height: 1.7rem;
  place-items: center;
  border: 1px solid #b9c8d8;
  border-radius: 999px;
  background: #f8fafc;
  color: transparent;
  transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease, box-shadow 150ms ease;
}

.video-quick-check-correct-selector svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.video-quick-check-correct-selector input:checked + span {
  border-color: #16a34a;
  background: #16a34a;
  color: #ffffff;
  box-shadow: 0 0.25rem 0.65rem rgba(22, 163, 74, 0.22);
}

.video-quick-check-correct-selector input:focus-visible + span {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.video-action-editor-form .video-quick-check-choice-input-wrap {
  display: block;
  min-width: 0;
}

.video-quick-check-choice-input-wrap .form-control {
  min-width: 0;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.video-quick-check-choice-input-wrap .form-control:focus {
  border-color: transparent;
  background: #ffffff;
  box-shadow: none;
}

.video-quick-check-remove-choice {
  display: inline-grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border: 0;
  border-radius: 999px;
  padding: 0;
  background: transparent;
  color: #64748b;
  transition: background-color 150ms ease, color 150ms ease;
}

.video-quick-check-remove-choice:hover,
.video-quick-check-remove-choice:focus-visible {
  background: #fff1f2;
  color: #dc2626;
  outline: none;
}

.video-quick-check-remove-choice:disabled {
  cursor: not-allowed;
  opacity: 0.32;
}

.video-quick-check-remove-choice svg,
.video-quick-check-add-choice svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.video-quick-check-field-error {
  display: block;
  min-height: 1.05rem;
  margin-top: 0.28rem;
  color: #b42318;
  font-size: 0.74rem;
  font-weight: 700;
}

.video-quick-check-add-choice {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.32rem;
  border: 0;
  border-radius: 999px;
  padding: 0.35rem 0.62rem;
  background: #eef5ff;
  color: #2459a8;
  font-size: 0.75rem;
  font-weight: 760;
  transition: background-color 150ms ease, color 150ms ease, box-shadow 150ms ease;
}

.video-quick-check-field-title .video-quick-check-add-choice {
  padding: 0.24rem 0.52rem;
}

.video-quick-check-add-choice:hover,
.video-quick-check-add-choice:focus-visible {
  background: #dbeafe;
  color: #1d4ed8;
  box-shadow: 0 0 0 0.16rem rgba(37, 99, 235, 0.1);
  outline: none;
}

.video-quick-check-add-choice:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  box-shadow: none;
}

.video-action-editor-form .video-quick-check-explanation-field > span {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.video-quick-check-explanation-field small {
  color: #94a3b8;
  font-size: 0.68rem;
  font-weight: 650;
}

.video-action-editor-form .video-quick-check-explanation-field textarea {
  min-height: 5.4rem;
}

.video-action-editor-form .video-quick-check-counts-option {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  border: 1px solid #dbeafe;
  border-radius: 0.72rem;
  padding: 0.68rem 0.75rem;
  background: #f8fbff;
  cursor: pointer;
}

.video-quick-check-counts-option input {
  flex: 0 0 auto;
  margin-top: 0.12rem;
  accent-color: #2563eb;
}

.video-quick-check-counts-option > span {
  display: grid;
  gap: 0.14rem;
}

.video-quick-check-counts-option strong {
  color: #334155;
  font-size: 0.78rem;
  line-height: 1.3;
}

.video-quick-check-counts-option small {
  color: #64748b;
  font-size: 0.7rem;
  font-weight: 550;
}

.video-action-back {
  margin: 0 0 0.25rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 700;
}

.video-action-back:hover,
.video-action-back:focus-visible {
  color: #166534;
  outline: none;
}

.video-action-editor-meta,
.video-action-editor-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.video-action-editor-error {
  color: #b42318;
  font-size: 0.76rem;
  font-weight: 700;
}

.video-action-character-count {
  display: block;
  justify-self: end;
  margin-left: auto;
  margin-top: -0.12rem;
  color: #64748b;
  font-size: 0.75rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.video-action-editor-actions {
  justify-content: flex-end;
}

.video-action-viewer-card {
  display: grid;
  justify-items: stretch;
  width: min(100%, 34rem);
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;
  border: 1px solid rgba(187, 247, 208, 0.65);
  border-radius: 1.35rem;
  padding: clamp(1.25rem, 4vw, 2.15rem);
  background:
    radial-gradient(circle at 100% 0%, rgba(187, 247, 208, 0.72), transparent 42%),
    linear-gradient(150deg, #ffffff 0%, #f8fffb 100%);
  color: #0f172a;
  text-align: left;
  box-shadow: 0 2rem 5rem rgba(2, 6, 23, 0.42), inset 0 0.22rem 0 #16a34a;
  animation: video-action-dialog-enter 180ms ease-out both;
}

.video-action-viewer-card:has(.video-quick-check-viewer:not([hidden])) {
  width: min(100%, 42rem);
}

.video-action-viewer-backdrop.is-poll-viewer .video-action-viewer-card {
  border-color: rgba(147, 197, 253, 0.72);
  background:
    radial-gradient(circle at 100% 0%, rgba(219, 234, 254, 0.82), transparent 42%),
    linear-gradient(150deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 2rem 5rem rgba(2, 6, 23, 0.42), inset 0 0.22rem 0 #3b82f6;
}

.video-action-viewer-backdrop.is-poll-viewer .video-action-viewer-mark {
  border-color: rgba(37, 99, 235, 0.18);
  background: linear-gradient(145deg, #eff6ff, #dbeafe);
  color: #1d4ed8;
  box-shadow: 0 0.35rem 0.9rem rgba(30, 64, 175, 0.1);
}

.video-action-viewer-heading {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1rem;
}

.video-quick-check-manual-close {
  flex: 0 0 auto;
  margin-left: auto;
}

.video-quick-check-manual-close[hidden] {
  display: none;
}

.video-action-viewer-mark {
  display: inline-flex;
  width: 2.65rem;
  height: 2.65rem;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(22, 163, 74, 0.2);
  border-radius: 0.85rem;
  background: linear-gradient(145deg, #f0fdf4, #dcfce7);
  color: #166534;
  box-shadow: 0 0.35rem 0.9rem rgba(22, 101, 52, 0.1);
}

.video-action-viewer-mark img {
  width: 1.8rem;
  height: 1.65rem;
  object-fit: contain;
}

.video-action-viewer-type {
  color: #166534;
  font-size: 0.94rem;
  font-weight: 800;
  letter-spacing: 0.015em;
}

.video-action-viewer-message {
  max-width: 30rem;
  margin: 0 0 1.4rem;
  color: #1e293b;
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  font-weight: 500;
  line-height: 1.55;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.video-action-continue {
  justify-self: end;
  min-width: 8rem;
}

.video-action-viewer-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.6rem;
}

.video-prompt-reply {
  display: grid;
  gap: 0.35rem;
  margin: -0.35rem 0 1.1rem;
}

.video-prompt-reply[hidden] {
  display: none;
}

.video-prompt-reply label,
.video-prompt-responses-form label {
  color: #334155;
  font-size: 0.78rem;
  font-weight: 750;
}

.video-prompt-reply textarea,
.video-prompt-responses-form textarea {
  resize: vertical;
  min-height: 6rem;
}

.video-prompt-reply-meta,
.video-prompt-responses-form-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  color: #64748b;
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
}

.video-prompt-reply-error {
  color: #b42318;
  font-weight: 700;
}

.video-quick-check-viewer {
  display: grid;
  gap: 0.8rem;
  margin: -0.45rem 0 1.1rem;
}

.video-quick-check-viewer[hidden] {
  display: none;
}

.video-quick-check-manager-note {
  margin: 0;
  color: #718096;
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.4;
}

.video-quick-check-manager-note[hidden] {
  display: none;
}

.video-quick-check-choice-list {
  display: grid;
  gap: 0.5rem;
}

.video-quick-check-choice {
  display: grid;
  grid-template-columns: 1.55rem minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  min-width: 0;
  border: 1px solid #d6e1eb;
  border-radius: 0.78rem;
  padding: 0.68rem 0.78rem;
  background: rgba(255, 255, 255, 0.9);
  color: #26364a;
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.video-quick-check-choice:hover:not(:disabled),
.video-quick-check-choice:focus-visible:not(:disabled) {
  border-color: #93c5fd;
  background: #f8fbff;
  box-shadow: 0 0 0 0.18rem rgba(37, 99, 235, 0.1);
  outline: none;
  transform: translateY(-1px);
}

.video-quick-check-choice[aria-checked="true"] {
  border-color: #60a5fa;
  background: #eff6ff;
  box-shadow: 0 0 0 0.14rem rgba(37, 99, 235, 0.12);
}

.video-quick-check-choice.is-correct {
  border-color: #4ade80;
  background: #f0fdf4;
  color: #14532d;
  box-shadow: inset 0.22rem 0 #22c55e;
}

.video-quick-check-choice.is-incorrect {
  border-color: #fca5a5;
  background: #fef2f2;
  color: #991b1b;
  box-shadow: inset 0.22rem 0 #ef4444;
}

.video-action-viewer-backdrop.is-poll-viewer .video-quick-check-choice.is-poll-choice {
  border-color: #cbdcf3;
  background: rgba(255, 255, 255, 0.94);
  color: #223b60;
  box-shadow: none;
}

.video-action-viewer-backdrop.is-poll-viewer .video-quick-check-choice.is-poll-choice:hover:not(:disabled),
.video-action-viewer-backdrop.is-poll-viewer .video-quick-check-choice.is-poll-choice:focus-visible:not(:disabled) {
  border-color: #60a5fa;
  background: #eff6ff;
  box-shadow: 0 0 0 0.18rem rgba(37, 99, 235, 0.11);
}

.video-action-viewer-backdrop.is-poll-viewer .video-quick-check-choice.is-poll-choice.is-submitting {
  border-color: #60a5fa;
  background: #eff6ff;
  box-shadow: 0 0 0 0.14rem rgba(37, 99, 235, 0.12);
}

.video-quick-check-choice:disabled {
  cursor: default;
  opacity: 1;
}

.video-quick-check-choice-marker {
  display: grid;
  width: 1.35rem;
  height: 1.35rem;
  place-items: center;
  border: 1.5px solid #a7b8ca;
  border-radius: 999px;
  background: #ffffff;
}

.video-quick-check-choice[aria-checked="true"] .video-quick-check-choice-marker {
  border: 0.34rem solid #2563eb;
}

.video-quick-check-choice.is-correct .video-quick-check-choice-marker {
  border-color: #16a34a;
}

.video-quick-check-choice.is-incorrect .video-quick-check-choice-marker {
  border-color: #dc2626;
}

.video-quick-check-choice-text {
  min-width: 0;
  font-size: 0.88rem;
  font-weight: 680;
  line-height: 1.38;
  overflow-wrap: anywhere;
}

.video-quick-check-choice-result-icon {
  display: none;
  width: 1.35rem;
  height: 1.35rem;
  place-items: center;
  border-radius: 999px;
  background: #16a34a;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 900;
}

.video-quick-check-choice.is-correct .video-quick-check-choice-result-icon {
  display: grid;
}

.video-quick-check-choice-count {
  color: #64748b;
  font-size: 0.7rem;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.video-quick-check-submit-error {
  min-height: 1rem;
  margin: -0.22rem 0 0;
  color: #b42318;
  font-size: 0.74rem;
  font-weight: 700;
}

.video-quick-check-submit-error:empty {
  display: none;
}

.video-quick-check-result {
  display: grid;
  gap: 0.78rem;
  border-top: 1px solid #dce9df;
  padding-top: 0.8rem;
}

.video-quick-check-result[hidden],
.video-quick-check-explanation[hidden],
.video-quick-check-aggregates[hidden] {
  display: none;
}

.video-quick-check-feedback {
  margin: 0;
  color: #166534;
  font-size: 0.86rem;
  font-weight: 800;
}

.video-quick-check-feedback.is-incorrect {
  color: #b42318;
}

.video-quick-check-explanation {
  border: 1px solid #dbe7e0;
  border-radius: 0.75rem;
  padding: 0.7rem 0.78rem;
  background: rgba(248, 253, 250, 0.94);
}

.video-quick-check-explanation h3,
.video-quick-check-aggregates h3 {
  margin: 0;
  color: #334155;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.video-quick-check-explanation p {
  margin: 0.28rem 0 0;
  color: #405269;
  font-size: 0.82rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.video-quick-check-aggregates {
  display: grid;
  gap: 0.5rem;
}

.video-quick-check-aggregates-heading,
.video-quick-check-aggregate-copy {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.video-quick-check-aggregates-heading > span {
  color: #64748b;
  font-size: 0.7rem;
  font-weight: 700;
}

.video-quick-check-aggregate-list {
  display: grid;
  gap: 0.48rem;
}

.video-quick-check-aggregate-row {
  display: grid;
  gap: 0.22rem;
}

.video-quick-check-aggregate-copy {
  color: #526579;
  font-size: 0.72rem;
  font-weight: 700;
}

.video-quick-check-aggregate-copy > span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.video-quick-check-aggregate-copy > span:last-child {
  flex: 0 0 auto;
  font-variant-numeric: tabular-nums;
}

.video-quick-check-aggregate-track {
  height: 0.35rem;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e8f0;
}

.video-quick-check-aggregate-track > span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #60a5fa, #22c55e);
  transition: width 240ms ease-out;
}

.video-choice-action-aggregate-result {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.42rem;
  font-variant-numeric: tabular-nums;
}

.video-poll-your-response {
  border-radius: 999px;
  padding: 0.1rem 0.42rem;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 0.61rem;
  font-weight: 800;
  letter-spacing: 0.015em;
  white-space: nowrap;
}

.video-poll-your-response[hidden] {
  display: none;
}

.video-action-viewer-backdrop.is-poll-viewer .video-quick-check-aggregate-row.is-poll-response {
  border: 1px solid transparent;
  border-radius: 0.72rem;
  padding: 0.48rem 0.55rem;
  transition: border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}

.video-action-viewer-backdrop.is-poll-viewer .video-quick-check-aggregate-copy {
  align-items: flex-start;
}

.video-action-viewer-backdrop.is-poll-viewer .video-quick-check-aggregate-copy > span:first-child {
  overflow: visible;
  text-overflow: clip;
  overflow-wrap: anywhere;
  white-space: normal;
}

.video-action-viewer-backdrop.is-poll-viewer .video-quick-check-aggregate-row.is-poll-response[role="radio"] {
  cursor: pointer;
}

.video-action-viewer-backdrop.is-poll-viewer .video-quick-check-aggregate-row.is-poll-response[role="radio"]:hover,
.video-action-viewer-backdrop.is-poll-viewer .video-quick-check-aggregate-row.is-poll-response[role="radio"]:focus-visible {
  border-color: #93c5fd;
  background: #f5f9ff;
  box-shadow: 0 0 0 0.16rem rgba(37, 99, 235, 0.09);
  outline: none;
}

.video-action-viewer-backdrop.is-poll-viewer .video-quick-check-aggregate-row.is-your-response {
  border-color: #bfdbfe;
  background: #f1f7ff;
}

.video-action-viewer-backdrop.is-poll-viewer .video-quick-check-aggregate-track {
  height: 0.48rem;
  background: #e5edf8;
}

.video-action-viewer-backdrop.is-poll-viewer .video-quick-check-aggregate-track > span {
  background: linear-gradient(90deg, #2563eb, #60a5fa);
}

.video-prompt-responses-card {
  width: min(100%, 54rem);
  max-height: min(52rem, calc(100dvh - 1.25rem));
  overflow-y: auto;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 1.2rem;
  padding: clamp(0.9rem, 2.2vw, 1.25rem);
  background: #fff;
  color: #0f172a;
  box-shadow: 0 2rem 5rem rgba(2, 6, 23, 0.38);
}

.video-prompt-responses-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.video-prompt-responses-eyebrow {
  display: block;
  margin-bottom: 0.25rem;
  color: #15803d;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.video-prompt-responses-header h2 {
  margin: 0;
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  font-size: 1.1rem;
  font-weight: 650;
  line-height: 1.4;
  white-space: pre-wrap;
}

.video-prompt-responses-list {
  display: grid;
  gap: 0.35rem;
  max-height: clamp(18rem, 52dvh, 32rem);
  overflow-y: auto;
  margin: 0.75rem 0;
  padding-right: 0.25rem;
}

.video-prompt-response-item {
  border: 1px solid #e2e8f0;
  border-radius: 0.55rem;
  padding: 0.42rem 0.6rem;
  background: #f8fafc;
}

.video-prompt-response-item.is-current-user {
  border-color: #bbf7d0;
  background: #f7fef9;
}

.video-prompt-response-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.08rem;
}

.video-prompt-response-name {
  display: block;
  min-width: 0;
  color: #334155;
  font-size: 0.72rem;
  font-weight: 800;
}

.video-prompt-response-actions {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.25rem;
}

.video-prompt-response-action {
  display: inline-grid;
  width: 1.55rem;
  height: 1.55rem;
  place-items: center;
  border: 1px solid #dbe4ee;
  border-radius: 999px;
  padding: 0;
  background: #ffffff;
  color: #526579;
  cursor: pointer;
  transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.video-prompt-response-action:hover,
.video-prompt-response-action:focus-visible {
  border-color: #9dc2f2;
  background: #edf6ff;
  color: #2563eb;
  outline: none;
  transform: translateY(-1px);
}

.video-prompt-response-action.is-danger:hover,
.video-prompt-response-action.is-danger:focus-visible {
  border-color: #fecaca;
  background: #fef2f2;
  color: #dc2626;
}

.video-prompt-response-action svg {
  width: 0.82rem;
  height: 0.82rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.video-prompt-response-body {
  margin: 0;
  color: #334155;
  font-size: 0.8rem;
  line-height: 1.32;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.video-prompt-responses-status,
.video-prompt-preview-note {
  margin: 0.55rem 0;
  color: #64748b;
  font-size: 0.78rem;
}

.video-prompt-responses-status.is-error {
  color: #b42318;
  font-weight: 700;
}

.video-prompt-responses-form {
  display: grid;
  gap: 0.4rem;
  border-top: 1px solid #e2e8f0;
  padding-top: 1rem;
}

.video-prompt-responses-form[hidden] {
  display: none;
}

.video-prompt-responses-form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.video-prompt-responses-form-buttons {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
  margin-left: auto;
}

.video-prompt-anonymous-option {
  width: fit-content;
}

@keyframes video-action-dialog-enter {
  from { opacity: 0; transform: translateY(0.4rem) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.course-watch-layout {
  --discussion-fullscreen-width: clamp(15rem, 23vw, 20rem);
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(14.4rem, 0.64fr);
  gap: 1rem;
  align-items: stretch;
}

.course-watch-layout.is-discussion-below {
  grid-template-columns: minmax(0, 1fr);
}

.course-watch-layout.is-discussion-below .timestamped-discussion {
  grid-column: 1 / -1;
  contain: none;
  position: relative;
  height: auto !important;
  max-height: none !important;
}

.course-watch-layout.is-discussion-below .timestamped-discussion-list {
  max-height: 18rem;
}

.course-watch-layout.is-watch-fullscreen,
.course-watch-layout:fullscreen {
  display: block;
  width: 100vw;
  height: 100vh;
  margin: 0 !important;
  padding: 0;
  background: #020617;
  box-sizing: border-box;
  overflow: hidden;
}

.course-watch-layout.is-watch-fullscreen .course-watch-player,
.course-watch-layout:fullscreen .course-watch-player,
.course-watch-layout.is-watch-fullscreen .course-player-shell,
.course-watch-layout:fullscreen .course-player-shell {
  min-height: 0;
  height: 100%;
}

.course-watch-layout.is-watch-fullscreen:not(.is-discussion-hidden) .course-watch-player,
.course-watch-layout:fullscreen:not(.is-discussion-hidden) .course-watch-player {
  width: calc(100vw - var(--discussion-fullscreen-width));
}

.course-watch-layout.is-watch-fullscreen.is-discussion-hidden .course-watch-player,
.course-watch-layout:fullscreen.is-discussion-hidden .course-watch-player {
  width: 100vw;
}

.course-watch-layout.is-watch-fullscreen .course-watch-player,
.course-watch-layout:fullscreen .course-watch-player {
  transition: width 260ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: width;
}

.course-watch-layout.is-watch-fullscreen .course-player-shell,
.course-watch-layout:fullscreen .course-player-shell {
  display: flex;
  flex-direction: column;
}

.course-watch-layout.is-watch-fullscreen .course-video-stage,
.course-watch-layout:fullscreen .course-video-stage {
  background: #000;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
}

.course-watch-layout.is-watch-fullscreen .course-video-stage .ratio,
.course-watch-layout:fullscreen .course-video-stage .ratio {
  width: 100%;
  height: 100%;
}

.course-watch-layout.is-watch-fullscreen .course-video-stage-embed,
.course-watch-layout:fullscreen .course-video-stage-embed {
  aspect-ratio: auto;
}

.course-watch-layout.is-watch-fullscreen .course-video-stage-embed .ratio,
.course-watch-layout:fullscreen .course-video-stage-embed .ratio {
  aspect-ratio: 16 / 9;
  width: min(100%, calc((100vh - 5.75rem) * 16 / 9));
  height: auto;
  max-height: 100%;
}

.course-watch-layout.is-watch-fullscreen .course-video-stage-embed iframe,
.course-watch-layout:fullscreen .course-video-stage-embed iframe {
  width: 100%;
  height: 100%;
}

.course-watch-layout.is-watch-fullscreen .course-video-stage .ratio::before,
.course-watch-layout:fullscreen .course-video-stage .ratio::before {
  display: none;
}

.course-watch-layout.is-watch-fullscreen .course-video-stage video,
.course-watch-layout:fullscreen .course-video-stage video {
  background: #000;
  height: 100%;
  max-height: 100%;
}

.course-watch-layout.is-watch-fullscreen .course-video-stage-direct,
.course-watch-layout:fullscreen .course-video-stage-direct {
  aspect-ratio: auto;
  height: auto;
  max-height: none;
  min-height: 0;
}

.course-watch-layout.is-watch-fullscreen .course-video-stage-direct .course-video-main,
.course-watch-layout:fullscreen .course-video-stage-direct .course-video-main {
  background: transparent;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.course-watch-layout.is-watch-fullscreen .course-video-stage-direct .course-video-pause-frame,
.course-watch-layout:fullscreen .course-video-stage-direct .course-video-pause-frame {
  width: 100%;
  height: 100%;
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.course-watch-layout.is-watch-fullscreen .course-video-stage-direct .course-video-backdrop,
.course-watch-layout:fullscreen .course-video-stage-direct .course-video-backdrop {
  background: transparent;
}

.course-watch-layout.is-watch-fullscreen .timestamped-discussion,
.course-watch-layout:fullscreen .timestamped-discussion,
.course-watch-layout.is-watch-fullscreen.is-discussion-below .timestamped-discussion,
.course-watch-layout:fullscreen.is-discussion-below .timestamped-discussion {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 24;
  width: var(--discussion-fullscreen-width);
  height: 100% !important;
  max-height: none !important;
  min-height: 0;
  border: 1px solid rgba(191, 219, 254, 0.32);
  border-top: 0;
  border-right: 0;
  border-bottom: 0;
  border-radius: 0;
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.95), rgba(239, 246, 255, 0.9));
  box-shadow: 0 1.4rem 4rem rgba(2, 6, 23, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.42) !important;
  opacity: 1;
  transform: translateX(0);
  visibility: visible;
  transition:
    transform 260ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 180ms ease-out,
    visibility 0s linear 0s;
  will-change: transform, opacity;
}

.course-watch-layout.is-watch-fullscreen .timestamped-discussion-list,
.course-watch-layout:fullscreen .timestamped-discussion-list,
.course-watch-layout.is-watch-fullscreen.is-discussion-below .timestamped-discussion-list,
.course-watch-layout:fullscreen.is-discussion-below .timestamped-discussion-list {
  max-height: none;
}

.course-watch-layout.is-watch-fullscreen .timestamped-discussion.has-course-context-ear .timestamped-discussion-surface,
.course-watch-layout:fullscreen .timestamped-discussion.has-course-context-ear .timestamped-discussion-surface {
  margin-top: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.course-watch-layout.is-watch-fullscreen .course-context-layout-toggle,
.course-watch-layout:fullscreen .course-context-layout-toggle {
  top: 0;
  right: calc(100% + 1px);
  left: auto;
  width: 2.1rem;
  height: calc(3.55rem + 1px);
  max-width: none;
  border: 1px solid rgba(191, 219, 254, 0.6);
  border-right: 0;
  border-radius: 0.5rem 0 0 0.5rem;
  padding: 0.4rem 0.25rem;
  background: rgba(239, 246, 255, 0.58);
  color: #1e40af;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 0.35rem 1rem rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(8px);
  transform: none;
}

.course-watch-layout.is-watch-fullscreen .course-context-layout-toggle .discussion-panel-toggle-label,
.course-watch-layout:fullscreen .course-context-layout-toggle .discussion-panel-toggle-label {
  display: inline-block;
  white-space: nowrap;
  transform: rotate(-90deg);
}

.course-watch-layout.is-watch-fullscreen .course-context-layout-toggle:hover,
.course-watch-layout.is-watch-fullscreen .course-context-layout-toggle:focus-visible,
.course-watch-layout:fullscreen .course-context-layout-toggle:hover,
.course-watch-layout:fullscreen .course-context-layout-toggle:focus-visible {
  border-color: rgba(191, 219, 254, 0.6);
  background: rgba(219, 234, 254, 0.72);
  color: #1e40af;
}

.course-watch-layout.is-watch-fullscreen .course-context-panel,
.course-watch-layout:fullscreen .course-context-panel,
.course-watch-layout.is-watch-fullscreen .timestamped-discussion-list,
.course-watch-layout:fullscreen .timestamped-discussion-list,
.course-watch-layout.is-watch-fullscreen .timestamped-discussion-thread,
.course-watch-layout:fullscreen .timestamped-discussion-thread,
.course-watch-layout.is-watch-fullscreen .timestamped-discussion-card,
.course-watch-layout:fullscreen .timestamped-discussion-card,
.course-watch-layout.is-watch-fullscreen .timestamped-discussion-replies,
.course-watch-layout:fullscreen .timestamped-discussion-replies {
  min-width: 0;
  max-width: 100%;
}

.course-watch-layout.is-watch-fullscreen .course-context-panel-assistant,
.course-watch-layout:fullscreen .course-context-panel-assistant,
.course-watch-layout.is-watch-fullscreen .gateway-assistant.is-rail-docked,
.course-watch-layout:fullscreen .gateway-assistant.is-rail-docked,
.course-watch-layout.is-watch-fullscreen .gateway-assistant-panel,
.course-watch-layout:fullscreen .gateway-assistant-panel,
.course-watch-layout.is-watch-fullscreen .gateway-assistant-messages,
.course-watch-layout:fullscreen .gateway-assistant-messages,
.course-watch-layout.is-watch-fullscreen .gateway-assistant-history,
.course-watch-layout:fullscreen .gateway-assistant-history {
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
}

.course-watch-layout.is-watch-fullscreen .gateway-assistant-message,
.course-watch-layout:fullscreen .gateway-assistant-message,
.course-watch-layout.is-watch-fullscreen .gateway-assistant-message-content,
.course-watch-layout:fullscreen .gateway-assistant-message-content,
.course-watch-layout.is-watch-fullscreen .gateway-assistant-history-item,
.course-watch-layout:fullscreen .gateway-assistant-history-item {
  box-sizing: border-box;
  min-width: 0;
  overflow-wrap: anywhere;
}

.course-watch-layout.is-watch-fullscreen .gateway-assistant-message-content pre,
.course-watch-layout:fullscreen .gateway-assistant-message-content pre {
  max-width: 100%;
  overflow-x: hidden;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.course-watch-layout.is-watch-fullscreen.is-discussion-hidden .timestamped-discussion,
.course-watch-layout:fullscreen.is-discussion-hidden .timestamped-discussion {
  opacity: 0;
  pointer-events: none;
  transform: translateX(100%);
  visibility: hidden;
  transition:
    transform 260ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 180ms ease-in,
    visibility 0s linear 260ms;
}

.discussion-panel-reopen {
  display: none;
}

.course-watch-layout.is-watch-fullscreen .discussion-panel-reopen,
.course-watch-layout:fullscreen .discussion-panel-reopen {
  position: fixed;
  top: max(0.75rem, env(safe-area-inset-top));
  right: max(0.75rem, env(safe-area-inset-right));
  z-index: 40;
  display: inline-flex;
  max-width: calc(100vw - 1.5rem);
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  margin: 0;
  gap: 0.32rem;
  border: 1px solid rgba(191, 219, 254, 0.6);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  background: rgba(239, 246, 255, 0.58);
  color: #1e40af;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
  box-shadow: 0 0.35rem 1rem rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transform: translateX(0.45rem);
  visibility: hidden;
  transition:
    opacity 150ms ease-out,
    transform 200ms cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 200ms;
}

.course-watch-layout.is-watch-fullscreen.is-discussion-hidden .discussion-panel-reopen,
.course-watch-layout:fullscreen.is-discussion-hidden .discussion-panel-reopen {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
  visibility: visible;
  transition-delay: 110ms, 110ms, 0s;
}

.discussion-panel-reopen:hover,
.discussion-panel-reopen:focus-visible {
  background: rgba(219, 234, 254, 0.72);
  outline: none;
}

.discussion-panel-toggle {
  align-self: baseline;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.32rem;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
  transform: translateY(-0.03rem);
}

.discussion-panel-toggle-label {
  min-width: 0;
}

.discussion-panel-toggle-badge {
  display: inline-flex;
  min-width: 1.05rem;
  height: 1.05rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 0.25rem;
  background: #3873cb;
  color: #ffffff;
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 0.18rem 0.45rem rgba(56, 115, 203, 0.24);
}

.discussion-panel-toggle-badge[hidden] {
  display: none;
}

.discussion-panel-toggle.is-discussion-notifying {
  animation: discussion-toggle-soft-glow 1.1s ease-out both;
}

.discussion-panel-reopen.is-discussion-notifying {
  animation: discussion-toggle-soft-glow 1.1s ease-out both;
}

.discussion-panel-reopen.has-discussion-unread {
  border-color: rgba(96, 165, 250, 0.96);
  background: rgba(219, 234, 254, 0.92);
  outline: 3px solid rgba(96, 165, 250, 0.96);
  outline-offset: 2px;
  box-shadow:
    0 0.45rem 1.3rem rgba(56, 115, 203, 0.28),
    0 0 0 0.35rem rgba(147, 197, 253, 0.38);
}

.discussion-panel-reopen.has-discussion-unread:hover,
.discussion-panel-reopen.has-discussion-unread:focus-visible {
  border-color: #3b82f6;
  background: rgba(219, 234, 254, 1);
  outline-color: #60a5fa;
  box-shadow:
    0 0.5rem 1.45rem rgba(56, 115, 203, 0.34),
    0 0 0 0.4rem rgba(96, 165, 250, 0.46);
}

@keyframes discussion-toggle-soft-glow {
  0% {
    border-color: rgba(191, 219, 254, 0.6);
    background: rgba(239, 246, 255, 0.58);
    box-shadow: 0 0.35rem 1rem rgba(15, 23, 42, 0.18);
  }

  35% {
    border-color: rgba(96, 165, 250, 0.82);
    background: rgba(219, 234, 254, 0.86);
    box-shadow: 0 0.45rem 1.3rem rgba(56, 115, 203, 0.26), 0 0 0 0.22rem rgba(147, 197, 253, 0.22);
  }

  100% {
    border-color: rgba(191, 219, 254, 0.6);
    background: rgba(239, 246, 255, 0.58);
    box-shadow: 0 0.35rem 1rem rgba(15, 23, 42, 0.18);
  }
}

@media (prefers-reduced-motion: reduce) {
  .discussion-panel-toggle.is-discussion-notifying {
    animation: none;
    border-color: rgba(96, 165, 250, 0.82);
    background: rgba(219, 234, 254, 0.86);
    box-shadow: 0 0.45rem 1.3rem rgba(56, 115, 203, 0.22);
  }

  .discussion-panel-reopen.is-discussion-notifying {
    animation: none;
    border-color: rgba(96, 165, 250, 0.82);
    background: rgba(219, 234, 254, 0.86);
    box-shadow: 0 0.45rem 1.3rem rgba(56, 115, 203, 0.22);
  }

  .course-watch-layout.is-watch-fullscreen .course-watch-player,
  .course-watch-layout:fullscreen .course-watch-player,
  .course-watch-layout.is-watch-fullscreen .timestamped-discussion,
  .course-watch-layout:fullscreen .timestamped-discussion,
  .course-watch-layout.is-watch-fullscreen .discussion-panel-reopen,
  .course-watch-layout:fullscreen .discussion-panel-reopen {
    transition: none;
  }
}

.discussion-panel-toggle:hover,
.discussion-panel-toggle:focus-visible {
  border-color: #93c5fd;
  background: #dbeafe;
  color: #1e40af;
  outline: none;
}

.discussion-fullscreen-controls {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: flex-end;
  margin-left: auto;
}

.course-watch-player {
  min-width: 0;
}

.timestamped-discussion {
  align-self: stretch;
  contain: size;
  position: relative;
  display: flex;
  flex-direction: column;
  height: auto;
  max-height: none;
  min-height: 0;
  overflow: visible;
  background: transparent;
}

.timestamped-discussion-surface {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  border: 1px solid #dbe4f0;
  border-radius: 0.55rem;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
  box-shadow: 0 0.42rem 1.2rem rgba(15, 23, 42, 0.1);
}

.timestamped-discussion.has-course-context-ear .timestamped-discussion-surface {
  margin-top: 1.45rem;
  border-top-left-radius: 0;
}

.course-context-toolbar {
  display: block;
  flex: 0 0 auto;
  border-bottom: 1px solid #dbe4f0;
  padding: 0.45rem;
  background: rgba(241, 245, 249, 0.94);
}

.course-context-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.25rem;
  border-radius: 0.5rem;
  padding: 0.2rem;
  background: rgba(226, 232, 240, 0.62);
}

.course-context-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-width: 0;
  min-height: 2.25rem;
  border: 1px solid transparent;
  border-radius: 0.42rem;
  padding: 0.4rem 0.55rem;
  color: #64748b;
  background: transparent;
  font-size: 0.78rem;
  font-weight: 760;
  line-height: 1;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.course-context-tab:hover,
.course-context-tab:focus-visible {
  border-color: #bfdbfe;
  color: #1d4ed8;
  background: #eff6ff;
  outline: none;
}

.course-context-tab:focus-visible {
  box-shadow: 0 0 0 0.16rem rgba(59, 130, 246, 0.2);
}

.course-context-tab.is-active {
  border-color: #c7d2fe;
  color: #3730a3;
  background: #ffffff;
  box-shadow: 0 0.22rem 0.65rem rgba(79, 70, 229, 0.12);
}

.course-context-tab-discussion-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  box-sizing: border-box;
  width: 1.72rem;
  height: 1.72rem;
  border: 1px solid #1e3a8a;
  border-radius: 999px;
  padding: 0.16rem;
  background: #2563eb;
  color: #ffffff;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.32),
    0 0.18rem 0.45rem rgba(30, 64, 175, 0.25);
}

.course-context-tab-discussion-mark svg {
  width: 1.18rem;
  height: 1.18rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.course-context-tab-assistant-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  box-sizing: border-box;
  width: 1.72rem;
  height: 1.72rem;
  border: 1px solid #312e81;
  border-radius: 999px;
  padding: 0.08rem;
  background: #3730a3;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.9),
    0 0.18rem 0.45rem rgba(49, 46, 129, 0.28);
}

.course-context-tab-assistant-mark img {
  width: 1.38rem;
  height: 1.38rem;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.course-context-layout-toggle {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  box-sizing: border-box;
  height: 1.48rem;
  max-width: 5.6rem;
  border-color: #b9d4f7;
  border-bottom: 0;
  border-radius: 0.55rem 0.55rem 0 0;
  padding: 0.25rem 0.68rem;
  background: #f8fbff;
  color: #2457c5;
  font-size: 0.68rem;
  line-height: 1;
  white-space: nowrap;
  transform: none;
  box-shadow: 0 0.18rem 0.48rem rgba(30, 64, 175, 0.14);
}

.course-context-tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.15rem;
  height: 1.15rem;
  border-radius: 999px;
  padding: 0 0.28rem;
  color: #ffffff;
  background: #2563eb;
  font-size: 0.64rem;
  font-weight: 800;
  line-height: 1;
}

.course-context-tab-badge[hidden],
.course-context-panel[hidden] {
  display: none;
}

.course-context-panel-discussion {
  flex: 1 1 auto;
  height: auto !important;
}

.course-context-panel-assistant {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
}

.gateway-assistant.is-rail-docked {
  width: 100%;
  height: 100%;
  min-height: 0;
  z-index: 1;
}

.gateway-assistant.is-rail-docked .gateway-assistant-panel {
  position: static;
  inset: auto;
  width: 100%;
  height: 100%;
  max-height: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.gateway-assistant.is-rail-docked .gateway-assistant-panel-header {
  display: none;
}

.gateway-assistant.is-rail-docked .gateway-assistant-history {
  inset: 0;
}

.course-watch-layout.is-discussion-below .course-context-panel-assistant {
  flex: none;
  height: min(40rem, calc(100vh - 7rem));
  min-height: 28rem;
}

.timestamped-discussion.is-discussion-moment-pulse-student::after,
.timestamped-discussion.is-discussion-moment-pulse-instructor::after,
.course-player-shell.is-discussion-moment-pulse-student::after,
.course-player-shell.is-discussion-moment-pulse-instructor::after {
  position: absolute;
  inset: 0;
  z-index: 55;
  border-radius: inherit;
  content: "";
  pointer-events: none;
}

.timestamped-discussion.is-discussion-moment-pulse-student::after,
.course-player-shell.is-discussion-moment-pulse-student::after {
  animation: discussion-moment-border-pulse-student 1.2s linear both;
}

.timestamped-discussion.is-discussion-moment-pulse-instructor::after,
.course-player-shell.is-discussion-moment-pulse-instructor::after {
  animation: discussion-moment-border-pulse-instructor 1.7s linear both;
}

@keyframes discussion-moment-border-pulse-student {
  0%, 100% {
    opacity: 0;
    box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0);
  }

  0% {
    animation-timing-function: cubic-bezier(0.16, 0.8, 0.24, 1);
  }

  32% {
    opacity: 1;
    box-shadow:
      inset 0 0 0 3px rgba(59, 130, 246, 0.92),
      inset 0 0 1.7rem rgba(59, 130, 246, 0.24);
    animation-timing-function: linear;
  }
}

@keyframes discussion-moment-border-pulse-instructor {
  0%, 100% {
    opacity: 0;
    box-shadow: inset 0 0 0 1px rgba(16, 185, 129, 0);
  }

  0% {
    animation-timing-function: cubic-bezier(0.16, 0.8, 0.24, 1);
  }

  28% {
    opacity: 1;
    box-shadow:
      inset 0 0 0 4px rgba(16, 185, 129, 0.96),
      inset 0 0 2.3rem rgba(16, 185, 129, 0.32);
    animation-timing-function: linear;
  }
}

@media (prefers-reduced-motion: reduce) {
  .timestamped-discussion.is-discussion-moment-pulse-student::after,
  .course-player-shell.is-discussion-moment-pulse-student::after {
    animation: none;
    box-shadow:
      inset 0 0 0 3px rgba(59, 130, 246, 0.92),
      inset 0 0 1.2rem rgba(59, 130, 246, 0.18);
  }

  .timestamped-discussion.is-discussion-moment-pulse-instructor::after,
  .course-player-shell.is-discussion-moment-pulse-instructor::after {
    animation: none;
    box-shadow:
      inset 0 0 0 4px rgba(16, 185, 129, 0.96),
      inset 0 0 1.5rem rgba(16, 185, 129, 0.24);
  }
}

.timestamped-discussion .card-body {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  padding: 0.85rem;
}

.timestamped-discussion .course-discussion-header > div {
  min-width: 0;
  width: 100%;
}

.timestamped-discussion h2 {
  color: #0f172a;
  font-size: 1.05rem;
}

.timestamped-discussion .text-muted {
  font-size: 0.82rem;
}

.course-discussion-title-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: space-between;
  width: 100%;
}

.discussion-follow-button {
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  padding: 0.08rem 0.45rem;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
}

.discussion-follow-button:hover,
.discussion-follow-button:focus-visible {
  border-color: #93c5fd;
  background: #dbeafe;
  color: #1e40af;
  outline: none;
}

.discussion-follow-button.is-hidden {
  display: none;
}

.timestamped-discussion-list {
  display: grid;
  align-content: start;
  grid-auto-rows: max-content;
  gap: 0.22rem;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0.1rem 0.75rem 0.1rem 0;
  scrollbar-gutter: stable;
}

.timestamped-discussion-replies {
  display: grid;
  align-content: start;
  grid-auto-rows: max-content;
  gap: 0.12rem;
  min-width: 0;
  max-width: 100%;
}

.timestamped-discussion-thread {
  display: grid;
  align-content: start;
  grid-auto-rows: max-content;
  gap: 0.12rem;
  min-width: 0;
  max-width: 100%;
  opacity: 1;
  transition: opacity 0.45s ease;
}

.timestamped-discussion-thread.is-past,
.timestamped-discussion-thread.is-current {
  opacity: 1;
}

.timestamped-discussion-card {
  display: block;
  position: relative;
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  border: 1px solid #dbeafe;
  border-radius: 0.35rem;
  padding: 0.24rem 0.34rem;
  background: #f8fafc;
  color: #334155;
  text-align: left;
  cursor: default;
  font-size: 0.72rem;
  opacity: 1;
  transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, color 0.25s ease, opacity 0.25s ease, filter 0.25s ease;
}

.timestamped-discussion-thread.is-upcoming .timestamped-discussion-card,
.timestamped-discussion-card.is-upcoming {
  border-color: #e2e8f0;
  background: #f8fafc;
  color: #94a3b8;
  opacity: 0.42;
  box-shadow: none;
  filter: saturate(0.75);
}

.timestamped-discussion-thread.is-upcoming .timestamped-discussion-time,
.timestamped-discussion-thread.is-upcoming .timestamped-discussion-flair,
.timestamped-discussion-card.is-upcoming .timestamped-discussion-time,
.timestamped-discussion-card.is-upcoming .timestamped-discussion-flair {
  filter: grayscale(0.45);
  opacity: 0.72;
}

.timestamped-discussion-card:hover,
.timestamped-discussion-card:focus-visible,
.timestamped-discussion-card:focus-within {
  border-color: rgba(96, 165, 250, 0.65);
  color: #0f172a;
  outline: none;
}

.timestamped-discussion-thread.is-upcoming .timestamped-discussion-card:hover,
.timestamped-discussion-thread.is-upcoming .timestamped-discussion-card:focus-visible,
.timestamped-discussion-thread.is-upcoming .timestamped-discussion-card:focus-within,
.timestamped-discussion-card.is-upcoming:hover,
.timestamped-discussion-card.is-upcoming:focus-visible,
.timestamped-discussion-card.is-upcoming:focus-within {
  border-color: #e2e8f0;
  color: #94a3b8;
  opacity: 0.42;
  box-shadow: none;
}

.timestamped-discussion-card.is-current,
.timestamped-discussion-thread.is-current > .timestamped-discussion-card {
  opacity: 1;
  animation: discussion-highlight-pulse 1s ease-in-out both;
}

@keyframes discussion-highlight-pulse {
  0% {
    border-color: #dbeafe;
    background: #f8fafc;
    box-shadow: none;
    color: #334155;
  }

  45% {
    border-color: rgba(37, 99, 235, 0.58);
    background: #eff6ff;
    box-shadow: 0 0.25rem 0.7rem rgba(37, 99, 235, 0.16);
    color: #0f172a;
  }

  100% {
    border-color: #cbd5e1;
    background: #ffffff;
    box-shadow: none;
    color: #0f172a;
  }
}

.timestamped-discussion-thread.is-past .timestamped-discussion-card,
.timestamped-discussion-card.is-past {
  border-color: #cbd5e1;
  background: #ffffff;
  color: #0f172a;
  opacity: 1;
}

.timestamped-discussion-comment {
  padding: 0;
  cursor: default;
}

.timestamped-discussion-jump-area {
  display: block;
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  border: 0;
  border-radius: 0.8rem;
  padding: 0.22rem 0.34rem 0.08rem;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: default;
}

.timestamped-discussion-jump-area:focus-visible {
  outline: none;
}

.timestamped-discussion-reply-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.4rem;
  height: 1.4rem;
  border: 0;
  border-radius: 999px;
  background: rgba(219, 234, 254, 0.52);
  color: #3b82f6;
  line-height: 1;
  opacity: 0.74;
  transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.timestamped-discussion-actions {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.18rem;
  margin: 0.08rem 0.24rem 0.2rem;
}

.timestamped-discussion-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.22rem;
  height: 1.22rem;
  border: 0;
  border-radius: 999px;
  padding: 0;
  background: rgba(219, 234, 254, 0.5);
  color: #3b82f6;
  line-height: 1;
  opacity: 0.74;
}

.timestamped-discussion-action:hover,
.timestamped-discussion-action:focus-visible {
  background: #dbeafe;
  color: #1d4ed8;
  opacity: 1;
  outline: none;
}

.timestamped-discussion-action[data-discussion-delete]:hover,
.timestamped-discussion-action[data-discussion-delete]:focus-visible {
  background: #fee2e2;
  color: #dc2626;
}

.timestamped-discussion-card.is-editing .timestamped-discussion-actions {
  display: none;
}

.timestamped-discussion-card.is-editing .timestamped-discussion-jump-area {
  padding-bottom: 0.22rem;
}

.timestamped-discussion-action-icon {
  width: 0.72rem;
  height: 0.72rem;
  pointer-events: none;
}

.timestamped-discussion-action-icon path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.timestamped-discussion-assistant-context {
  background: rgba(219, 234, 254, 0.5);
  color: #3b82f6;
}

.timestamped-discussion-assistant-context::before {
  width: 0.78rem;
  height: 0.78rem;
  background: currentColor;
  content: "";
  -webkit-mask: url("/rabbitAI-mark.svg") center / contain no-repeat;
  mask: url("/rabbitAI-mark.svg") center / contain no-repeat;
  pointer-events: none;
}

.timestamped-discussion-reply-icon {
  width: 0.9rem;
  height: 0.9rem;
  pointer-events: none;
}

.timestamped-discussion-reply-icon path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.timestamped-discussion-reply-toggle:hover,
.timestamped-discussion-reply-toggle:focus-visible {
  background: #dbeafe;
  color: #1d4ed8;
  opacity: 1;
  outline: none;
}

.timestamped-discussion-reply-toggle:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}

.timestamped-discussion-reply-toggle[aria-expanded="true"] {
  background: #2563eb;
  color: #ffffff;
  opacity: 1;
}

.timestamped-discussion-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.18rem;
  font-size: 0.6rem;
  color: #64748b;
}

.timestamped-discussion-author {
  position: relative;
}

.timestamped-discussion-card.is-instructor-authored .timestamped-discussion-author {
  color: #15803d;
}

.timestamped-discussion-action-open-surface {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: inherit;
  background: transparent;
  cursor: pointer;
}

.timestamped-discussion-action-open-surface:focus-visible {
  outline: 2px solid rgba(37, 99, 235, 0.72);
  outline-offset: -2px;
}

.timestamped-discussion-card.is-clickable .timestamped-discussion-jump-area {
  position: relative;
  z-index: 1;
  pointer-events: none;
}

.timestamped-discussion-card.is-clickable .timestamped-discussion-time {
  position: relative;
  z-index: 2;
  pointer-events: auto;
}

.timestamped-discussion-card.is-discussion-prompt {
  width: calc(100% - 0.7rem);
  margin-inline: 0.35rem;
  border-color: #b9d8c2;
  background: #f1f8f3;
}

.timestamped-discussion-thread.is-upcoming > .timestamped-discussion-card.is-discussion-prompt,
.timestamped-discussion-thread.is-past > .timestamped-discussion-card.is-discussion-prompt,
.timestamped-discussion-card.is-discussion-prompt.is-upcoming,
.timestamped-discussion-card.is-discussion-prompt.is-past {
  border-color: #b9d8c2;
  background: #f1f8f3;
}

.timestamped-discussion-card.is-discussion-prompt .timestamped-discussion-jump-area {
  padding-right: 0.34rem;
}

.timestamped-discussion-card.is-discussion-prompt.is-clickable {
  cursor: pointer;
}

.timestamped-discussion-card.is-discussion-prompt.is-clickable .timestamped-discussion-jump-area {
  cursor: pointer;
}

.timestamped-discussion-card.is-discussion-prompt:hover,
.timestamped-discussion-card.is-discussion-prompt:focus-visible,
.timestamped-discussion-card.is-discussion-prompt:focus-within {
  border-color: #8fbea0;
  background: #eaf6ee;
  box-shadow: inset 0 0 0 1px rgba(21, 128, 61, 0.08);
  outline: none;
}

.timestamped-discussion-card.is-discussion-prompt.is-current,
.timestamped-discussion-thread.is-current > .timestamped-discussion-card.is-discussion-prompt {
  animation: discussion-prompt-highlight-pulse 1s ease-in-out both;
}

@keyframes discussion-prompt-highlight-pulse {
  0% {
    border-color: #b9d8c2;
    background: #f1f8f3;
    box-shadow: inset 0 0 0 0 rgba(21, 128, 61, 0);
    color: #334155;
  }

  45% {
    border-color: #86b897;
    background: #f1f8f3;
    box-shadow: inset 0 0 0 2px rgba(21, 128, 61, 0.12);
    color: #0f172a;
  }

  100% {
    border-color: #b9d8c2;
    background: #f1f8f3;
    box-shadow: inset 0 0 0 0 rgba(21, 128, 61, 0);
    color: #0f172a;
  }
}

.timestamped-discussion-card.is-discussion-prompt .timestamped-discussion-author {
  color: #3f7251;
  letter-spacing: 0.01em;
}

.timestamped-discussion-card.is-discussion-prompt .timestamped-discussion-time {
  background: #dcfce7;
  color: #166534;
}

.timestamped-discussion-card.is-discussion-prompt .timestamped-discussion-time:hover,
.timestamped-discussion-card.is-discussion-prompt .timestamped-discussion-time:focus-visible {
  background: #bbf7d0;
  color: #14532d;
}

.timestamped-discussion-card.is-quick-check {
  width: calc(100% - 0.7rem);
  margin-inline: 0.35rem;
  border-color: #b4d8c1;
  background: #f0f8f3;
}

.timestamped-discussion-thread.is-upcoming > .timestamped-discussion-card.is-quick-check,
.timestamped-discussion-thread.is-past > .timestamped-discussion-card.is-quick-check,
.timestamped-discussion-card.is-quick-check.is-upcoming,
.timestamped-discussion-card.is-quick-check.is-past {
  border-color: #b4d8c1;
  background: #f0f8f3;
}

.timestamped-discussion-card.is-quick-check .timestamped-discussion-jump-area {
  padding-right: 0.34rem;
}

.timestamped-discussion-card.is-quick-check.is-clickable,
.timestamped-discussion-card.is-quick-check.is-clickable .timestamped-discussion-jump-area {
  cursor: pointer;
}

.timestamped-discussion-card.is-quick-check:hover,
.timestamped-discussion-card.is-quick-check:focus-visible,
.timestamped-discussion-card.is-quick-check:focus-within {
  border-color: #83b899;
  background: #e8f5ed;
  box-shadow: inset 0 0 0 1px rgba(21, 128, 61, 0.08);
  outline: none;
}

.timestamped-discussion-card.is-quick-check.is-current,
.timestamped-discussion-thread.is-current > .timestamped-discussion-card.is-quick-check {
  animation: discussion-prompt-highlight-pulse 1s ease-in-out both;
}

.timestamped-discussion-card.is-quick-check .timestamped-discussion-author {
  color: #34704b;
  letter-spacing: 0.01em;
}

.timestamped-discussion-card.is-quick-check .timestamped-discussion-time {
  background: #d8f7e3;
  color: #166534;
}

.timestamped-discussion-card.is-quick-check .timestamped-discussion-time:hover,
.timestamped-discussion-card.is-quick-check .timestamped-discussion-time:focus-visible {
  background: #b9efca;
  color: #14532d;
}

.timestamped-discussion-card.is-poll {
  width: calc(100% - 0.7rem);
  margin-inline: 0.35rem;
  border-color: #b4d8c1;
  background: #f0f8f3;
}

.timestamped-discussion-thread.is-upcoming > .timestamped-discussion-card.is-poll,
.timestamped-discussion-thread.is-past > .timestamped-discussion-card.is-poll,
.timestamped-discussion-card.is-poll.is-upcoming,
.timestamped-discussion-card.is-poll.is-past {
  border-color: #b4d8c1;
  background: #f0f8f3;
}

.timestamped-discussion-card.is-poll .timestamped-discussion-jump-area {
  padding-right: 0.34rem;
}

.timestamped-discussion-card.is-poll.is-clickable,
.timestamped-discussion-card.is-poll.is-clickable .timestamped-discussion-jump-area {
  cursor: pointer;
}

.timestamped-discussion-card.is-poll:hover,
.timestamped-discussion-card.is-poll:focus-visible,
.timestamped-discussion-card.is-poll:focus-within {
  border-color: #83b899;
  background: #e8f5ed;
  box-shadow: inset 0 0 0 1px rgba(21, 128, 61, 0.08);
  outline: none;
}

.timestamped-discussion-card.is-poll.is-current,
.timestamped-discussion-thread.is-current > .timestamped-discussion-card.is-poll {
  animation: discussion-prompt-highlight-pulse 1s ease-in-out both;
}

.timestamped-discussion-card.is-poll .timestamped-discussion-author {
  color: #34704b;
  letter-spacing: 0.01em;
}

.timestamped-discussion-card.is-poll .timestamped-discussion-time {
  background: #d8f7e3;
  color: #166534;
}

.timestamped-discussion-card.is-poll .timestamped-discussion-time:hover,
.timestamped-discussion-card.is-poll .timestamped-discussion-time:focus-visible {
  background: #b9efca;
  color: #14532d;
}

.timestamped-discussion-author-tooltip {
  position: absolute;
  left: 0;
  top: calc(100% + 0.2rem);
  z-index: 4;
  border-radius: 0.2rem;
  padding: 0.2rem 0.35rem;
  background: rgba(15, 23, 42, 0.94);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 400;
  line-height: 1.2;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.1s ease;
  white-space: nowrap;
}

.timestamped-discussion-author:hover .timestamped-discussion-author-tooltip,
.timestamped-discussion-author:focus .timestamped-discussion-author-tooltip {
  opacity: 1;
  transition-delay: 0.5s;
}

.timestamped-discussion-flair {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.05rem 0.26rem;
  background: #ede9fe;
  color: #5b21b6;
  font-size: 0.58rem;
  font-weight: 700;
}

.timestamped-discussion-time {
  display: inline-flex;
  align-items: center;
  border: 0;
  border-radius: 999px;
  padding: 0.05rem 0.24rem;
  background: #e0f2fe;
  color: #075985;
  font: inherit;
  font-size: 0.58rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: inherit;
  cursor: pointer;
}

.timestamped-discussion-time:hover,
.timestamped-discussion-time:focus-visible {
  background: #bfdbfe;
  color: #1d4ed8;
}

.timestamped-discussion-time:focus-visible {
  outline: 2px solid rgba(56, 115, 203, 0.42);
  outline-offset: 2px;
}

.timestamped-discussion-interject-marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  border: 1.5px solid #16a34a;
  border-radius: 52% 48% 55% 45%;
  background: #dcfce7;
  color: #15803d;
  box-shadow: 0 0.08rem 0.2rem rgba(21, 128, 61, 0.2);
  font-size: 0.72rem;
  font-weight: 950;
  line-height: 1;
  transform: rotate(-7deg);
}

.timestamped-discussion-body {
  display: block;
  margin-top: 0.1rem;
  overflow: hidden;
  line-height: 1.15;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: pre-wrap;
}

.timestamped-discussion-body a {
  color: #2563eb;
  font-weight: inherit;
  text-decoration: none;
}

.timestamped-discussion-body a:hover,
.timestamped-discussion-body a:focus-visible {
  color: #1d4ed8;
}

.timestamped-discussion-edited {
  display: inline-block;
  margin-left: 0.1rem;
  margin-right: auto;
  color: #64748b;
  font-size: 0.56rem;
  font-style: italic;
}

.timestamped-discussion-thread.is-deleted .timestamped-discussion-card,
.timestamped-discussion-card.is-deleted {
  color: #64748b;
  font-style: italic;
}

.timestamped-discussion-replies {
  margin-left: 1.15rem;
  padding-left: 0.55rem;
  border-left: 2px solid #c7d2fe;
}

.timestamped-discussion-response {
  padding: 0;
  border-left: 3px solid #14b8a6;
}

.timestamped-discussion textarea.form-control {
  font-size: 0.78rem;
  padding: 0.35rem 0.45rem;
}

.timestamped-discussion textarea.form-control::placeholder {
  color: #94a3b8;
  opacity: 1;
}

.timestamped-discussion textarea[data-comment-placeholder]:focus::placeholder,
.gateway-assistant textarea[data-assistant-input]:focus::placeholder {
  color: transparent;
  opacity: 0;
}

.timestamped-discussion .discussion-reply-form {
  margin-top: 0;
  padding: 0.35rem;
  border-radius: 0.5rem;
}

.timestamped-discussion .discussion-edit-form {
  margin: 0.12rem 0.34rem 0.24rem;
  padding: 0;
  border: 0;
  background: transparent;
}

.timestamped-discussion .discussion-edit-form textarea.form-control {
  min-height: 3.8rem;
}

.timestamped-discussion-body[contenteditable] {
  min-height: 1.55rem;
  margin-top: 0.16rem;
  border-radius: 0.32rem;
  padding: 0.24rem 0.3rem;
  overflow: visible;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.48), 0 0 0 3px rgba(147, 197, 253, 0.18);
  color: #0f172a;
  cursor: text;
  outline: none;
  white-space: pre-wrap;
}

.timestamped-discussion .discussion-edit-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.35rem;
  margin-top: 0.35rem;
}

.timestamped-discussion .discussion-edit-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.6rem;
  margin-top: 0.35rem;
}

.timestamped-discussion .discussion-edit-footer .discussion-edit-actions {
  flex: 0 0 auto;
  margin-top: 0;
}

.timestamped-discussion .discussion-edit-timestamp {
  display: grid;
  grid-template-columns: auto minmax(4.8rem, 6.5rem);
  align-items: center;
  gap: 0.35rem;
  color: #475569;
  font-size: 0.78rem;
  font-weight: 600;
}

.timestamped-discussion .discussion-edit-timestamp .form-control {
  min-height: 1.9rem;
  font-variant-numeric: tabular-nums;
}

.timestamped-discussion .discussion-edit-timestamp .form-control[aria-invalid="true"] {
  border-color: #dc2626;
  box-shadow: 0 0 0 0.15rem rgba(220, 38, 38, 0.12);
}

.timestamped-discussion .discussion-edit-error {
  display: block;
  margin-top: 0.22rem;
  font-size: 0.78rem;
}

.timestamped-discussion .discussion-edit-error[hidden] {
  display: none;
}

.timestamped-discussion .discussion-new-comment {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: start;
  margin-top: auto;
  padding-top: 0.2rem;
  position: relative;
  width: 100%;
}

.timestamped-discussion .discussion-new-comment > .form-control,
.timestamped-discussion .discussion-new-comment > .text-danger {
  justify-self: stretch;
  min-width: 0;
  width: 100%;
}

.timestamped-discussion .discussion-new-comment .discussion-follow-button {
  justify-self: end;
  margin-bottom: 0.15rem;
}

.course-watch-layout.is-discussion-below .discussion-new-comment .discussion-follow-button {
  position: absolute;
  right: 0;
  top: -1.25rem;
  z-index: 3;
  margin-bottom: 0;
}

.discussion-ajax-feedback {
  min-height: 1rem;
  margin-top: 0.45rem;
  font-size: 0.78rem;
}

.timestamped-discussion .discussion-ajax-feedback:empty {
  display: none;
}

.discussion-flair-select {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  justify-self: start;
  margin-top: 0.45rem;
  min-width: 0;
  max-width: 100%;
}

.discussion-flair-dropdown {
  position: relative;
  min-width: 0;
  max-width: min(100%, 16rem);
}

.discussion-flair-trigger {
  display: inline-block;
  max-width: 100%;
  border: 1px solid #c4b5fd;
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  background: #faf5ff;
  color: #6d28d9;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.discussion-flair-trigger:hover,
.discussion-flair-trigger:focus-visible,
.discussion-flair-trigger[aria-expanded="true"] {
  border-color: #60a5fa;
  background: #eff6ff;
  color: #1d4ed8;
  outline: none;
}

.discussion-flair-menu {
  position: absolute;
  left: 0;
  bottom: calc(100% + 0.28rem);
  z-index: 30;
  display: grid;
  gap: 0.05rem;
  justify-items: stretch;
  box-sizing: border-box;
  min-width: 0;
  width: var(--flair-menu-width, max-content);
  max-width: var(--flair-menu-max-width, calc(100vw - 1.5rem));
  border: 1px solid #bfdbfe;
  border-radius: 0.45rem;
  padding: 0.25rem;
  background: #ffffff;
  box-shadow: 0 0.55rem 1.15rem rgba(37, 99, 235, 0.14);
}

.discussion-flair-menu.is-align-end {
  right: 0;
  left: auto;
}

.discussion-flair-menu.is-panel-clamped {
  max-width: var(--flair-menu-max-width, 100%);
}

.course-watch-layout.is-watch-fullscreen .discussion-flair-menu,
.course-watch-layout:fullscreen .discussion-flair-menu {
  border-color: rgba(191, 219, 254, 0.95);
  box-shadow: 0 0.35rem 0.85rem rgba(15, 23, 42, 0.12);
}

.discussion-flair-option {
  position: relative;
  display: inline-flex;
  justify-self: stretch;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.discussion-flair-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.discussion-flair-option > span:not(.discussion-flair-tooltip) {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  border: 0;
  border-radius: 0.3rem;
  padding: 0.35rem 0.5rem;
  background: transparent;
  color: #6d28d9;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.discussion-flair-option.is-clear > span {
  color: #64748b;
}

.discussion-flair-option .discussion-flair-tooltip {
  position: absolute;
  left: 0.85rem;
  top: calc(100% + 0.16rem);
  z-index: 6;
  border: 0;
  border-radius: 0.2rem;
  padding: 0.2rem 0.35rem;
  background: #1e3a8a;
  color: #dbeafe;
  font-size: 0.72rem;
  font-style: italic;
  font-weight: 400;
  line-height: 1.2;
  max-width: min(18rem, calc(100vw - 2rem));
  opacity: 0;
  pointer-events: none;
  text-transform: none;
  transition: opacity 0.1s ease;
  white-space: normal;
}

.discussion-flair-option:hover .discussion-flair-tooltip,
.discussion-flair-option:focus-within .discussion-flair-tooltip {
  opacity: 1;
  transition-delay: 0.5s;
}

.discussion-flair-option:hover > span:not(.discussion-flair-tooltip),
.discussion-flair-option:focus-visible > span:not(.discussion-flair-tooltip),
.discussion-flair-option.is-selected > span:not(.discussion-flair-tooltip) {
  border-color: #60a5fa;
  background: #eff6ff;
  color: #1d4ed8;
}

.timestamped-discussion .discussion-reply-actions,
.timestamped-discussion .discussion-post-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.45rem;
}

.timestamped-discussion .discussion-reply-actions {
  justify-content: space-between;
}

.timestamped-discussion .discussion-post-actions {
  justify-content: space-between;
  justify-self: stretch;
  flex-wrap: nowrap;
  width: 100%;
}

.timestamped-discussion .discussion-post-tools {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}

.timestamped-discussion .discussion-post-tools:empty {
  display: none;
}

.timestamped-discussion .discussion-post-tools .discussion-flair-select {
  flex: 0 1 auto;
  margin-top: 0;
}

.timestamped-discussion .discussion-post-tools .discussion-flair-trigger,
.timestamped-discussion .discussion-post-tools .discussion-anonymous-option {
  box-sizing: border-box;
  min-height: 2.375rem;
}

.timestamped-discussion .discussion-post-tools .discussion-anonymous-option {
  flex: 0 0 auto;
  border: 1px solid #cbd5e1;
  border-radius: 0.375rem;
  padding: 0.375rem 0.55rem;
  background: #f8fafc;
}

.timestamped-discussion .discussion-post-tools .discussion-anonymous-option:hover,
.timestamped-discussion .discussion-post-tools .discussion-anonymous-option:focus-within {
  border-color: #93c5fd;
  background: #eff6ff;
  color: #334155;
}

.timestamped-discussion .discussion-post-actions > .student-preview-action-wrapper {
  flex: 0 0 auto;
  margin-left: auto;
}

.discussion-anonymous-option {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #64748b;
  cursor: pointer;
  font-size: 0.78rem;
  line-height: 1.2;
}

.discussion-anonymous-option input {
  margin: 0;
}

.discussion-anonymous-option:hover {
  color: #334155;
}

.bookmark-toolbar {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
  overflow: hidden;
}

.bookmark-toolbar:has(.course-video-option-actions[open]) {
  overflow: visible;
}

.course-resource-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: 1px solid #dbeafe;
  background: #eef5ff;
}

.course-resource-tabs:has([data-course-resource-tab="actions"]) {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.course-resource-tabs:has([data-course-resource-tab="transcript"]) {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.course-resource-tabs:has([data-course-resource-tab="transcript"]):has([data-course-resource-tab="actions"]) {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.course-resource-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1rem;
  border: 0;
  border-right: 1px solid #dbeafe;
  color: #475569;
  background: #e7f0ff;
  font-weight: 700;
  letter-spacing: 0;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.course-resource-tab:last-child {
  border-right: 0;
}

.course-resource-tab:hover,
.course-resource-tab:focus-visible {
  color: #1d4ed8;
  background: #f5f9ff;
}

.course-resource-tab.is-active {
  color: #0f172a;
  background: #ffffff;
  box-shadow: inset 0 -3px 0 #2563eb;
}

.course-resource-panel[hidden] {
  display: none;
}

.video-action-manager {
  display: grid;
  gap: 0.75rem;
}

.video-action-manager-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.video-action-manager-header h3 {
  margin: 0;
  color: #0f172a;
  font-size: 1rem;
  font-weight: 780;
}

.video-action-manager-header p {
  margin: 0.18rem 0 0;
  color: #64748b;
  font-size: 0.8rem;
}

.video-action-manager-status {
  margin: 0;
  color: #64748b;
  font-size: 0.76rem;
}

.video-action-manager-status:empty {
  display: none;
}

.video-action-manager-status.is-error {
  color: #b42318;
  font-weight: 700;
}

.video-action-manager-status.is-deleted {
  color: #b42318;
  font-weight: 700;
}

.video-action-list {
  display: grid;
  gap: 0.5rem;
  max-height: min(27rem, 58vh);
  overflow: visible;
  padding: 0.15rem 0.2rem 0.25rem;
  scrollbar-gutter: stable;
  overscroll-behavior: contain;
}

.video-action-list.is-scrollable {
  overflow-x: hidden;
  overflow-y: auto;
}

.video-action-empty {
  margin: 0;
  color: #64748b;
  font-size: 0.88rem;
}

.video-action-row {
  position: relative;
  border: 1px solid #dbeafe;
  border-radius: 0.8rem;
  background: #ffffff;
  box-shadow: 0 0.35rem 0.85rem rgba(15, 23, 42, 0.05);
}

.video-action-row.is-invalid-time {
  border-color: #fbbf24;
  background: #fffbeb;
}

.video-action-row:has(.course-video-option-actions[open]) {
  z-index: 120;
}

.video-action-row-display {
  position: relative;
  display: grid;
  grid-template-columns: auto auto auto auto minmax(0, 1fr) auto;
  grid-template-areas: "time icon type warning message actions";
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
  padding: 0.62rem 0.7rem;
}

.video-action-open-surface {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  border: 0;
  border-radius: inherit;
  background: transparent;
  cursor: pointer;
}

.video-action-open-surface:hover {
  background: rgba(239, 246, 255, 0.52);
}

.video-action-open-surface:focus-visible {
  outline: 2px solid #60a5fa;
  outline-offset: -2px;
}

.video-action-open-surface[hidden] {
  display: none;
}

.video-action-open-surface:disabled {
  cursor: not-allowed;
}

.video-action-type-icon {
  position: relative;
  z-index: 1;
  pointer-events: none;
  grid-area: icon;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 999px;
  background: #f1f5f9;
}

.video-action-type-icon img {
  width: 1.15rem;
  height: 1.15rem;
  object-fit: contain;
}

.video-action-type {
  position: relative;
  z-index: 1;
  pointer-events: none;
  grid-area: type;
  color: #475569;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.video-action-time {
  position: relative;
  z-index: 2;
  grid-area: time;
  border: 0;
  border-radius: 999px;
  padding: 0.28rem 0.52rem;
  background: #dcfce7;
  color: #166534;
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 780;
  font-variant-numeric: tabular-nums;
  transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.video-action-time:hover,
.video-action-time:focus-visible {
  background: #bbf7d0;
  color: #14532d;
  box-shadow: 0 0 0 0.16rem rgba(22, 163, 74, 0.16);
  outline: none;
}

.video-action-time:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.video-action-warning {
  position: relative;
  z-index: 1;
  pointer-events: none;
  grid-area: warning;
  color: #92400e;
  font-size: 0.68rem;
  font-weight: 800;
}

.video-action-message {
  position: relative;
  z-index: 1;
  pointer-events: none;
  grid-area: message;
  min-width: 0;
  overflow: hidden;
  color: #1e293b;
  font-size: 0.86rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.video-action-row-actions {
  position: relative;
  z-index: 2;
  display: inline-flex;
}

.video-action-row-end {
  position: relative;
  z-index: 2;
  grid-area: actions;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.38rem;
  min-width: max-content;
}

.video-action-response-count {
  color: #64748b;
  font-size: 0.74rem;
  font-style: italic;
  white-space: nowrap;
}

.video-action-row .course-video-option-actions.is-menu-upward .course-video-option-menu {
  top: auto;
  bottom: calc(100% + 0.35rem);
}

@media (max-width: 680px) {
  .video-action-picker-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .video-quick-check-field-heading {
    display: grid;
    gap: 0.12rem;
  }

  .video-quick-check-choice-editor-row {
    grid-template-columns: 1.5rem 1.85rem minmax(0, 1fr) 1.85rem;
    gap: 0.32rem;
    padding: 0.34rem;
  }

  .video-quick-check-editor.is-poll-editor .video-quick-check-choice-editor-row {
    grid-template-columns: 1.5rem minmax(0, 1fr) 1.85rem;
  }

  .video-quick-check-choice {
    grid-template-columns: 1.4rem minmax(0, 1fr) auto;
    gap: 0.48rem;
    padding: 0.62rem;
  }

  .video-quick-check-choice-count {
    grid-column: 2 / -1;
  }

  .video-action-viewer-actions [data-video-quick-check-submit],
  .video-action-viewer-actions [data-video-quick-check-ask-question],
  .video-action-viewer-actions .video-action-continue {
    flex: 1 1 8rem;
  }

  .video-action-row-display {
    grid-template-columns: auto auto auto minmax(0, 1fr) auto;
    grid-template-areas:
      "time icon type warning actions"
      "message message message message message";
  }

  .video-action-warning {
    grid-area: warning;
  }

  .video-action-message {
    padding-left: 0.1rem;
  }

}

@media (prefers-reduced-motion: reduce) {
  .video-action-picker-option,
  .video-action-viewer-card,
  .video-quick-check-choice,
  .video-quick-check-aggregate-track > span {
    animation: none;
    transition: none;
  }
}

.bookmark-toolbar-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.bookmark-current-time {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 9rem;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  background-color: #eef5ff;
}

.bookmark-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  align-items: stretch;
  max-height: min(28rem, 52vh);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-top: 0.5rem;
  padding-right: 0.25rem;
  padding-bottom: 0.5rem;
  scrollbar-gutter: stable;
}

.bookmark-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 0.6rem 0.65rem;
  border: 1px solid rgba(191, 219, 254, 0.78);
  border-radius: 0.7rem;
  background: rgba(255, 255, 255, 0.82);
  color: #0f172a;
  box-shadow: 0 0.35rem 0.85rem rgba(15, 23, 42, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.bookmark-item:hover,
.bookmark-item:focus-within {
  border-color: #93c5fd;
  background: #f8fbff;
  color: #0f172a;
  transform: translateY(-1px);
  box-shadow: 0 0.5rem 1rem rgba(15, 23, 42, 0.1);
}

.bookmark-row-actions {
  order: 3;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex: 0 0 auto;
}

.bookmark-open-area {
  order: 1;
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  flex: 1 1 0;
  min-width: 0;
  max-width: 100%;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.bookmark-open-area:focus-visible {
  outline: 2px solid rgba(37, 99, 235, 0.35);
  outline-offset: 3px;
  border-radius: 0.7rem;
}

.bookmark-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 999px;
  background: #ffffff;
  color: #475569;
  box-shadow: 0 0.35rem 0.8rem rgba(15, 23, 42, 0.12);
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.bookmark-icon-button svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bookmark-edit-button:hover,
.bookmark-edit-button:focus-visible {
  background: #eff6ff;
  border-color: rgba(96, 165, 250, 0.5);
  color: #1d4ed8;
  transform: scale(1.03);
}

.bookmark-delete-button:hover,
.bookmark-delete-button:focus-visible {
  background: #fef2f2;
  border-color: rgba(239, 68, 68, 0.5);
  color: #991b1b;
  transform: scale(1.03);
}

.bookmark-chip {
  order: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 4.35rem;
  max-width: 100%;
  min-height: 2rem;
  border: 1px solid rgba(56, 115, 203, 0.42);
  border-radius: 999px;
  padding: 0.38rem 0.72rem;
  background: linear-gradient(135deg, #3873cb, #4f8fe0);
  color: #f8fbff;
  line-height: 1;
  box-shadow: 0 0.4rem 0.9rem rgba(56, 115, 203, 0.16);
}

.bookmark-chip-time {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.bookmark-chip-time[hidden],
[data-bookmark-time-text][hidden] {
  display: none !important;
}

.bookmark-time-input {
  width: 5.4rem;
  min-height: 2rem;
  border: 1px solid rgba(96, 165, 250, 0.72);
  border-radius: 999px;
  padding: 0.35rem 0.55rem;
  background: #ffffff;
  color: #1e3a8a;
  font-size: 0.82rem;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  text-align: center;
  outline: none;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.13);
}

.bookmark-time-input:focus {
  border-color: #3873cb;
  box-shadow: 0 0 0 3px rgba(56, 115, 203, 0.18);
}

.bookmark-item.is-editing .bookmark-chip {
  min-width: 0;
  border: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.bookmark-inline-error {
  order: 4;
  flex-basis: 100%;
  margin: -0.2rem 0 0;
  color: #b42318;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: left;
}

.bookmark-inline-error[hidden] {
  display: none;
}

.bookmark-item.is-editing,
.course-bookmark-row.is-editing {
  flex-wrap: wrap;
}

.bookmark-chip-new {
  color: currentColor;
  font-size: 0.72rem;
  font-style: italic;
  font-weight: 600;
  opacity: 0.72;
}

.bookmark-note-shell {
  order: 2;
  display: flex;
  align-items: flex-start;
  gap: 0.2rem;
  flex: 1 1 auto;
  min-width: 0;
  max-width: none;
  padding: 0 0.2rem;
}

.bookmark-note-shell:has(.bookmark-note-toggle:not([hidden])) {
  margin-right: clamp(0.75rem, 6%, 2rem);
}

.bookmark-chip-note {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  overflow-wrap: normal;
  white-space: nowrap;
  max-width: 100%;
  border-radius: 0.6rem;
  padding: 0.18rem 0.35rem;
  color: #334155;
}

.bookmark-chip-note.is-placeholder {
  color: #94a3b8;
  font-style: italic;
}

.bookmark-note-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 1.6rem;
  height: 1.6rem;
  margin-top: 0.12rem;
  border: 0;
  border-radius: 999px;
  background: #eef5ff;
  color: #334155;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.bookmark-note-toggle[hidden] {
  display: none;
}

.bookmark-note-toggle:hover,
.bookmark-note-toggle:focus-visible {
  background: #dbeafe;
  color: #1d4ed8;
  outline: none;
}

.bookmark-note-toggle svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s ease;
  transform: rotate(-90deg);
}

.bookmark-item.is-note-expanded .bookmark-note-toggle svg {
  transform: rotate(0);
}

.bookmark-item.is-note-expanded .bookmark-chip-note {
  max-height: none;
  overflow: visible;
  text-overflow: clip;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.bookmark-chip-note.is-editing {
  max-height: none;
  overflow: visible;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.45), 0 0 0.8rem rgba(96, 165, 250, 0.12);
  color: #0f172a;
  cursor: text;
}

.bookmark-feedback {
  min-height: 1.25rem;
}

.bookmark-feedback:empty {
  display: none;
}

.bookmark-feedback:not(:empty) + .bookmark-list {
  margin-top: 0.55rem;
}

.course-bookmark-group-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  overflow-y: visible;
  overscroll-behavior: contain;
  padding: 0.35rem 0.45rem 0.55rem 0.25rem;
  scrollbar-gutter: stable;
}

.course-bookmark-module-group {
  min-width: 0;
  margin-block: 0.15rem;
  border: 1px solid rgba(191, 219, 254, 0.82);
  border-radius: 0.78rem;
  background: rgba(248, 251, 255, 0.82);
  overflow: hidden;
}

.course-bookmark-module-group.is-flat {
  margin-block: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: visible;
}

.course-bookmark-module-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.48rem;
  min-height: 2.7rem;
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid transparent;
  background: #eef5ff;
  color: #0f172a;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.course-bookmark-module-summary::-webkit-details-marker {
  display: none;
}

.course-bookmark-module-summary:hover,
.course-bookmark-module-summary:focus-visible {
  background: #e0ecff;
  color: #1d4ed8;
  outline: none;
}

.course-bookmark-module-group[open] > .course-bookmark-module-summary {
  border-bottom-color: #dbeafe;
}

.course-bookmark-module-group:not([open]) > .course-bookmark-module-summary {
  min-height: 3rem;
  padding-block: 0.78rem;
}

.course-bookmark-module-chevron {
  display: inline-flex;
  color: #64748b;
}

.course-bookmark-module-chevron svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  transition: transform 0.18s ease;
}

.course-bookmark-module-group:not([open]) .course-bookmark-module-chevron svg {
  transform: rotate(-90deg);
}

.course-bookmark-module-title {
  min-width: 0;
  overflow: hidden;
  font-size: 0.9rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.course-bookmark-module-content {
  display: grid;
  gap: 0.72rem;
  padding: 0.7rem;
}

.course-bookmark-module-group:not(.is-flat)[open] > .course-bookmark-module-content {
  max-height: min(24rem, 46vh);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 0.45rem;
  scrollbar-gutter: stable;
}

.course-bookmark-module-group.is-flat > .course-bookmark-module-content {
  max-height: min(32rem, 60vh);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0;
  padding-right: 0.2rem;
  scrollbar-gutter: stable;
}

.course-bookmark-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-width: 0;
}

.course-bookmark-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0 0.15rem;
}

.course-bookmark-group-header h3 {
  margin: 0;
  min-width: 0;
  overflow: hidden;
  color: #0f172a;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.course-bookmark-group-header span {
  flex: 0 0 auto;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 700;
}

.course-bookmark-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.course-bookmark-row {
  position: relative;
  display: flex;
  align-items: start;
  gap: 0.7rem;
  width: 100%;
  min-width: 0;
  padding: 0.6rem 0.65rem;
  border: 1px solid rgba(191, 219, 254, 0.78);
  border-radius: 0.7rem;
  background: rgba(255, 255, 255, 0.84);
  color: #0f172a;
  text-decoration: none;
  box-shadow: 0 0.35rem 0.85rem rgba(15, 23, 42, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.course-bookmark-row:hover,
.course-bookmark-row:focus-within {
  border-color: #93c5fd;
  background: #f8fbff;
  color: #0f172a;
  transform: translateY(-1px);
  box-shadow: 0 0.5rem 1rem rgba(15, 23, 42, 0.1);
}

.course-bookmark-open-link {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  flex: 1 1 0;
  min-width: 0;
  max-width: 100%;
  color: inherit;
  text-align: left;
  text-decoration: none;
}

.course-bookmark-open-link:hover,
.course-bookmark-open-link:focus-visible {
  color: inherit;
  text-decoration: none;
}

.course-bookmark-row-main {
  display: flex;
  align-items: flex-start;
  min-width: 0;
  flex: 1 1 auto;
  max-width: none;
  padding: 0 0.2rem;
}

.course-bookmark-note {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  max-height: 1.65rem;
  overflow: hidden;
  color: #334155;
  font-size: 0.95rem;
  line-height: 1.35;
  text-overflow: ellipsis;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  border-radius: 0.6rem;
  padding: 0.18rem 0.35rem;
}

.course-bookmark-note.is-placeholder {
  color: #94a3b8;
  font-style: italic;
}

.course-bookmark-note.is-editing {
  width: 100%;
  min-height: 1.85rem;
  border-radius: 0.6rem;
  padding: 0.18rem 0.35rem;
  overflow: visible;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.45), 0 0 0.8rem rgba(96, 165, 250, 0.12);
  color: #0f172a;
  cursor: text;
  outline: none;
}

.course-bookmark-row.is-editing {
  border-color: rgba(96, 165, 250, 0.55);
  background: #ffffff;
}

.course-bookmark-time {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 4.35rem;
  min-height: 2rem;
  border: 1px solid rgba(56, 115, 203, 0.42);
  border-radius: 999px;
  padding: 0.38rem 0.72rem;
  background: linear-gradient(135deg, #3873cb, #4f8fe0);
  color: #f8fbff;
  font-size: 0.78rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  box-shadow: 0 0.4rem 0.9rem rgba(56, 115, 203, 0.16);
}

.course-bookmark-row .bookmark-time-input {
  flex: 0 0 auto;
}

.course-bookmark-row .bookmark-inline-error {
  margin-left: 5.05rem;
}

.course-bookmark-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex: 0 0 auto;
  margin-left: auto;
  min-width: max-content;
}

.login-summary-card {
  background: linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
}

.login-summary-list {
  padding-left: 1.2rem;
}

.login-summary-list li + li {
  margin-top: 0.6rem;
}

body.gateway-login-page {
  min-height: 100vh;
  margin-bottom: 0;
  overflow-x: hidden;
  background: #f8fbff;
  color: var(--gateway-text-on-light);
}

body.gateway-course-page {
  min-height: 100vh;
  margin-bottom: 0;
  overflow-x: hidden;
  background: #020817;
  color: #eef7ff;
}

body.gateway-login-page > .container,
body.gateway-course-page > .container {
  width: 100%;
  max-width: none;
  padding: 0;
}

body.gateway-login-page main,
body.gateway-course-page main {
  padding-bottom: 0 !important;
}

body.gateway-login-page main {
  min-height: calc(100dvh - 4.75rem);
}

body.gateway-course-page main {
  min-height: 100vh;
}

.gateway-login-screen,
.gateway-course-screen {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6.5rem 1.25rem 4rem;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(2, 6, 20, 0.1) 0%, rgba(2, 6, 20, 0.46) 45%, rgba(2, 6, 20, 0.92) 100%),
    radial-gradient(circle at 50% 84%, rgba(90, 223, 255, 0.62) 0 0.15rem, transparent 0.35rem),
    radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.84) 0 0.06rem, transparent 0.18rem),
    radial-gradient(circle at 75% 22%, rgba(255, 255, 255, 0.72) 0 0.05rem, transparent 0.2rem),
    url("/doveline-background.jpeg") center bottom / cover no-repeat;
}

body.gateway-login-page .gateway-login-screen {
  padding-top: 5.15rem;
  background:
    linear-gradient(180deg, rgba(248, 251, 255, 0.96) 0%, rgba(238, 245, 255, 0.96) 48%, rgba(255, 255, 255, 0.98) 100%),
    url("/doveline-background.jpeg") center bottom / cover no-repeat;
}

body.gateway-login-page .gateway-login-screen-account {
  min-height: calc(100dvh - 4.75rem);
  padding: clamp(0.65rem, 1.8vh, 1rem) 1.25rem clamp(0.75rem, 2vh, 1.15rem);
}

body.gateway-login-page .gateway-login-screen-guest {
  min-height: calc(100dvh - 4.75rem);
  padding: clamp(0.75rem, 2vh, 1.2rem) 1.25rem clamp(0.9rem, 2.4vh, 1.4rem);
}

.gateway-course-screen {
  align-items: flex-start;
  justify-content: center;
  padding: 4.5rem 1.25rem 4rem;
  background:
    linear-gradient(180deg, rgba(248, 251, 255, 0.96) 0%, rgba(238, 245, 255, 0.96) 48%, rgba(255, 255, 255, 0.98) 100%),
    url("/doveline-background.jpeg") center bottom / cover no-repeat;
}

.gateway-login-screen::before,
.gateway-login-screen::after,
.gateway-login-stars,
.gateway-login-orbit,
.gateway-course-screen::before,
.gateway-course-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.gateway-login-screen::before,
.gateway-course-screen::before {
  z-index: -2;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.95) 0 0.055rem, transparent 0.14rem),
    radial-gradient(circle at 42% 18%, rgba(255, 255, 255, 0.85) 0 0.045rem, transparent 0.14rem),
    radial-gradient(circle at 69% 11%, rgba(255, 255, 255, 0.95) 0 0.06rem, transparent 0.16rem),
    radial-gradient(circle at 86% 34%, rgba(180, 225, 255, 0.88) 0 0.055rem, transparent 0.16rem),
    radial-gradient(circle at 28% 70%, rgba(255, 255, 255, 0.72) 0 0.045rem, transparent 0.16rem);
  background-size: 18rem 18rem, 22rem 22rem, 24rem 24rem, 19rem 19rem, 28rem 28rem;
  opacity: 0.9;
}

.gateway-login-screen::after,
.gateway-course-screen::after {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(219, 234, 254, 0.56), rgba(255, 255, 255, 0.16) 42%, rgba(219, 234, 254, 0.5)),
    radial-gradient(circle at 50% 88%, rgba(94, 234, 212, 0.18), transparent 17rem),
    radial-gradient(circle at 50% 20%, rgba(59, 130, 246, 0.12), transparent 28rem);
}

.gateway-login-screen::after {
  background:
    linear-gradient(90deg, rgba(219, 234, 254, 0.56), rgba(255, 255, 255, 0.16) 42%, rgba(219, 234, 254, 0.5)),
    radial-gradient(circle at 50% 88%, rgba(94, 234, 212, 0.18), transparent 17rem),
    radial-gradient(circle at 50% 20%, rgba(59, 130, 246, 0.12), transparent 28rem);
}

.gateway-login-stars {
  display: none;
}

.gateway-login-orbit {
  display: none;
}

.gateway-login-content {
  position: relative;
  width: min(100%, 54rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: clamp(1rem, 3vw, 2rem);
  animation: gateway-login-rise 680ms ease-out both;
}

.gateway-login-screen-guest .gateway-login-content {
  margin-top: 0;
}

.gateway-login-card {
  width: min(100%, 43rem);
  padding: 1px;
  border-radius: 0.8rem;
  background: rgba(203, 213, 225, 0.6);
  box-shadow: 0 1.4rem 3.5rem rgba(15, 23, 42, 0.14);
}

.gateway-login-screen-guest .gateway-login-card {
  width: min(100%, 31rem);
}

.gateway-login-card-inner {
  position: relative;
  padding: clamp(2rem, 5vw, 3.35rem) clamp(1.35rem, 5vw, 4rem) 1.7rem;
  border-radius: inherit;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid rgba(203, 213, 225, 0.84);
  overflow: hidden;
}

.gateway-login-screen-guest .gateway-login-card-inner {
  padding: clamp(1.45rem, 4vw, 2.25rem) clamp(1.15rem, 4vw, 2.15rem) 1.35rem;
}

.gateway-login-card-inner::before {
  display: none;
}

.gateway-login-card h1 {
  position: relative;
  margin: 0;
  color: var(--gateway-text-on-light);
  font-size: clamp(1.75rem, 4.5vw, 2.45rem);
  font-weight: 700;
  letter-spacing: 0;
  text-align: center;
}

.gateway-login-screen-guest .gateway-login-card h1 {
  margin-bottom: clamp(0.9rem, 2vw, 1.25rem);
  font-size: clamp(1.55rem, 3.8vw, 2.05rem);
}

.gateway-login-subtitle {
  position: relative;
  margin: 0.85rem 0 1.9rem;
  color: var(--gateway-muted-on-light);
  font-size: 1.02rem;
  letter-spacing: 0;
  text-align: center;
}

.gateway-login-screen-guest .gateway-login-subtitle {
  margin: 0.55rem 0 1.25rem;
  font-size: 0.96rem;
}

.gateway-login-alert,
.gateway-login-validation {
  position: relative;
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 0.95rem;
  background: #eef5ff;
  border: 1px solid rgba(56, 115, 203, 0.18);
  color: var(--gateway-text-on-light);
  text-align: center;
}

.gateway-login-validation.validation-summary-valid {
  display: none;
}

.gateway-login-validation ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.gateway-login-validation li {
  margin: 0;
}

.gateway-login-validation.validation-summary-errors {
  border-color: rgba(180, 35, 24, 0.2);
  background: #fff7f6;
  color: var(--gateway-error-text);
}

.gateway-login-validation-compact.validation-summary-errors {
  margin-bottom: 0.75rem;
  padding: 0.58rem 0.8rem;
  border-radius: 0.72rem;
  font-size: 0.88rem;
  font-weight: 650;
  line-height: 1.35;
  text-align: left;
}

.gateway-login-alert-success {
  border-color: rgba(20, 184, 166, 0.24);
  background: #ecfdf5;
  color: #0f766e;
}

.gateway-login-alert-current-session {
  display: grid;
  gap: 0.8rem;
}

.gateway-login-alert-copy {
  margin: 0;
}

.gateway-login-alert-warning {
  color: #92400e;
  font-weight: 600;
}

.gateway-login-alert-actions {
  display: flex;
  justify-content: center;
}

.gateway-login-session-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 13rem;
  border: 1px solid rgba(56, 115, 203, 0.28);
  border-radius: 999px;
  padding: 0.7rem 1.2rem;
  background: #eef5ff;
  color: #1d4ed8;
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.gateway-login-session-link:hover,
.gateway-login-session-link:focus-visible {
  border-color: rgba(56, 115, 203, 0.44);
  background: #dbeafe;
  color: #1e3a8a;
  text-decoration: none;
  transform: translateY(-1px);
}

.gateway-login-form {
  position: relative;
}

.gateway-auth-panel[hidden] {
  display: none !important;
}

.gateway-account-settings-form {
  position: relative;
  display: grid;
  gap: 0.38rem;
  margin-bottom: 0.7rem;
  padding: 0.74rem 0.82rem 0.78rem;
  border: 1px solid #dbeafe;
  border-radius: 0.65rem;
  background: rgba(255, 255, 255, 0.96);
}

.gateway-login-screen-account .gateway-login-card-inner {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: visible;
}

.gateway-login-screen-account .gateway-login-content {
  width: min(100%, 72rem);
  align-items: stretch;
  margin-top: 0;
}

.gateway-login-screen-account .gateway-login-card {
  width: 100%;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.gateway-login-screen-account .gateway-login-card h1 {
  margin-bottom: 0.35rem;
  color: #163d7a;
  font-size: clamp(1.85rem, 4vw, 2.65rem);
  text-align: left;
}

.gateway-login-screen-account .gateway-login-subtitle {
  max-width: 42rem;
  margin: 0 0 1.35rem;
  text-align: left;
}

.gateway-login-screen-account .gateway-login-alert,
.gateway-login-screen-account .gateway-login-validation {
  text-align: left;
}

.gateway-login-screen-account .gateway-account-settings-form,
.gateway-login-screen-account .gateway-account-email,
.gateway-login-screen-account .gateway-account-privileges,
.gateway-login-screen-account .gateway-account-security,
.gateway-login-screen-account .gateway-password-settings-panel,
.gateway-login-screen-account .gateway-account-danger-zone {
  border-color: rgba(191, 219, 254, 0.9);
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0.45rem 1.3rem rgba(37, 93, 167, 0.07);
}

.gateway-login-screen-account .gateway-account-settings-form,
.gateway-login-screen-account .gateway-account-email,
.gateway-login-screen-account .gateway-account-privileges,
.gateway-login-screen-account .gateway-account-security,
.gateway-login-screen-account .gateway-account-danger-zone {
  margin-bottom: 1rem;
  padding: clamp(1rem, 2.2vw, 1.35rem);
}

.gateway-account-danger-zone {
  display: block;
  margin-top: 1rem;
  border: 1px solid #fecaca;
  color: #475569;
}

.gateway-login-screen-account .gateway-account-danger-panel {
  margin-top: 0.65rem;
  padding: 0;
  overflow: hidden;
  border-color: #fecaca;
  background: rgba(255, 255, 255, 0.9);
}

.gateway-password-settings-panel.gateway-account-danger-panel summary {
  padding: 0.7rem 0.88rem;
  color: #991b1b;
}

.gateway-password-settings-panel.gateway-account-danger-panel summary::after {
  color: #991b1b;
}

.gateway-password-settings-panel.gateway-account-danger-panel[open] summary {
  border-bottom-color: #fee2e2;
}

.gateway-account-danger-zone h2 {
  margin: 0;
  color: #7f1d1d;
  font-size: 0.94rem;
  font-weight: 800;
}

.gateway-account-danger-content {
  display: grid;
  gap: 0.75rem;
  padding: 0.82rem;
}

.gateway-account-danger-zone p,
.gateway-account-deletion-pending {
  margin: 0;
}

.gateway-account-deletion-pending {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-radius: 0.65rem;
  padding: 0.7rem 0.8rem;
  background: #fff7ed;
  color: #7c2d12;
  font-size: 0.88rem;
}

.gateway-account-deletion-request-form {
  display: grid;
  gap: 0.75rem;
  border-top: 1px solid #fee2e2;
  padding-top: 0.8rem;
}

.gateway-account-deletion-request-form .btn {
  justify-self: start;
}

.gateway-account-deletion-confirm-card {
  width: min(100%, 38rem) !important;
  margin: 0 auto;
}

.gateway-account-deletion-confirm-card .gateway-login-card-inner {
  border-radius: 1.15rem;
  padding: clamp(1.25rem, 4vw, 2rem);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 1.2rem 3rem rgba(25, 52, 96, 0.16);
}

.gateway-account-deletion-expiry {
  color: #475569;
}

.gateway-account-deletion-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.gateway-login-screen-account .gateway-register-panel {
  margin-top: 0.85rem;
}

.gateway-login-screen-account .gateway-reset-panel {
  margin-top: 0.65rem;
}

.gateway-login-screen-account .gateway-reset-hint {
  margin-bottom: 0.75rem;
}

.gateway-account-privileges {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  margin: 0 0 0.7rem;
  padding: 0.82rem;
  border: 1px solid #dbeafe;
  border-radius: 0.65rem;
  background: rgba(255, 255, 255, 0.96);
  color: var(--gateway-text-on-light);
}

.gateway-account-email {
  display: grid;
  gap: 0.65rem;
  margin: 0 0 0.7rem;
  padding: 0.82rem;
  border: 1px solid #dbeafe;
  border-radius: 0.65rem;
  background: rgba(255, 255, 255, 0.96);
  color: var(--gateway-text-on-light);
}

.gateway-account-email-heading,
.gateway-admin-user-email-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.gateway-account-email-heading strong,
.gateway-admin-user-email-heading strong {
  color: #0f172a;
  overflow-wrap: anywhere;
}

.gateway-account-email-verified {
  display: inline-flex;
  border-radius: 999px;
  padding: 0.22rem 0.55rem;
  background: #dcfce7;
  color: #166534;
  font-size: 0.74rem;
  font-weight: 800;
}

.gateway-account-email-pending,
.gateway-admin-user-email-pending {
  margin: 0;
  color: #475569;
  font-size: 0.88rem;
  line-height: 1.45;
}

.gateway-account-email-pending strong,
.gateway-admin-user-email-pending strong {
  color: #1e3a8a;
}

.gateway-account-email-pending-actions,
.gateway-account-email-form-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.gateway-account-email-pending-actions form {
  margin: 0;
}

.gateway-account-email > .gateway-account-secondary-action {
  justify-self: start;
}

.gateway-account-secondary-action-danger {
  border-color: #fecaca;
  color: #991b1b;
}

.gateway-account-email-change-form {
  display: grid;
  gap: 0.75rem;
  border-top: 1px solid #dbeafe;
  padding-top: 0.8rem;
}

.gateway-account-email-change-form[hidden] {
  display: none;
}

.gateway-account-email-unavailable {
  margin: 0;
  color: #92400e;
  font-size: 0.88rem;
}

.gateway-account-section-label,
.gateway-account-privileges-label {
  display: block;
  color: var(--gateway-muted-on-light);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.gateway-account-settings-form .gateway-login-field-validation {
  min-height: 0;
  margin-top: 0.18rem;
}

.gateway-account-settings-form .gateway-register-submit {
  margin-top: 0.05rem;
}

.gateway-account-settings-form [data-display-name-save] {
  justify-self: start;
  margin-top: 0.05rem;
}

.gateway-account-privileges strong {
  display: block;
  margin-top: 0.08rem;
  color: #0f172a;
  font-size: 1rem;
  font-weight: 800;
  text-transform: capitalize;
}

.gateway-account-secondary-action {
  border: 1px solid rgba(56, 115, 203, 0.42);
  border-radius: 999px;
  padding: 0.42rem 0.78rem;
  background: #ffffff;
  color: #245da7;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.2;
}

.gateway-account-secondary-action:hover,
.gateway-account-secondary-action:focus-visible {
  background: #eef5ff;
  color: #1d4ed8;
}

.gateway-course-creator-pending {
  margin: 0;
  color: #64748b;
  font-size: 0.9rem;
  font-style: italic;
}

.gateway-account-request-dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1060;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(15, 23, 42, 0.42);
}

.gateway-account-request-dialog-backdrop[hidden] {
  display: none !important;
}

.gateway-account-request-dialog {
  width: min(30rem, 100%);
  max-height: calc(100vh - 2.5rem);
  overflow: auto;
  border: 1px solid #bfdbfe;
  border-radius: 0.75rem;
  padding: 1rem;
  background: #ffffff;
  color: var(--gateway-text-on-light);
  box-shadow: 0 1.5rem 3rem rgba(15, 23, 42, 0.22);
}

.gateway-account-request-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.8rem;
}

.gateway-account-request-dialog-header h2 {
  margin: 0;
  color: #0f172a;
  font-size: 1rem;
  font-weight: 800;
}

.gateway-account-dialog-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid rgba(148, 163, 184, 0.45);
  border-radius: 999px;
  background: #ffffff;
  color: #475569;
}

.gateway-account-dialog-icon-button svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.gateway-account-request-description {
  min-height: 6rem;
  resize: vertical;
}

.gateway-account-request-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.55rem;
  margin-top: 0.85rem;
}

.gateway-password-settings-panel {
  margin-top: 0;
  padding: 0;
  border: 1px solid #dbeafe;
  border-radius: 0.65rem;
  background: rgba(255, 255, 255, 0.94);
  overflow: hidden;
}

.gateway-password-settings-panel summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.78rem 0.88rem;
  cursor: pointer;
  list-style: none;
  color: #245da7;
  font-size: 0.94rem;
  font-weight: 800;
}

.gateway-password-settings-panel summary::-webkit-details-marker {
  display: none;
}

.gateway-password-settings-panel summary::after {
  content: "+";
  color: #64748b;
  font-size: 1.05rem;
  line-height: 1;
}

.gateway-password-settings-panel[open] summary {
  border-bottom: 1px solid #dbeafe;
}

.gateway-password-settings-panel[open] summary::after {
  content: "-";
}

.gateway-password-settings-form {
  padding: 0.82rem;
}

.gateway-password-settings-form .gateway-password-grid {
  row-gap: 0.2rem;
}

.gateway-password-settings-form .gateway-password-grid-help {
  margin-top: 0.02rem;
}

.gateway-password-settings-form .gateway-password-field-error,
.gateway-password-settings-form .gateway-password-grid-error,
.gateway-password-settings-form .gateway-password-requirements {
  font-size: 0.82rem;
}

.gateway-password-settings-form .gateway-password-grid-error {
  margin-top: 0.02rem;
}

.gateway-login-field {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 4.35rem;
  margin-top: 1.05rem;
  border: 1px solid rgba(148, 163, 184, 0.42);
  border-radius: 0.42rem;
  background: #ffffff;
  box-shadow: 0 0 0 rgba(56, 189, 248, 0);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.gateway-login-screen-guest .gateway-login-field {
  min-height: 3.45rem;
  margin-top: 0.65rem;
  border-radius: 0.65rem;
}

.gateway-login-field:focus-within {
  border-color: rgba(56, 115, 203, 0.62);
  background: #ffffff;
  box-shadow: 0 0 0 0.22rem rgba(56, 115, 203, 0.12);
}

.gateway-login-field-icon {
  flex: 0 0 4.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
}

.gateway-login-screen-guest .gateway-login-field-icon {
  flex-basis: 3.35rem;
}

.gateway-login-field-icon svg {
  width: 1.85rem;
  height: 1.85rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gateway-login-screen-guest .gateway-login-field-icon svg {
  width: 1.28rem;
  height: 1.28rem;
}

.gateway-login-input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0.95rem 1.15rem 0.95rem 0;
  background: transparent;
  color: var(--gateway-text-on-light);
  font-size: clamp(1.05rem, 2.4vw, 1.45rem);
  letter-spacing: 0.04em;
}

.gateway-login-screen-guest .gateway-login-input {
  padding: 0.68rem 0.85rem 0.68rem 0;
  font-size: 1rem;
  letter-spacing: 0;
}

.gateway-login-input::placeholder {
  color: var(--gateway-placeholder-on-light);
  opacity: 1;
}

.gateway-login-field-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding-right: 0.9rem;
}

.gateway-password-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid rgba(148, 163, 184, 0.38);
  border-radius: 999px;
  background: #f8fafc;
  color: #475569;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.gateway-login-screen-guest .gateway-password-toggle {
  width: 2.1rem;
  height: 2.1rem;
}

.gateway-password-toggle:hover,
.gateway-password-toggle:focus-visible {
  border-color: rgba(56, 115, 203, 0.46);
  background: #eef5ff;
  color: #1d4ed8;
}

.gateway-password-toggle svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gateway-password-eye-closed {
  display: none;
}

.gateway-password-toggle.is-visible .gateway-password-eye-open {
  display: none;
}

.gateway-password-toggle.is-visible .gateway-password-eye-closed {
  display: inline;
}

.gateway-login-forgot {
  flex: 0 0 auto;
  border: 0;
  padding: 0;
  background: transparent;
  color: #2563eb;
  font-size: clamp(0.82rem, 2vw, 1rem);
  letter-spacing: 0.05em;
  text-decoration: none;
  white-space: nowrap;
}

.gateway-login-forgot:hover,
.gateway-login-forgot:focus-visible,
.gateway-login-signup a:hover {
  color: #1d4ed8;
  text-decoration: none;
}

.gateway-login-field-validation {
  display: block;
  min-height: 1.2rem;
  margin-top: 0.35rem;
  color: var(--gateway-error-text);
  font-size: 0.9rem;
}

.gateway-login-screen-guest .gateway-login-field-validation {
  min-height: 1rem;
  margin-top: 0.22rem;
  color: var(--gateway-error-text);
  font-size: 0.82rem;
}

.gateway-login-submit {
  width: 100%;
  margin-top: 0.65rem;
  border: 1px solid rgba(125, 211, 252, 0.92);
  border-radius: 0.55rem;
  padding: 0.95rem 1.25rem;
  background:
    linear-gradient(180deg, rgba(96, 165, 250, 0.96), rgba(29, 78, 216, 0.92)),
    #2563eb;
  color: #ffffff;
  font-size: clamp(1.55rem, 4vw, 2.3rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.15;
  box-shadow:
    0 0 0.85rem rgba(34, 211, 238, 0.74),
    0 0 2rem rgba(59, 130, 246, 0.42),
    inset 0 0 1rem rgba(255, 255, 255, 0.16);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.gateway-login-screen-guest .gateway-login-submit {
  margin-top: 0.35rem;
  border-radius: 0.7rem;
  padding: 0.72rem 1rem;
  font-size: 1.05rem;
  letter-spacing: 0;
  box-shadow: 0 0.55rem 1.25rem rgba(56, 115, 203, 0.18);
}

.gateway-login-submit:hover,
.gateway-login-submit:focus-visible {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow:
    0 0 1rem rgba(34, 211, 238, 0.95),
    0 0 2.7rem rgba(59, 130, 246, 0.58),
    inset 0 0 1rem rgba(255, 255, 255, 0.2);
}

.gateway-login-screen-guest .gateway-login-submit:hover,
.gateway-login-screen-guest .gateway-login-submit:focus-visible {
  box-shadow: 0 0.75rem 1.5rem rgba(56, 115, 203, 0.24);
}

.gateway-login-signup {
  position: relative;
  margin: 1.55rem 0 0;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  color: rgba(203, 213, 225, 0.88);
  font-size: clamp(1rem, 2.4vw, 1.25rem);
  letter-spacing: 0.05em;
  text-align: center;
}

.gateway-login-signup a {
  color: #5eead4;
  font-weight: 700;
  text-decoration: none;
}

.gateway-register-panel {
  position: relative;
  margin-top: 1.35rem;
  color: var(--gateway-text-on-light);
}

.gateway-reset-panel {
  margin-top: 1.1rem;
}

#gateway-change-password {
  scroll-margin-top: 8.5rem;
}

.gateway-register-panel:not(.gateway-password-settings-panel) summary {
  cursor: pointer;
  list-style: none;
  text-align: center;
  font-size: clamp(1rem, 2.4vw, 1.25rem);
  letter-spacing: 0.05em;
}

.gateway-register-panel:not(.gateway-password-settings-panel) summary::-webkit-details-marker {
  display: none;
}

.gateway-register-panel:not(.gateway-password-settings-panel) summary span {
  color: #2563eb;
  font-weight: 700;
}

.gateway-register-form {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.24);
}

.gateway-register-form-active {
  display: grid;
  gap: 0.65rem;
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.gateway-reset-hint {
  margin: 0 0 1rem;
  color: var(--gateway-muted-on-light);
  font-size: 0.92rem;
}

.gateway-reset-feedback {
  min-height: 1.3rem;
  margin: 0 0 1rem;
  font-size: 0.92rem;
}

.gateway-admin-2fa-qr-shell {
  justify-self: center;
  width: min(12rem, 70vw);
  padding: 0.65rem;
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: 0.75rem;
  background: #ffffff;
  box-shadow: 0 0.85rem 1.8rem rgba(15, 23, 42, 0.1);
}

.gateway-admin-2fa-qr {
  display: block;
  width: 100%;
  height: auto;
}

.gateway-admin-2fa-key {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  letter-spacing: 0.04em;
  text-align: center;
}

.gateway-passkey-panel {
  display: grid;
  gap: 0.72rem;
  padding: 0.9rem;
  border: 1px solid #dbeafe;
  border-radius: 0.72rem;
  background: linear-gradient(180deg, #f8fbff 0%, #f3f8ff 100%);
  color: var(--gateway-text-on-light);
}

.gateway-passkey-panel h2,
.gateway-passkey-panel h3 {
  margin: 0;
  color: #0f172a;
  font-weight: 800;
}

.gateway-passkey-panel-challenge {
  margin-bottom: 1rem;
}

.gateway-passkey-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1rem 0;
  color: var(--bs-secondary-color);
  font-size: 0.85rem;
}

.gateway-passkey-divider::before,
.gateway-passkey-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #dbeafe;
}

.gateway-account-security {
  display: grid;
  gap: 0.7rem;
  margin: 0 0 0.7rem;
  padding: 0.82rem;
  border: 1px solid #dbeafe;
  border-radius: 0.65rem;
  background: rgba(255, 255, 255, 0.96);
  color: var(--gateway-text-on-light);
}

.gateway-account-security-header {
  display: flex;
  align-items: center;
  gap: 0.72rem;
  padding: 0.08rem 0.08rem 0.18rem;
}

.gateway-account-security-header h2 {
  margin: 0.08rem 0 0;
  color: #0f172a;
  font-size: 1.05rem;
  font-weight: 800;
}

.gateway-account-security-header p {
  margin: 0.16rem 0 0;
  color: var(--gateway-muted-on-light);
  font-size: 0.86rem;
}

.gateway-security-heading-icon,
.gateway-security-method-icon {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.65rem;
  background: #eaf3ff;
  color: #245da7;
}

.gateway-security-heading-icon svg,
.gateway-security-method-icon svg {
  width: 1.35rem;
  height: 1.35rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gateway-security-method {
  padding: 0.78rem;
  border-color: #e2e8f0;
  border-radius: 0.62rem;
  background: #fbfdff;
}

.gateway-security-method-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.68rem;
}

.gateway-security-method-header h3 {
  margin: 0;
  color: #0f172a;
  font-size: 0.98rem;
  font-weight: 800;
}

.gateway-security-method-header p {
  margin: 0.12rem 0 0;
  color: var(--gateway-muted-on-light);
  font-size: 0.8rem;
  line-height: 1.35;
}

.gateway-security-method-icon {
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 999px;
}

.gateway-security-method-icon-success {
  background: #ecfdf5;
  color: #0f766e;
}

.gateway-security-method-badge {
  border-radius: 999px;
  padding: 0.28rem 0.52rem;
  background: #eaf3ff;
  color: #245da7;
  font-size: 0.7rem;
  font-weight: 800;
}

.gateway-security-method-badge-success {
  background: #ecfdf5;
  color: #0f766e;
}

.gateway-passkey-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.68rem;
  padding-top: 0.12rem;
}

.gateway-security-method .gateway-register-label {
  margin-bottom: 0.22rem;
  font-size: 0.8rem;
  font-weight: 700;
}

.gateway-security-method .gateway-register-input {
  border-radius: 0.5rem;
  padding: 0.58rem 0.68rem;
  font-size: 0.9rem;
}

.gateway-security-method-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.gateway-security-method-actions span {
  color: var(--gateway-muted-on-light);
  font-size: 0.76rem;
}

.gateway-security-method .gateway-login-field-validation {
  min-height: 0;
  margin: 0;
  color: #b42318;
  font-size: 0.8rem;
}

.gateway-security-method .gateway-login-field-validation:empty {
  display: none;
}

.gateway-passkey-list {
  display: grid;
  gap: 0.55rem;
}

.gateway-passkey-row {
  display: grid;
  gap: 0.55rem;
  padding: 0.72rem 0.78rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.58rem;
  background: #ffffff;
}

.gateway-passkey-row > div {
  display: grid;
  gap: 0.45rem;
}

.gateway-passkey-row span {
  color: var(--gateway-muted-on-light);
  font-size: 0.78rem;
}

.gateway-passkey-row summary {
  cursor: pointer;
  list-style: none;
  color: #245da7;
  font-size: 0.82rem;
  font-weight: 700;
}

.gateway-passkey-row summary::-webkit-details-marker {
  display: none;
}

.gateway-passkey-row summary::after {
  content: " +";
}

.gateway-passkey-row details[open] summary::after {
  content: " −";
}

.gateway-passkey-manage {
  border-top: 1px solid #e2e8f0;
  padding-top: 0.5rem;
}

.gateway-passkey-manage-body {
  display: grid;
  gap: 0.9rem;
  padding: 0.72rem 0.05rem 0.08rem;
}

.gateway-passkey-manage-group {
  display: grid;
  gap: 0.5rem;
}

.gateway-passkey-manage-group .btn {
  justify-self: start;
}

.gateway-passkey-manage .gateway-register-label {
  margin-bottom: 0.22rem;
  font-size: 0.8rem;
  font-weight: 700;
}

.gateway-passkey-manage .gateway-register-input {
  border-radius: 0.5rem;
  padding: 0.58rem 0.68rem;
  font-size: 0.9rem;
}

.gateway-passkey-remove-group {
  gap: 0.55rem;
  border-top: 1px solid #e2e8f0;
  padding-top: 0.82rem;
}

.gateway-passkey-remove-heading {
  display: grid;
  gap: 0.08rem;
}

.gateway-passkey-remove-heading strong {
  color: #0f172a;
  font-size: 0.86rem;
}

.gateway-passkey-remove-heading span {
  color: var(--gateway-muted-on-light);
  font-size: 0.76rem;
}

.gateway-passkey-manage .gateway-login-field-validation {
  min-height: 0;
  margin: 0;
  color: #b42318;
  font-size: 0.8rem;
}

.gateway-passkey-manage .gateway-login-field-validation:empty {
  display: none;
}

.gateway-authenticator-settings {
  display: grid;
  gap: 0.62rem;
}

.gateway-security-method-manage {
  border-top: 1px solid #e2e8f0;
  padding-top: 0.58rem;
}

.gateway-security-method-manage summary {
  cursor: pointer;
  list-style: none;
  color: #245da7;
  font-size: 0.82rem;
  font-weight: 700;
}

.gateway-security-method-manage summary::-webkit-details-marker {
  display: none;
}

.gateway-security-method-manage summary::after {
  content: " +";
}

.gateway-security-method-manage[open] summary::after {
  content: " −";
}

.gateway-security-remove-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 0.6rem;
  margin-top: 0.58rem;
  padding-top: 0;
  border-top: 0;
}

.gateway-authenticator-enable-form {
  display: grid;
  gap: 0.55rem;
}

@media (max-width: 640px) {
  .gateway-passkey-field-grid,
  .gateway-security-remove-form {
    grid-template-columns: 1fr;
  }

  .gateway-security-method-header {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .gateway-security-method-badge {
    grid-column: 2;
    justify-self: start;
  }

  .gateway-security-method-actions {
    align-items: flex-start;
    flex-direction: column;
  }
}

.gateway-register-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.gateway-login-screen-guest .gateway-register-grid {
  gap: 0.65rem;
}

.gateway-password-grid {
  row-gap: 0.08rem;
}

.gateway-password-input-column {
  min-width: 0;
}

.gateway-password-grid-help,
.gateway-password-grid-error {
  grid-column: 1 / -1;
}

.gateway-password-grid-help {
  margin-top: -0.18rem;
}

.gateway-password-field-error,
.gateway-password-grid-error {
  min-height: 0;
  margin-top: 0;
}

.gateway-password-grid-error {
  line-height: 1.25;
}

.gateway-password-policy-error + .gateway-password-grid-help {
  margin-top: 0;
}

.gateway-register-label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--gateway-text-on-light);
  font-size: 0.9rem;
}

.gateway-login-screen-guest .gateway-register-label {
  margin-bottom: 0.25rem;
  font-size: 0.84rem;
  font-weight: 700;
}

.gateway-register-optional {
  margin-left: 0.25rem;
  color: var(--gateway-muted-on-light);
  font-size: 0.78rem;
  font-weight: 500;
}

.gateway-register-input {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.42);
  border-radius: 0.55rem;
  padding: 0.75rem 0.85rem;
  background: #ffffff;
  color: var(--gateway-text-on-light);
  outline: 0;
}

.gateway-login-screen-guest .gateway-register-input {
  border-radius: 0.65rem;
  padding: 0.62rem 0.72rem;
  font-size: 0.94rem;
}

.gateway-register-input:focus {
  border-color: rgba(56, 115, 203, 0.62);
  box-shadow: 0 0 0 0.22rem rgba(56, 115, 203, 0.12);
}

.gateway-register-textarea {
  min-height: 6rem;
  resize: vertical;
}

.gateway-account-request-honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.gateway-activation-link {
  display: inline-flex;
  justify-content: center;
  padding: 0.78rem 1rem;
  font-size: 1rem;
  letter-spacing: 0;
  text-decoration: none;
}

.gateway-activation-card .gateway-login-subtitle {
  max-width: 37rem;
  margin: 0.7rem auto 1.2rem;
  line-height: 1.45;
}

.gateway-activation-instruction {
  display: block;
}

.gateway-activation-form {
  display: grid;
  gap: 0.95rem;
  margin-top: 0;
  padding-top: 1.1rem;
}

.gateway-activation-form .gateway-login-field-validation:empty {
  display: none;
}

.gateway-activation-form .gateway-password-requirements {
  margin-top: 0.42rem;
}

.gateway-activation-form .gateway-register-submit {
  margin-top: 0.1rem;
}

.gateway-activation-unavailable {
  display: grid;
  gap: 1rem;
}

.gateway-activation-unavailable .gateway-login-subtitle {
  margin: -0.2rem auto 0.1rem;
}

.gateway-activation-request-form {
  gap: 0.75rem;
  padding-top: 1rem;
}

.gateway-activation-support {
  margin: 0.1rem 0 0;
  color: var(--gateway-muted-on-light);
  font-size: 0.92rem;
  line-height: 1.45;
  text-align: center;
}

.gateway-activation-support a {
  font-weight: 650;
}

.gateway-activation-return {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  border: 1px solid rgba(56, 115, 203, 0.32);
  border-radius: 0.7rem;
  padding: 0.65rem 1rem;
  background: #ffffff;
  color: #2563eb;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
}

.gateway-activation-return:hover,
.gateway-activation-return:focus-visible {
  border-color: rgba(56, 115, 203, 0.55);
  background: #f4f8ff;
  color: #1d4ed8;
}

.gateway-password-shell {
  position: relative;
}

.gateway-password-shell .gateway-register-input {
  padding-right: 3.2rem;
}

.gateway-password-requirements {
  margin-top: 0.3rem;
  color: var(--gateway-muted-on-light);
  font-size: 0.78rem;
  line-height: 1.35;
}

.gateway-password-requirements .is-unsatisfied {
  color: #b42318;
  font-weight: 650;
}

.gateway-admin-password-requirements .is-unsatisfied {
  color: #b42318;
  font-weight: 650;
}

.gateway-password-toggle-inline {
  position: absolute;
  top: 50%;
  right: 0.45rem;
  width: 2.2rem;
  height: 2.2rem;
  transform: translateY(-50%);
}

.gateway-login-screen-guest .gateway-password-toggle-inline {
  width: 1.95rem;
  height: 1.95rem;
}

.gateway-register-submit {
  width: 100%;
  border: 1px solid rgba(94, 234, 212, 0.55);
  border-radius: 0.55rem;
  padding: 0.8rem 1rem;
  background: rgba(20, 184, 166, 0.18);
  color: #ccfbf1;
  font-weight: 700;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.gateway-login-screen-guest .gateway-register-submit {
  margin-top: 0.15rem;
  border-radius: 0.7rem;
  padding: 0.72rem 1rem;
  font-size: 1rem;
}

.gateway-register-submit:hover,
.gateway-register-submit:focus-visible {
  background: rgba(20, 184, 166, 0.32);
  color: #ffffff;
}

.course-create-card {
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.gateway-course-content {
  width: min(100%, 72rem);
  display: grid;
  gap: 1.5rem;
  animation: gateway-login-rise 680ms ease-out both;
}

.gateway-courses-content,
.gateway-details-content,
.gateway-admin-content,
.gateway-privacy-content,
.gateway-legal-content {
  width: min(100%, 78rem);
}

.gateway-course-hero {
  position: relative;
  padding: 1.75rem 1.5rem;
  border: 1px solid rgba(191, 219, 254, 0.72);
  border-radius: 1.6rem;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 1rem 2.2rem rgba(15, 23, 42, 0.12);
}

.gateway-course-hero h1 {
  margin-bottom: 0.6rem;
  min-width: 0;
  color: #0f172a;
  text-shadow: none;
}

.gateway-course-hero h1 a {
  max-width: 100%;
  color: inherit;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.gateway-details-hero h1 a {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.gateway-course-hero h1 a:hover,
.gateway-course-hero h1 a:focus-visible {
  color: #1d4ed8;
  text-decoration: none;
}

.gateway-course-hero p {
  margin: 0;
  color: #475569;
  font-size: 1.05rem;
}

.gateway-course-hero a {
  color: #1d4ed8;
}

.gateway-course-list {
  padding: 0.5rem 0 0;
}

.gateway-course-list h2 {
  margin-bottom: 1.25rem;
  color: #0f172a;
  text-shadow: none;
}

.gateway-course-feedback {
  padding: 0.95rem 1.1rem;
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.24);
  box-shadow: 0 1rem 2rem rgba(15, 23, 42, 0.18);
}

.gateway-course-feedback-success {
  background: #ecfdf5;
  border-color: rgba(20, 184, 166, 0.28);
  color: #065f46;
}

.gateway-course-feedback-error {
  background: #fef2f2;
  border-color: rgba(248, 113, 113, 0.42);
  color: #991b1b;
}

.gateway-course-feedback-warning {
  background: #fffbeb;
  border-color: rgba(245, 158, 11, 0.36);
  color: #92400e;
}

.gateway-course-selector-panel,
.gateway-course-card {
  border: 1px solid rgba(219, 234, 254, 0.24);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1rem 2.2rem rgba(15, 23, 42, 0.16);
}

.gateway-courses-hero {
  isolation: isolate;
  overflow: hidden;
  padding: 1.05rem 1.25rem 1.12rem;
  border: 1px solid rgba(56, 115, 203, 0.28);
  border-radius: 1.15rem;
  background:
    linear-gradient(108deg, rgba(56, 115, 203, 0.09), rgba(79, 143, 224, 0.025) 45%, rgba(219, 234, 254, 0.32)),
    rgba(248, 251, 255, 0.97);
  box-shadow: 0 0.72rem 1.65rem rgba(15, 42, 99, 0.09);
}

.gateway-courses-hero::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 50%;
  z-index: 0;
  width: min(10rem, 38%);
  height: 2px;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(90deg, transparent, #4f8fe0 34%, #38bdf8 66%, transparent);
  opacity: 0.72;
  transform: translateX(-50%);
}

.gateway-courses-hero h1 {
  position: relative;
  z-index: 1;
  margin-bottom: 0;
  padding-inline: 2.5rem;
  color: #102a63;
  font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  font-size: clamp(1.65rem, 3.6vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.006em;
  line-height: 1.08;
}

.doveline-inline-li,
.doveline-inline-ll {
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  width: 0.42em;
  height: 0.8em;
  margin: 0 0.042em 0 0.035em;
  gap: 0.100em;
  transform: translateY(0.0em);
}

.doveline-inline-li > span,
.doveline-inline-ll > span {
  display: block;
  flex: 1 1 0;
  height: 100%;
  border-radius: 0.035em;
  background: linear-gradient(180deg, #3873cb 0%, #245da7 34%, #102a63 100%);
}

.doveline-inline-li > .doveline-inline-i {
  height: 67%;
}

.gateway-courses-hero:not(.gateway-admin-hall-hero) h1 {
  letter-spacing: 0.014em;
}

.doveline-library-y {
  margin-left: 0.025em;
}

.gateway-course-browser-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 0.32rem 0.72rem;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 0.78rem;
  font-weight: 800;
}

.gateway-course-selector-panel .form-label,
.gateway-course-selector-panel .text-muted,
.gateway-course-selector-panel .form-text {
  color: #1e3a8a !important;
}

.gateway-course-selector-panel .form-label {
  font-weight: 700;
}

.gateway-course-browser-controls {
  display: grid;
  grid-template-columns: minmax(16rem, 1fr) auto;
  column-gap: 1rem;
  row-gap: 0.7rem;
  align-items: end;
}

.gateway-course-search-shell {
  min-width: 0;
}

.gateway-course-search-header {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
}

.gateway-course-search-header .form-label {
  margin-bottom: 0;
}

.gateway-course-filter-shell {
  display: grid;
  justify-items: end;
  gap: 0.5rem;
}

.gateway-course-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.4rem;
}

.gateway-course-filter-tab {
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-radius: 999px;
  padding: 0.42rem 0.72rem;
  background: #ffffff;
  color: #334155;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.gateway-course-filter-tab:hover,
.gateway-course-filter-tab:focus-visible,
.gateway-course-filter-tab.is-active {
  border-color: #93c5fd;
  background: #eff6ff;
  color: #1d4ed8;
  transform: translateY(-1px);
}

.gateway-admin-dashboard-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.gateway-admin-dashboard-tabs .gateway-course-filter-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.gateway-admin-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  min-height: 1.35rem;
  border-radius: 999px;
  padding: 0 0.38rem;
  background: #3873cb;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
}

.gateway-admin-dashboard-controls {
  align-items: end;
}

.gateway-course-open-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.85rem;
  color: #334155;
  font-size: 0.86rem;
  font-weight: 700;
}

.gateway-course-open-toggle input {
  width: 1rem;
  height: 1rem;
  accent-color: #2563eb;
}

.gateway-course-open-toggle[hidden] {
  display: none;
}

.gateway-course-results {
  display: grid;
  gap: 0.6rem;
  margin-top: 1rem;
}

.gateway-course-selector-empty {
  border: 1px dashed #93c5fd;
  border-radius: 1rem;
  padding: 1.15rem 1.25rem;
  color: #334155;
  background: #f8fbff;
  text-align: center;
}

.gateway-course-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  min-width: 0;
  border: 1px solid rgba(191, 219, 254, 0.78);
  border-radius: 0.7rem;
  padding: 0.85rem 0.95rem;
  background: rgba(255, 255, 255, 0.86);
  color: #0f172a;
  box-shadow: 0 0.35rem 0.85rem rgba(15, 23, 42, 0.05);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.gateway-course-row:has(.gateway-course-row-menu[open]) {
  z-index: 500;
}

.gateway-course-row:hover,
.gateway-course-row:focus-within {
  border-color: #93c5fd;
  background: #f8fbff;
  transform: translateY(-1px);
  box-shadow: 0 0.65rem 1.1rem rgba(15, 23, 42, 0.1);
}

.gateway-course-row-main {
  min-width: 0;
}

.gateway-course-row-title {
  margin: 0;
  min-width: 0;
  max-width: 100%;
  color: #0f172a;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.25;
}

.gateway-course-row-title a,
.gateway-course-row-title span {
  display: -webkit-box;
  max-width: 100%;
  overflow: hidden;
  color: inherit;
  overflow-wrap: anywhere;
  text-decoration: none;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.gateway-course-row-title a:hover,
.gateway-course-row-title a:focus-visible {
  color: #0369a1;
  text-decoration: none;
}

.gateway-course-row-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.28rem;
  color: #64748b;
  font-size: 0.84rem;
}

.gateway-course-row-meta span {
  font-weight: 700;
}

.gateway-course-row-meta strong {
  color: #334155;
  font-weight: 700;
}

.gateway-admin-course-row-meta {
  gap: 0.45rem 0.85rem;
}

.gateway-admin-course-row-meta span:not(:first-child) {
  color: #475569;
}

.gateway-admin-course-row-meta .gateway-admin-course-ai-status {
  border-radius: 999px;
  padding: 0.08rem 0.48rem;
  font-size: 0.76rem;
}

.gateway-admin-course-ai-status-unlocked {
  background: #dcfce7;
  color: #166534 !important;
}

.gateway-admin-course-ai-status-partial {
  background: #fef3c7;
  color: #854d0e !important;
}

.gateway-admin-course-ai-status-locked {
  background: #fee2e2;
  color: #991b1b !important;
}

.gateway-admin-user-ai-lock-status {
  border-radius: 999px;
  padding: 0.08rem 0.48rem;
  background: #fee2e2;
  color: #991b1b !important;
  font-size: 0.76rem;
}

.gateway-admin-user-ai-usage {
  color: #1e3a8a !important;
}

.gateway-admin-user-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.gateway-admin-user-row-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
}

.gateway-admin-inline-user-panel {
  display: grid;
  gap: 1rem;
  min-width: 0;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #dbeafe;
}

.gateway-admin-inline-user-panel[hidden] {
  display: none !important;
}

.gateway-course-row-description {
  margin: 0.35rem 0 0;
  color: #475569;
  font-size: 0.94rem;
  line-height: 1.35;
}

.gateway-course-card {
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.gateway-course-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 1.2rem 2.6rem rgba(15, 23, 42, 0.18);
}

.gateway-course-card-locked {
  border-color: rgba(148, 163, 184, 0.36) !important;
  background: rgba(248, 250, 252, 0.95) !important;
}

.gateway-course-card .card-body {
  color: #475569;
}

.gateway-course-card-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.55rem;
  min-width: 0;
}

.gateway-course-card-header .gateway-course-row-title {
  flex: 1 1 auto;
}

.gateway-course-card .card-title a {
  color: #0f172a;
  text-decoration: none;
}

.gateway-course-card .card-title a:hover,
.gateway-course-card .card-title a:focus-visible {
  color: #0369a1;
}

.gateway-course-card .card-text {
  color: #475569;
}

.gateway-course-selected-card .card-title {
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.gateway-course-selected-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  margin-top: 1rem;
}

.gateway-course-selected-meta-item {
  display: grid;
  gap: 0.18rem;
}

.gateway-course-selected-meta-label {
  color: #1e3a8a;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.gateway-course-selected-meta-value {
  color: #0f172a;
  font-weight: 600;
}

.gateway-course-card-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.gateway-course-row-menu {
  position: relative;
  z-index: 2;
}

.gateway-course-row-menu[open] {
  z-index: 600;
}

.gateway-course-row-menu summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid rgba(148, 163, 184, 0.36);
  border-radius: 999px;
  background: #ffffff;
  color: #64748b;
  cursor: pointer;
  list-style: none;
  user-select: none;
  -webkit-user-select: none;
}

.gateway-course-row-menu summary::-webkit-details-marker {
  display: none;
}

.gateway-course-row-menu summary:hover,
.gateway-course-row-menu summary:focus-visible {
  border-color: rgba(56, 115, 203, 0.42);
  background: #eef5ff;
  color: #245da7;
  outline: none;
}

.gateway-course-row-menu summary svg {
  width: 1.05rem;
  height: 1.05rem;
  fill: currentColor;
}

.gateway-course-row-menu-popover {
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  z-index: 650;
  display: grid;
  min-width: 10rem;
  padding: 0.3rem;
  border: 1px solid #dbeafe;
  border-radius: 0.65rem;
  background: #ffffff;
  box-shadow: 0 0.9rem 1.8rem rgba(15, 23, 42, 0.16);
  user-select: none;
  -webkit-user-select: none;
}

.gateway-course-row-menu-popover button {
  width: 100%;
  border: 0;
  border-radius: 0.45rem;
  padding: 0.48rem 0.58rem;
  background: transparent;
  color: #b91c1c;
  font-size: 0.88rem;
  font-weight: 700;
  text-align: left;
}

.gateway-course-row-menu-popover a {
  width: 100%;
  border-radius: 0.45rem;
  padding: 0.48rem 0.58rem;
  color: #334155;
  font-size: 0.88rem;
  font-weight: 700;
  text-align: left;
  text-decoration: none;
}

.gateway-course-row-menu-popover button:hover,
.gateway-course-row-menu-popover button:focus-visible,
.gateway-course-row-menu-popover a:hover,
.gateway-course-row-menu-popover a:focus-visible {
  background: #fef2f2;
  color: #991b1b;
  outline: none;
}

.gateway-admin-request-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.gateway-admin-account-request-tabs {
  margin: 1rem 0 0.85rem;
}

.gateway-admin-request-groups {
  display: grid;
  gap: 1rem;
}

.gateway-admin-request-group {
  border: 1px solid rgba(191, 219, 254, 0.78);
  border-radius: 0.75rem;
  padding: 0.85rem;
  background: #ffffff;
}

.gateway-admin-request-group-copy {
  color: #475569;
  font-size: 0.92rem;
  line-height: 1.45;
}

.gateway-admin-email-delivery-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.8rem;
}

.gateway-admin-email-delivery-summary span {
  display: inline-flex;
  align-items: baseline;
  gap: 0.28rem;
  border: 1px solid #cbdcf4;
  border-radius: 999px;
  padding: 0.32rem 0.62rem;
  background: #f5f9ff;
  color: #38516f;
  font-size: 0.82rem;
  font-weight: 700;
}

.gateway-admin-email-delivery-summary span.is-failed {
  border-color: #fecaca;
  background: #fff1f2;
  color: #9f2420;
}

.gateway-admin-email-failure-card {
  border-color: #fecaca;
  background: #fffafa;
}

.gateway-leave-course-dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1060;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(15, 23, 42, 0.42);
}

.gateway-leave-course-dialog-backdrop[hidden] {
  display: none !important;
}

.gateway-leave-course-dialog {
  width: min(30rem, 100%);
  max-height: calc(100vh - 2.5rem);
  overflow: auto;
  border: 1px solid #bfdbfe;
  border-radius: 0.75rem;
  padding: 1rem;
  background: #ffffff;
  color: var(--gateway-text-on-light);
  box-shadow: 0 1.5rem 3rem rgba(15, 23, 42, 0.22);
}

.gateway-leave-course-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.gateway-leave-course-dialog-header h2 {
  margin: 0;
  color: #0f172a;
  font-size: 1rem;
  font-weight: 800;
}

.gateway-leave-course-dialog p {
  margin: 0;
  color: #475569;
  line-height: 1.45;
}

.gateway-leave-course-dialog-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid rgba(148, 163, 184, 0.45);
  border-radius: 999px;
  background: #ffffff;
  color: #475569;
}

.gateway-leave-course-dialog-close svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.gateway-leave-course-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.55rem;
  margin-top: 1rem;
}

.gateway-add-member-dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1060;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(15, 23, 42, 0.42);
}

.gateway-add-member-dialog-backdrop[hidden] {
  display: none !important;
}

.gateway-add-member-dialog {
  width: min(32rem, 100%);
  max-height: calc(100vh - 2.5rem);
  overflow: auto;
  border: 1px solid #bfdbfe;
  border-radius: 0.75rem;
  padding: 1rem;
  background: #ffffff;
  color: var(--gateway-text-on-light);
  box-shadow: 0 1.5rem 3rem rgba(15, 23, 42, 0.22);
}

.gateway-add-member-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.gateway-add-member-dialog-header h2 {
  margin: 0;
  color: #0f172a;
  font-size: 1rem;
  font-weight: 800;
}

.gateway-add-member-dialog-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid rgba(148, 163, 184, 0.45);
  border-radius: 999px;
  background: #ffffff;
  color: #475569;
}

.gateway-add-member-dialog-close svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.gateway-add-member-empty {
  margin: 0.7rem 0 0;
  color: #64748b;
  font-size: 0.88rem;
  font-weight: 600;
}

.gateway-add-member-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.55rem;
  margin-top: 1rem;
}

.gateway-course-key-form {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.gateway-course-key-form .form-control {
  width: min(11rem, 32vw);
}

.gateway-course-key-error {
  flex: 0 0 100%;
  color: #991b1b;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: left;
}

.gateway-course-access-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.gateway-course-access-badge-instructor {
  background: rgba(124, 58, 237, 0.14);
  color: #6d28d9;
}

.gateway-course-access-badge-open {
  background: rgba(8, 145, 178, 0.14);
  color: #0f766e;
}

.gateway-course-access-badge-published {
  background: rgba(22, 163, 74, 0.14);
  color: #166534;
}

.gateway-course-access-badge-draft {
  background: rgba(217, 119, 6, 0.16);
  color: #92400e;
}

.gateway-course-access-badge-granted {
  background: rgba(14, 116, 144, 0.12);
  color: #0f766e;
}

.gateway-course-access-badge-pending {
  background: rgba(234, 179, 8, 0.18);
  color: #854d0e;
}

.gateway-course-access-badge-key {
  gap: 0.28rem;
  background: rgba(234, 179, 8, 0.18);
  color: #854d0e;
}

.gateway-course-access-badge-key svg {
  width: 0.88rem;
  height: 0.88rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gateway-course-access-badge-rejected {
  background: rgba(220, 38, 38, 0.14);
  color: #991b1b;
}

.gateway-course-access-badge-locked {
  background: rgba(148, 163, 184, 0.18);
  color: #475569;
}

.gateway-course-create-panel {
  margin-top: 0.4rem;
}

.gateway-course-page {
  --gateway-form-caption-color: #1e3a8a;
}

.gateway-course-create-panel .h4,
.gateway-course-create-panel .form-label,
.gateway-course-create-panel .text-muted,
.gateway-course-create-panel .form-text {
  color: #1e3a8a !important;
}

.gateway-course-create-panel .form-label {
  font-weight: 700;
}

.gateway-course-create-panel .form-select[multiple] {
  min-height: 11rem;
}

.gateway-course-page .course-video-library .h4,
.gateway-course-page .course-video-library .form-label,
.gateway-course-page .course-video-library .form-text,
.gateway-course-page .course-video-library .text-muted,
.gateway-course-page .course-video-library summary,
.gateway-course-page .course-video-empty-state .text-muted,
.gateway-course-page .bookmark-toolbar .h5,
.gateway-course-page .bookmark-toolbar .form-label,
.gateway-course-page .bookmark-toolbar .form-text,
.gateway-course-page .bookmark-toolbar .text-muted,
.gateway-course-page .course-discussion .h4,
.gateway-course-page .course-discussion .form-label,
.gateway-course-page .course-discussion .form-text,
.gateway-course-page .course-discussion .text-muted {
  color: var(--gateway-form-caption-color) !important;
}

.gateway-course-page .course-video-library .form-label,
.gateway-course-page .bookmark-toolbar .form-label,
.gateway-course-page .course-discussion .form-label {
  font-weight: 700;
}

.gateway-admin-page .gateway-course-content {
  width: min(100%, 78rem);
}

.gateway-details-hero p {
  max-width: 46rem;
  margin-inline: auto;
}

.gateway-details-hero {
  isolation: isolate;
  overflow: hidden;
  display: grid;
  align-items: center;
  min-height: 6.75rem;
  border-color: rgba(56, 115, 203, 0.28);
  border-radius: 1.15rem;
  background:
    linear-gradient(108deg, rgba(56, 115, 203, 0.09), rgba(79, 143, 224, 0.025) 45%, rgba(219, 234, 254, 0.32)),
    rgba(248, 251, 255, 0.97);
  box-shadow: 0 0.72rem 1.65rem rgba(15, 42, 99, 0.09);
}

.gateway-details-hero::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 50%;
  z-index: 0;
  width: min(10rem, 38%);
  height: 2px;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(90deg, transparent, #4f8fe0 34%, #38bdf8 66%, transparent);
  opacity: 0.72;
  transform: translateX(-50%);
}

.gateway-details-hero-copy {
  position: relative;
  z-index: 1;
}

.gateway-details-hero h1 {
  max-width: 100%;
  margin-inline: auto;
  color: #102a63;
  font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  font-weight: 700;
  letter-spacing: -0.006em;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.gateway-details-screen-watch {
  padding-top: 1.5rem;
}

.gateway-courses-screen,
.gateway-details-screen {
  padding-top: 1.5rem;
}

.gateway-details-hero-overview {
  padding: 0.95rem 1.25rem 1.05rem;
}

.gateway-details-hero-overview .gateway-details-hero-copy {
  padding-inline: clamp(0rem, 10vw, 8rem);
}

.gateway-details-hero-overview h1 {
  margin-bottom: 0.25rem;
  font-size: clamp(1.65rem, 3.6vw, 2.4rem);
}

.gateway-details-instructor {
  color: #52627a !important;
  font-size: clamp(0.95rem, 1.8vw, 1.08rem);
  font-weight: 600;
}

.gateway-details-hero-watch {
  padding: 0.95rem 1.25rem 1.05rem;
}

.gateway-details-hero-watch .gateway-details-hero-copy {
  max-width: 62rem;
  margin-inline: auto;
  padding-inline: clamp(5rem, 9vw, 7rem);
}

.gateway-details-hero.has-student-preview-toggle .gateway-details-hero-copy {
  padding-inline: clamp(9rem, 16vw, 12rem);
}

.gateway-details-hero.has-hero-actions .gateway-details-hero-copy {
  padding-inline: clamp(7rem, 14vw, 11rem);
}

.gateway-details-hero.has-credit-balances {
  padding-bottom: 1.05rem;
}

.gateway-details-hero.has-transcription-credit-balance {
  min-height: 7.35rem;
}

.gateway-details-hero.has-credit-balances .gateway-details-hero-copy {
  padding-inline: clamp(12rem, 21vw, 16rem);
}

.gateway-course-credit-balances {
  position: absolute;
  right: 1rem;
  bottom: 0.7rem;
  z-index: 2;
  display: grid;
  justify-items: end;
  gap: 0.08rem;
  max-width: calc(100% - 2rem);
  color: #334155;
  text-align: right;
}

.gateway-course-credit-balances > div {
  display: grid;
  gap: 0.05rem;
}

.gateway-course-credit-balances strong {
  color: #123067;
  font-size: 0.8rem;
  white-space: nowrap;
}

.gateway-course-credit-balances .gateway-course-credit-reset {
  max-width: 18rem;
  color: #52627a;
  font-size: 0.68rem;
  line-height: 1.25;
}

.gateway-details-hero-watch h1 {
  max-width: 46rem;
  margin-bottom: 0;
  font-size: clamp(1.55rem, 3.2vw, 2.2rem);
}

.gateway-details-course-context {
  max-width: 40rem;
  display: -webkit-box;
  overflow: hidden;
  margin-bottom: 0.35rem !important;
  color: #2563a8 !important;
  font-size: clamp(0.76rem, 1.4vw, 0.88rem) !important;
  font-weight: 800;
  letter-spacing: 0.075em;
  overflow-wrap: anywhere;
  text-transform: uppercase;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.gateway-details-back-link,
.gateway-details-hero-actions {
  z-index: 2;
}

.gateway-details-back-link {
  position: absolute;
  top: 0.85rem;
  left: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  max-width: calc(100% - 2rem);
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 999px;
  padding: 0.38rem 0.7rem;
  background: #eff6ff;
  color: #1d4ed8 !important;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.gateway-details-back-link:hover,
.gateway-details-back-link:focus-visible {
  border-color: rgba(37, 99, 235, 0.34);
  background: #dbeafe;
  color: #123067 !important;
  text-decoration: none;
}

.gateway-student-preview-toggle {
  position: absolute;
  top: 0.85rem;
  right: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  max-width: calc(100% - 2rem);
  border: 1px solid rgba(37, 99, 235, 0.24);
  border-radius: 999px;
  padding: 0.38rem 0.72rem;
  background: #ffffff;
  color: #1d4ed8 !important;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 0.35rem 0.85rem rgba(37, 99, 235, 0.1);
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.gateway-details-hero-actions {
  position: absolute;
  top: 0.85rem;
  right: 1rem;
  display: flex;
  width: max-content;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  max-width: calc(100% - 2rem);
}

.gateway-details-hero-actions .gateway-student-preview-toggle {
  position: static;
  flex: 0 0 auto;
  white-space: nowrap;
}

.gateway-details-hero-actions .gateway-student-preview-toggle:only-child {
  min-width: 11.75rem;
  padding-inline: 0.95rem;
}

.gateway-course-notification-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.15rem;
  flex: 0 0 auto;
  border: 1px solid rgba(37, 99, 235, 0.24);
  border-radius: 999px;
  background: #ffffff;
  color: #1d4ed8;
  box-shadow: 0 0.35rem 0.85rem rgba(37, 99, 235, 0.1);
}

.gateway-course-notification-button svg {
  width: 1.05rem;
  height: 1.05rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.gateway-course-notification-button:hover,
.gateway-course-notification-button:focus-visible {
  border-color: rgba(37, 99, 235, 0.48);
  background: #eff6ff;
  color: #123067;
  outline: none;
  box-shadow: 0 0.45rem 1rem rgba(37, 99, 235, 0.16);
}

.gateway-course-notification-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1800;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.56);
  backdrop-filter: blur(2px);
}

.gateway-course-notification-backdrop[hidden] {
  display: none;
}

.gateway-course-notification-dialog {
  width: min(100%, 41rem);
  max-height: min(90dvh, 48rem);
  overflow: auto;
  border: 1px solid #bfdbfe;
  border-radius: 1.25rem;
  padding: 1.15rem;
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 1.5rem 4rem rgba(15, 23, 42, 0.3);
}

.gateway-course-notification-dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.1rem 0.1rem 0.9rem;
}

.gateway-course-notification-dialog-header h2 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
}

.gateway-course-notification-dialog-header p {
  margin: 0.25rem 0 0;
  color: #475569;
  font-size: 0.92rem;
}

.gateway-course-notification-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  flex: 0 0 auto;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #f8fafc;
  color: #334155;
  font-size: 1.35rem;
  line-height: 1;
}

.gateway-course-notification-close:hover,
.gateway-course-notification-close:focus-visible {
  border-color: #93c5fd;
  background: #eff6ff;
  color: #1d4ed8;
  outline: none;
}

.gateway-course-notification-rows {
  overflow: hidden;
  border: 1px solid #cbd5e1;
  border-radius: 0.9rem;
}

.gateway-course-notification-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(8.5rem, 10rem);
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 0.95rem;
  background: #ffffff;
}

.gateway-course-notification-row + .gateway-course-notification-row {
  border-top: 1px solid #e2e8f0;
}

.gateway-course-notification-row strong,
.gateway-course-notification-row small {
  display: block;
}

.gateway-course-notification-row strong {
  color: #172033;
  font-size: 0.95rem;
}

.gateway-course-notification-row small {
  margin-top: 0.15rem;
  color: #64748b;
  font-size: 0.8rem;
}

.gateway-course-notification-row .form-select {
  min-width: 0;
  color: #172033;
  font-weight: 700;
}

.gateway-course-notification-feedback {
  margin: 0.8rem 0 0;
  border-radius: 0.7rem;
  padding: 0.65rem 0.75rem;
  background: #ecfdf5;
  color: #166534;
  font-size: 0.9rem;
  font-weight: 700;
}

.gateway-course-notification-feedback.is-error {
  background: #fef2f2;
  color: #991b1b;
}

.gateway-course-notification-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.65rem;
  padding-top: 1rem;
}

.gateway-student-preview-toggle svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.gateway-student-preview-toggle:hover,
.gateway-student-preview-toggle:focus-visible {
  border-color: rgba(37, 99, 235, 0.48);
  background: #eff6ff;
  color: #123067 !important;
  text-decoration: none;
  box-shadow: 0 0.45rem 1rem rgba(37, 99, 235, 0.16);
  outline: none;
}

.gateway-student-preview-toggle.is-active {
  border-color: rgba(37, 99, 235, 0.55);
  background: #2563eb;
  color: #ffffff !important;
  box-shadow: 0 0.5rem 1.1rem rgba(37, 99, 235, 0.24);
}

.gateway-student-preview-toggle.is-active:hover,
.gateway-student-preview-toggle.is-active:focus-visible {
  background: #1d4ed8;
  color: #ffffff !important;
}

.gateway-details-screen.is-student-preview .gateway-details-hero {
  border-color: rgba(37, 99, 235, 0.38);
  box-shadow: 0 1rem 2.2rem rgba(37, 99, 235, 0.14);
}

.gateway-admin-hero p {
  max-width: 42rem;
  margin-inline: auto;
}

.gateway-admin-feedback {
  padding: 0.95rem 1.15rem;
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(15, 23, 42, 0.72);
  color: #e2e8f0;
  box-shadow: 0 1rem 2rem rgba(15, 23, 42, 0.18);
}

.gateway-admin-feedback ul {
  margin-bottom: 0;
}

.gateway-admin-feedback-success {
  border-color: rgba(94, 234, 212, 0.3);
  background: rgba(20, 184, 166, 0.16);
  color: #d1fae5;
}

.gateway-admin-feedback-error {
  border-color: rgba(248, 113, 113, 0.3);
  background: rgba(127, 29, 29, 0.3);
  color: #fee2e2;
}

.gateway-admin-feedback-warning {
  border-color: rgba(251, 191, 36, 0.45);
  background: rgba(146, 64, 14, 0.22);
  color: #fef3c7;
}

.gateway-admin-create-panel,
.gateway-admin-users-panel {
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.gateway-admin-page .form-label {
  color: #1e3a8a;
  font-weight: 700;
}

.gateway-admin-page .h4,
.gateway-admin-page .h5,
.gateway-admin-page .form-text,
.gateway-admin-page .text-muted,
.gateway-admin-page .gateway-admin-panel-copy,
.gateway-admin-page .gateway-admin-form-text {
  color: #1e3a8a !important;
}

.gateway-admin-page .gateway-admin-user-name-row h3 {
  color: #1e3a8a;
}

.gateway-admin-page .text-danger {
  display: inline-block;
  margin-top: 0.3rem;
}

.gateway-admin-page .form-control,
.gateway-admin-page .form-select {
  color: var(--gateway-text-on-light);
  background-color: #ffffff;
}

.gateway-admin-page .form-control::placeholder {
  color: var(--gateway-placeholder-on-light);
  opacity: 1;
}

.gateway-log-viewer-actions {
  display: flex;
  align-items: end;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.gateway-log-viewer-output {
  margin-top: 1rem;
  padding: 1rem;
  min-height: 18rem;
  border: 1px solid #dbeafe;
  border-radius: 1rem;
  background: #eff6ff;
  color: #0f172a;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-x: auto;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.32);
}

.gateway-audit-log-panel {
  color: var(--gateway-text-on-light);
}

.gateway-audit-log-actions,
.gateway-audit-log-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: flex-end;
}

.gateway-audit-filter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1rem;
}

.gateway-audit-filter-submit {
  display: flex;
  align-items: flex-end;
  gap: 0.45rem;
}

.gateway-audit-log-meta {
  justify-content: space-between;
  margin-top: 1rem;
  color: #475569;
  font-size: 0.86rem;
  font-weight: 700;
}

.gateway-audit-log-list {
  display: grid;
  gap: 0.45rem;
  margin-top: 1rem;
}

.gateway-audit-log-row {
  border: 1px solid rgba(191, 219, 254, 0.78);
  border-radius: 0.7rem;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 0.35rem 0.85rem rgba(15, 23, 42, 0.05);
  overflow: hidden;
}

.gateway-audit-log-row summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.72rem 0.85rem;
  cursor: pointer;
  list-style: none;
}

.gateway-audit-log-row summary::-webkit-details-marker {
  display: none;
}

.gateway-audit-log-row summary:hover,
.gateway-audit-log-row summary:focus-visible {
  background: #f8fbff;
}

.gateway-audit-outcome {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 5.25rem;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  padding: 0.26rem 0.58rem;
  background: #eff6ff;
  color: #245da7;
  font-size: 0.76rem;
  font-weight: 800;
}

.gateway-audit-outcome-failed,
.gateway-audit-outcome-blocked {
  border-color: #fecaca;
  background: #fef2f2;
  color: #991b1b;
}

.gateway-audit-main {
  display: grid;
  gap: 0.18rem;
  min-width: 0;
}

.gateway-audit-main strong {
  display: -webkit-box;
  max-width: 100%;
  overflow: hidden;
  color: #0f172a;
  font-size: 0.92rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.gateway-audit-main span {
  overflow: hidden;
  color: #475569;
  font-size: 0.86rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gateway-audit-context {
  display: grid;
  gap: 0.12rem;
  color: #64748b;
  font-size: 0.8rem;
  text-align: right;
}

.gateway-audit-context span {
  color: #334155;
  font-weight: 700;
}

.gateway-audit-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem 1rem;
  margin: 0;
  padding: 0.75rem 0.85rem 0.9rem;
  border-top: 1px solid #dbeafe;
  background: #f8fbff;
}

.gateway-audit-details div {
  min-width: 0;
}

.gateway-audit-detail-wide {
  grid-column: 1 / -1;
}

.gateway-audit-details dt {
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.gateway-audit-details dd {
  margin: 0.1rem 0 0;
  overflow-wrap: anywhere;
  color: #0f172a;
  font-size: 0.84rem;
}

.gateway-audit-user-agent {
  grid-column: 1 / -1;
}

.gateway-admin-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.gateway-admin-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 5.2rem;
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  background: #dbeafe;
  color: #1d4ed8;
  font-weight: 700;
}

.gateway-admin-search-form {
  align-items: end;
  margin-top: 1.2rem;
}

.gateway-admin-create-form .gateway-admin-password-row,
.gateway-admin-reset-form {
  max-width: 48rem;
}

.gateway-admin-user-card {
  padding: 1.2rem;
  border: 1px solid #dbeafe;
  border-radius: 1.2rem;
  background: #ffffff;
  box-shadow: 0 0.8rem 1.8rem rgba(15, 23, 42, 0.08);
}

.gateway-admin-user-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.gateway-admin-user-name-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.gateway-admin-user-name-row h3 {
  margin: 0;
  color: #0f172a;
  font-size: 1.15rem;
}

.gateway-admin-user-email {
  margin: 0.35rem 0 0;
  color: #475569;
}

.gateway-admin-search-submit {
  display: flex;
  align-items: end;
}

.gateway-admin-search-submit .gateway-admin-primary-action {
  width: 100%;
}

.gateway-admin-search-empty {
  margin-top: 1.3rem;
  padding: 1rem 1.1rem;
  border: 1px dashed #93c5fd;
  border-radius: 1rem;
  background: rgba(219, 234, 254, 0.32);
  color: #334155;
  text-align: center;
}

.gateway-admin-selected-user-card {
  margin-top: 1.3rem;
}

.gateway-admin-user-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.gateway-admin-course-access-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.gateway-admin-user-detail-panel {
  padding: 1rem;
  border-radius: 1rem;
  border: 1px solid #dbeafe;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  color: var(--gateway-text-on-light);
}

.gateway-admin-user-detail-panel .row > .gateway-admin-user-ai-lock-fields {
  margin-top: 1.35rem;
  border-top: 1px solid #dbeafe;
  padding-top: 1.1rem;
}

.gateway-admin-user-email-fields {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.25rem;
}

.gateway-admin-user-email-form {
  display: grid;
  gap: 0.4rem;
}

.gateway-admin-user-email-control {
  display: flex;
  align-items: stretch;
  gap: 0.55rem;
}

.gateway-admin-user-email-control .form-control {
  min-width: 0;
}

.gateway-admin-user-email-control .btn {
  flex: 0 0 auto;
}

.gateway-admin-user-email-cancel {
  margin: -0.2rem 0 0;
}

.gateway-admin-user-ai-lock-copy {
  min-width: 0;
}

.gateway-admin-user-ai-lock-option {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.55rem;
  margin: 0;
  padding-left: 0;
  color: #0f172a;
  font-weight: 700;
  cursor: pointer;
}

.gateway-admin-user-ai-lock-option .form-check-input {
  flex: 0 0 auto;
  margin: 0;
}

.gateway-admin-panel-header {
  margin-bottom: 0.9rem;
}

.gateway-admin-panel-copy {
  margin: 0;
  color: #475569;
}

.gateway-admin-assignment-form {
  margin-bottom: 1rem;
}

.gateway-admin-inline-submit {
  display: flex;
  align-items: end;
}

.gateway-admin-empty-copy {
  color: #334155;
}

.gateway-admin-course-chip-list,
.gateway-admin-request-list {
  display: grid;
  gap: 0.8rem;
}

.gateway-admin-request-list {
  max-height: min(24rem, 52vh);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0.15rem 0.35rem 0.15rem 0;
  scrollbar-gutter: stable;
}

.gateway-admin-course-chip,
.gateway-admin-request-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid #dbeafe;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.92);
  color: var(--gateway-text-on-light);
}

.gateway-admin-course-chip-copy,
.gateway-admin-request-meta {
  color: var(--gateway-muted-on-light);
  font-size: 0.92rem;
}

details.gateway-admin-request-card {
  display: block;
  padding: 0;
  overflow: hidden;
  border-radius: 0.8rem;
}

.gateway-admin-request-card-summary {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 3.7rem;
  padding: 0.58rem 2.2rem 0.58rem 0.75rem;
  cursor: pointer;
  list-style: none;
  position: relative;
  transition: background-color 150ms ease;
}

.gateway-admin-request-card-summary::-webkit-details-marker {
  display: none;
}

.gateway-admin-request-card-summary::after {
  content: "";
  position: absolute;
  right: 0.85rem;
  top: 50%;
  width: 0.55rem;
  height: 0.55rem;
  border-right: 0.14rem solid #52647e;
  border-bottom: 0.14rem solid #52647e;
  transform: translateY(-65%) rotate(45deg);
  transition: transform 150ms ease;
}

details.gateway-admin-request-card[open] > .gateway-admin-request-card-summary {
  background: #f5f9ff;
}

details.gateway-admin-request-card[open] > .gateway-admin-request-card-summary::after {
  transform: translateY(-35%) rotate(225deg);
}

.gateway-admin-request-card-summary:hover {
  background: #f8fbff;
}

.gateway-admin-request-card-summary:focus-visible {
  outline: 0.16rem solid #2563eb;
  outline-offset: -0.16rem;
}

.gateway-admin-request-card-identity {
  display: grid;
  gap: 0.05rem;
  min-width: 0;
  flex: 1;
}

.gateway-admin-request-card-title,
.gateway-admin-request-card-subtitle {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gateway-admin-request-card-title {
  color: #172033;
  font-size: 0.96rem;
  line-height: 1.25;
}

.gateway-admin-request-card-subtitle {
  color: #52647e;
  font-size: 0.8rem;
}

.gateway-admin-request-card-badges {
  display: flex;
  justify-content: flex-end;
  gap: 0.35rem;
  min-width: 0;
  flex-wrap: wrap;
}

.gateway-admin-request-card-body {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid #dbeafe;
  padding: 0.75rem 0.85rem 0.85rem;
  background: #ffffff;
}

.gateway-admin-request-description {
  margin: 0.45rem 0;
  color: #334155;
  font-size: 0.94rem;
  line-height: 1.45;
}

.gateway-admin-account-request-card {
  align-items: flex-start;
}

.gateway-admin-account-request-main {
  min-width: 0;
  flex: 1;
}

.gateway-admin-account-status {
  background: #eef5ff;
  color: #244d87;
}

.gateway-admin-account-request-details {
  display: grid;
  grid-template-columns: minmax(9rem, 0.7fr) minmax(14rem, 1.3fr);
  gap: 0.65rem 1rem;
  margin: 0.75rem 0;
}

.gateway-admin-account-request-details div {
  min-width: 0;
}

.gateway-admin-account-request-details dt {
  margin-bottom: 0.12rem;
  color: #52647e;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.gateway-admin-account-request-details dd {
  margin: 0;
  color: #1e293b;
  font-size: 0.94rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.gateway-admin-delivery-error {
  margin: 0.5rem 0 0;
  border-left: 0.22rem solid #b42318;
  padding-left: 0.55rem;
  color: #8f211b;
  font-size: 0.88rem;
}

.gateway-admin-course-chip strong,
.gateway-admin-request-card strong {
  color: var(--gateway-text-on-light);
}

.gateway-admin-request-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.gateway-admin-reset-card {
  border-color: #bfdbfe;
}

.gateway-admin-authenticator-reset {
  margin-top: 1.15rem;
  border-top: 1px solid #dbeafe;
  padding-top: 1.15rem;
}

.gateway-admin-authenticator-reset .gateway-admin-panel-header {
  margin-bottom: 0.85rem;
}

.gateway-admin-role-badge,
.gateway-admin-current-user-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.32rem 0.72rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.gateway-admin-role-admin {
  background: rgba(29, 78, 216, 0.14);
  color: #1d4ed8;
}

.gateway-admin-role-instructor,
.gateway-admin-role-coursecreator {
  background: rgba(124, 58, 237, 0.12);
  color: #7c3aed;
}

.gateway-admin-role-student {
  background: rgba(15, 118, 110, 0.12);
  color: #0f766e;
}

.gateway-admin-current-user-badge {
  background: rgba(15, 23, 42, 0.08);
  color: #334155;
}

.gateway-admin-user-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.gateway-admin-primary-action {
  min-width: 10rem;
  border-color: #2563eb !important;
  background: linear-gradient(135deg, #2563eb, #3b82f6) !important;
  color: #ffffff !important;
  box-shadow: 0 0.8rem 1.8rem rgba(37, 99, 235, 0.2);
}

.gateway-admin-primary-action:hover,
.gateway-admin-primary-action:focus-visible {
  border-color: #1d4ed8 !important;
  background: linear-gradient(135deg, #1d4ed8, #2563eb) !important;
  color: #ffffff !important;
}

.gateway-admin-delete-form {
  margin-top: 0.85rem;
}

.gateway-login-support-copy {
  margin: 1rem 0 0;
  color: var(--gateway-muted-on-light);
  text-align: center;
  font-size: 0.98rem;
}

.gateway-login-screen-guest .gateway-login-support-copy {
  margin-top: 0.65rem;
  font-size: 0.82rem;
}

.gateway-login-support-copy strong {
  color: var(--gateway-text-on-light);
  font-weight: 700;
}

.gateway-login-support-button {
  border: 0;
  padding: 0;
  background: transparent;
  color: #1d4ed8;
  font: inherit;
  font-weight: 800;
}

.gateway-login-support-button:hover,
.gateway-login-support-button:focus-visible {
  color: #1e40af;
  text-decoration: underline;
}

.gateway-auth-panel-title {
  margin: 0 0 0.35rem;
  color: var(--gateway-text-on-light);
  font-size: 1.2rem;
  font-weight: 800;
  text-align: center;
}

.gateway-password-reset-request-panel {
  width: min(100%, 22.5rem);
  margin-inline: auto;
  padding-top: 1rem;
}

.gateway-password-reset-request-panel .gateway-auth-panel-title {
  margin-bottom: 0;
  font-size: 1.3rem;
  line-height: 1.2;
}

.gateway-login-screen-guest .gateway-password-reset-request-intro {
  max-width: 21rem;
  margin: 0.45rem auto 1.05rem;
  color: #52627a;
  font-size: 0.88rem;
  line-height: 1.5;
}

.gateway-password-reset-request-form {
  gap: 0.78rem;
}

.gateway-password-reset-request-form .gateway-login-validation {
  margin-bottom: 0;
}

.gateway-password-reset-request-form .gateway-register-input {
  min-height: 3rem;
}

.gateway-password-reset-request-panel .gateway-login-switch-copy {
  margin-top: 1rem;
}

.gateway-login-switch-copy {
  margin: 0.85rem 0 0;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  color: var(--gateway-muted-on-light);
  font-size: 0.92rem;
  text-align: center;
}

.gateway-login-switch-copy button {
  border: 0;
  padding: 0;
  background: transparent;
  color: #2563eb;
  font: inherit;
  font-weight: 800;
}

.gateway-login-switch-copy button:hover,
.gateway-login-switch-copy button:focus-visible {
  color: #1d4ed8;
  text-decoration: underline;
}

.course-video-library,
.course-video-empty-state {
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.course-video-library {
  overflow: visible;
}

.course-video-library .course-resource-panel {
  overflow: visible;
}

.gateway-details-management-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
}

.gateway-course-edit-panel {
  align-self: start;
}

.gateway-course-edit-form {
  display: grid;
  gap: 0.9rem;
}

.gateway-course-edit-note {
  color: #64748b;
  font-size: 0.84rem;
  font-weight: 600;
}

.gateway-course-edit-heading {
  display: grid;
  flex: 1 1 22rem;
  gap: 0.35rem;
  min-width: 0;
}

.gateway-course-edit-panel .course-video-library-header {
  align-items: flex-start;
}

.gateway-course-published-form {
  display: inline-flex;
  flex: 0 0 auto;
  margin: 0;
}

.gateway-course-published-form[hidden],
.gateway-course-publication-panel[hidden] {
  display: none;
}

.gateway-course-published-button {
  display: inline-flex;
  align-items: center;
  min-height: 1.85rem;
  padding: 0.28rem 0.65rem;
  border: 1px solid #86efac;
  border-radius: 999px;
  background: #f0fdf4;
  color: #166534;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: border-color 140ms ease, box-shadow 140ms ease, background-color 140ms ease;
}

.gateway-course-published-button:hover:not(:disabled) {
  border-color: #22c55e;
  background: #dcfce7;
}

.gateway-course-published-button:focus-visible {
  outline: 3px solid rgb(37 99 235 / 24%);
  outline-offset: 2px;
}

.gateway-course-published-button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.gateway-course-publication-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.8rem 1rem;
  align-items: center;
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid #fed7aa;
  border-radius: 0.8rem;
  background: #fffaf0;
}

.gateway-course-publication-summary {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  min-width: 0;
}

.gateway-course-publication-summary > div {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.gateway-course-publication-summary strong {
  color: #172554;
}

.gateway-course-publication-summary p {
  margin: 0;
  color: #52627a;
  font-size: 0.86rem;
  line-height: 1.45;
}

.gateway-course-publication-panel form {
  align-self: center;
}

@media (max-width: 575.98px) {
  .gateway-course-publication-panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .gateway-course-publication-panel form,
  .gateway-course-publication-panel form .btn {
    width: 100%;
  }
}

.gateway-course-edit-feedback {
  border: 1px solid #bfdbfe;
  border-radius: 0.55rem;
  padding: 0.55rem 0.75rem;
  background: #eff6ff;
  color: #245da7;
  font-size: 0.86rem;
  font-weight: 700;
}

.gateway-course-edit-feedback.is-error {
  border-color: #fecaca;
  background: #fef2f2;
  color: #991b1b;
}

.gateway-course-edit-field {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
}

.gateway-course-edit-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 0.35rem;
  min-width: 0;
}

.gateway-course-edit-control:has([data-access-key-visibility]) {
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.gateway-course-edit-control .form-control[readonly] {
  background: #f8fbff;
  color: #334155;
  cursor: default;
}

.gateway-course-edit-control .form-control.is-editing {
  background: #ffffff;
  color: #0f172a;
  cursor: text;
}

.gateway-course-description-textarea {
  min-height: calc(1.5em + 0.75rem + 2px);
  resize: vertical;
}

.gateway-course-edit-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  min-width: 2.35rem;
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-radius: 0.55rem;
  background: #ffffff;
  color: #64748b;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.gateway-course-edit-icon-button:hover,
.gateway-course-edit-icon-button:focus-visible,
.gateway-course-edit-icon-button.is-active {
  border-color: #93c5fd;
  background: #eef5ff;
  color: #3873cb;
  outline: none;
  transform: translateY(-1px);
}

.gateway-course-edit-icon-button svg {
  width: 1.05rem;
  height: 1.05rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gateway-course-edit-setting {
  display: grid;
  gap: 0.45rem;
}

.gateway-course-setting-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.gateway-course-setting-option {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  color: #334155;
  font-weight: 700;
}

.gateway-course-setting-option input {
  width: 1rem;
  height: 1rem;
  accent-color: #3873cb;
}

.gateway-course-edit-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.gateway-course-edit-save-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.gateway-playback-speed-limit-select {
  width: 5.4rem;
  min-width: 5.4rem;
  border-color: #c7d2fe;
  background-color: #ffffff;
  color: #334155;
  font-weight: 700;
}

.discussion-flair-customize-button {
  min-height: 1.55rem;
  border: 1px solid rgba(109, 40, 217, 0.22);
  border-radius: 999px;
  padding: 0.12rem 0.5rem;
  background: rgba(124, 58, 237, 0.1);
  color: #6d28d9;
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.1;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.discussion-flair-customize-button:hover,
.discussion-flair-customize-button:focus-visible {
  border-color: rgba(109, 40, 217, 0.38);
  background: rgba(124, 58, 237, 0.16);
  color: #581c87;
}

.discussion-flair-dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: rgba(15, 23, 42, 0.4);
}

.discussion-flair-dialog-backdrop[hidden] {
  display: none;
}

.discussion-flair-dialog {
  display: grid;
  gap: 1rem;
  width: min(100%, 42rem);
  max-height: min(80vh, 42rem);
  overflow: auto;
  border: 1px solid rgba(191, 219, 254, 0.78);
  border-radius: 0.85rem;
  padding: 1rem;
  background: #ffffff;
  box-shadow: 0 1.5rem 3rem rgba(15, 23, 42, 0.24);
}

.discussion-flair-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.discussion-flair-column-headings {
  display: grid;
  grid-template-columns: minmax(8rem, 0.85fr) minmax(10rem, 1.15fr) auto;
  flex: 1 1 auto;
  gap: 0.45rem;
  align-items: center;
}

.discussion-flair-column-headings span {
  color: #0f172a;
  font-size: 0.86rem;
  font-weight: 800;
}

.discussion-flair-table {
  display: grid;
  gap: 0.55rem;
}

.discussion-flair-editor-row {
  display: grid;
  grid-template-columns: minmax(8rem, 0.85fr) minmax(10rem, 1.15fr) auto;
  gap: 0.45rem;
  align-items: center;
}

.discussion-flair-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.gateway-course-ai-dialog.is-instructor {
  width: min(100%, 42rem);
}

.gateway-course-ai-dialog.is-admin {
  width: min(100%, 52rem);
}

.gateway-course-ai-dialog-header {
  align-items: flex-start;
}

.gateway-course-ai-dialog-header h3 {
  color: #0f172a;
  font-weight: 800;
}

.gateway-course-ai-dialog-header p {
  color: #475569;
  font-size: 0.88rem;
}

.gateway-course-ai-settings {
  border: 1px solid #cbd5e1;
  border-radius: 0.65rem;
  background: #fff;
  overflow: hidden;
}

.gateway-course-ai-row {
  display: grid;
  gap: 0.8rem;
  align-items: center;
  padding: 0.8rem;
  background: #fff;
  transition: background-color 0.15s ease;
}

.gateway-course-ai-row[data-course-ai-row="assistant"] {
  row-gap: 0.55rem;
  padding-bottom: 0.3rem;
}

.gateway-course-ai-settings.is-admin .gateway-course-ai-row {
  grid-template-columns: minmax(10.5rem, 0.9fr) minmax(9rem, 0.65fr) minmax(15rem, 1.35fr);
}

.gateway-course-ai-settings.is-instructor .gateway-course-ai-row {
  grid-template-columns: minmax(12rem, 1fr) minmax(9rem, 0.6fr);
}

.gateway-course-ai-row + .gateway-course-ai-row {
  border-top: 1px solid #cbd5e1;
}

.gateway-course-ai-row.is-admin-locked {
  background: #fff7f7;
}

.gateway-course-ai-feature-cell {
  display: grid;
  align-content: center;
  gap: 0.12rem;
  min-width: 0;
}

.gateway-course-ai-feature-cell strong {
  color: #0f172a;
  font-size: 0.88rem;
}

.gateway-course-ai-feature-cell > span:not(.gateway-course-ai-lock-status) {
  color: #64748b;
  font-size: 0.74rem;
}

.gateway-course-ai-select-cell,
.gateway-course-ai-comment-cell {
  display: grid;
  gap: 0.25rem;
  min-width: 0;
}

.gateway-course-ai-select-cell label,
.gateway-course-ai-comment-cell label {
  margin: 0;
  color: #475569;
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.gateway-course-ai-select-cell select {
  width: 100%;
  min-width: 8.5rem;
  color: #172033;
  font-weight: 700;
}

.gateway-course-ai-answer-options {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  margin-top: 0.05rem;
  padding-top: 0;
  border-top: 1px solid #e2e8f0;
}

.gateway-course-ai-answer-option {
  display: grid;
  grid-template-columns: 1rem minmax(0, 1fr);
  align-items: start;
  gap: 0.55rem;
  margin: 0;
  padding: 0.7rem 0.15rem 0.4rem;
  color: #172033;
  cursor: pointer;
  text-transform: none;
  letter-spacing: normal;
}

.gateway-course-ai-answer-option input {
  width: 1rem;
  height: 1rem;
  align-self: start;
  margin: 0;
  accent-color: #2563eb;
}

.gateway-course-ai-answer-option span {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
  text-transform: none;
  letter-spacing: normal;
}

.gateway-course-ai-answer-option strong {
  display: block;
  color: #172033;
  font-size: 0.76rem;
  line-height: 1.2;
  text-transform: none;
  letter-spacing: normal;
  white-space: nowrap;
}

.gateway-course-ai-answer-option small {
  display: block;
  color: #64748b;
  font-size: 0.69rem;
  line-height: 1.3;
  text-transform: none;
  letter-spacing: normal;
}

.gateway-course-ai-answer-option + .gateway-course-ai-answer-option {
  border-top: 1px solid #e2e8f0;
}

.gateway-course-ai-answer-option:has(input:focus-visible) {
  outline: 2px solid #2563eb;
  outline-offset: 3px;
  border-radius: 0.2rem;
}

.gateway-course-ai-select-cell select:focus-visible,
.gateway-course-ai-comment-cell input:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.gateway-course-ai-select-cell select:disabled {
  color: #64748b;
  background-color: #f1f5f9;
  cursor: not-allowed;
  opacity: 0.78;
}

.gateway-course-ai-comment-cell input {
  width: 100%;
  font-size: 0.78rem;
}

@media (max-width: 700px) {
  .gateway-course-ai-settings.is-admin .gateway-course-ai-row,
  .gateway-course-ai-settings.is-instructor .gateway-course-ai-row {
    grid-template-columns: 1fr;
  }

  .gateway-course-ai-answer-options {
    grid-template-columns: 1fr;
  }
}

.gateway-course-ai-lock-status {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  margin-top: 0.15rem;
  padding: 0.18rem 0.45rem;
  background: #fee2e2;
  color: #7f1d1d;
  font-size: 0.68rem;
  font-weight: 800;
}

.gateway-course-ai-lock-status[hidden] {
  display: none;
}

.course-video-library-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.course-video-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  align-items: stretch;
}

.course-video-module-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: stretch;
  overflow: visible;
}

.course-video-module-list.is-video-page {
  gap: 0.65rem;
}

.course-video-module-list.is-reordering .course-video-module:not(.is-dragging) {
  transition: transform 0.16s ease, box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
  will-change: transform;
}

.course-video-module-list.is-reorder-saved .course-video-module {
  border-color: rgba(56, 115, 203, 0.42);
}

.course-video-module {
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 0.85rem;
  background: rgba(241, 245, 249, 0.42);
  box-shadow: 0 0.2rem 0.55rem rgba(15, 23, 42, 0.025);
  overflow: visible;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.course-video-module[open] {
  border-color: rgba(148, 163, 184, 0.34);
  background: rgba(248, 250, 252, 0.72);
}

.course-video-module-list.is-video-page .course-video-module,
.course-video-module-list.is-video-page .course-video-module[open] {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.course-video-module.is-dragging {
  opacity: 0.88;
  transform: scale(1.006);
  border-color: rgba(56, 115, 203, 0.6);
  background: #ffffff;
  box-shadow: 0 0.9rem 1.8rem rgba(15, 23, 42, 0.16);
  cursor: grabbing;
  z-index: 5;
}

.course-video-module-drag-preview {
  border: 1px solid rgba(56, 115, 203, 0.62);
  border-radius: 0.85rem;
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 1rem 2rem rgba(15, 23, 42, 0.2);
  transform: scale(1.01) rotate(0.2deg);
}

.course-video-module-header {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  padding: 0.72rem 0.8rem;
  border-radius: calc(0.85rem - 1px);
  background: transparent;
  color: #0f172a;
  cursor: pointer;
  list-style: none;
  user-select: none;
  -webkit-user-select: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.course-video-module-list.is-video-page .course-video-module-header {
  padding: 0.42rem 0.5rem;
  border-radius: 0.65rem;
  color: #172033;
}

.course-video-module-header:hover {
  background: rgba(219, 234, 254, 0.48);
  color: #1e3a5f;
}

.course-video-module-header:focus-visible {
  background: rgba(219, 234, 254, 0.58);
  outline: 2px solid rgba(37, 99, 235, 0.58);
  outline-offset: -2px;
}

.course-video-module[open] > .course-video-module-header {
  border-radius: calc(0.85rem - 1px) calc(0.85rem - 1px) 0.55rem 0.55rem;
}

.course-video-module-list.is-video-page .course-video-module[open] > .course-video-module-header {
  border-radius: 0.65rem;
}

.course-video-module-header::-webkit-details-marker {
  display: none;
}

.course-video-module-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 999px;
  color: #64748b;
  transition: transform 0.22s ease, color 0.2s ease, background-color 0.2s ease;
  transform: rotate(-90deg);
}

.course-video-module-chevron svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.course-video-module[open] > .course-video-module-header .course-video-module-chevron {
  transform: rotate(0);
}

.course-video-module-list.is-video-page .course-video-module-chevron {
  background: transparent;
  color: #94a3b8;
}

.course-video-module-header:hover .course-video-module-chevron,
.course-video-module-header:focus-visible .course-video-module-chevron {
  background: rgba(255, 255, 255, 0.72);
  color: #245da7;
}

.course-video-module-title {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  color: #0f172a;
  font-size: 0.96rem;
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.course-video-module-list.is-video-page .course-video-module-title {
  font-size: 1.06rem;
}

.course-video-module-title.is-editing {
  border-radius: 0.45rem;
  padding: 0.12rem 0.25rem;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.5), 0 0 0.75rem rgba(96, 165, 250, 0.12);
  outline: none;
  cursor: text;
}

.course-video-module-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 0.18rem 0.5rem;
  background: #eef5ff;
  color: #334155;
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.15;
}

.course-video-module-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  flex: 0 0 auto;
}

.course-video-module-delete-form {
  margin: 0;
}

.course-video-module-icon-button,
.course-video-module-drag-handle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 1.8rem;
  height: 1.8rem;
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 999px;
  background: #ffffff;
  color: #64748b;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.course-video-module-drag-handle {
  border-radius: 0.5rem;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: element;
}

.course-video-module-icon-button:hover,
.course-video-module-icon-button:focus-visible,
.course-video-module-drag-handle:hover,
.course-video-module-drag-handle:focus-visible {
  border-color: rgba(56, 115, 203, 0.42);
  background: #eef5ff;
  color: #245da7;
  outline: none;
}

.course-video-module-icon-button:disabled {
  opacity: 0.52;
  cursor: not-allowed;
}

.course-video-module-drag-handle:active {
  cursor: grabbing;
}

.course-video-module-icon-button svg,
.course-video-module-drag-handle svg {
  width: 1.05rem;
  height: 1.05rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.course-video-module-drag-handle svg {
  stroke-width: 3;
}

.course-video-module-rename-form {
  display: none;
}

.course-video-module-rename-form[hidden] {
  display: none;
}

.course-video-module .course-video-list {
  min-height: 2.75rem;
  padding: 0 0.7rem 0.75rem;
}

.course-video-module-list.is-video-page .course-video-module .course-video-list {
  min-height: 0;
  padding: 0;
}

.course-video-ungrouped-list[data-video-ungrouped-drop-zone="true"]:not(:has(> [data-video-reorder-row])) {
  min-height: 0.25rem;
  margin-bottom: -0.5rem;
}

.course-video-module-list.is-reordering .course-video-ungrouped-list[data-video-ungrouped-drop-zone="true"]:not(:has(> [data-video-reorder-row])) {
  min-height: 2.25rem;
  margin-bottom: 0;
}

.course-video-module-empty {
  margin: 0;
  border: 1px dashed rgba(148, 163, 184, 0.42);
  border-radius: 0.7rem;
  padding: 0.7rem 0.8rem;
  color: #64748b;
  font-size: 0.88rem;
  font-style: italic;
  background: rgba(255, 255, 255, 0.68);
}

.course-video-module-empty[hidden] {
  display: none;
}

.course-video-list.is-reordering .course-video-option:not(.is-dragging) {
  transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
  will-change: transform;
}

.course-video-list.is-reorder-saved .course-video-option {
  border-color: rgba(56, 115, 203, 0.45);
}

.course-video-option {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  width: 100%;
  min-width: 0;
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(191, 219, 254, 0.78);
  border-radius: 0.7rem;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 0.35rem 0.85rem rgba(15, 23, 42, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.course-video-option:has(.course-video-option-link[href]) {
  cursor: pointer;
}

.course-video-option:has(.course-video-option-actions[open]) {
  z-index: 120;
}

.course-video-list.is-reorderable .course-video-option {
  cursor: pointer;
}

.course-video-list.is-reorderable .course-video-option:active {
  cursor: pointer;
}

.course-video-option:hover,
.course-video-option:focus-within {
  border-color: #93c5fd;
  background: #f8fbff;
  color: #0f172a;
  transform: translateY(-1px);
  box-shadow: 0 0.5rem 1rem rgba(15, 23, 42, 0.1);
}

.course-video-option.is-selected {
  border-color: rgba(37, 99, 235, 0.55);
  background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%);
  box-shadow: 0 0.55rem 1rem rgba(37, 99, 235, 0.12);
}

.gateway-details-screen:not(.gateway-details-screen-watch) .course-video-option {
  background: #f5f8fc;
}

.gateway-details-screen:not(.gateway-details-screen-watch) .course-video-option:hover,
.gateway-details-screen:not(.gateway-details-screen-watch) .course-video-option:focus-within {
  background: #edf4fc;
}

.course-video-option.is-dragging {
  opacity: 0.82;
  transform: scale(1.012) rotate(0.2deg);
  border-color: rgba(56, 115, 203, 0.65);
  background: #ffffff;
  box-shadow: 0 0.9rem 1.8rem rgba(15, 23, 42, 0.18);
  cursor: pointer;
  z-index: 4;
}

.course-video-option-actions {
  position: relative;
  flex: 0 0 auto;
  z-index: 8;
}

.course-video-option-actions[open] {
  z-index: 80;
}

.course-video-option-actions summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.9rem;
  height: 1.9rem;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 999px;
  background: #ffffff;
  color: #64748b;
  cursor: pointer;
  list-style: none;
  user-select: none;
  -webkit-user-select: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.course-video-option-actions summary::-webkit-details-marker {
  display: none;
}

.course-video-option-actions summary:hover,
.course-video-option-actions summary:focus-visible {
  border-color: rgba(56, 115, 203, 0.42);
  background: #eef5ff;
  color: #245da7;
  outline: none;
}

.course-video-option-actions summary svg {
  width: 1.05rem;
  height: 1.05rem;
  fill: currentColor;
}

.course-video-option-menu {
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  z-index: 130;
  display: grid;
  min-width: 8.5rem;
  padding: 0.3rem;
  border: 1px solid #dbeafe;
  border-radius: 0.65rem;
  background: #ffffff;
  box-shadow: 0 0.9rem 1.8rem rgba(15, 23, 42, 0.16);
}

.course-video-option-menu form {
  margin: 0;
}

.course-video-option-menu button {
  width: 100%;
  border: 0;
  border-radius: 0.45rem;
  padding: 0.48rem 0.58rem;
  background: transparent;
  color: #334155;
  font-size: 0.88rem;
  font-weight: 700;
  text-align: left;
}

.course-video-option-menu button:hover,
.course-video-option-menu button:focus-visible {
  background: #eef5ff;
  color: #245da7;
  outline: none;
}

.course-video-option-menu .course-video-option-menu-danger {
  color: #b91c1c;
}

.course-video-option-menu .course-video-option-menu-danger:hover,
.course-video-option-menu .course-video-option-menu-danger:focus-visible {
  background: #fef2f2;
  color: #991b1b;
}

.course-video-drag-preview {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(56, 115, 203, 0.62);
  border-radius: 0.7rem;
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 1rem 2rem rgba(15, 23, 42, 0.22);
  transform: scale(1.015) rotate(0.25deg);
}

.course-video-drag-handle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 1.65rem;
  height: 2.05rem;
  margin: -0.1rem 0 -0.15rem -0.2rem;
  border: 0;
  border-radius: 0.45rem;
  background: transparent;
  color: #64748b;
  cursor: grab;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.course-video-drag-handle:hover,
.course-video-drag-handle:focus-visible {
  background: #eef5ff;
  color: #3873cb;
  outline: none;
}

.course-video-drag-handle:active {
  cursor: grabbing;
}

.course-video-drag-handle svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
}

.course-video-option-link {
  display: grid;
  gap: 0.22rem;
  flex: 1 1 auto;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.course-video-option-link:hover,
.course-video-option-link:focus-visible {
  color: inherit;
}

.course-video-option-main {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.25rem 0.55rem;
  min-width: 0;
}

.course-video-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 2rem;
  grid-template-rows: auto auto auto;
  align-items: center;
  gap: 0.2rem 0.4rem;
}

.course-video-option:has(.course-video-option-actions) {
  grid-template-columns: minmax(0, 1fr) 2rem 1.9rem;
}

.course-video-option:has(> .course-video-drag-handle) {
  grid-template-columns: 1.65rem minmax(0, 1fr) 2rem;
}

.course-video-option:has(> .course-video-drag-handle):has(.course-video-option-actions) {
  grid-template-columns: 1.65rem minmax(0, 1fr) 2rem 1.9rem;
}

.course-video-option .course-video-option-link {
  display: inline;
}

.course-video-option:has(.course-video-option-link:focus-visible) {
  outline: 2px solid rgba(37, 99, 235, 0.7);
  outline-offset: 2px;
}

.course-video-option .course-video-option-main {
  grid-column: 1 / 3;
  grid-row: 1;
  display: block;
  min-width: 0;
  max-height: 2.7em;
  overflow: hidden;
  line-height: 1.35;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.course-video-option:has(> .course-video-drag-handle) .course-video-option-main {
  grid-column: 2 / 4;
}

.course-video-option .course-video-option-title {
  display: inline;
  font-weight: 700;
}

.course-video-option-metadata {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-inline-start: 0.4rem;
  vertical-align: middle;
  white-space: nowrap;
}

.course-video-option .course-video-option-description {
  grid-column: 1;
  grid-row: 2;
  align-self: start;
  min-width: 0;
  padding-right: 0.15rem;
}

.course-video-option:has(> .course-video-drag-handle) .course-video-option-description {
  grid-column: 2;
}

.course-video-option .course-video-description-toggle {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
  justify-self: start;
  margin-top: -0.16rem;
}

.course-video-option:has(> .course-video-drag-handle) .course-video-description-toggle {
  grid-column: 3;
}

.course-video-ungrouped-list .course-video-description-toggle {
  transform: translateX(-0.3rem);
}

.course-video-option .course-video-option-actions {
  grid-column: 3;
  grid-row: 1 / span 3;
  align-self: start;
  justify-self: end;
}

.course-video-option:has(> .course-video-drag-handle) .course-video-option-actions {
  grid-column: 4;
}

.course-video-option > .course-video-drag-handle {
  grid-column: 1;
  grid-row: 1 / span 3;
  align-self: start;
  justify-self: center;
}

.course-video-transcript-status {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  gap: 0.34rem;
  min-width: 0;
  border: 0;
  border-radius: 999px;
  padding: 0.16rem 0.5rem;
  background: #f1f5f9;
  color: #526277;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.25;
  cursor: pointer;
}

.course-video-transcript-status:hover,
.course-video-transcript-status:focus-visible {
  background: #e2e8f0;
  color: #25344a;
  outline: none;
}

.course-video-transcript-status:focus-visible {
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.course-video-transcript-status.is-ready {
  background: #ecfdf5;
  color: #17624a;
}

.course-video-transcript-status.is-review {
  background: #fff7d6;
  color: #805b10;
}

.course-video-transcript-status.is-unusable {
  background: #fff1f2;
  color: #9f1239;
}

.course-video-transcript-status.is-pending {
  background: #eef2ff;
  color: #4338ca;
}

.course-video-transcript-status.is-processing {
  background: #f3e8ff;
  color: #6b21a8;
}

.course-video-transcript-status.is-processing::before {
  width: 0.48rem;
  height: 0.48rem;
  border: 2px solid rgba(107, 33, 168, 0.28);
  border-top-color: currentColor;
  border-radius: 50%;
  content: "";
  animation: transcript-status-spin 0.9s linear infinite;
}

.course-video-media-processing-status {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  gap: 0.34rem;
  border-radius: 999px;
  padding: 0.16rem 0.5rem;
  background: #eef2ff;
  color: #4338ca;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
}

.course-video-media-processing-status[hidden] {
  display: none;
}

.course-video-media-processing-status::before {
  width: 0.48rem;
  height: 0.48rem;
  border: 2px solid rgba(67, 56, 202, 0.25);
  border-top-color: currentColor;
  border-radius: 50%;
  content: "";
  animation: transcript-status-spin 0.9s linear infinite;
}

@keyframes transcript-status-spin {
  to { transform: rotate(360deg); }
}

.course-video-transcript-processing-message {
  margin-top: 0.55rem;
  border-radius: 0.55rem;
  padding: 0.48rem 0.62rem;
  background: #f3e8ff;
  color: #6b21a8;
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.course-video-transcript-processing-message[hidden] {
  display: none;
}

.course-transcript-quality-panel {
  margin-top: 0.65rem;
  border: 1px solid #dbe4f0;
  border-radius: 0.7rem;
  padding: 0.65rem 0.75rem;
  color: #475569;
  background: #f8fafc;
  font-size: 0.86rem;
  line-height: 1.45;
}

.course-transcript-quality-panel[hidden] {
  display: none;
}

.course-transcript-quality-heading {
  margin-bottom: 0.28rem;
}

.course-transcript-quality-badge {
  font-weight: 750;
  color: #334155;
}

.course-transcript-quality-panel[data-state="needs-review"] {
  border-color: #fde68a;
  background: #fffbeb;
}

.course-transcript-quality-panel[data-state="needs-attention"],
.course-transcript-quality-panel[data-state="assessment-unavailable"] {
  border-color: #fecdd3;
  background: #fff7f7;
}

.course-video-transcript-processing-message .btn {
  flex: 0 0 auto;
}

[data-video-transcript-section]:focus {
  outline: none;
}

.course-video-option-title {
  font-weight: 700;
}

.course-video-option-duration {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  border-radius: 999px;
  padding: 0.18rem 0.5rem;
  background: #eef5ff;
  color: #334155;
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.15;
}

.course-video-option.is-hidden-from-students {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.gateway-details-screen:not(.gateway-details-screen-watch) .course-video-option.is-hidden-from-students {
  background: #eef2f6;
}

.course-video-option.is-hidden-from-students .course-video-option-title,
.course-video-option.is-hidden-from-students .course-video-option-description {
  color: #64748b;
}

.course-video-row-visibility-form {
  grid-column: 3;
  grid-row: 1;
  align-self: start;
  justify-self: end;
  margin: 0;
}

.course-video-row-visibility-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.9rem;
  height: 1.9rem;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0;
  background: transparent;
  color: #8a96a6;
  cursor: pointer;
  transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.course-video-row-visibility-button.is-visible {
  color: #53657b;
}

.course-video-row-visibility-button:hover,
.course-video-row-visibility-button:focus-visible {
  border-color: #d5deea;
  background: #eef3f8;
  color: #334155;
  outline: none;
}

.course-video-row-visibility-button:focus-visible {
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.22);
}

.course-video-row-visibility-button:disabled {
  opacity: 0.58;
  cursor: wait;
}

.course-video-visibility-icon {
  width: 1.08rem;
  height: 1.08rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.course-video-visibility-icon-visible {
  display: none;
}

.course-video-row-visibility-button.is-visible .course-video-visibility-icon-visible {
  display: block;
}

.course-video-row-visibility-button.is-visible .course-video-visibility-icon-hidden {
  display: none;
}

.course-video-option:has(> .course-video-row-visibility-form) {
  grid-template-columns: minmax(0, 1fr) 2rem 1.9rem 1.9rem;
}

.course-video-option:has(> .course-video-row-visibility-form) .course-video-option-main {
  grid-column: 1 / 3;
}

.course-video-option:has(> .course-video-row-visibility-form) .course-video-option-description {
  grid-column: 1;
}

.course-video-option:has(> .course-video-row-visibility-form) .course-video-description-toggle {
  grid-column: 2;
}

.course-video-option:has(> .course-video-row-visibility-form) .course-video-option-actions {
  grid-column: 4;
}

.course-video-option:has(> .course-video-drag-handle):has(> .course-video-row-visibility-form) {
  grid-template-columns: 1.65rem minmax(0, 1fr) 2rem 1.9rem 1.9rem;
}

.course-video-option:has(> .course-video-drag-handle):has(> .course-video-row-visibility-form) .course-video-row-visibility-form {
  grid-column: 4;
}

.course-video-option:has(> .course-video-drag-handle):has(> .course-video-row-visibility-form) .course-video-option-main {
  grid-column: 2 / 4;
}

.course-video-option:has(> .course-video-drag-handle):has(> .course-video-row-visibility-form) .course-video-option-description {
  grid-column: 2;
}

.course-video-option:has(> .course-video-drag-handle):has(> .course-video-row-visibility-form) .course-video-description-toggle {
  grid-column: 3;
}

.course-video-option:has(> .course-video-drag-handle):has(> .course-video-row-visibility-form) .course-video-option-actions {
  grid-column: 5;
}

.course-video-visibility-status {
  margin-top: 0.65rem;
  border: 1px solid #bbf7d0;
  border-radius: 0.65rem;
  padding: 0.52rem 0.7rem;
  background: #f0fdf4;
  color: #166534;
  font-size: 0.84rem;
  font-weight: 700;
}

.course-video-visibility-status[data-tone="danger"] {
  border-color: #fecaca;
  background: #fef2f2;
  color: #b91c1c;
}

.course-video-option-description {
  display: block;
  overflow: hidden;
  color: #475569;
  font-size: 0.84rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.course-video-option.is-description-expanded .course-video-option-description {
  display: block;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
}

.course-video-description-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 1.6rem;
  height: 1.6rem;
  border: 0;
  border-radius: 999px;
  background: #eef5ff;
  color: #334155;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.course-video-description-toggle[hidden] {
  display: none;
}

.course-video-description-toggle:hover,
.course-video-description-toggle:focus-visible {
  background: #dbeafe;
  color: #1d4ed8;
  outline: none;
}

.course-video-description-toggle svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s ease;
  transform: rotate(-90deg);
}

.course-video-option.is-description-expanded .course-video-description-toggle svg {
  transform: rotate(0);
}

.gateway-details-students-panel .card-body {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 0.25rem;
  min-height: 0;
  max-height: inherit;
  overflow: hidden;
}

.gateway-details-students-panel {
  position: relative;
  z-index: 20;
  overflow: hidden;
}

.gateway-details-student-list {
  display: grid;
  align-content: start;
  gap: 0.35rem;
  min-height: 0;
  max-height: min(34rem, calc(100vh - 14rem));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 0.3rem;
  scrollbar-gutter: stable;
}

.gateway-details-student-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  padding: 0.48rem 0.58rem;
  border: 1px solid #dbeafe;
  border-radius: 0.62rem;
  background: #ffffff;
  box-shadow: 0 0.22rem 0.55rem rgba(15, 23, 42, 0.055);
}

.gateway-details-student-copy {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.16rem 0.55rem;
  min-width: 0;
}

.gateway-details-student-heading {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.gateway-details-student-name {
  margin: 0;
  color: #0f172a;
  font-size: 0.88rem;
  font-weight: 700;
}

.gateway-details-student-email {
  margin: 0;
  color: #475569;
  font-size: 0.76rem;
  word-break: break-word;
}

.gateway-details-student-role {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.1rem 0.38rem;
  background: rgba(124, 58, 237, 0.12);
  color: #7c3aed;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.gateway-details-student-role-primary {
  background: rgba(56, 115, 203, 0.14);
  color: #245da7;
}

.gateway-details-student-actions {
  position: relative;
  flex: 0 0 auto;
  z-index: 2;
}

.gateway-details-student-actions[open] {
  z-index: 200;
}

.gateway-details-student-actions summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.72rem;
  height: 1.72rem;
  border: 1px solid rgba(148, 163, 184, 0.36);
  border-radius: 999px;
  background: #ffffff;
  color: #64748b;
  cursor: pointer;
  list-style: none;
  user-select: none;
  -webkit-user-select: none;
}

.gateway-details-student-actions summary::-webkit-details-marker {
  display: none;
}

.gateway-details-student-actions summary:hover,
.gateway-details-student-actions summary:focus-visible {
  border-color: rgba(56, 115, 203, 0.42);
  background: #eef5ff;
  color: #245da7;
  outline: none;
}

.gateway-details-student-actions summary svg {
  width: 1.05rem;
  height: 1.05rem;
  fill: currentColor;
}

.gateway-details-student-menu {
  position: fixed;
  inset: auto;
  top: 0;
  left: 0;
  z-index: 1300;
  display: grid;
  align-content: start;
  width: max-content;
  height: max-content;
  min-width: 13rem;
  max-width: min(22rem, calc(100vw - 1rem));
  max-height: min(22rem, calc(100vh - 1rem));
  overflow: auto;
  margin: 0;
  padding: 0.3rem;
  border: 1px solid #dbeafe;
  border-radius: 0.65rem;
  background: #ffffff;
  box-shadow: 0 0.9rem 1.8rem rgba(15, 23, 42, 0.16);
  user-select: none;
  -webkit-user-select: none;
}

.gateway-details-student-menu form {
  margin: 0;
}

.gateway-details-student-menu[hidden] {
  display: none !important;
}

.gateway-details-student-menu button {
  width: 100%;
  border: 0;
  border-radius: 0.45rem;
  padding: 0.48rem 0.58rem;
  background: transparent;
  color: #334155;
  font-size: 0.88rem;
  font-weight: 700;
  text-align: left;
}

.gateway-details-student-menu button:hover,
.gateway-details-student-menu button:focus-visible {
  background: #eef5ff;
  color: #245da7;
  outline: none;
}

.gateway-details-student-menu .gateway-details-student-menu-danger {
  color: #b91c1c;
}

.gateway-details-student-menu .gateway-details-student-menu-danger:hover,
.gateway-details-student-menu .gateway-details-student-menu-danger:focus-visible {
  background: #fef2f2;
  color: #991b1b;
}

.course-video-create-panel {
  color: #334155;
}

.course-video-create-actions {
  display: grid;
  gap: 0.7rem;
  margin-bottom: 0.9rem;
}

.course-video-create-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}

.course-video-create-panel .form-text {
  color: #1d4ed8;
}

.course-video-create-toggle,
details.course-video-create-panel summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 8.25rem;
  min-height: 2.35rem;
  border: 1px solid rgba(56, 115, 203, 0.25);
  border-radius: 0.75rem;
  padding: 0.45rem 0.85rem;
  background: #eef5ff;
  cursor: pointer;
  list-style: none;
  color: #245da7;
  font: inherit;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  box-shadow: 0 0.35rem 0.8rem rgba(15, 23, 42, 0.05);
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.course-video-create-toggle:hover,
.course-video-create-toggle:focus-visible,
details.course-video-create-panel summary:hover,
details.course-video-create-panel summary:focus-visible {
  border-color: rgba(56, 115, 203, 0.42);
  background: #f8fbff;
  color: #1d4ed8;
  outline: none;
  box-shadow: 0 0.5rem 1rem rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.course-video-create-toggle.is-active,
details.course-video-create-panel[open] summary {
  border-color: rgba(56, 115, 203, 0.5);
  background: #ffffff;
  color: #0f172a;
  box-shadow: inset 0 -3px 0 #3873cb, 0 0.45rem 0.9rem rgba(56, 115, 203, 0.11);
}

.course-video-create-toggle:disabled {
  cursor: not-allowed;
  opacity: 0.62;
  transform: none;
  box-shadow: none;
}

.course-video-limit-messages {
  display: grid;
  gap: 0.2rem;
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 650;
}

.course-video-limit-messages p {
  margin: 0;
}

details.course-video-create-panel summary::-webkit-details-marker {
  display: none;
}

.course-video-create-actions .course-video-create-panel,
details.course-video-create-panel > form {
  border: 1px solid rgba(191, 219, 254, 0.72);
  border-radius: 0.9rem;
  padding: 0.85rem;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 0.45rem 1rem rgba(15, 23, 42, 0.06);
}

.course-video-create-actions .course-video-create-panel > form {
  margin-top: 0 !important;
}

.course-video-create-actions .course-video-create-panel > form.row {
  row-gap: 1rem;
}

.course-video-create-actions .course-video-create-panel > form.row > * {
  margin-top: 0;
}

.course-video-create-actions .course-video-create-panel[hidden] {
  display: none;
}

.course-video-management-dialog {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  align-items: center;
  justify-items: center;
  place-items: center;
  padding: 1.25rem;
  background: rgba(15, 23, 42, 0.34);
  backdrop-filter: blur(5px);
}

.course-video-management-dialog[hidden] {
  display: none;
}

.course-video-management-card {
  width: min(56rem, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  border: 1px solid rgba(191, 219, 254, 0.85);
  border-radius: 0.95rem;
  padding: 1rem;
  background: #ffffff;
  box-shadow: 0 1.5rem 3rem rgba(15, 23, 42, 0.22);
}

.course-video-management-card .row {
  align-items: start;
}

.course-video-management-card .form-label {
  color: #1e3a8a !important;
}

.course-video-transcript-input {
  min-height: 5.25rem;
  resize: vertical;
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.5;
}

.btn-ai-transcript {
  border-color: #6d28d9;
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
  color: #ffffff;
  box-shadow: 0 0.3rem 0.8rem rgba(109, 40, 217, 0.18);
}

.btn-ai-transcript:hover,
.btn-ai-transcript:focus-visible {
  border-color: #5b21b6;
  background: linear-gradient(135deg, #6d28d9 0%, #5b21b6 100%);
  color: #ffffff;
}

.btn-ai-transcript:focus-visible {
  box-shadow: 0 0 0 0.22rem rgba(139, 92, 246, 0.28);
}

.btn-ai-transcript:disabled,
.btn-ai-transcript[aria-disabled="true"] {
  border-color: #b9a8d8;
  background: #d8cfee;
  color: #5f5472;
  box-shadow: none;
  opacity: 1;
}

.course-video-upload-status {
  display: inline-flex;
  align-items: center;
  min-height: 1.25rem;
  margin-left: 0.7rem;
  color: #64748b;
  font-size: 0.88rem;
  font-weight: 700;
}

.course-video-upload-status[data-tone="busy"] {
  color: #3873cb;
}

.course-video-upload-status[data-tone="success"] {
  color: #15803d;
}

.video-source-review-card {
  width: min(38rem, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  border: 1px solid rgba(191, 219, 254, 0.88);
  border-radius: 1rem;
  padding: 1.15rem;
  background: #ffffff;
  box-shadow: 0 1.5rem 3rem rgba(15, 23, 42, 0.24);
}

.gateway-modal-eyebrow {
  margin: 0 0 0.12rem;
  color: #5282c4;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.video-source-review-intro {
  margin: 0 0 0.9rem;
  color: #475569;
  line-height: 1.45;
}

.video-source-review-summary {
  display: flex;
  align-items: flex-start;
  gap: 0.72rem;
  margin-bottom: 0.85rem;
  border: 1px solid #bfdbfe;
  border-radius: 0.8rem;
  padding: 0.75rem;
  background: #f3f8ff;
  color: #1e3a8a;
}

.video-source-review-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  border-radius: 0.55rem;
  background: #dbeafe;
  color: #3873cb;
}

.video-source-review-icon svg {
  width: 1.08rem;
  height: 1.08rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linejoin: round;
}

.video-source-review-summary p {
  margin: 0.18rem 0 0;
  color: #52657d;
  font-size: 0.84rem;
  line-height: 1.35;
}

.video-source-review-section {
  display: grid;
  gap: 0.45rem;
  margin: 0 0 0.8rem;
  border: 0;
  padding: 0;
}

.video-source-review-section[hidden] {
  display: none;
}

.video-source-review-section legend {
  margin-bottom: 0.35rem;
  color: #1e3a8a;
  font-size: 0.88rem;
  font-weight: 800;
}

.video-source-review-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.65rem;
  align-items: flex-start;
  border: 1px solid #dbe4f0;
  border-radius: 0.72rem;
  padding: 0.68rem 0.75rem;
  background: #ffffff;
  cursor: pointer;
  transition: border-color 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
}

.video-source-review-option:has(input:checked) {
  border-color: #6da1e4;
  background: #f6faff;
  box-shadow: 0 0 0 2px rgba(56, 115, 203, 0.09);
}

.video-source-review-option input {
  margin-top: 0.24rem;
  accent-color: #3873cb;
}

.video-source-review-option span,
.video-source-review-option small {
  display: block;
}

.video-source-review-option strong {
  color: #213a63;
  font-size: 0.88rem;
}

.video-source-review-option small {
  margin-top: 0.12rem;
  color: #64748b;
  font-size: 0.78rem;
  line-height: 1.3;
}

.video-source-review-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.55rem;
  margin-top: 1rem;
}

.course-video-source-picker {
  margin: 0;
}

.course-video-source-picker.course-video-edit-source-section {
  margin-top: 0.4rem;
}

.course-video-form-section {
  border: 1px solid #dbe4f0;
  border-radius: 0.82rem;
  padding: 0.78rem;
  background: #fbfdff;
  color: #334155;
  font-family: inherit;
}

.course-video-form-section-title,
.course-video-management-card .course-video-form-section-title {
  color: #1e3a8a !important;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
}

legend.course-video-form-section-title {
  float: none;
  width: auto;
  margin: 0 0 0.6rem;
  padding: 0;
}

.course-video-form-section .form-text {
  color: #64748b !important;
}

.course-video-source-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.course-video-source-choices.is-edit {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.course-video-transcript-setup-choices:has([data-new-video-transcript-generate-option]:not([hidden])) {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.course-video-source-choice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.58rem;
  align-items: flex-start;
  min-width: 0;
  border: 1px solid #dbe4f0;
  border-radius: 0.72rem;
  padding: 0.68rem 0.75rem;
  background: #ffffff;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
}

.course-video-source-choice:has(input:checked) {
  border-color: #6da1e4;
  background: #f6faff;
  box-shadow: 0 0 0 2px rgba(56, 115, 203, 0.09);
}

.course-video-source-choice:has(input:disabled) {
  border-color: #e2e8f0;
  background: #f8fafc;
  cursor: not-allowed;
  opacity: 0.68;
  box-shadow: none;
}

.course-video-source-choice input {
  margin-top: 0.24rem;
  accent-color: #3873cb;
}

.course-video-source-choice span,
.course-video-source-choice small {
  display: block;
  min-width: 0;
}

.course-video-source-choice strong {
  color: #213a63;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.35;
}

.course-video-source-choice small {
  margin-top: 0.12rem;
  color: #64748b;
  font-family: inherit;
  font-size: 0.82rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.course-video-transcript-format-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.58rem;
  align-items: flex-start;
  padding-left: 0;
  color: #334155;
}

.course-video-transcript-format-option[hidden] {
  display: none;
}

.course-video-transcript-format-option .form-check-input {
  float: none;
  margin: 0.22rem 0 0;
  accent-color: #3873cb;
}

.course-video-transcript-format-option strong,
.course-video-transcript-format-option small {
  display: block;
}

.course-video-transcript-format-option strong {
  color: #213a63;
}

.course-video-transcript-format-option small {
  margin-top: 0.12rem;
  color: #64748b;
}

.course-video-transcript-format-option:has(.form-check-input:disabled) {
  color: #94a3b8;
  cursor: not-allowed;
  opacity: 0.68;
}

.course-video-transcript-format-option:has(.form-check-input:disabled) strong,
.course-video-transcript-format-option:has(.form-check-input:disabled) small {
  color: inherit;
}

.youtube-duration-preview {
  width: min(30rem, 100%);
}

.youtube-duration-player {
  width: 100%;
  min-width: 200px;
  min-height: 200px;
  overflow: hidden;
  border: 1px solid #dbe4f0;
  border-radius: 0.72rem;
  background: #0f172a;
  aspect-ratio: 16 / 9;
}

.youtube-duration-player iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 200px;
}

.youtube-duration-preview [data-youtube-duration-status] {
  color: #64748b;
}

.youtube-duration-review {
  padding: 0.25rem 0.75rem 0;
  text-align: right;
}

.youtube-duration-review .btn-link {
  color: #64748b;
  font-weight: 700;
  text-decoration: none;
}

.youtube-duration-review .btn-link:hover,
.youtube-duration-review .btn-link:focus-visible {
  color: #285fb0;
  text-decoration: underline;
}

@media (max-width: 700px) {
  .course-video-source-choices,
  .course-video-source-choices.is-edit,
  .course-video-transcript-setup-choices:has([data-new-video-transcript-generate-option]:not([hidden])) {
    grid-template-columns: 1fr;
  }
}

.gateway-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.6rem;
}

.gateway-modal-header h3 {
  margin: 0;
  color: #1e3a8a;
  font-size: 1.05rem;
  font-weight: 800;
}

.gateway-modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 999px;
  background: #ffffff;
  color: #64748b;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.gateway-modal-close:hover,
.gateway-modal-close:focus-visible {
  border-color: rgba(56, 115, 203, 0.42);
  background: #eef5ff;
  color: #245da7;
  outline: none;
}

.gateway-modal-close svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.doveline-confirm-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1500;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: rgba(15, 23, 42, 0.34);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

.doveline-confirm-backdrop[hidden] {
  display: none;
}

.doveline-confirm-card {
  width: min(30rem, 100%);
  max-height: calc(100vh - 2.5rem);
  overflow: auto;
  border: 1px solid rgba(191, 219, 254, 0.85);
  border-radius: 0.95rem;
  padding: 1rem;
  background: #ffffff;
  color: var(--gateway-text-on-light);
  box-shadow: 0 1.5rem 3rem rgba(15, 23, 42, 0.22);
}

.doveline-confirm-header {
  margin-bottom: 0.55rem;
}

.doveline-confirm-header h2 {
  margin: 0;
  color: #1e3a8a;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.25;
}

.doveline-confirm-card p {
  margin: 0;
  color: #475569;
  font-size: 0.94rem;
  line-height: 1.45;
}

.doveline-confirm-reason {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.85rem;
}

.doveline-confirm-reason[hidden] {
  display: none;
}

.doveline-confirm-reason label {
  color: #1e293b;
  font-size: 0.84rem;
  font-weight: 800;
}

.doveline-confirm-reason textarea {
  width: 100%;
  border: 1px solid #bfdbfe;
  border-radius: 0.7rem;
  padding: 0.65rem 0.72rem;
  color: #0f172a;
  resize: vertical;
}

.doveline-confirm-reason textarea:focus {
  border-color: #2563eb;
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.15);
}

.doveline-confirm-reason [role="alert"] {
  min-height: 1.1rem;
  color: #991b1b;
  font-size: 0.8rem;
  font-weight: 700;
}

.doveline-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.doveline-confirm-actions .btn-danger {
  border-color: #b91c1c;
  background: #b91c1c;
}

.doveline-confirm-actions .btn-danger:hover,
.doveline-confirm-actions .btn-danger:focus-visible {
  border-color: #991b1b;
  background: #991b1b;
}

.gateway-feedback-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1490;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: rgba(15, 23, 42, 0.38);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

.gateway-feedback-backdrop[hidden],
.gateway-feedback-card [hidden] {
  display: none !important;
}

.gateway-feedback-card {
  width: min(36rem, 100%);
  max-height: calc(100dvh - 2.5rem);
  overflow: auto;
  border: 1px solid rgba(191, 219, 254, 0.9);
  border-radius: 1rem;
  padding: 1.15rem;
  background: #ffffff;
  color: var(--gateway-text-on-light);
  box-shadow: 0 1.5rem 3rem rgba(15, 23, 42, 0.24);
}

.gateway-feedback-card:focus {
  outline: none;
}

.gateway-feedback-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.gateway-feedback-header h2,
.gateway-feedback-success h3 {
  margin: 0;
  color: #1e3a8a;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.3;
}

.gateway-feedback-header p,
.gateway-feedback-success p {
  margin: 0.3rem 0 0;
  color: #52627a;
  font-size: 0.9rem;
  line-height: 1.5;
}

.gateway-feedback-field {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.9rem;
}

.gateway-feedback-field > label,
.gateway-feedback-label-row label {
  color: #1e293b;
  font-size: 0.85rem;
  font-weight: 800;
}

.gateway-feedback-label-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.gateway-feedback-label-row > span {
  color: #64748b;
  font-size: 0.76rem;
  font-variant-numeric: tabular-nums;
}

.gateway-feedback-field textarea {
  min-height: 9rem;
  resize: vertical;
}

.gateway-feedback-check {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding-left: 0;
  margin: 0.7rem 0;
  color: #334155;
  font-size: 0.86rem;
}

.gateway-feedback-check .form-check-input {
  flex: 0 0 auto;
  float: none;
  margin: 0.12rem 0 0;
}

.gateway-feedback-blocking {
  width: 100%;
  border: 1px solid #fecaca;
  border-radius: 0.72rem;
  padding: 0.75rem 0.85rem;
  background: #fff7f7;
  color: #7f1d1d;
  font-weight: 700;
}

.gateway-feedback-validation {
  min-height: 1rem;
  color: #991b1b;
  font-size: 0.78rem;
  font-weight: 700;
}

.gateway-feedback-form-error:empty {
  display: none;
}

.gateway-feedback-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem;
  margin-top: 1rem;
}

.gateway-feedback-success {
  border: 1px solid #bbf7d0;
  border-radius: 0.85rem;
  padding: 1rem;
  background: #f0fdf4;
}

.gateway-feedback-success:focus {
  outline: none;
}

.gateway-feedback-success strong {
  color: #166534;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

@media (max-width: 575.98px) {
  .gateway-feedback-backdrop {
    align-items: end;
    padding: 0.65rem;
  }

  .gateway-feedback-card {
    max-height: calc(100dvh - 1.3rem);
    border-radius: 0.9rem;
    padding: 1rem;
  }

  .gateway-feedback-actions .btn {
    flex: 1 1 auto;
  }
}

.gateway-admin-feedback-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.gateway-admin-feedback-cleanup {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  border: 1px solid #dbe4f0;
  border-radius: 0.85rem;
  background: #f8fafc;
  padding: 0.85rem 1rem;
}

.gateway-admin-feedback-cleanup strong {
  color: #1e293b;
  font-size: 0.86rem;
}

.gateway-admin-feedback-filters {
  display: grid;
  grid-template-columns: minmax(14rem, 2fr) repeat(3, minmax(9rem, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.gateway-admin-feedback-filters .form-label {
  color: #334155;
  font-size: 0.78rem;
  font-weight: 800;
}

.gateway-admin-feedback-list {
  display: grid;
  gap: 0.75rem;
}

.gateway-admin-feedback-card[hidden] {
  display: none;
}

.gateway-admin-feedback-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.25rem;
}

.gateway-admin-feedback-reference {
  color: #1d4ed8;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.gateway-admin-feedback-status {
  border-color: #cbd5e1;
  background: #f8fafc;
  color: #475569;
}

.gateway-admin-feedback-detail {
  display: grid;
  gap: 1rem;
  border-top: 1px solid #e2e8f0;
  padding: 1rem;
}

.gateway-admin-feedback-message {
  border: 1px solid #dbeafe;
  border-radius: 0.75rem;
  padding: 0.85rem;
  background: #f8fbff;
}

.gateway-admin-feedback-message h3 {
  color: #1e3a8a;
}

.gateway-admin-feedback-message p {
  margin: 0;
  color: #1e293b;
  line-height: 1.55;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.gateway-admin-feedback-context {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem 1rem;
  margin: 0;
}

.gateway-admin-feedback-context > div {
  min-width: 0;
}

.gateway-admin-feedback-context dt {
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.gateway-admin-feedback-context dd {
  margin: 0.12rem 0 0;
  color: #334155;
  font-size: 0.84rem;
  overflow-wrap: anywhere;
}

.gateway-admin-feedback-user-agent {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.74rem !important;
}

.gateway-admin-feedback-form {
  display: grid;
  grid-template-columns: minmax(10rem, 0.45fr) minmax(16rem, 1fr);
  gap: 0.75rem;
  border-top: 1px solid #e2e8f0;
  padding-top: 1rem;
}

.gateway-admin-feedback-form .gateway-feedback-validation,
.gateway-admin-feedback-form-actions {
  grid-column: 1 / -1;
}

.gateway-admin-feedback-form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

@media (max-width: 991.98px) {
  .gateway-admin-feedback-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .gateway-admin-feedback-heading,
  .gateway-admin-feedback-cleanup,
  .gateway-admin-feedback-form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .gateway-admin-feedback-filters,
  .gateway-admin-feedback-context,
  .gateway-admin-feedback-form {
    grid-template-columns: 1fr;
  }

  .gateway-admin-feedback-form .gateway-feedback-validation,
  .gateway-admin-feedback-form-actions {
    grid-column: 1;
  }
}

[data-transcription-unavailable][hidden] {
  display: none !important;
}

.transcript-ai-unavailable {
  color: #6d28d9;
  font-weight: 600;
}

.course-caption-import-status:not(:empty) {
  margin-top: 0.4rem;
  color: #24543d;
  font-size: 0.9rem;
  font-weight: 650;
}

[data-caption-import-error]:not(:empty) {
  margin-top: 0.4rem;
}

.course-video-transcript {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  padding: clamp(1rem, 2.5vw, 1.75rem);
  background: linear-gradient(180deg, #f6f9ff 0%, #fbfdff 100%);
}

.course-video-transcript-controls {
  position: absolute;
  top: 0.75rem;
  right: clamp(0.75rem, 2vw, 1.25rem);
  z-index: 2;
  display: flex;
  justify-content: flex-end;
  margin: 0;
}

.course-video-transcript-capability-notice {
  margin: 0 0 0.65rem;
  border: 1px solid #fde68a;
  border-radius: 0.68rem;
  padding: 0.58rem 0.72rem;
  color: #754f12;
  background: #fffbeb;
  font-size: 0.82rem;
  line-height: 1.45;
}

.course-video-transcript-capability-notice.is-timing {
  border-color: #cbd5e1;
  color: #526277;
  background: #f8fafc;
}

.course-video-transcript-controls[hidden] {
  display: none;
}

.course-video-transcript-follow {
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.25;
}

.course-video-transcript-follow:hover,
.course-video-transcript-follow:focus-visible {
  border-color: #60a5fa;
  background: #dbeafe;
  color: #1e3a8a;
  outline: none;
}

.course-video-transcript-body {
  box-sizing: border-box;
  width: min(100%, 76ch);
  min-width: 0;
  max-width: 100%;
  margin-inline: auto;
  color: #0f172a;
  max-height: min(32rem, 65vh);
  overflow-x: hidden;
  overflow-y: auto;
  overflow-wrap: anywhere;
  overscroll-behavior: contain;
  padding: 1.5rem 1rem 0.85rem 0.35rem;
  scrollbar-gutter: stable;
  scroll-padding-block: 3rem;
  scroll-behavior: smooth;
}

.course-video-transcript-body::-webkit-scrollbar {
  width: 0.7rem;
}

.course-video-transcript-body::-webkit-scrollbar-track {
  border-radius: 999px;
  background: #e2e8f0;
}

.course-video-transcript-body::-webkit-scrollbar-thumb {
  border: 2px solid #e2e8f0;
  border-radius: 999px;
  background: #93c5fd;
}

.course-video-transcript-prose {
  margin: 0;
  color: #172033;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.08rem);
  font-weight: 450;
  letter-spacing: 0.004em;
  white-space: normal;
  line-height: 1.9;
  text-wrap: pretty;
}

.course-video-transcript-prose + .course-video-transcript-prose {
  margin-top: 1.15rem;
}

.course-video-transcript-line {
  position: relative;
  display: inline;
  border-radius: 0.18rem;
  padding: 0.1rem 0;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  cursor: pointer;
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.course-video-transcript-line:hover {
  background: #eaf2ff;
}

.course-video-transcript-line:focus-visible {
  background: #eff6ff;
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.course-video-transcript-line.is-active {
  background: #dbeafe;
  color: #0f2f6d;
  box-shadow: inset 0 -2px #2563eb;
}

.course-video-transcript-line::after {
  content: attr(data-transcript-timestamp);
  position: absolute;
  bottom: calc(100% + 0.22rem);
  left: 0;
  z-index: 2;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  padding: 0.08rem 0.5rem;
  background: #ffffff;
  color: #1e3a8a;
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.45;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateY(0.15rem);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.course-video-transcript-line:hover::after,
.course-video-transcript-line:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.course-video-transcript-text {
  cursor: pointer;
  user-select: text;
}

.course-video-transcript-untimed {
  user-select: text;
}

@media (max-width: 767.98px) {
  .course-video-transcript {
    padding: 0.75rem;
  }

  .course-video-transcript-body {
    max-height: min(24rem, 58vh);
    padding: 1.7rem 0.8rem 0.75rem 0.2rem;
  }

  .course-video-transcript-prose {
    line-height: 1.78;
  }
}

.gateway-maintenance-header-status {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: min(38vw, 24rem);
  padding: 0.48rem 1rem;
  border: 1px solid rgba(180, 83, 9, 0.38);
  border-radius: 999px;
  transform: translate(-50%, -50%);
  color: #7c2d12;
  background: #fff7ed;
  box-shadow: 0 0.5rem 1.2rem rgba(154, 52, 18, 0.14);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.045em;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
}

.gateway-maintenance-header-status > a {
  color: inherit;
  text-decoration: none;
}

.gateway-maintenance-header-status:has(a:hover),
.gateway-maintenance-header-status:has(a:focus-visible) {
  background: #ffedd5;
}

.gateway-maintenance-header-unavailable {
  border-color: rgba(185, 28, 28, 0.38);
  color: #991b1b;
  background: #fef2f2;
}

.gateway-maintenance-admin-content {
  width: min(100% - 2rem, 66rem);
  margin-inline: auto;
}

.gateway-maintenance-control-card {
  position: relative;
  padding: clamp(1.4rem, 3vw, 2.25rem);
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 1rem 2.5rem rgba(15, 23, 42, 0.1);
}

.gateway-maintenance-control-card h2 {
  margin: 0.7rem 0 0.45rem;
  color: #102a63;
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 800;
}

.gateway-maintenance-control-card > p {
  color: #475569;
}

.gateway-maintenance-state-badge,
.gateway-admin-eyebrow {
  display: inline-flex;
  align-items: center;
  width: max-content;
  color: #1d4ed8;
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gateway-maintenance-control-on .gateway-maintenance-state-badge {
  color: #9a3412;
}

.gateway-maintenance-control-unavailable .gateway-maintenance-state-badge {
  color: #b91c1c;
}

.gateway-maintenance-state-details {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 1.35rem 0;
}

.gateway-maintenance-state-details > div {
  min-width: 0;
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  background: #f8fafc;
}

.gateway-maintenance-state-details dt {
  margin-bottom: 0.3rem;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gateway-maintenance-state-details dd {
  margin: 0;
  color: #0f172a;
  overflow-wrap: anywhere;
}

.gateway-maintenance-enable-form {
  display: grid;
  gap: 1rem;
  margin-top: 1.35rem;
}

.gateway-maintenance-enable-form .btn,
.gateway-maintenance-control-on form .btn {
  width: max-content;
}

.gateway-maintenance-last-change {
  margin-top: 1rem;
  font-size: 0.9rem;
}

.gateway-maintenance-page {
  min-height: 100vh;
  margin: 0;
  background: #eef5ff;
}

.gateway-maintenance-screen {
  position: relative;
  display: grid;
  min-height: 100vh;
  place-items: center;
  overflow: hidden;
  padding: 2rem 1rem;
}

.gateway-maintenance-public-card {
  position: relative;
  z-index: 2;
  width: min(100%, 39rem);
  padding: clamp(2rem, 6vw, 3.75rem);
  border: 1px solid rgba(56, 115, 203, 0.18);
  border-radius: 2rem;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 1.5rem 4rem rgba(16, 42, 99, 0.16);
  text-align: center;
}

.gateway-maintenance-public-brand {
  display: inline-flex;
  margin-bottom: 2rem;
  text-decoration: none;
}

.gateway-maintenance-public-icon {
  display: inline-grid;
  width: 4.5rem;
  height: 4.5rem;
  margin-bottom: 1rem;
  border-radius: 1.4rem;
  place-items: center;
  color: #2563eb;
  background: #eff6ff;
}

.gateway-maintenance-public-icon svg {
  width: 2.55rem;
  height: 2.55rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.75;
}

.gateway-maintenance-public-kicker {
  margin: 0 0 0.4rem;
  color: #2563eb;
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.gateway-maintenance-public-card h1 {
  margin-bottom: 0.8rem;
  color: #102a63;
  font-size: clamp(2.15rem, 7vw, 3.4rem);
  font-weight: 850;
  letter-spacing: -0.045em;
}

.gateway-maintenance-public-card > p:not(.gateway-maintenance-public-kicker) {
  margin: 0 auto 1.65rem;
  color: #475569;
  font-size: 1.03rem;
  line-height: 1.65;
}

.gateway-maintenance-admin-signin {
  border-radius: 999px;
  font-weight: 750;
}

.gateway-maintenance-login-copy {
  color: #7c2d12;
  font-weight: 700;
}

@media (max-width: 767.98px) {
  .gateway-navbar-has-maintenance-status {
    padding-bottom: 2.35rem;
  }

  .gateway-maintenance-header-status {
    top: auto;
    bottom: 0.35rem;
    max-width: calc(100% - 2rem);
    padding: 0.32rem 0.75rem;
    transform: translateX(-50%);
    font-size: 0.66rem;
  }

  .gateway-maintenance-state-details {
    grid-template-columns: 1fr;
  }

  .gateway-maintenance-enable-form .btn,
  .gateway-maintenance-control-on form .btn {
    width: 100%;
  }
}

.course-video-source-preview {
  font-family: "SFMono-Regular", SFMono-Regular, ui-monospace, Menlo, Monaco, Consolas, monospace;
  color: #0f172a;
  word-break: break-word;
}

.course-video-delete-form {
  padding-top: 0.5rem;
  border-top: 1px solid #dbeafe;
}

.course-create-header,
.course-discussion-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.course-discussion {
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.discussion-list,
.discussion-new-comment {
  margin-top: 1.25rem;
}

.discussion-thread {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid #dbeafe;
  border-radius: 1rem;
  background: #ffffff;
}

.discussion-thread-legacy {
  border-style: dashed;
  background: #f8fafc;
}

.discussion-message {
  padding: 0.85rem 1rem;
  border-radius: 0.85rem;
  background: #eff6ff;
}

.discussion-message p {
  margin: 0.55rem 0 0;
  white-space: pre-wrap;
}

.discussion-message-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  color: #475569;
  font-size: 0.9rem;
}

.discussion-response {
  background: #f0fdfa;
  border-left: 4px solid #14b8a6;
}

.discussion-replies {
  margin-top: 0.85rem;
  margin-left: clamp(0.5rem, 4vw, 2rem);
  display: grid;
  gap: 0.75rem;
}

.discussion-reply-form {
  padding: 0.85rem;
  border-radius: 0.85rem;
  background: #f8fafc;
}

.discussion-reply-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.75rem;
}

.discussion-reply-assistant-status {
  margin-top: 0.55rem;
}

.gateway-assistant {
  position: relative;
  z-index: 1110;
  font-family: inherit;
}

.gateway-assistant.is-fullscreen-hosted {
  position: fixed;
  top: max(1rem, env(safe-area-inset-top));
  right: max(1rem, env(safe-area-inset-right));
  z-index: 1400;
}

.gateway-assistant-toggle.gateway-assistant-toggle-unavailable {
  border-color: rgba(148, 163, 184, 0.52);
  color: #cbd5e1;
  background: linear-gradient(135deg, rgba(71, 85, 105, 0.94), rgba(30, 41, 59, 0.96));
  box-shadow: 0 0.5rem 1.25rem rgba(15, 23, 42, 0.16);
  cursor: not-allowed;
  filter: grayscale(1);
  opacity: 0.58;
}

.gateway-assistant-toggle.gateway-assistant-toggle-unavailable:hover,
.gateway-assistant-toggle.gateway-assistant-toggle-unavailable:focus-visible {
  box-shadow: 0 0.5rem 1.25rem rgba(15, 23, 42, 0.16);
  opacity: 0.72;
  transform: none;
}

.gateway-assistant-toggle.gateway-assistant-toggle-unavailable:focus-visible {
  outline: 2px solid rgba(100, 116, 139, 0.68);
  outline-offset: 3px;
}

.gateway-assistant-unavailable-tooltip {
  position: absolute;
  top: calc(100% + 0.65rem);
  right: 0;
  z-index: 2;
  width: max-content;
  max-width: min(18rem, calc(100vw - 2rem));
  border: 1px solid rgba(148, 163, 184, 0.4);
  border-radius: 0.65rem;
  padding: 0.55rem 0.7rem;
  color: #f8fafc;
  background: rgba(30, 41, 59, 0.98);
  box-shadow: 0 0.75rem 1.75rem rgba(15, 23, 42, 0.24);
  font-size: 0.8rem;
  font-weight: 650;
  line-height: 1.35;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-0.2rem);
  visibility: hidden;
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
}

.gateway-assistant-unavailable-tooltip::before {
  position: absolute;
  right: 1.05rem;
  bottom: 100%;
  width: 0.7rem;
  height: 0.7rem;
  border-top: 1px solid rgba(148, 163, 184, 0.4);
  border-left: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(30, 41, 59, 0.98);
  content: "";
  transform: translateY(0.35rem) rotate(45deg);
}

.gateway-assistant-is-unavailable:hover .gateway-assistant-unavailable-tooltip,
.gateway-assistant-is-unavailable:focus-within .gateway-assistant-unavailable-tooltip {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.gateway-ai-controls-panel .card-body {
  display: grid;
  gap: 1.25rem;
}

.gateway-ai-admin-tabs {
  display: inline-flex;
  gap: 0.35rem;
  width: fit-content;
  margin-bottom: 1rem;
  border: 1px solid #bfdbfe;
  border-radius: 0.8rem;
  padding: 0.3rem;
  background: rgba(255, 255, 255, 0.88);
}

.gateway-ai-admin-tabs [role="tab"] {
  border: 0;
  border-radius: 0.58rem;
  padding: 0.55rem 0.9rem;
  color: #334155;
  background: transparent;
  font-weight: 800;
}

.gateway-ai-admin-tabs [role="tab"][aria-selected="true"] {
  color: #ffffff;
  background: #2563eb;
  box-shadow: 0 0.3rem 0.8rem rgba(37, 99, 235, 0.22);
}

.gateway-ai-admin-tabs [role="tab"]:focus-visible {
  outline: 3px solid rgba(56, 189, 248, 0.5);
  outline-offset: 2px;
}

.gateway-ai-limit-navigation {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.gateway-ai-limit-navigation [role="tab"] {
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  padding: 0.42rem 0.78rem;
  color: #1d4ed8;
  background: #eff6ff;
  font-weight: 800;
  text-decoration: none;
}

.gateway-ai-limit-navigation [role="tab"][aria-selected="true"] {
  border-color: #2563eb;
  color: #ffffff;
  background: #2563eb;
  box-shadow: 0 0.3rem 0.8rem rgba(37, 99, 235, 0.2);
}

.gateway-ai-limit-navigation [role="tab"]:focus-visible {
  outline: 3px solid rgba(56, 189, 248, 0.5);
  outline-offset: 2px;
}

.gateway-ai-limit-section {
  display: grid;
  gap: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid #dbeafe;
  scroll-margin-top: 1rem;
}

.gateway-ai-limit-section[hidden] {
  display: none;
}

.gateway-ai-limit-inline {
  margin: 0;
  border: 1px solid #dbeafe;
  border-radius: 0.85rem;
  padding: 1rem;
  background: #f8fbff;
}

.gateway-ai-limit-intro,
.gateway-ai-workspace-heading,
.gateway-ai-editor-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.gateway-ai-limit-intro h3,
.gateway-ai-workspace-heading h4,
.gateway-ai-limit-intro p,
.gateway-ai-workspace-heading p {
  margin-bottom: 0;
}

.gateway-ai-limit-eyebrow {
  display: block;
  margin-bottom: 0.25rem;
  color: #2563eb;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.gateway-ai-editor-toggle {
  flex: 0 0 auto;
}

.gateway-ai-limit-snapshot {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.gateway-ai-limit-snapshot article {
  display: grid;
  gap: 0.2rem;
  border: 1px solid #dbeafe;
  border-radius: 0.85rem;
  padding: 0.9rem 1rem;
  background: linear-gradient(145deg, #ffffff, #f8fbff);
}

.gateway-ai-limit-snapshot article > span {
  color: #475569;
  font-size: 0.76rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.035em;
}

.gateway-ai-limit-snapshot article > strong {
  font-size: 1rem;
}

.gateway-ai-task-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.gateway-ai-task-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 0.8rem;
  min-height: 6.25rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.95rem;
  padding: 1rem;
  color: #1e293b;
  background: #ffffff;
  text-align: left;
  box-shadow: 0 0.35rem 0.9rem rgba(15, 23, 42, 0.055);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.gateway-ai-task-card:hover,
.gateway-ai-task-card:focus-visible,
.gateway-ai-task-card.is-active {
  border-color: #60a5fa;
  outline: none;
  box-shadow: 0 0.55rem 1.2rem rgba(37, 99, 235, 0.13);
  transform: translateY(-1px);
}

.gateway-ai-task-card.is-active {
  background: #eff6ff;
}

.gateway-ai-task-card > span:last-child,
.gateway-ai-direction-choices label span {
  display: grid;
  gap: 0.2rem;
}

.gateway-ai-task-card small,
.gateway-ai-direction-choices small {
  color: #475569;
  font-weight: 550;
  line-height: 1.4;
}

.gateway-ai-task-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  color: #1d4ed8;
  background: #dbeafe;
  font-size: 1rem;
  font-weight: 900;
}

.gateway-ai-task-workspace {
  display: grid;
  gap: 1rem;
  border: 1px solid #bfdbfe;
  border-radius: 1rem;
  padding: 1rem;
  background: linear-gradient(155deg, #f8fbff, #ffffff 65%);
  box-shadow: inset 0 1px 0 #ffffff;
}

.gateway-ai-task-workspace[hidden],
.gateway-ai-progressive-editor[hidden] {
  display: none;
}

.gateway-ai-workspace-heading > div,
.gateway-ai-editor-heading > div {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.gateway-ai-editor-close {
  flex: 0 0 auto;
  border: 0;
  border-radius: 0.5rem;
  padding: 0.3rem 0.5rem;
  color: #475569;
  background: transparent;
  font-size: 0.82rem;
  font-weight: 750;
}

.gateway-ai-editor-close:hover,
.gateway-ai-editor-close:focus-visible {
  color: #1d4ed8;
  background: #dbeafe;
  outline: none;
}

.gateway-ai-subtask-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.gateway-ai-subtask-button {
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  padding: 0.48rem 0.78rem;
  color: #1d4ed8;
  background: #ffffff;
  font-weight: 800;
}

.gateway-ai-subtask-button:hover,
.gateway-ai-subtask-button:focus-visible,
.gateway-ai-subtask-button.is-active {
  border-color: #2563eb;
  color: #ffffff;
  background: #2563eb;
  outline: none;
}

.gateway-ai-progressive-editor {
  box-shadow: 0 0.45rem 1.1rem rgba(15, 23, 42, 0.07);
}

.gateway-ai-explanation-field {
  margin-top: 0.25rem;
  border-top: 1px solid #dbeafe;
  padding-top: 0.9rem;
}

[data-override-mode-fields][hidden],
[data-override-custom-fields][hidden],
[data-override-explanation-fields][hidden],
[data-override-action-fields][hidden],
[data-adjustment-course-chooser][hidden],
[data-adjustment-course-field][hidden],
[data-adjustment-user-field][hidden],
[data-adjustment-entry-field][hidden],
.gateway-ai-adjustment-details[hidden] {
  display: none;
}

.gateway-ai-course-chooser {
  min-width: 0;
  margin: 0;
  border: 0;
  padding: 0;
}

.gateway-ai-course-chooser > legend {
  margin-bottom: 0.45rem;
  color: #0f172a;
  font-size: 0.9rem;
  font-weight: 800;
}

.gateway-ai-course-choice-list {
  display: grid;
  gap: 0.45rem;
  max-height: 22rem;
  margin-top: 0.6rem;
  overflow-y: auto;
  border: 1px solid #dbeafe;
  border-radius: 0.8rem;
  padding: 0.55rem;
  background: #f8fbff;
}

.gateway-ai-course-chooser.is-collapsed .gateway-ai-course-choice-list {
  max-height: none;
  overflow: visible;
}

.gateway-ai-course-choice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 0.65rem;
  margin: 0;
  border: 1px solid transparent;
  border-radius: 0.65rem;
  padding: 0.7rem;
  background: #ffffff;
  cursor: pointer;
}

.gateway-ai-course-choice[hidden] {
  display: none;
}

.gateway-ai-course-choice:hover,
.gateway-ai-course-choice:has(input:checked) {
  border-color: #60a5fa;
  background: #eff6ff;
}

.gateway-ai-course-choice:focus-within {
  outline: 3px solid rgba(56, 189, 248, 0.5);
  outline-offset: 1px;
}

.gateway-ai-course-choice > input {
  width: 1rem;
  height: 1rem;
  margin-top: 0.2rem;
  accent-color: #2563eb;
}

.gateway-ai-course-choice > span:nth-child(2) {
  display: grid;
  gap: 0.12rem;
}

.gateway-ai-course-choice small {
  color: #475569;
  line-height: 1.35;
}

.gateway-ai-course-state {
  border-radius: 999px;
  padding: 0.18rem 0.48rem;
  color: #1e3a8a;
  background: #dbeafe;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.gateway-ai-course-choice-empty {
  margin: 0;
  padding: 0.8rem;
  color: #64748b;
  text-align: center;
}

.gateway-ai-no-op-note {
  color: #475569;
  font-size: 0.88rem;
  font-weight: 650;
}

.gateway-ai-direction-fieldset {
  margin: 0;
  border: 0;
  padding: 0;
}

.gateway-ai-direction-fieldset legend {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.7rem;
  color: #0f172a;
  font-size: 0.92rem;
  font-weight: 850;
}

.gateway-ai-direction-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.gateway-ai-direction-choices label {
  position: relative;
  display: block;
  margin: 0;
  cursor: pointer;
}

.gateway-ai-direction-choices input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.gateway-ai-direction-choices label span {
  min-height: 4.65rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.8rem;
  padding: 0.8rem;
  background: #ffffff;
}

.gateway-ai-direction-choices input:checked + span {
  border-color: #2563eb;
  background: #eff6ff;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.13);
}

.gateway-ai-direction-choices input:focus-visible + span {
  outline: 3px solid rgba(56, 189, 248, 0.5);
  outline-offset: 2px;
}

.gateway-ai-override-mode-choices {
  display: grid;
  gap: 0.55rem;
}

.gateway-ai-override-mode-choices label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 0.65rem;
  margin: 0;
  border: 1px solid #dbeafe;
  border-radius: 0.7rem;
  padding: 0.7rem 0.8rem;
  background: #ffffff;
  cursor: pointer;
}

.gateway-ai-override-mode-choices label:has(input:checked) {
  border-color: #60a5fa;
  background: #eff6ff;
}

.gateway-ai-override-mode-choices label:focus-within {
  outline: 3px solid rgba(56, 189, 248, 0.5);
  outline-offset: 2px;
}

.gateway-ai-override-mode-choices input {
  width: 1rem;
  height: 1rem;
  margin-top: 0.2rem;
  accent-color: #2563eb;
}

.gateway-ai-override-mode-choices label > span {
  display: grid;
  gap: 0.15rem;
}

.gateway-ai-override-mode-choices small {
  color: #475569;
  line-height: 1.4;
}

.gateway-ai-adjustment-details {
  margin-top: 1rem;
}

.gateway-ai-limit-workflow {
  display: grid;
  gap: 1rem;
}

.gateway-ai-limit-workflow + .gateway-ai-limit-workflow {
  margin-top: 0.75rem;
  border-top: 1px solid #dbeafe;
  padding-top: 1.5rem;
}

.gateway-ai-current-next {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.25rem;
  border-left: 0.25rem solid #60a5fa;
  border-radius: 0.35rem;
  padding: 0.65rem 0.8rem;
  background: #eff6ff;
  color: #1e3a8a;
}

.gateway-ai-current-balance {
  border-radius: 0.65rem;
  padding: 0.65rem 0.8rem;
  background: #eff6ff;
  color: #1e3a8a;
  font-weight: 800;
}

.gateway-ai-provider-limit-note {
  border-radius: 0.65rem;
  padding: 0.7rem 0.8rem;
  background: #f1f5f9;
}

.gateway-ai-limit-feedback {
  margin-top: 1rem;
}

.gateway-ai-limit-feedback:focus,
.gateway-ai-adjustment-review-card:focus {
  outline: none;
}

.gateway-ai-adjustment-review-card {
  display: grid;
  gap: 0.7rem;
  width: min(34rem, 100%);
}

.gateway-ai-adjustment-review-list {
  display: grid;
  gap: 0.55rem;
  margin: 0.15rem 0 0;
  padding-left: 1.25rem;
  color: #334155;
}

.gateway-ai-adjustment-review-list li {
  padding-left: 0.15rem;
}

.gateway-ai-adjustment-review-list strong {
  display: block;
  margin-bottom: 0.05rem;
  color: #0f172a;
  font-size: 0.83rem;
}

.gateway-ai-adjustment-review-list span {
  color: #475569;
  overflow-wrap: anywhere;
}

.gateway-ai-controls-panel {
  color: #1e293b;
}

.gateway-ai-controls-panel p,
.gateway-ai-controls-panel .h6,
.gateway-ai-controls-panel .form-label,
.gateway-ai-controls-panel .form-text,
.gateway-ai-controls-panel .form-check-label,
.gateway-ai-controls-panel small,
.gateway-ai-controls-panel dt,
.gateway-ai-controls-panel th,
.gateway-ai-controls-panel td {
  color: #1e293b;
}

.gateway-ai-controls-panel strong {
  color: #0f172a;
}

.gateway-ai-controls-panel a {
  color: #1d4ed8;
}

.gateway-ai-limit-feedback.gateway-admin-feedback-success {
  border-color: #86efac;
  background: #dcfce7;
  color: #14532d;
}

.gateway-ai-limit-feedback.gateway-admin-feedback-error {
  border-color: #fecaca;
  background: #fef2f2;
  color: #991b1b;
}

.gateway-ai-status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.45rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 800;
}

.gateway-ai-status-available {
  color: #166534;
  background: #dcfce7;
}

.gateway-ai-status-paused {
  color: #991b1b;
  background: #fee2e2;
}

.gateway-ai-status-disabled {
  color: #92400e;
  background: #fef3c7;
}

.gateway-ai-status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 0;
}

.gateway-ai-status-grid > div {
  border: 1px solid #dbeafe;
  border-radius: 0.75rem;
  padding: 0.8rem;
  background: #f8fbff;
}

.gateway-ai-status-grid dt {
  color: #475569;
  font-size: 0.78rem;
  font-weight: 700;
}

.gateway-ai-status-grid dd {
  margin: 0.2rem 0 0;
  color: #0f172a;
  font-weight: 800;
}

.gateway-ai-spend-panel {
  display: grid;
  gap: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid #dbeafe;
}

.gateway-ai-budget-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.gateway-ai-budget-card {
  display: grid;
  gap: 0.8rem;
  padding: 1rem;
  border: 1px solid #dbeafe;
  border-radius: 0.85rem;
  background: #f8fbff;
}

.gateway-ai-budget-card.gateway-ai-budget-warning {
  border-color: #fbbf24;
  background: #fffbeb;
}

.gateway-ai-budget-heading,
.gateway-ai-budget-card dl > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.gateway-ai-budget-progress {
  height: 0.65rem;
  background: #dbeafe;
}

.gateway-ai-budget-progress .progress-bar {
  background: #2563eb;
}

.gateway-ai-budget-warning .gateway-ai-budget-progress .progress-bar {
  background: #d97706;
}

.gateway-ai-budget-card dl {
  display: grid;
  gap: 0.35rem;
  margin: 0;
}

.gateway-ai-budget-card dt {
  color: #475569;
  font-weight: 600;
}

.gateway-ai-budget-card dd {
  margin: 0;
  font-weight: 800;
}

.gateway-ai-reservations,
.gateway-ai-cost-note {
  margin: 0;
  color: #475569;
}

.gateway-ai-course-usage {
  display: grid;
  gap: 0.8rem;
  margin-top: 0.25rem;
  padding-top: 1.1rem;
  border-top: 1px solid #dbeafe;
}

.gateway-ai-course-usage-table {
  table-layout: fixed;
  width: 100%;
  min-width: 42rem;
  margin: 0;
  border: 1px solid #dbeafe;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 0.75rem;
  overflow: hidden;
  background: #ffffff;
  color: #334155;
  font-size: 0.86rem;
}

.gateway-ai-course-usage-table thead th {
  padding: 0.7rem 0.8rem;
  border: 0;
  border-bottom: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #475569;
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.3;
  text-align: left;
  text-shadow: none;
  text-transform: uppercase;
  letter-spacing: 0.035em;
}

.gateway-ai-course-usage-table thead th:first-child {
  width: 40%;
}

.gateway-ai-course-usage-table thead th:not(:first-child) {
  width: 20%;
}

.gateway-ai-course-usage-table tbody td {
  padding: 0.75rem 0.8rem;
  border: 0;
  border-bottom: 1px solid #e2e8f0;
  background: #ffffff;
  letter-spacing: normal;
  text-align: left;
  vertical-align: middle;
}

.gateway-ai-course-usage-table tbody tr:last-child td {
  border-bottom: 0;
}

.gateway-ai-course-usage-table tbody tr:nth-child(even) td {
  background: #f8fbff;
}

.gateway-ai-course-usage-table a {
  color: #1d4ed8;
  font-weight: 800;
}

.gateway-ai-course-usage-empty {
  color: #64748b;
}

.gateway-ai-controls-feedback {
  border-color: #86efac;
  background: #dcfce7;
  color: #14532d;
  box-shadow: 0 0.8rem 1.8rem rgba(20, 83, 45, 0.14);
}

.gateway-ai-pause-details,
.gateway-ai-pause-form {
  display: grid;
  gap: 0.75rem;
  border: 1px solid #fecaca;
  border-radius: 0.85rem;
  padding: 1rem;
  background: #fff7f7;
}

.gateway-ai-pause-details {
  color: #3f1d1d;
}

.gateway-ai-pause-details h3,
.gateway-ai-pause-details strong {
  color: #7f1d1d;
}

.gateway-ai-pause-details .gateway-ai-pause-reason {
  color: #450a0a;
}

.gateway-ai-pause-details p,
.gateway-ai-last-change {
  margin: 0;
}

.gateway-ai-last-change {
  color: #1e293b;
  font-weight: 600;
}

.gateway-ai-pause-reason {
  white-space: pre-wrap;
}

@media (max-width: 680px) {
  .gateway-ai-status-grid,
  .gateway-ai-budget-grid,
  .gateway-ai-limit-snapshot,
  .gateway-ai-task-choices,
  .gateway-ai-direction-choices {
    grid-template-columns: 1fr;
  }

  .gateway-ai-limit-intro,
  .gateway-ai-workspace-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .gateway-ai-editor-toggle {
    width: 100%;
  }
}

.gateway-assistant-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border: 2px solid transparent;
  border-radius: 999px;
  padding: 0.14rem;
  color: #1d4ed8;
  background:
    linear-gradient(145deg, #ffffff, #eef2ff) padding-box,
    conic-gradient(from 215deg, #38bdf8, #22d3ee 28%, #8b5cf6 68%, #6366f1 84%, #38bdf8) border-box;
  box-shadow:
    0 0.55rem 1.35rem rgba(79, 70, 229, 0.2),
    0 0 0.8rem rgba(34, 211, 238, 0.14);
  font-weight: 700;
  isolation: isolate;
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.gateway-assistant-toggle:hover,
.gateway-assistant-toggle:focus-visible {
  box-shadow:
    0 0.75rem 1.7rem rgba(79, 70, 229, 0.28),
    0 0 1.05rem rgba(34, 211, 238, 0.24);
  transform: translateY(-1px) scale(1.025);
}

.gateway-assistant-toggle[aria-expanded="true"] {
  box-shadow:
    0 0.7rem 1.65rem rgba(79, 70, 229, 0.3),
    0 0 0 0.18rem rgba(99, 102, 241, 0.12),
    0 0 1.15rem rgba(34, 211, 238, 0.24);
  transform: translateY(-1px);
}

.gateway-assistant-toggle img {
  width: 2.42rem;
  height: 2.42rem;
  object-fit: contain;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.92), 0 0.18rem 0.45rem rgba(30, 27, 75, 0.22);
}

.gateway-assistant-panel {
  position: absolute;
  right: 0;
  top: 3.75rem;
  width: min(26rem, calc(100vw - 2rem));
  z-index: 1050;
  height: min(40rem, calc(100vh - 5.25rem));
  max-height: min(40rem, calc(100vh - 5.25rem));
  display: none;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #cbd5e1;
  border-radius: 1.2rem;
  color: #0f172a;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  box-shadow: 0 1.4rem 3.5rem rgba(15, 23, 42, 0.24);
}

.gateway-assistant.is-open .gateway-assistant-panel {
  display: flex;
}

.gateway-assistant-panel-header {
  position: relative;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid #e2e8f0;
  background: rgba(255, 255, 255, 0.96);
}

.gateway-assistant-identity {
  display: flex;
  min-width: 0;
  gap: 0.75rem;
  align-items: center;
}

.gateway-assistant-identity > div {
  min-width: 0;
}

.gateway-assistant-identity img {
  width: 2.6rem;
  height: 2.6rem;
  object-fit: contain;
  border-radius: 0.8rem;
}

.gateway-assistant-identity h2 {
  margin: 0;
  color: #0f172a;
  font-size: 1.1rem;
}

.gateway-assistant-identity p {
  overflow: hidden;
  max-width: 14rem;
  margin: 0.15rem 0 0;
  color: #64748b;
  font-size: 0.86rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gateway-assistant-header-actions {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.35rem;
}

.gateway-assistant-header-button,
.gateway-assistant-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  padding: 0;
  color: #475569;
  background: #f8fafc;
  line-height: 1;
}

.gateway-assistant-header-button svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.gateway-assistant-close {
  font-size: 1.2rem;
}

.gateway-assistant-header-button:hover,
.gateway-assistant-header-button:focus-visible,
.gateway-assistant-header-button[aria-pressed="true"],
.gateway-assistant-close:hover,
.gateway-assistant-close:focus-visible {
  color: #1d4ed8;
  background: #eff6ff;
  border-color: #bfdbfe;
}

.gateway-assistant-header-button[aria-pressed="true"] {
  border-color: #818cf8;
  color: #3730a3;
  background: linear-gradient(135deg, #eef2ff, #e0e7ff);
  box-shadow: 0 0 0 0.18rem rgba(99, 102, 241, 0.14);
}

.gateway-assistant-header-button:disabled {
  cursor: wait;
  opacity: 0.45;
}

.gateway-assistant-preview-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.5rem;
  border-bottom: 1px solid #c7d2fe;
  padding: 0.58rem 1rem;
  color: #3730a3;
  background: linear-gradient(90deg, #eef2ff, #f0fdfa);
  font-size: 0.78rem;
  line-height: 1.35;
}

.gateway-assistant-preview-banner strong {
  font-size: 0.8rem;
}

.gateway-assistant.is-preview-expired .gateway-assistant-preview-banner {
  border-color: #fecaca;
  color: #991b1b;
  background: #fff7f7;
}

.gateway-assistant-transcript-notice {
  border-bottom: 1px solid #e2e8f0;
  padding: 0.58rem 1rem;
  color: #64748b;
  background: #f8fafc;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.4;
}

.gateway-assistant-viewing-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-top: 1px solid #fde68a;
  padding: 0.65rem 1rem;
  color: #78350f;
  background: #fffbeb;
  font-size: 0.8rem;
  font-weight: 650;
}

.gateway-assistant-viewing-banner[hidden] {
  display: none;
}

.gateway-assistant-viewing-banner button {
  flex: 0 0 auto;
  border: 1px solid #f59e0b;
  border-radius: 999px;
  padding: 0.3rem 0.62rem;
  color: #78350f;
  background: #ffffff;
  font: inherit;
}

.gateway-assistant-viewing-banner button:hover,
.gateway-assistant-viewing-banner button:focus-visible {
  background: #fef3c7;
}

.gateway-assistant-history {
  position: absolute;
  inset: 4.5rem 0 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 1rem;
  background: rgba(248, 250, 252, 0.99);
  backdrop-filter: blur(12px);
}

.gateway-assistant-history[hidden] {
  display: none;
}

.gateway-assistant-history-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  border-bottom: 1px solid #dbeafe;
  padding-bottom: 0.8rem;
}

.gateway-assistant-history-heading > div {
  display: grid;
  gap: 0.18rem;
}

.gateway-assistant-history-heading strong {
  color: #0f172a;
  font-size: 1rem;
}

.gateway-assistant-history-heading span {
  color: #64748b;
  font-size: 0.76rem;
  line-height: 1.35;
}

.gateway-assistant-history-heading > button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.9rem;
  height: 1.9rem;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  padding: 0;
  color: #475569;
  background: #ffffff;
  font-size: 1.1rem;
  line-height: 1;
}

.gateway-assistant-history-list {
  display: grid;
  gap: 0.65rem;
  min-height: 0;
  padding: 0.85rem 0;
  overflow-y: auto;
}

.gateway-assistant-history-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.7rem;
  border: 1px solid #dbeafe;
  border-radius: 0.85rem;
  padding: 0.7rem;
  background: #ffffff;
  box-shadow: 0 0.16rem 0.45rem rgba(15, 23, 42, 0.04);
}

.gateway-assistant-history-item.is-current {
  border-color: #93c5fd;
  background: #eff6ff;
}

.gateway-assistant-history-item.is-selected {
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.18);
}

.gateway-assistant-history-copy {
  display: grid;
  min-width: 0;
  gap: 0.15rem;
}

.gateway-assistant-history-copy > button {
  overflow: hidden;
  border: 0;
  padding: 0;
  color: #1e3a8a;
  background: transparent;
  font-size: 0.86rem;
  font-weight: 750;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gateway-assistant-history-copy > span {
  color: #64748b;
  font-size: 0.7rem;
}

.gateway-assistant-history-copy > small {
  width: max-content;
  border-radius: 999px;
  padding: 0.12rem 0.42rem;
  color: #1d4ed8;
  background: #dbeafe;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.gateway-assistant-history-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.28rem;
}

.gateway-assistant-history-actions button,
.gateway-assistant-history-more {
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  padding: 0.28rem 0.58rem;
  color: #1d4ed8;
  background: #ffffff;
  font-size: 0.7rem;
  font-weight: 750;
}

.gateway-assistant-history-actions button:hover,
.gateway-assistant-history-actions button:focus-visible,
.gateway-assistant-history-more:hover,
.gateway-assistant-history-more:focus-visible {
  background: #eff6ff;
}

.gateway-assistant-history-actions button.is-danger {
  border-color: #fecaca;
  color: #b91c1c;
}

.gateway-assistant-history-actions button.is-danger:hover,
.gateway-assistant-history-actions button.is-danger:focus-visible {
  background: #fff1f2;
}

.gateway-assistant-history-more {
  align-self: center;
  margin-top: auto;
}

.gateway-assistant-history-empty {
  align-self: center;
  margin: auto;
  color: #64748b;
  font-size: 0.84rem;
  text-align: center;
}

.gateway-assistant-history-empty.is-danger {
  color: #b91c1c;
}

.gateway-assistant-context {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 0.65rem;
  border: 1px solid #bfdbfe;
  border-left: 3px solid #3b82f6;
  border-radius: 0.75rem;
  padding: 0.65rem;
  color: #1e293b;
  background: #f8fbff;
}

.gateway-assistant-context[hidden] {
  display: none;
}

.gateway-assistant-context-pin {
  width: 1.1rem;
  height: 1.1rem;
  color: #2563eb;
  transform: rotate(-8deg);
}

.gateway-assistant-context-pin path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.gateway-assistant-context-pin circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.gateway-assistant-context > div > span,
.gateway-assistant-context > div > strong,
.gateway-assistant-context > div > p {
  display: block;
}

.gateway-assistant-context > div > span {
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.gateway-assistant-context > div > strong {
  overflow: hidden;
  color: #1e293b;
  font-size: 0.82rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gateway-assistant-context > div > p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0.08rem 0 0;
  color: #475569;
  font-size: 0.8rem;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.gateway-assistant-context button {
  align-self: start;
  border: 0;
  border-radius: 999px;
  padding: 0.12rem 0.38rem;
  color: #64748b;
  background: transparent;
  font-size: 1.05rem;
  line-height: 1;
}

.gateway-assistant-context button:hover,
.gateway-assistant-context button:focus-visible {
  color: #1d4ed8;
  background: #dbeafe;
  outline: none;
}

.gateway-assistant-status {
  padding: 0.55rem 1rem 0;
  color: #64748b;
  font-size: 0.86rem;
}

.gateway-assistant-status:empty {
  display: none;
}

.gateway-assistant-status[data-tone="danger"] {
  color: #b91c1c;
}

.gateway-assistant-messages {
  display: grid;
  flex: 1 1 auto;
  align-content: start;
  gap: 0.75rem;
  min-width: 0;
  min-height: 12rem;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 1rem;
  background: #f8fafc;
  scrollbar-gutter: stable;
}

.gateway-assistant-empty {
  align-self: center;
  justify-self: center;
  max-width: 18rem;
  padding: 1.25rem;
  color: #64748b;
  font-size: 0.92rem;
  line-height: 1.5;
  text-align: center;
}

.gateway-assistant-message {
  box-sizing: border-box;
  min-width: 0;
  max-width: 92%;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 0.8rem 0.9rem;
  color: #1e293b;
  background: #ffffff;
  box-shadow: 0 0.2rem 0.65rem rgba(15, 23, 42, 0.06);
  font-family: inherit;
  font-size: 0.72rem;
  line-height: 1.15;
}

.gateway-assistant-message-user {
  justify-self: end;
  border-color: #bfdbfe;
  background: #eff6ff;
}

.gateway-assistant-message-assistant {
  justify-self: start;
}

.gateway-assistant-message.is-pending {
  border-style: dashed;
  border-color: #93c5fd;
}

.gateway-assistant-message.is-failed {
  border-color: #fecaca;
  background: #fff7f7;
}

.gateway-assistant-message.is-canceled {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.gateway-assistant-message > .gateway-assistant-message-label {
  display: block;
  margin-bottom: 0.35rem;
  color: #334155;
  font-size: 0.82rem;
}

.gateway-assistant-transcript-warning {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 0.95rem;
  height: 0.95rem;
  margin-left: 0.32rem;
  color: #ca8a04;
  vertical-align: -0.14rem;
  cursor: default;
}

.gateway-assistant-transcript-warning:focus-visible {
  border-radius: 0.15rem;
  outline: 2px solid rgba(202, 138, 4, 0.55);
  outline-offset: 2px;
}

.gateway-assistant-transcript-warning svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.gateway-assistant-transcript-warning-mark {
  fill: none;
  stroke: #ffffff;
  stroke-width: 2;
  stroke-linecap: round;
}

.gateway-assistant-transcript-warning-dot {
  fill: #ffffff;
}

.gateway-assistant-transcript-warning-tooltip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.45rem);
  z-index: 5;
  width: max-content;
  max-width: min(17rem, calc(100vw - 2rem));
  border-radius: 0.35rem;
  padding: 0.35rem 0.5rem;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.96);
  box-shadow: 0 0.4rem 1rem rgba(15, 23, 42, 0.2);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.3;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%);
  visibility: hidden;
  white-space: normal;
}

.gateway-assistant-transcript-warning:hover .gateway-assistant-transcript-warning-tooltip,
.gateway-assistant-transcript-warning:focus-visible .gateway-assistant-transcript-warning-tooltip {
  opacity: 1;
  visibility: visible;
}

.gateway-assistant-message-content {
  min-width: 0;
  overflow-wrap: anywhere;
  font: inherit;
}

.gateway-assistant-message-user .gateway-assistant-message-content {
  margin: 0;
  font: inherit;
  white-space: pre-wrap;
}

.gateway-assistant-message-assistant .gateway-assistant-message-content > :first-child {
  margin-top: 0;
}

.gateway-assistant-message-assistant .gateway-assistant-message-content > :last-child {
  margin-bottom: 0;
}

.gateway-assistant-math {
  max-width: 100%;
}

.gateway-assistant-math-display {
  display: block;
  overflow-x: auto;
  overflow-y: hidden;
  margin: 0.55rem 0;
  padding-bottom: 0.12rem;
}

.gateway-assistant-math-display .katex-display {
  margin: 0;
}

.gateway-assistant-message-assistant .gateway-assistant-message-content p,
.gateway-assistant-message-assistant .gateway-assistant-message-content ul,
.gateway-assistant-message-assistant .gateway-assistant-message-content ol,
.gateway-assistant-message-assistant .gateway-assistant-message-content pre {
  margin: 0 0 0.55rem;
  font: inherit;
}

.gateway-assistant-message-assistant .gateway-assistant-message-content ul,
.gateway-assistant-message-assistant .gateway-assistant-message-content ol {
  padding-left: 1.25rem;
}

.gateway-assistant-message-assistant .gateway-assistant-message-content li + li {
  margin-top: 0.24rem;
}

.gateway-assistant-message-assistant .gateway-assistant-message-content h3 {
  margin: 0.68rem 0 0.32rem;
  color: #1e293b;
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.25;
}

.gateway-assistant-message-assistant .gateway-assistant-message-content code {
  border-radius: 0.28rem;
  padding: 0.06rem 0.22rem;
  background: #f1f5f9;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.92em;
}

.gateway-assistant-message-assistant .gateway-assistant-message-content pre {
  overflow-x: auto;
  border: 1px solid #e2e8f0;
  border-radius: 0.55rem;
  padding: 0.55rem;
  background: #f8fafc;
  white-space: pre;
}

.gateway-assistant-message-assistant .gateway-assistant-message-content pre code {
  padding: 0;
  background: transparent;
}

.gateway-assistant-message-assistant .gateway-assistant-message-content a {
  color: #1d4ed8;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.gateway-assistant-message-assistant .gateway-assistant-message-content a:hover,
.gateway-assistant-message-assistant .gateway-assistant-message-content a:focus-visible {
  color: #1e40af;
}

.gateway-assistant-message-state {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  margin-top: 0.55rem;
  border-top: 1px solid rgba(148, 163, 184, 0.28);
  padding-top: 0.45rem;
  color: #64748b;
  font-size: 0.74rem;
  line-height: 1.35;
}

.gateway-assistant-message.is-failed .gateway-assistant-message-state {
  color: #991b1b;
}

.gateway-assistant-message.is-canceled .gateway-assistant-message-state {
  color: #64748b;
}

.gateway-assistant-message.is-canceled .gateway-assistant-message-state button {
  border-color: #cbd5e1;
  color: #475569;
}

.gateway-assistant-message.is-canceled .gateway-assistant-message-state button:hover,
.gateway-assistant-message.is-canceled .gateway-assistant-message-state button:focus-visible {
  background: #f1f5f9;
}

.gateway-assistant-message-state button {
  flex: 0 0 auto;
  border: 1px solid #fca5a5;
  border-radius: 999px;
  padding: 0.2rem 0.52rem;
  color: #991b1b;
  background: #ffffff;
  font: inherit;
  font-weight: 800;
}

.gateway-assistant-message-state-actions {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.35rem;
}

.gateway-assistant-message-state button:hover,
.gateway-assistant-message-state button:focus-visible {
  background: #fee2e2;
}

.gateway-assistant-citations {
  display: flex;
  flex-wrap: wrap;
  gap: 0.38rem;
  min-width: 0;
  max-width: 100%;
  margin-top: 0.65rem;
  overflow: hidden;
  border-top: 1px solid #e2e8f0;
  padding-top: 0.55rem;
}

.gateway-assistant-citation {
  display: inline-flex;
  box-sizing: border-box;
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
  align-items: center;
  overflow: hidden;
  border: 1px solid #bae6fd;
  border-radius: 999px;
  padding: 0.25rem 0.58rem;
  color: #075985;
  background: #f0f9ff;
  font-size: 0.7rem;
  font-weight: 750;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gateway-assistant-citation-label {
  display: block;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

button.gateway-assistant-citation:hover,
button.gateway-assistant-citation:focus-visible,
a.gateway-assistant-citation:hover,
a.gateway-assistant-citation:focus-visible {
  border-color: #38bdf8;
  color: #0c4a6e;
  background: #e0f2fe;
}

a.gateway-assistant-citation.is-web {
  text-decoration: none;
}

.gateway-assistant-citation.is-unavailable {
  border-color: #e2e8f0;
  color: #64748b;
  background: #f8fafc;
  text-decoration: line-through;
  cursor: not-allowed;
}

.gateway-assistant-load-earlier {
  justify-self: center;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  color: #1d4ed8;
  background: #ffffff;
  font-size: 0.75rem;
  font-weight: 750;
}

.gateway-assistant-load-earlier:hover,
.gateway-assistant-load-earlier:focus-visible {
  background: #eff6ff;
}

.gateway-assistant-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem;
  padding: 0;
}

.gateway-assistant-composer {
  padding: 0.8rem 1rem 1rem;
  border-top: 1px solid #e2e8f0;
  background: #ffffff;
}

.gateway-assistant-input-shell {
  position: relative;
  display: block;
  overflow: hidden;
  width: 100%;
  min-height: 2.85rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.85rem;
  background: #f8fafc;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

.gateway-assistant-input-shell:focus-within {
  border-color: #60a5fa;
  box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.12);
}

.gateway-assistant-timestamp-pill {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  margin: 0;
  border: 1px solid #a5b4fc;
  border-radius: 999px;
  padding: 0.16rem 0.36rem;
  color: #3730a3;
  background: linear-gradient(135deg, #eef2ff, #e0e7ff);
  font-size: 0.66rem;
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
}

.gateway-assistant-input-shell > .gateway-assistant-timestamp-pill {
  position: absolute;
  z-index: 1;
  top: 0.66rem;
  left: 0.58rem;
  will-change: transform;
}

.gateway-assistant-timestamp-pill[hidden] {
  display: none;
}

.gateway-assistant-timestamp-pill:hover,
.gateway-assistant-timestamp-pill:focus-visible {
  border-color: #6366f1;
  color: #312e81;
  background: #e0e7ff;
  outline: none;
}

.gateway-assistant-message-timestamp {
  margin: 0 0.4rem 0 0;
  vertical-align: middle;
  pointer-events: none;
}

.gateway-assistant-form textarea {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 2.75rem;
  max-height: 8rem;
  resize: vertical;
  border: 0;
  border-radius: 0.85rem;
  padding: 0.7rem 0.8rem;
  color: #0f172a;
  background: transparent;
  font-family: inherit;
  font-size: 0.78rem;
  line-height: 1.5;
  outline: 0;
}

.gateway-assistant-input-shell.has-attached-moment textarea {
  text-indent: var(--gateway-assistant-timestamp-indent, 2.75rem);
}

.gateway-assistant-form textarea:focus {
  box-shadow: none;
}

.gateway-assistant-composer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.gateway-assistant-composer-tools {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.gateway-assistant-composer-tools:empty {
  display: none;
}

.gateway-assistant-composer-submit {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: auto;
}

.gateway-assistant-attach-moment {
  width: 2rem;
  height: 2rem;
}

.gateway-assistant-send {
  min-width: 4.2rem;
  border: 0;
  border-radius: 0.375rem;
  padding: 0.375rem 0.75rem;
  color: #082f49;
  background: linear-gradient(135deg, #67e8f9, #5eead4);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.5;
}

.gateway-assistant-send:disabled {
  opacity: 0.55;
}

.gateway-assistant-stop {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.36rem;
}

.gateway-assistant-stop[hidden] {
  display: none !important;
}

.gateway-assistant-stop svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}

@keyframes gateway-login-rise {
  from {
    opacity: 0;
    transform: translateY(1.5rem) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 767px) {
  .gateway-login-screen {
    align-items: flex-start;
    padding: 7.2rem 1rem 2.4rem;
  }

  body.gateway-login-page .gateway-login-screen-guest {
    align-items: center;
    min-height: calc(100dvh - 4.75rem);
    padding: 0.75rem 1rem 1rem;
  }

  .gateway-course-screen {
    padding: 2rem 1rem 3rem;
  }

  .gateway-course-hero {
    display: block;
    min-height: 0;
    padding: 1.35rem 1rem;
  }

  .gateway-details-hero-overview {
    padding: 0.95rem 0.9rem 1rem;
  }

  .gateway-details-hero-overview .gateway-details-hero-copy {
    padding-inline: 0;
  }

  .gateway-details-hero-watch {
    padding: 0.95rem 0.9rem 1rem;
  }

  .gateway-details-hero-watch .gateway-details-hero-copy {
    padding-inline: 0;
  }

  .gateway-details-hero.has-student-preview-toggle .gateway-details-hero-copy {
    padding-inline: 0;
  }

  .gateway-details-hero.has-hero-actions .gateway-details-hero-copy {
    padding-inline: 0;
  }

  .gateway-details-hero.has-credit-balances {
    padding-bottom: 1rem;
  }

  .gateway-details-hero.has-transcription-credit-balance {
    min-height: 0;
  }

  .gateway-details-hero.has-credit-balances .gateway-details-hero-copy {
    padding-inline: 0;
  }

  .gateway-course-credit-balances {
    position: static;
    justify-items: end;
    display: grid;
    justify-content: end;
    max-width: none;
    margin-top: 0.8rem;
  }

  .gateway-details-back-link {
    position: static;
    margin-bottom: 0.75rem;
  }

  .gateway-student-preview-toggle {
    position: static;
    display: flex;
    width: max-content;
    margin: 0 0 0.75rem auto;
  }

  .gateway-details-hero-actions {
    position: static;
    width: 100%;
    max-width: none;
    margin: 0 0 0.75rem;
  }

  .gateway-details-hero-actions .gateway-student-preview-toggle {
    width: auto;
    margin: 0;
  }

  .gateway-course-notification-row {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .gateway-header-brand {
    left: 0.95rem;
  }

  .gateway-header-brand .doveline-wordmark {
    min-width: clamp(6.8rem, 30vw, 8.25rem);
  }

  .gateway-header-brand .doveline-wordmark-name {
    font-size: 1.34rem;
  }

  .gateway-header-brand .doveline-wordmark-academy {
    font-size: 0.59rem;
  }

  .gateway-course-list h2,
  .gateway-course-hero h1 {
    font-size: clamp(2rem, 7vw, 2.4rem);
  }

  .gateway-login-card {
    border-radius: 1.45rem;
  }

  .gateway-login-card-inner {
    padding: 1.6rem 1rem 1.2rem;
  }

  .gateway-login-field {
    min-height: 3.8rem;
  }

  .gateway-login-field-icon {
    flex-basis: 3.4rem;
  }

  .gateway-login-field-icon svg {
    width: 1.45rem;
    height: 1.45rem;
  }

  .gateway-login-field-actions {
    gap: 0.25rem;
    padding-right: 0.65rem;
  }

  .gateway-password-toggle {
    width: 2.15rem;
    height: 2.15rem;
  }

  .gateway-login-forgot {
    font-size: 0.78rem;
  }

  .gateway-register-grid {
    grid-template-columns: 1fr;
  }

  .discussion-message-meta {
    flex-direction: column;
  }

  .discussion-replies {
    margin-left: 0;
  }

  .gateway-details-management-grid {
    grid-template-columns: 1fr;
  }

  .course-watch-layout {
    grid-template-columns: 1fr;
  }

  .timestamped-discussion {
    contain: none;
    position: relative;
    height: auto;
    max-height: none;
  }

  .course-context-panel-assistant {
    flex: none;
    height: min(40rem, calc(100svh - 6.5rem));
    min-height: 28rem;
  }

  .timestamped-discussion-replies {
    margin-left: 0;
  }

  .course-player-toolbar {
    padding: 0.85rem;
    gap: 0.6rem;
  }

  .player-progress-row {
    gap: 0.45rem;
  }

  .player-control-row {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .player-control-group {
    flex-wrap: wrap;
  }

  .player-control-group-right {
    margin-left: auto;
  }

  .player-progress {
    min-width: 0;
  }

  .player-volume {
    flex: 1 1 6rem;
    width: auto;
    max-width: 8rem;
  }

  .player-current-chapter {
    display: none;
  }

  .player-settings-menu {
    right: auto;
    left: 0;
  }

  .bookmark-current-time {
    width: 100%;
  }

  .bookmark-chip {
    width: auto;
    justify-content: center;
  }

  .bookmark-item {
    width: 100%;
    flex-wrap: wrap;
  }

  .bookmark-open-area {
    flex-basis: min(100%, 20rem);
    flex-wrap: wrap;
    gap: 0.55rem;
  }

  .course-bookmark-group-header {
    align-items: flex-start;
  }

  .course-bookmark-row {
    flex-wrap: wrap;
    gap: 0.55rem;
  }

  .course-bookmark-open-link {
    flex-basis: min(100%, 20rem);
    flex-wrap: wrap;
    gap: 0.55rem;
  }

  .course-bookmark-actions {
    margin-left: auto;
  }

  .bookmark-note-shell {
    flex-basis: min(100%, 18rem);
    max-width: 100%;
  }

  .bookmark-row-actions {
    margin-left: auto;
  }

  .gateway-assistant {
    position: relative;
  }

  .gateway-assistant-toggle {
    margin-left: auto;
  }

  .gateway-assistant-panel {
    right: 0;
    top: 3.75rem;
    width: min(26rem, calc(100vw - 1.5rem));
    max-height: calc(100vh - 5.25rem);
  }

  .gateway-assistant-form {
    grid-template-columns: 1fr;
  }
}

.gateway-legal-page {
  color: #e7eefb;
}

.gateway-legal-screen {
  min-height: auto;
  padding-top: clamp(2rem, 5vw, 4.5rem);
}

.gateway-legal-content {
  gap: 1rem;
}

.gateway-legal-nav {
  width: 100%;
  overflow-x: auto;
  border: 1px solid rgba(191, 219, 254, 0.75);
  border-radius: 1rem;
  padding: 0.45rem;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 0.75rem 1.8rem rgba(15, 23, 42, 0.08);
  scrollbar-width: thin;
}

.gateway-legal-nav ul {
  display: flex;
  min-width: max-content;
  align-items: center;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gateway-legal-nav-link {
  display: inline-flex;
  border-radius: 0.7rem;
  padding: 0.6rem 0.8rem;
  color: #334155;
  font-size: 0.83rem;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}

.gateway-legal-nav-link:hover,
.gateway-legal-nav-link:focus-visible {
  background: #eff6ff;
  color: #1d4ed8;
}

.gateway-legal-nav-link.is-current {
  background: linear-gradient(135deg, #3873cb, #4f8fe0);
  color: #ffffff;
  box-shadow: 0 0.45rem 0.9rem rgba(56, 115, 203, 0.2);
}

.gateway-legal-document {
  display: grid;
  width: 100%;
  gap: 1rem;
}

.gateway-legal-hero,
.gateway-legal-card {
  border: 1px solid rgba(191, 219, 254, 0.75);
  background: rgba(255, 255, 255, 0.96);
  color: #0f172a;
  box-shadow: 0 1rem 2.2rem rgba(15, 23, 42, 0.1);
}

.gateway-legal-hero {
  border-radius: 1.75rem;
  padding: clamp(1.75rem, 4vw, 3rem);
}

.gateway-legal-eyebrow {
  display: inline-flex;
  margin-bottom: 0.9rem;
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.gateway-legal-hero h1 {
  max-width: 56rem;
  margin: 0 0 0.9rem;
  color: #0f172a;
  font-size: clamp(2rem, 4.6vw, 3.45rem);
  line-height: 1.05;
  text-wrap: balance;
}

.gateway-legal-hero > p:not(.gateway-legal-effective-date) {
  max-width: 52rem;
  margin: 0;
  color: #475569;
  font-size: 1.02rem;
  line-height: 1.7;
}

.gateway-legal-effective-date {
  margin: 1rem 0 0;
  color: #64748b;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.gateway-legal-card {
  border-radius: 1.25rem;
  padding: clamp(1.2rem, 2.5vw, 1.65rem);
}

.gateway-legal-card h2 {
  margin: 0 0 0.75rem;
  color: #0f172a;
  font-size: 1.2rem;
  line-height: 1.25;
}

.gateway-legal-card h3 {
  margin: 0 0 0.35rem;
  color: #1e3a8a;
  font-size: 0.95rem;
}

.gateway-legal-card p {
  margin: 0;
  color: #334155;
  line-height: 1.7;
}

.gateway-legal-card p + p {
  margin-top: 0.8rem;
}

.gateway-legal-card a {
  color: #1d4ed8;
  font-weight: 650;
  text-underline-offset: 0.18em;
}

.gateway-legal-card-accent {
  border-color: #93c5fd;
  background: linear-gradient(135deg, #eff6ff 0%, #ffffff 72%);
}

.gateway-legal-callout {
  border-color: #99f6e4;
  background: linear-gradient(135deg, #ecfdf5 0%, #ffffff 72%);
}

.gateway-legal-section-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.gateway-legal-section-grid > .gateway-legal-card {
  height: 100%;
}

.gateway-legal-subsections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.5rem;
}

.gateway-legal-subsections > section {
  min-width: 0;
  border-left: 3px solid #bfdbfe;
  padding-left: 0.85rem;
}

.gateway-legal-list,
.gateway-legal-promise-list {
  margin: 0;
  padding-left: 1.2rem;
  color: #334155;
  line-height: 1.65;
}

.gateway-legal-list li + li,
.gateway-legal-promise-list li + li {
  margin-top: 0.5rem;
}

.gateway-legal-promise-list {
  padding-left: 0;
  list-style: none;
}

.gateway-legal-promise-list li {
  position: relative;
  padding-left: 1.55rem;
}

.gateway-legal-promise-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #0f766e;
  font-weight: 900;
}

.gateway-about-letter {
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(191, 219, 254, 0.78);
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 1rem 2.2rem rgba(15, 23, 42, 0.1);
  color: #0f172a;
}

.gateway-about-letter-heading {
  border-bottom: 1px solid #dbeafe;
  padding: clamp(2rem, 5vw, 4.2rem) clamp(1.4rem, 7vw, 6rem) clamp(1.7rem, 4vw, 3rem);
  background:
    radial-gradient(circle at 8% 0%, rgba(219, 234, 254, 0.82), transparent 34%),
    linear-gradient(145deg, #ffffff, #f8fbff);
}

.gateway-about-letter-heading h1 {
  max-width: 48rem;
  margin: 0;
  color: #0f172a;
  font-size: clamp(2.4rem, 5vw, 4.35rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.gateway-about-letter-body {
  max-width: 55rem;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem) clamp(1.4rem, 5vw, 3.5rem) clamp(2.6rem, 6vw, 5rem);
  color: #334155;
  font-size: clamp(1rem, 1.6vw, 1.1rem);
  line-height: 1.86;
}

.gateway-about-letter-body p {
  margin: 0;
}

.gateway-about-letter-body p + p {
  margin-top: 1.45rem;
}

.gateway-about-letter-opening {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  max-width: 44rem;
  color: #1e3a8a;
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.018em;
  text-wrap: balance;
}

.gateway-about-letter-opening::before {
  content: "";
  flex: 0 0 auto;
  width: 0.3rem;
  height: 1.55em;
  margin-right: 0.45rem;
  border-radius: 999px;
  background: #3873cb;
  box-shadow: 0.52rem 0 0 #8bb5ee;
}

.gateway-about-letter-belief {
  position: relative;
  margin: clamp(2rem, 5vw, 3.4rem) 0;
  border-left: 4px solid #3873cb;
  padding: 0.65rem 0 0.65rem clamp(1.15rem, 3vw, 2rem);
}

.gateway-about-letter-belief::before {
  content: "“";
  position: absolute;
  left: clamp(0.8rem, 2.2vw, 1.55rem);
  top: -1.55rem;
  color: rgba(56, 115, 203, 0.12);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 6rem;
  line-height: 1;
  pointer-events: none;
}

.gateway-about-letter-belief p {
  position: relative;
  color: #1e3a8a;
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 760;
  line-height: 1.4;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.gateway-about-feature-table-wrap {
  margin: clamp(2rem, 5vw, 3rem) 0;
  overflow: hidden;
  border: 1px solid #dbeafe;
  border-radius: 1rem;
  background: #fbfdff;
}

.gateway-about-feature-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  color: #334155;
  font-size: 0.95rem;
  line-height: 1.55;
}

.gateway-about-feature-table th {
  width: 50%;
  padding: 0.8rem 1.15rem;
  border-bottom: 1px solid #dbeafe;
  background: #f4f8fe;
  color: #1e3a5f;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-align: left;
  text-transform: uppercase;
}

.gateway-about-feature-table th + th,
.gateway-about-feature-table td + td {
  border-left: 1px solid #dbeafe;
}

.gateway-about-feature-table td {
  padding: 1rem 1.15rem 1.1rem;
  vertical-align: top;
}

.gateway-about-feature-table ul {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gateway-about-feature-table li {
  position: relative;
  padding-left: 1rem;
}

.gateway-about-feature-table li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 0.3rem;
  height: 0.3rem;
  border-radius: 999px;
  background: #7ba4db;
  transform: translateY(-50%);
}

.gateway-about-feature-table-wrap + p {
  margin-top: 1.45rem;
}

.gateway-about-signature {
  display: grid;
  gap: 0.1rem;
  margin-top: clamp(2.2rem, 5vw, 3.5rem);
  color: #0f172a;
}

.gateway-about-signature strong {
  font-size: 1.08rem;
}

.gateway-about-signature span {
  color: #64748b;
  font-size: 0.86rem;
}

.gateway-about-operator {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background: rgba(255, 255, 255, 0.94);
}

.gateway-about-operator > div {
  max-width: 58rem;
}

.gateway-about-operator a {
  flex: 0 0 auto;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  padding: 0.65rem 0.9rem;
  background: #eff6ff;
  text-decoration: none;
  white-space: nowrap;
}

@media (max-width: 650px) {
  .gateway-about-letter {
    border-radius: 1.15rem;
  }

  .gateway-about-feature-table-wrap {
    border-radius: 0.85rem;
  }

  .gateway-about-feature-table,
  .gateway-about-feature-table tbody,
  .gateway-about-feature-table tr,
  .gateway-about-feature-table td {
    display: block;
    width: 100%;
  }

  .gateway-about-feature-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    clip-path: inset(50%);
  }

  .gateway-about-feature-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 0.65rem;
    color: #1e3a5f;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .gateway-about-feature-table td + td {
    border-top: 1px solid #dbeafe;
    border-left: 0;
  }

  .gateway-about-operator {
    align-items: flex-start;
    flex-direction: column;
  }
}

.gateway-legal-table-card {
  padding: clamp(1rem, 2.5vw, 1.65rem);
}

.gateway-legal-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid #dbeafe;
  border-radius: 0.9rem;
}

.gateway-legal-table {
  width: 100%;
  min-width: 52rem;
  border-collapse: collapse;
  color: #334155;
  font-size: 0.85rem;
  line-height: 1.55;
}

.gateway-legal-table th,
.gateway-legal-table td {
  border-bottom: 1px solid #dbeafe;
  padding: 0.8rem;
  text-align: left;
  vertical-align: top;
}

.gateway-legal-table thead th {
  background: #eff6ff;
  color: #1e3a8a;
  font-size: 0.73rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.gateway-legal-table tbody th {
  width: 18%;
  color: #0f172a;
  font-weight: 800;
}

.gateway-legal-table tbody tr:last-child th,
.gateway-legal-table tbody tr:last-child td {
  border-bottom: 0;
}

.gateway-legal-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0;
  border: 1px solid #bfdbfe;
  border-radius: 0.8rem;
  padding: 0.8rem;
  background: #f8fbff;
  color: #334155;
  font-size: 0.82rem;
  line-height: 1.5;
}

.gateway-legal-consent .form-check-input {
  flex: 0 0 auto;
  float: none;
  margin: 0.15rem 0 0;
}

.gateway-legal-consent a {
  color: #1d4ed8;
  font-weight: 700;
}

body .btn-primary,
body .btn-outline-primary,
body .btn-outline-secondary,
.gateway-login-submit,
.gateway-register-submit,
.gateway-admin-primary-action,
.gateway-assistant-send {
  border-color: var(--gateway-action-blue-border) !important;
  background: linear-gradient(135deg, var(--gateway-action-blue-start), var(--gateway-action-blue-end)) !important;
  color: #ffffff !important;
  text-decoration: none;
  box-shadow: var(--gateway-action-blue-shadow);
}

body .btn-primary:hover,
body .btn-primary:focus-visible,
body .btn-outline-primary:hover,
body .btn-outline-primary:focus-visible,
body .btn-outline-secondary:hover,
body .btn-outline-secondary:focus-visible,
.gateway-login-submit:hover,
.gateway-login-submit:focus-visible,
.gateway-register-submit:hover,
.gateway-register-submit:focus-visible,
.gateway-admin-primary-action:hover,
.gateway-admin-primary-action:focus-visible,
.gateway-assistant-send:hover,
.gateway-assistant-send:focus-visible {
  border-color: var(--gateway-action-blue-start-hover) !important;
  background: linear-gradient(135deg, var(--gateway-action-blue-start-hover), var(--gateway-action-blue-end-hover)) !important;
  color: #ffffff !important;
}

:where(
  button,
  .btn,
  a,
  summary,
  [role="button"],
  [tabindex]:not([tabindex="-1"])
):not(:disabled):focus-visible {
  outline: 2px solid rgba(56, 115, 203, 0.62) !important;
  outline-offset: 2px;
  box-shadow: 0 0 0 0.18rem rgba(56, 115, 203, 0.14) !important;
}

:where(
  button,
  .btn,
  a,
  summary,
  [role="button"],
  [tabindex]:not([tabindex="-1"])
):focus:not(:focus-visible) {
  outline: none !important;
  box-shadow: none;
}

body .btn-primary:disabled,
body .btn-outline-primary:disabled,
body .btn-outline-secondary:disabled,
.gateway-login-submit:disabled,
.gateway-register-submit:disabled,
.gateway-admin-primary-action:disabled,
.gateway-assistant-send:disabled {
  border-color: var(--gateway-action-blue-border) !important;
  background: linear-gradient(135deg, var(--gateway-action-blue-start), var(--gateway-action-blue-end)) !important;
  color: #ffffff !important;
  box-shadow: none;
  opacity: 0.6;
}

[data-course-edit-save]:disabled,
[data-course-edit-save]:disabled:hover,
[data-course-edit-save]:disabled:focus,
[data-display-name-save]:disabled,
[data-display-name-save]:disabled:hover,
[data-display-name-save]:disabled:focus {
  border-color: #cbd5e1 !important;
  background: #e2e8f0 !important;
  color: #64748b !important;
  cursor: not-allowed;
  opacity: 1;
}

body .gateway-revert-action {
  border: 1px solid #94a3b8 !important;
  background: #f8fafc !important;
  color: #334155 !important;
  box-shadow: none !important;
}

body .gateway-revert-action:hover,
body .gateway-revert-action:focus-visible {
  border-color: #64748b !important;
  background: #e2e8f0 !important;
  color: #0f172a !important;
}

/* Instructor-only, transcript-grounded video review workspace. */
.instructor-video-ai-tools {
  width: min(74rem, calc(100% - 2rem));
  margin: 0.8rem auto 1rem;
  color: #17233b;
}

.instructor-video-ai-subheader {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.35rem;
  padding: 0.38rem;
  border: 1px solid rgba(78, 102, 171, 0.2);
  border-radius: 1rem;
  background: rgba(247, 249, 255, 0.92);
  box-shadow: 0 0.55rem 1.5rem rgba(55, 69, 112, 0.1);
  backdrop-filter: blur(12px);
}

.instructor-video-ai-tab {
  display: inline-flex;
  min-width: 0;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.58rem 0.8rem;
  border: 1px solid transparent;
  border-radius: 0.72rem;
  background: transparent;
  color: #475778;
  font: inherit;
  font-weight: 720;
  line-height: 1.15;
  transition: color 150ms ease, background 150ms ease, border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.instructor-video-ai-tab svg {
  flex: 0 0 auto;
  width: 1.28rem;
  height: 1.28rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.instructor-video-ai-tab:not(:disabled):hover {
  color: #264fcb;
  background: rgba(229, 236, 255, 0.75);
}

.instructor-video-ai-tab.is-active {
  border-color: rgba(62, 94, 213, 0.22);
  background: #fff;
  color: #2f45b7;
  box-shadow: 0 0.28rem 0.9rem rgba(49, 61, 125, 0.13);
}

.instructor-video-ai-tab:focus-visible,
.instructor-video-ai-close:focus-visible,
.instructor-video-ai-time:focus-visible {
  outline: 3px solid rgba(71, 118, 238, 0.3);
  outline-offset: 2px;
}

.instructor-video-ai-tab:disabled {
  cursor: not-allowed;
  color: #9aa6bb;
  opacity: 0.72;
}

.instructor-video-ai-transcript-notice {
  margin: 0.55rem 0 0;
  padding: 0.62rem 0.8rem;
  border: 1px solid #fecaca;
  border-radius: 0.72rem;
  color: #b4232e;
  background: #fff1f2;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.45;
}

.instructor-video-ai-transcript-notice.is-warning {
  border-color: #f5d98b;
  color: #76520f;
  background: #fffbeb;
  font-weight: 600;
}

.instructor-video-ai-panel {
  margin-top: 0.55rem;
  padding: clamp(1rem, 2.2vw, 1.55rem);
  border: 1px solid rgba(76, 96, 155, 0.2);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 0.8rem 2rem rgba(42, 55, 101, 0.12);
}

.instructor-video-ai-panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e5eaf3;
}

.instructor-video-ai-panel-heading h2 {
  margin: 0;
  color: #18254a;
  font-size: clamp(1.24rem, 2vw, 1.55rem);
  font-weight: 770;
}

.instructor-video-ai-panel-heading p:not(.instructor-video-ai-eyebrow) {
  max-width: 48rem;
  margin: 0.3rem 0 0;
  color: #66748e;
  line-height: 1.45;
}

.instructor-video-ai-eyebrow {
  margin: 0 0 0.18rem;
  color: #5268b9;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.instructor-video-ai-panel-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.45rem;
}

.instructor-video-ai-close {
  display: inline-grid;
  width: 2.15rem;
  height: 2.15rem;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #eef2f8;
  color: #526079;
  font-size: 1.45rem;
  line-height: 1;
}

.instructor-video-ai-close:hover {
  background: #e2e8f2;
  color: #263553;
}

.instructor-video-ai-status {
  min-height: 0;
  margin-top: 0;
  color: #61708b;
  font-size: 0.92rem;
  font-weight: 650;
}

.instructor-video-ai-status:not(:empty) {
  margin-top: 0.9rem;
}

.instructor-video-ai-status.is-success { color: #18724d; }
.instructor-video-ai-status.is-danger { color: #a72d36; }

.instructor-video-ai-result {
  display: grid;
  gap: 0.9rem;
  max-height: min(40rem, 62vh);
  margin-top: 1rem;
  padding-right: 0.4rem;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-x: contain;
  overscroll-behavior-y: auto;
  scrollbar-gutter: stable;
}

.instructor-video-ai-summary {
  margin: 0;
  color: #273652;
  font-size: 1.02rem;
  line-height: 1.55;
}

.instructor-video-ai-policy-note {
  margin: -0.35rem 0 0;
  color: #78859a;
  font-size: 0.82rem;
}

.instructor-video-ai-limitation,
.instructor-video-ai-stale {
  padding: 0.72rem 0.82rem;
  border-radius: 0.72rem;
  font-size: 0.9rem;
  line-height: 1.45;
}

.instructor-video-ai-limitation {
  border: 1px solid #dce5f5;
  background: #f4f7fc;
  color: #53627b;
}

.instructor-video-ai-stale {
  border: 1px solid #e9c878;
  background: #fff9e8;
  color: #70561b;
}

.instructor-video-ai-list {
  display: grid;
  gap: 0.78rem;
}

.instructor-video-ai-item {
  padding: 1rem;
  border: 1px solid #dfe5ef;
  border-left: 4px solid #7185d4;
  border-radius: 0.85rem;
  background: #fff;
  box-shadow: 0 0.22rem 0.75rem rgba(43, 57, 99, 0.06);
}

.instructor-video-ai-item.is-important { border-left-color: #c84b52; }
.instructor-video-ai-item.is-review { border-left-color: #d4932e; }
.instructor-video-ai-item.is-note { border-left-color: #5c8bc9; }

.instructor-video-ai-item-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.instructor-video-ai-item-heading h3 {
  margin: 0.3rem 0 0;
  color: #1c2945;
  font-size: 1.05rem;
  font-weight: 760;
  line-height: 1.35;
}

.instructor-video-ai-labels {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.instructor-video-ai-label,
.instructor-video-ai-severity,
.instructor-video-ai-applied {
  display: inline-flex;
  align-items: center;
  min-height: 1.45rem;
  padding: 0.14rem 0.48rem;
  border-radius: 999px;
  background: #eef2fa;
  color: #52617b;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.01em;
}

.instructor-video-ai-severity { text-transform: capitalize; }
.instructor-video-ai-severity.is-important { background: #fdebec; color: #9b3038; }
.instructor-video-ai-severity.is-review { background: #fff2d9; color: #805914; }
.instructor-video-ai-severity.is-note { background: #e9f2fd; color: #316799; }
.instructor-video-ai-applied { background: #e6f6ee; color: #21704e; }

.instructor-video-ai-attribution,
.instructor-video-ai-rationale {
  margin: 0.65rem 0 0;
  line-height: 1.5;
}

.instructor-video-ai-attribution {
  color: #596983;
  font-size: 0.86rem;
  font-weight: 700;
}

.instructor-video-ai-rationale { color: #36445f; }

.instructor-video-ai-detail {
  margin-top: 0.7rem;
  padding: 0.72rem 0.78rem;
  border-radius: 0.65rem;
  background: #f6f8fc;
}

.instructor-video-ai-detail.is-evidence {
  border-left: 3px solid #bdc9df;
  background: #fafbfe;
}

.instructor-video-ai-detail.is-interject {
  border: 1px solid #d8d4fb;
  background: #f6f4ff;
}

.instructor-video-ai-detail h4,
.instructor-video-ai-sources h3 {
  margin: 0 0 0.25rem;
  color: #52617c;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.instructor-video-ai-detail p { margin: 0; line-height: 1.48; }

.instructor-video-ai-choice-list {
  margin: 0.35rem 0 0;
  padding-left: 1.3rem;
}

.instructor-video-ai-choice-list li { padding: 0.15rem 0; }
.instructor-video-ai-choice-list li.is-correct { color: #176b48; font-weight: 700; }
.instructor-video-ai-setting-note { margin: 0.4rem 0 0; color: #61708a; font-size: 0.83rem; }

.instructor-video-ai-time {
  flex: 0 0 auto;
  padding: 0.26rem 0.52rem;
  border: 1px solid #c9d6ed;
  border-radius: 999px;
  background: #f3f7ff;
  color: #275dc3;
  font-size: 0.8rem;
  font-weight: 750;
}

.instructor-video-ai-time:hover { border-color: #86a6e1; background: #e9f1ff; }

.instructor-video-ai-item-actions,
.instructor-video-ai-apply-all {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
  margin-top: 0.8rem;
}

.instructor-video-ai-empty {
  padding: 1.2rem;
  border: 1px dashed #cdd6e5;
  border-radius: 0.8rem;
  background: #f9fafe;
  text-align: center;
}

.instructor-video-ai-empty h3 { margin: 0 0 0.25rem; font-size: 1rem; }
.instructor-video-ai-empty p { margin: 0; color: #6a7891; }

.instructor-video-ai-dismissed {
  border-top: 1px solid #e3e8f1;
  padding-top: 0.75rem;
}

.instructor-video-ai-dismissed summary {
  cursor: pointer;
  color: #5b6880;
  font-size: 0.9rem;
  font-weight: 700;
}

.instructor-video-ai-dismissed > .instructor-video-ai-list { margin-top: 0.75rem; opacity: 0.88; }

.instructor-video-ai-sources {
  padding-top: 0.8rem;
  border-top: 1px solid #e3e8f1;
}

.instructor-video-ai-sources ol { margin: 0.4rem 0 0; padding-left: 1.35rem; }
.instructor-video-ai-sources a { overflow-wrap: anywhere; }

@media (max-width: 700px) {
  .instructor-video-ai-tools { width: min(100% - 1rem, 74rem); }
  .instructor-video-ai-subheader { grid-template-columns: 1fr; }
  .instructor-video-ai-tab { justify-content: flex-start; }
  .instructor-video-ai-panel-heading { flex-direction: column; }
  .instructor-video-ai-panel-actions { width: 100%; justify-content: space-between; }
  .instructor-video-ai-item-heading { flex-direction: column; }
}

@media (max-width: 767.98px) {
  :root {
    --gateway-header-logo-space: clamp(7.7rem, 36vw, 9.4rem);
  }

  body > header .navbar > .container {
    padding-left: var(--gateway-header-logo-space);
    padding-right: 0.75rem;
    gap: 0.5rem;
  }

  .gateway-header-actions {
    gap: 0.45rem;
  }

  .gateway-signed-out-actions {
    display: none;
  }

  .gateway-signed-out-menu {
    display: block;
  }

  .gateway-nav-toggle {
    width: 2.7rem;
    height: 2.7rem;
    padding: 0;
  }

  .gateway-user-menu-toggle {
    width: 2.7rem;
    min-width: 2.7rem;
    height: 2.7rem;
    gap: 0;
    padding: 0.2rem;
  }

  .gateway-user-menu-icon {
    width: 2.25rem;
    height: 2.25rem;
  }

  .gateway-assistant-toggle {
    width: 2.7rem;
    height: 2.7rem;
    padding: 0.12rem;
  }

  .gateway-assistant-toggle img {
    width: 2.2rem;
    height: 2.2rem;
  }

  .gateway-user-menu-text {
    display: none;
  }

  .gateway-admin-section-heading,
  .gateway-admin-user-card-top,
  .gateway-admin-user-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .gateway-admin-user-detail-grid {
    grid-template-columns: 1fr;
  }

  .gateway-admin-course-access-grid {
    grid-template-columns: 1fr;
  }

  .gateway-admin-search-submit {
    align-items: stretch;
  }

  .gateway-admin-inline-submit,
  .gateway-admin-request-actions {
    align-items: stretch;
  }

  .gateway-course-row,
  .gateway-course-card-header,
  .gateway-admin-course-chip,
  .gateway-admin-request-card {
    flex-direction: column;
    align-items: stretch;
  }

  .gateway-admin-request-card-summary,
  .gateway-admin-request-card-body {
    align-items: stretch;
  }

  .gateway-admin-request-card-summary {
    flex-direction: column;
    padding-right: 2.2rem;
  }

  .gateway-admin-request-card-badges {
    justify-content: flex-start;
  }

  .gateway-admin-request-card-body {
    flex-direction: column;
  }

  .gateway-course-browser-controls {
    grid-template-columns: 1fr;
  }

  .gateway-admin-account-request-details {
    grid-template-columns: 1fr;
  }

  .gateway-course-search-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .gateway-course-filter-shell {
    justify-items: start;
  }

  .gateway-course-filter-tabs,
  .gateway-course-card-actions {
    justify-content: flex-start;
  }

  .gateway-course-card-actions form,
  .gateway-course-card-actions .btn {
    width: 100%;
  }

  .gateway-course-key-form {
    flex-direction: column;
    align-items: stretch;
  }

  .gateway-course-key-form .form-control {
    width: 100%;
  }

  .gateway-course-card-actions {
    align-items: stretch;
  }

  .gateway-admin-count {
    align-self: flex-start;
  }

}

@media (max-width: 767.98px) {
  .gateway-site-footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .gateway-site-footer-links {
    grid-template-columns: repeat(3, minmax(7rem, 1fr));
    overflow-x: auto;
    padding-bottom: 0.35rem;
  }

  .gateway-legal-section-grid,
  .gateway-legal-subsections {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 479.98px) {
  .gateway-site-footer {
    padding-top: 2rem;
  }

  .gateway-site-footer-links {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 1rem;
    overflow: visible;
  }

  .gateway-site-footer-bottom {
    flex-direction: column;
    gap: 0.25rem;
  }

  .gateway-legal-screen {
    padding-inline: 0.65rem;
  }

  .gateway-legal-hero {
    border-radius: 1.3rem;
    padding: 1.35rem 1.1rem;
  }

  .gateway-legal-card {
    border-radius: 1rem;
    padding: 1.1rem;
  }
}
/* Passkey step-up failures stay visible without using native browser alerts. */
.gateway-admin-passkey-step-up-status {
    position: fixed;
    z-index: 2100;
    right: 1rem;
    bottom: 1rem;
    max-width: min(28rem, calc(100vw - 2rem));
    padding: 0.85rem 1rem;
    border: 1px solid #b42318;
    border-radius: 0.75rem;
    background: #fff4f2;
    color: #7a271a;
    box-shadow: 0 0.75rem 2rem rgba(16, 24, 40, 0.18);
    font-weight: 650;
}
.gateway-status-page {
    min-height: 100vh;
    margin: 0;
    color: #102a63;
    background:
        radial-gradient(circle at 18% 16%, rgba(92, 177, 255, 0.23), transparent 28rem),
        radial-gradient(circle at 82% 78%, rgba(118, 85, 220, 0.18), transparent 30rem),
        #f3f7ff;
}

.gateway-status-shell {
    position: relative;
    display: grid;
    min-height: 100vh;
    place-items: center;
    overflow: hidden;
    padding: 2rem 1rem;
}

.gateway-status-stars {
    position: absolute;
    inset: 0;
    opacity: 0.38;
    pointer-events: none;
    background-image:
        radial-gradient(circle, rgba(16, 42, 99, 0.32) 1px, transparent 1.5px),
        radial-gradient(circle, rgba(81, 98, 196, 0.28) 1px, transparent 1.5px);
    background-position: 0 0, 22px 28px;
    background-size: 48px 48px, 62px 62px;
}

.gateway-status-card {
    position: relative;
    width: min(100%, 39rem);
    padding: clamp(2rem, 5vw, 3.5rem);
    text-align: center;
    border: 1px solid rgba(16, 42, 99, 0.12);
    border-radius: 1.5rem;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 1.5rem 4rem rgba(16, 42, 99, 0.15);
    backdrop-filter: blur(10px);
}

.gateway-status-brand {
    display: inline-flex;
    width: min(14rem, 65%);
    margin-bottom: 2rem;
    color: inherit;
}

.gateway-status-brand svg {
    width: 100%;
    height: auto;
}

.gateway-status-code {
    margin: 0 0 0.45rem;
    color: #63739a;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.15em;
}

.gateway-status-card h1 {
    margin: 0;
    font-size: clamp(2rem, 6vw, 3rem);
    line-height: 1.08;
}

.gateway-status-message {
    max-width: 31rem;
    margin: 1rem auto 0;
    color: #4d5f83;
    font-size: 1.05rem;
    line-height: 1.65;
}

.gateway-status-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.75rem;
}

.gateway-status-secondary {
    color: #3656a4;
    font-weight: 700;
    text-decoration: none;
}

.gateway-status-secondary:hover,
.gateway-status-secondary:focus-visible {
    color: #102a63;
    text-decoration: underline;
}

.gateway-status-reference {
    margin: 2rem 0 0;
    color: #74809d;
    font-size: 0.8rem;
    overflow-wrap: anywhere;
}

.gateway-status-reference code {
    color: inherit;
}
