:root {
  /* Keep the interface readable: reserve heavy type for real headings and key totals. */
  --weight-heading: 800;
  --weight-title: 700;
  --weight-label: 600;
  --weight-body: 400;
  --page: #f4f8ff;
  --surface: #ffffff;
  --surface-soft: #f7faff;
  --line: #e5edf8;
  --text: #10172a;
  --muted: #66748a;
  --green: #16b981;
  --green-dark: #0e8f62;
  --red: #ef4458;
  --yellow: #e9a43a;
  --blue: #1266f1;
  --blue-dark: #0d47c7;
  --purple: #7b61ff;
  --shadow: 0 18px 44px rgba(40, 79, 142, .08);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  width: 100%;
  min-height: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    linear-gradient(135deg, #f9fcff 0%, #edf5ff 46%, #f7fbff 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.45;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

img,
video,
iframe,
canvas {
  max-width: 100%;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.app-shell {
  display: grid;
  grid-template-columns: 258px minmax(0, 1fr);
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-x: clip;
  transition: grid-template-columns .2s ease;
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 22px 18px;
  overflow-y: auto;
  background: rgba(255, 255, 255, .94);
  border-right: 1px solid var(--line);
  box-shadow: 18px 0 42px rgba(40, 79, 142, .05);
  transition: padding .2s ease, box-shadow .2s ease;
}

.sidebar-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px;
  align-items: center;
  gap: 8px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  letter-spacing: 0;
  min-width: 0;
  min-height: 42px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #ffffff;
  background: linear-gradient(135deg, #0f63ff, #0aa1ff);
  border-radius: var(--radius);
  box-shadow: 0 14px 30px rgba(15, 99, 255, .22);
}

.brand-mark svg {
  width: 22px;
  height: 22px;
}

.brand-logo-mark {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  overflow: hidden;
  background: #030303;
  border: 1px solid rgba(2, 6, 23, .08);
  border-radius: 12px;
  box-shadow: 0 14px 30px rgba(2, 6, 23, .18);
}

.brand-logo-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.72);
  transform-origin: center;
}

.brand-copy {
  display: grid;
  gap: 1px;
}

.brand-copy strong {
  color: #10203d;
  font-size: 18px;
  line-height: 1.02;
}

.brand-copy small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.sidebar-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  min-width: 36px;
  height: 36px;
  padding: 0;
  color: #536178;
  background: #f7faff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(40, 79, 142, .05);
  transition: transform .16s ease, background .16s ease, border-color .16s ease;
}

.sidebar-toggle:hover {
  color: #0f63ff;
  background: #edf5ff;
  border-color: #dbeaff;
  transform: translateY(-1px);
}

.sidebar-toggle svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  transition: transform .2s ease;
}

.app-shell.sidebar-collapsed {
  grid-template-columns: 88px minmax(0, 1fr);
}

.app-shell.sidebar-collapsed .sidebar {
  align-items: center;
  padding: 22px 12px;
  overflow-x: hidden;
}

.app-shell.sidebar-collapsed .sidebar-head {
  grid-template-columns: 1fr;
  justify-items: center;
  width: 100%;
}

.app-shell.sidebar-collapsed .brand-lockup {
  justify-content: center;
}

.app-shell.sidebar-collapsed .brand-copy,
.app-shell.sidebar-collapsed .sidebar-toggle span,
.app-shell.sidebar-collapsed .nav-label,
.app-shell.sidebar-collapsed .sidebar-ai-card,
.app-shell.sidebar-collapsed .student-profile-mini span:not(.avatar),
.app-shell.sidebar-collapsed .student-profile-mini > svg {
  display: none;
}

.app-shell.sidebar-collapsed .sidebar-toggle {
  width: 42px;
  min-width: 42px;
  height: 42px;
  padding: 0;
}

.app-shell.sidebar-collapsed .sidebar-toggle svg {
  transform: rotate(180deg);
}

.app-shell.sidebar-collapsed .nav-group {
  justify-items: center;
  width: 100%;
  gap: 9px;
  margin-top: 22px;
}

.app-shell.sidebar-collapsed .nav-group a {
  position: relative;
  justify-content: center;
  gap: 0;
  width: 46px;
  min-height: 46px;
  padding: 0;
  font-size: 0;
}

.app-shell.sidebar-collapsed .nav-group a svg {
  width: 19px;
  height: 19px;
}

.app-shell.sidebar-collapsed .nav-group a.active::before {
  left: -12px;
  height: 24px;
}

.app-shell.sidebar-collapsed .nav-count {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 18px;
  height: 18px;
  font-size: 10px;
}

.nav-group {
  display: grid;
  gap: 7px;
  margin-top: 28px;
}

.nav-label,
.eyebrow {
  color: #73839b;
  font-size: 12px;
  font-weight: var(--weight-label);
}

.nav-group a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 10px 12px;
  color: #526178;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 650;
  border: 1px solid transparent;
}

.nav-text-mobile {
  display: none;
}

.nav-group a.active,
.nav-group a:hover {
  color: #0f63ff;
  background: #edf5ff;
  border-color: #dbeaff;
  box-shadow: 0 10px 26px rgba(15, 99, 255, .08);
}

.nav-group a.active {
  position: relative;
}

.nav-group a.active::before {
  content: "";
  position: absolute;
  left: -18px;
  width: 4px;
  height: 26px;
  background: #0f63ff;
  border-radius: 0 6px 6px 0;
}

.nav-group svg,
.topbar svg,
.button svg,
.icon-button svg,
.course-meta svg,
.meta-list svg {
  width: 17px;
  height: 17px;
}

.sidebar-ai-card {
  display: grid;
  gap: 12px;
  margin-top: auto;
  padding: 16px;
  color: #173154;
  background:
    linear-gradient(160deg, #eef7ff 0%, #ffffff 62%, #eefaf5 100%);
  border: 1px solid #d8eaff;
  border-radius: var(--radius);
  box-shadow: 0 16px 34px rgba(40, 79, 142, .08);
}

.ai-card-orb {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #0f63ff;
  background: #ffffff;
  border: 1px solid #dbeaff;
  border-radius: var(--radius);
}

.sidebar-ai-card small,
.sidebar-ai-card strong {
  display: block;
}

.sidebar-ai-card small {
  color: #0f63ff;
  font-size: 12px;
  font-weight: 750;
}

.sidebar-ai-card strong {
  margin-top: 2px;
  font-size: 14px;
}

.sidebar-ai-card p {
  margin: 6px 0 0;
  color: #5f7088;
  font-size: 12px;
}

.main-area {
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
  padding: 22px clamp(18px, 3vw, 36px) 48px;
}

.student-class-exit-button {
  display: none;
}

.app-shell.student-class-mode {
  display: block;
  min-height: 100vh;
  min-height: 100dvh;
  background: #f7f9fd;
}

.app-shell.student-class-mode .sidebar,
.app-shell.student-class-mode .topbar,
.app-shell.student-class-mode .floating-help {
  display: none !important;
}

.app-shell.student-class-mode .main-area {
  width: 100%;
  padding: 62px clamp(22px, 3vw, 48px) 44px;
}

.app-shell.student-class-mode .student-class-exit-button {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  color: #ffffff;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 12px;
  box-shadow: 0 16px 34px rgba(15, 23, 42, .22);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.app-shell.student-class-mode .student-class-exit-button:hover,
.app-shell.student-class-mode .student-class-exit-button:focus-visible {
  background: #0f63ff;
  transform: translateY(-1px);
}

.app-shell.student-class-mode .student-class-exit-button svg {
  width: 18px;
  height: 18px;
}

.learning-class-content-head {
  display: none;
}

[data-learning-overview-slot][hidden] {
  display: none;
}

.learning-room-shell.is-tab-loading {
  opacity: .72;
  pointer-events: none;
}

.learning-room-shell.is-tab-loading [data-learning-tabs],
.learning-room-shell.is-tab-loading [data-learning-overview-slot],
.learning-room-shell.is-tab-loading [data-learning-context-panel] {
  opacity: .62;
  pointer-events: none;
}

@media (min-width: 861px) {
  .app-shell.student-class-mode {
    display: block;
    min-height: 100vh;
    background: #f7f9fd;
  }

  .app-shell.student-class-mode .sidebar {
    display: none !important;
  }

  .app-shell.student-class-mode .student-class-exit-button {
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 30;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 14px;
    color: #ffffff;
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 12px;
    box-shadow: 0 16px 34px rgba(15, 23, 42, .22);
    font-size: 13px;
    font-weight: 800;
    text-align: center;
  }

  .app-shell.student-class-mode .student-class-exit-button:hover,
  .app-shell.student-class-mode .student-class-exit-button:focus-visible {
    background: #0f63ff;
    transform: translateY(-1px);
  }

  .app-shell.student-class-mode .student-class-exit-button svg {
    width: 18px;
    height: 18px;
  }

  .app-shell.student-class-mode .topbar {
    display: none !important;
  }

  .app-shell.student-class-mode .main-area {
    padding: 62px clamp(22px, 3vw, 48px) 44px;
  }

  .app-shell.student-class-mode .learning-room-shell {
    width: min(100%, 1300px);
    margin: 0 auto;
    grid-template-columns: minmax(0, 820px) minmax(330px, 380px);
    gap: 34px;
    align-items: start;
    justify-content: center;
  }

  .app-shell.student-class-mode .learning-room-sidebar {
    grid-column: 2;
    grid-row: 1 / span 3;
    position: sticky;
    top: 22px;
    display: grid;
    gap: 0;
    max-height: calc(100vh - 44px);
    padding: 0;
    overflow: auto;
    border-radius: 6px;
    box-shadow: 0 18px 42px rgba(15, 35, 70, .12);
  }

  .app-shell.student-class-mode .learning-room-main {
    grid-column: 1;
    grid-row: 1;
    gap: 14px;
  }

  .app-shell.student-class-mode .learning-video-card {
    order: 1;
  }

  .app-shell.student-class-mode .learning-heading-row {
    order: 2;
  }

  .app-shell.student-class-mode .learning-tabs {
    order: 3;
  }

  .app-shell.student-class-mode .learning-lesson-meta {
    order: 4;
  }

  .app-shell.student-class-mode .learning-overview-grid {
    order: 5;
  }

  .app-shell.student-class-mode [data-learning-overview-slot] {
    order: 5;
  }

  .app-shell.student-class-mode .learning-context-panel {
    grid-column: 1;
    max-width: none;
  }

  .app-shell.student-class-mode .learning-class-content-head {
    position: sticky;
    top: 0;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 14px;
    align-items: center;
    padding: 18px 18px 16px;
    color: #ffffff;
    background: #082b78;
  }

  .app-shell.student-class-mode .learning-class-content-head strong,
  .app-shell.student-class-mode .learning-class-content-head small {
    display: block;
  }

  .app-shell.student-class-mode .learning-class-content-head strong {
    font-size: 17px;
    line-height: 1.2;
  }

  .app-shell.student-class-mode .learning-class-content-head small {
    margin-top: 3px;
    color: rgba(255, 255, 255, .78);
    font-size: 12px;
    font-weight: 700;
  }

  .app-shell.student-class-mode .learning-class-content-head > span {
    font-size: 16px;
    font-weight: 800;
  }

  .app-shell.student-class-mode .learning-class-content-head .progress-line {
    grid-column: 1 / -1;
    height: 6px;
    background: rgba(255, 255, 255, .28);
  }

  .app-shell.student-class-mode .learning-class-content-head .progress-line span {
    background: #facc15;
  }

  .app-shell.student-class-mode .learning-room-sidebar .learning-back-link,
  .app-shell.student-class-mode .learning-room-sidebar .learning-course-card,
  .app-shell.student-class-mode .learning-room-sidebar .learning-sidebar-tabs,
  .app-shell.student-class-mode .learning-room-sidebar .learning-lesson-search,
  .app-shell.student-class-mode .learning-room-sidebar .learning-course-details,
  .app-shell.student-class-mode .learning-room-sidebar > .button {
    display: none;
  }

  .app-shell.student-class-mode .learning-module-list {
    gap: 0;
    background: #ffffff;
  }

  .app-shell.student-class-mode .learning-module {
    border-bottom: 1px solid #dbe4f0;
  }

  .app-shell.student-class-mode .learning-module summary {
    min-height: 58px;
    padding: 16px 18px;
    background: #ffffff;
  }

  .app-shell.student-class-mode .learning-module[open] summary {
    background: #eef4ff;
  }

  .app-shell.student-class-mode .learning-module summary small {
    display: none;
  }

  .app-shell.student-class-mode .learning-module summary strong {
    color: #2d3340;
    font-size: 15px;
  }

  .app-shell.student-class-mode .learning-module summary em {
    color: #263449;
    font-size: 12px;
  }

  .app-shell.student-class-mode .learning-lesson-list {
    gap: 0;
    padding: 6px 10px 14px;
  }

  .app-shell.student-class-mode .learning-lesson-list a {
    grid-template-columns: 26px minmax(0, 1fr);
    gap: 9px;
    min-height: 44px;
    padding: 9px 10px;
    border-radius: 6px;
  }

  .app-shell.student-class-mode .learning-lesson-list a.active,
  .app-shell.student-class-mode .learning-lesson-list a:hover {
    color: #0757d8;
    background: #eef5ff;
    border-color: transparent;
  }

  .app-shell.student-class-mode .learning-lesson-list .lesson-state {
    width: 22px;
    height: 22px;
  }

  .app-shell.student-class-mode .learning-lesson-list strong {
    font-size: 14px;
    font-weight: 650;
  }

  .app-shell.student-class-mode .learning-lesson-list small {
    font-size: 12px;
  }

  .app-shell.student-class-mode .learning-heading-row {
    gap: 14px;
    padding-top: 4px;
  }

  .app-shell.student-class-mode .learning-heading-row h1 {
    margin: 3px 0 6px;
    color: #06246b;
    font-size: clamp(28px, 2vw, 34px);
    line-height: 1.15;
  }

  .app-shell.student-class-mode .learning-heading-note {
    max-width: 720px;
    color: #4c5870;
    font-size: 15px;
    line-height: 1.5;
  }

  .app-shell.student-class-mode .learning-command-strip {
    display: none;
  }

  .app-shell.student-class-mode .learning-tabs {
    gap: 8px;
    padding: 8px 0 0;
    border-bottom: 1px solid #dbe4f0;
  }

  .app-shell.student-class-mode .learning-tabs a {
    min-height: 36px;
    padding: 7px 12px;
    border-radius: 999px;
  }

  .app-shell.student-class-mode .learning-video-card {
    border-radius: 4px;
    box-shadow: 0 18px 40px rgba(12, 28, 62, .12);
  }

  .app-shell.student-class-mode .learning-video-stage {
    min-height: 0;
  }
}

@media (min-width: 861px) and (max-width: 1120px) {
  .app-shell.student-class-mode .learning-room-shell {
    max-width: 900px;
    grid-template-columns: minmax(0, 1fr);
  }

  .app-shell.student-class-mode .learning-room-sidebar {
    grid-column: 1;
    grid-row: auto;
    position: static;
    max-height: none;
  }

  .app-shell.student-class-mode .learning-room-main,
  .app-shell.student-class-mode .learning-context-panel {
    grid-column: 1;
  }
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 8;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: -2px 0 24px;
  padding: 10px 0;
  background: rgba(244, 248, 255, .78);
  backdrop-filter: blur(16px);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(560px, 100%);
  min-width: 0;
  min-height: 48px;
  padding: 0 16px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(40, 79, 142, .06);
}

.search-box > i,
.search-box > svg {
  flex: 0 0 auto;
  pointer-events: none;
}

.search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-button {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #31405a;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 24px rgba(40, 79, 142, .06);
}

.icon-button:hover,
.button:hover {
  transform: translateY(-1px);
}

.icon-button.ghost {
  background: var(--surface-soft);
}

.icon-button.danger {
  color: var(--red);
}

.avatar {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  color: #ffffff;
  background: var(--avatar-color, #0f63ff);
  border: 2px solid #ffffff;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
}

.topbar-shortcut {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  color: #728199;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 750;
}

.topbar-shortcut::before {
  content: "Ctrl";
  margin-right: 4px;
  font-weight: 650;
}

.topbar-notification em {
  position: absolute;
  right: -5px;
  top: -6px;
  display: grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  color: #ffffff;
  background: #ef4458;
  border: 2px solid #ffffff;
  border-radius: 99px;
  font-size: 10px;
  font-style: normal;
  font-weight: 750;
}

.topbar-notification-menu {
  position: relative;
}

.floating-help {
  position: fixed;
  right: max(22px, env(safe-area-inset-right));
  bottom: max(22px, env(safe-area-inset-bottom));
  z-index: 90;
  display: grid;
  justify-items: end;
  gap: 10px;
  pointer-events: none;
}

.floating-help-trigger {
  position: relative;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  color: #ffffff;
  padding: 3px;
  background: #ffffff;
  border: 1px solid #cfe2ff;
  border-radius: 16px;
  box-shadow: 0 14px 30px rgba(15, 23, 42, .14), 0 6px 14px rgba(37, 99, 235, .1);
  cursor: pointer;
  isolation: isolate;
  overflow: hidden;
  pointer-events: auto;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.floating-help-trigger::after {
  content: none;
}

.floating-help-trigger svg {
  position: relative;
  z-index: 1;
  width: 26px;
  height: 26px;
  stroke-width: 2.25;
}

.floating-help-trigger img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.floating-help-trigger:hover,
.floating-help-trigger:focus-visible,
.floating-help-trigger[aria-expanded="true"] {
  border-color: #9cc9f9;
  filter: saturate(1.04);
  box-shadow: 0 18px 36px rgba(15, 23, 42, .18), 0 8px 18px rgba(37, 99, 235, .14);
  outline: 0;
  transform: translateY(-2px) scale(1.02);
}

.floating-help-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 14px);
  z-index: 46;
  display: grid;
  width: min(320px, calc(100vw - 32px));
  padding: 8px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, .18);
  pointer-events: auto;
  transform-origin: bottom right;
}

.floating-help-panel[hidden] {
  display: none;
}

.help-panel-head {
  display: grid;
  gap: 2px;
  padding: 10px 10px 12px;
  border-bottom: 1px solid var(--line);
}

.help-panel-head strong,
.help-panel-head small,
.help-panel-item strong,
.help-panel-item small {
  display: block;
  min-width: 0;
}

.help-panel-head strong {
  color: #10203d;
  font-size: 14px;
  font-weight: 750;
}

.help-panel-head small,
.help-panel-item small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.help-panel-item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 58px;
  padding: 9px 10px;
  color: #263653;
  border-radius: var(--radius);
}

.help-panel-item:hover,
.help-panel-item:focus {
  background: #f1f5ff;
}

.help-panel-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
}

.help-panel-icon.email {
  color: #2563eb;
  background: #eaf1ff;
}

.help-panel-item strong {
  color: #0f172a;
  font-size: 13px;
  font-weight: 750;
}

.topbar-notification[aria-expanded="true"] {
  border-color: #c8d7ff;
  box-shadow: 0 16px 36px rgba(37, 99, 235, .12);
}

.topbar-notification-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 35;
  display: grid;
  width: min(380px, calc(100vw - 32px));
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 26px 70px rgba(15, 23, 42, .2);
}

.topbar-notification-panel[hidden] {
  display: none;
}

.notification-panel-head,
.notification-panel-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
}

.notification-panel-head {
  border-bottom: 1px solid var(--line);
}

.notification-panel-head strong,
.notification-panel-head small {
  display: block;
}

.notification-panel-head strong {
  color: #10203d;
  font-size: 15px;
  font-weight: 750;
}

.notification-panel-head small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.notification-panel-head a,
.notification-read-form button,
.notification-panel-footer {
  color: #2563eb;
  font-size: 12px;
  font-weight: 750;
}

.notification-read-form {
  margin: 0;
}

.notification-read-form button {
  min-height: auto;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  cursor: pointer;
}

.notification-read-form button:hover,
.notification-read-form button:focus {
  color: #1746c4;
  text-decoration: underline;
}

.notification-panel-list {
  display: grid;
  max-height: 420px;
  overflow: auto;
  padding: 8px;
}

.notification-panel-item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 10px;
  color: #17223b;
  border-radius: var(--radius);
}

.notification-panel-item:hover,
.notification-panel-item:focus {
  background: #f3f7ff;
}

.notification-panel-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #16a34a;
  background: #e9f9ef;
  border-radius: 12px;
}

.notification-panel-item.assignment .notification-panel-icon,
.notification-panel-item.study-plan .notification-panel-icon {
  color: #2563eb;
  background: #eaf1ff;
}

.notification-panel-item.exam .notification-panel-icon,
.notification-panel-item.quiz .notification-panel-icon {
  color: #ef4444;
  background: #fff1f2;
}

.notification-panel-item.announcement .notification-panel-icon {
  color: #7c3aed;
  background: #f1ebff;
}

.notification-panel-item.batch-message .notification-panel-icon {
  color: #0f766e;
  background: #e6fffb;
}

.notification-panel-item strong,
.notification-panel-item small,
.notification-panel-item em {
  display: block;
  min-width: 0;
}

.notification-panel-item strong {
  color: #0f172a;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.3;
}

.notification-panel-item small {
  margin-top: 3px;
  color: #59677f;
  font-size: 12px;
  font-weight: 680;
  line-height: 1.4;
}

.notification-panel-item em {
  margin-top: 7px;
  color: #1f8a4c;
  font-size: 11px;
  font-style: normal;
  font-weight: 750;
}

.notification-panel-empty {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 32px 18px;
  color: var(--muted);
  text-align: center;
}

.notification-panel-empty svg {
  color: #93a4bf;
}

.notification-panel-empty strong {
  color: #17223b;
}

.notification-panel-footer {
  border-top: 1px solid var(--line);
  background: #f8fbff;
}

.topbar-profile {
  position: relative;
}

.topbar-profile-trigger {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 48px;
  padding: 5px 10px 5px 5px;
  color: inherit;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(40, 79, 142, .06);
  cursor: pointer;
}

.topbar-profile-trigger:hover,
.topbar-profile-trigger[aria-expanded="true"] {
  border-color: #c8d7ff;
  box-shadow: 0 16px 36px rgba(37, 99, 235, .12);
}

.topbar-profile-trigger[aria-expanded="true"] > svg {
  transform: rotate(180deg);
}

.topbar-profile-trigger strong,
.topbar-profile-trigger small {
  display: block;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-profile-trigger strong {
  color: #10203d;
  font-size: 13px;
}

.topbar-profile-trigger small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.topbar-profile-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 30;
  display: grid;
  width: min(260px, calc(100vw - 32px));
  padding: 8px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(15, 23, 42, .18);
}

.topbar-profile-menu[hidden] {
  display: none;
}

.profile-menu-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px 10px 12px;
  border-bottom: 1px solid var(--line);
}

.profile-menu-head strong,
.profile-menu-head small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-menu-head strong {
  color: #10203d;
  font-size: 14px;
}

.profile-menu-head small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.topbar-profile-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 10px;
  color: #263653;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 700;
}

.topbar-profile-menu a:hover,
.topbar-profile-menu a:focus {
  background: #f1f5ff;
}

.topbar-profile-menu a.danger {
  color: #b42334;
}

.avatar.small {
  width: 32px;
  height: 32px;
  font-size: 11px;
}

.avatar.large {
  width: 62px;
  height: 62px;
  font-size: 18px;
}

.avatar.count {
  color: #4f554f;
  background: #f2f4f1;
}

.page-intro {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  min-width: 0;
  max-width: 100%;
  margin-bottom: 20px;
}

.page-intro > * {
  min-width: 0;
}

.page-intro h1 {
  margin: 4px 0 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.05;
  letter-spacing: 0;
}

.panel {
  min-width: 0;
  max-width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.panel,
.course-card,
.post-item {
  padding: 24px;
}

@supports (content-visibility: auto) {
  .course-card,
  .post-item,
  .studio-course-card,
  .career-post-card,
  .certificate-student-card,
  .student-stat-card {
    content-visibility: auto;
    contain-intrinsic-size: 280px;
  }
}

.panel-title-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  min-width: 0;
  margin-bottom: 22px;
}

.panel-title-row > * {
  min-width: 0;
}

.panel-title-row h2,
.section-heading h2 {
  margin: 0;
  font-size: 20px;
  letter-spacing: 0;
}

.panel-title-row a {
    color: var(--green-dark);
    font-size: 14px;
    font-weight: 700;
}

.panel-title-row .calendar-live-add {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--green-dark);
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.panel-title-row .calendar-live-add:hover,
.panel-title-row .calendar-live-add:focus-visible {
    color: #0a7a46;
    text-decoration: underline;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 700;
  transition: transform .16s ease, background .16s ease;
}

.button.primary {
  color: #ffffff;
  background: linear-gradient(135deg, #0f63ff, #0b8cff);
  box-shadow: 0 14px 28px rgba(15, 99, 255, .2);
}

.button.subtle {
  color: #173154;
  background: var(--surface-soft);
  border-color: var(--line);
}

.button.tiny {
  min-height: 30px;
  gap: 6px;
  padding: 0 10px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 800;
}

.button.tiny svg {
  width: 14px;
  height: 14px;
}

.button.danger {
  color: #ffffff;
  background: #dc2626;
  border-color: #dc2626;
  box-shadow: 0 14px 28px rgba(220, 38, 38, .16);
}

.button.wide {
  width: 100%;
}

.pill,
.summary-pill,
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.pill,
.summary-pill {
  color: #526178;
  background: var(--surface-soft);
  border: 1px solid var(--line);
}

.badge.is-good {
  color: #0a7a46;
  background: #e8f8ef;
}

.badge.is-muted {
  color: #6b7280;
  background: #f1f3f2;
}

.badge.is-warn {
  color: #9a6512;
  background: #fff6df;
}

.badge.is-danger {
  color: #b42334;
  background: #fff0f1;
}

.badge.is-neutral {
  color: #3f4650;
  background: #eef2ff;
}

.flash {
  margin-bottom: 18px;
  padding: 12px 14px;
  border-radius: var(--radius);
  font-weight: 650;
}

.flash.success {
  color: #075e38;
  background: #e8f8ef;
  border: 1px solid #bfe9d0;
}

.flash.error {
  color: #9a1f2f;
  background: #fff0f1;
  border: 1px solid #ffd0d5;
}

.ajax-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1500;
  max-width: min(360px, calc(100vw - 32px));
  padding: 13px 16px;
  color: #075e38;
  background: #e8f8ef;
  border: 1px solid #bfe9d0;
  border-radius: var(--radius);
  box-shadow: 0 22px 48px rgba(15, 23, 42, .18);
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity .18s ease, transform .18s ease;
}

.ajax-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.ajax-toast.is-error {
  color: #9a1f2f;
  background: #fff0f1;
  border-color: #ffd0d5;
}

.video-duration-status {
  display: block;
  min-height: 18px;
  margin-top: 4px;
  color: #64748b;
  font-size: .78rem;
  font-weight: 650;
  line-height: 1.35;
}

.video-duration-status.is-success {
  color: #047857;
}

.video-duration-status.is-error {
  color: #b42318;
}

.lesson-reference-row.is-single {
  grid-template-columns: minmax(0, 1fr);
}

.lesson-reference-row input,
.lesson-reference-row textarea,
.lesson-reference-row select {
  min-height: 40px;
}

.lesson-reference-help {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
}

.auto-duration-field span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.auto-duration-field span small {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 2px 8px;
  color: #047857;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0;
  background: #e8f8ef;
  border: 1px solid #b9efcd;
  border-radius: 999px;
}

.auto-duration-field input[readonly] {
  color: #16233c;
  background: #f5f8fc;
  cursor: default;
  appearance: textfield;
}

.auto-duration-field input[readonly]::-webkit-inner-spin-button,
.auto-duration-field input[readonly]::-webkit-outer-spin-button {
  margin: 0;
  appearance: none;
}

.auto-duration-field > small {
  display: block;
  margin-top: 6px;
  color: #64748b;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
}

.is-ajax-saving {
  opacity: .76;
}

.is-ajax-refreshing {
  opacity: .72;
  pointer-events: none;
  transition: opacity .16s ease;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(280px, .92fr) minmax(360px, 1.28fr);
  gap: 18px;
  align-items: stretch;
}

.growth-panel,
.live-panel {
  min-height: 250px;
}

.hero-metric strong {
  display: block;
  font-size: 54px;
  line-height: 1;
  letter-spacing: 0;
}

.hero-metric span,
.split-metrics span,
.stat-cell span,
.metric-panel span,
.muted,
small {
  color: var(--muted);
}

.split-metrics {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 26px;
}

.split-metrics strong {
  display: block;
  font-size: 24px;
}

.growth-strip {
  display: grid;
  grid-template-columns: 88px repeat(24, 1fr);
  align-items: end;
  gap: 5px;
  height: 64px;
  margin-top: 20px;
}

.growth-strip .warm {
  height: 46px;
  border-radius: var(--radius);
  background: linear-gradient(90deg, #ffd3d9, #e9f7d5);
}

.growth-strip i {
  display: block;
  min-height: 12px;
  border-left: 1px solid #dde3da;
}

.analytics-panel {
  align-self: start;
}

.stat-row,
.analytics-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.analytics-panel .stat-row {
  grid-template-columns: repeat(3, 1fr);
}

.stat-cell,
.metric-panel {
  min-width: 0;
  padding: 18px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.stat-cell strong,
.metric-panel strong {
  display: block;
  margin-top: 10px;
  font-size: 26px;
}

.trend.up {
  color: var(--green-dark);
}

.trend.down {
  color: var(--red);
}

.live-panel {
  position: relative;
}

.avatar-stack {
  display: flex;
  margin-top: 70px;
}

.avatar-stack .avatar {
  margin-right: -8px;
}

.live-badge {
  position: absolute;
  right: 24px;
  bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  color: var(--red);
  background: #fff5f6;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 700;
}

.live-badge i {
  width: 7px;
  height: 7px;
  background: var(--red);
  border-radius: 50%;
}

.chart-panel {
  grid-row: span 2;
}

.chart-panel canvas {
  display: block;
  width: 100%;
  min-height: 240px;
}

.chart-panel.tall canvas {
  min-height: 320px;
}

.panel-tools {
  display: flex;
  gap: 8px;
}

.content-grid {
  display: grid;
  gap: 18px;
  min-width: 0;
  max-width: 100%;
  margin-top: 18px;
}

.content-grid > * {
  min-width: 0;
}

.content-grid.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.content-grid.three-col {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.content-grid.with-aside {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}

.course-card {
  display: grid;
  gap: 16px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.course-card h3,
.post-item h3 {
  margin: 0;
  font-size: 20px;
}

.course-card p,
.post-item p {
  margin: 0;
  color: #505850;
}

.course-card-head,
.card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.course-meta,
.meta-list {
  display: grid;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.course-meta span,
.meta-list span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.progress-line {
  overflow: hidden;
  height: 8px;
  min-width: 110px;
  background: #e9ece7;
  border-radius: 999px;
}

.progress-line span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--green), #8edc62);
}

.course-list,
.activity-list,
.stack-list,
.post-list {
  display: grid;
  gap: 12px;
}

.course-row,
.activity-item,
.stack-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.course-row {
  justify-content: space-between;
}

.course-row > span:nth-child(2),
.activity-item > span:nth-child(2),
.stack-item > span:nth-child(2) {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.course-row em {
  color: var(--green-dark);
  font-style: normal;
  font-weight: 700;
}

.course-dot {
  width: 10px;
  height: 38px;
  background: linear-gradient(180deg, var(--green), #b6e86d);
  border-radius: 99px;
}

.step-number {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #ffffff;
  background: #111111;
  border-radius: var(--radius);
  font-weight: 700;
}

.course-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .62fr);
  gap: 24px;
}

.course-hero p {
  max-width: 760px;
  margin: 18px 0 0;
  color: #4f554f;
  font-size: 18px;
}

.course-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.course-hero-stats div {
  padding: 18px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.course-hero-stats strong {
  display: block;
  font-size: 30px;
}

.responsive-table {
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: visible;
  overscroll-behavior-x: contain;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.person-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.person-cell span:last-child {
  display: grid;
  gap: 1px;
}

.form-panel {
  align-self: start;
}

.section-heading {
  margin-bottom: 18px;
}

.form-stack {
  display: grid;
  gap: 14px;
}

.form-stack label {
  display: grid;
  gap: 7px;
}

.form-stack label span {
  color: #4d554d;
  font-size: 13px;
  font-weight: var(--weight-label);
}

input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  color: var(--text);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: 0;
}

input[type="search"] {
  -webkit-appearance: none;
  appearance: none;
  min-width: 0;
  overflow: hidden;
  direction: ltr;
  unicode-bidi: plaintext;
  text-align: left;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
  display: none;
  -webkit-appearance: none;
}

input[type="search"]::placeholder {
  direction: ltr;
  unicode-bidi: plaintext;
}

@media (max-width: 760px) {
  input[type="search"] {
    font-size: 16px;
  }
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(23, 180, 107, .13);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.course-validity-field {
  align-content: start;
}

.course-validity-control {
  display: grid;
  grid-template-columns: minmax(76px, .45fr) minmax(112px, .55fr);
  gap: 8px;
}

.course-validity-control input,
.course-validity-control select {
  min-height: 38px;
}

.course-validity-field small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
}

.inline-form,
.enroll-form,
.table-form {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}

.inline-form input[type="number"],
.table-form input[type="number"] {
  width: 84px;
}

.compact-form {
  margin-top: 16px;
}

.profile-card {
  display: grid;
  justify-items: start;
  gap: 10px;
  padding: 18px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.wide-card {
  grid-template-columns: auto 1fr;
  align-items: center;
  margin-bottom: 18px;
}

.post-item {
  display: grid;
  gap: 14px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.analytics-summary {
  margin-bottom: 18px;
}

.empty-state {
  text-align: center;
}

.course-access-lock-panel {
  position: relative;
  display: grid;
  place-items: center;
  min-height: min(620px, calc(100vh - 220px));
  overflow: hidden;
  padding: clamp(28px, 5vw, 58px);
  background:
    linear-gradient(135deg, rgba(239, 68, 68, .08), rgba(37, 99, 235, .07)),
    #ffffff;
}

.course-access-lock-summary {
  display: grid;
  justify-items: center;
  gap: 14px;
  width: min(620px, 100%);
  text-align: center;
  cursor: pointer;
}

.course-access-lock-icon {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  color: #b45309;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 18px;
}

.course-access-lock-icon svg {
  width: 28px;
  height: 28px;
}

.course-access-lock-eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  color: #7c2d12;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.course-access-lock-panel h1,
.course-access-lock-dialog h2 {
  margin: 0;
  color: #10203d;
  line-height: 1.16;
}

.course-access-lock-panel h1 {
  font-size: 38px;
}

.course-access-lock-dialog h2 {
  font-size: 24px;
}

.course-access-lock-panel p,
.course-access-lock-dialog p {
  max-width: 540px;
  margin: 0;
  color: #40506e;
  font-size: 15px;
  line-height: 1.58;
}

.course-access-lock-details {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 100%;
}

.course-access-lock-details span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  max-width: 100%;
  padding: 0 11px;
  color: #28466f;
  background: #f5f8ff;
  border: 1px solid #dce7f7;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.course-access-lock-details svg {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  color: #315bf7;
}

.course-access-lock-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 4px;
}

.course-access-lock-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 22px;
}

.course-access-lock-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .56);
  border: 0;
  cursor: pointer;
}

.course-access-lock-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 12px;
  width: min(540px, 100%);
  max-height: calc(100vh - 44px);
  overflow-y: auto;
  padding: 30px;
  background:
    linear-gradient(180deg, #ffffff 0%, #fffaf0 100%);
  border: 1px solid #f3d29b;
  border-radius: 18px;
  box-shadow: 0 30px 70px rgba(15, 23, 42, .24);
  text-align: center;
}

.course-access-lock-close {
  position: absolute;
  top: 14px;
  right: 14px;
}

.course-access-lock-dialog > small {
  color: #66758f;
  font-size: 12px;
  font-weight: 650;
}

.course-access-lock-modal[hidden] {
  display: none;
}

@media (max-width: 640px) {
  .course-access-lock-panel {
    min-height: auto;
    padding: 28px 18px;
  }

  .course-access-lock-panel h1 {
    font-size: 30px;
  }

  .course-access-lock-dialog {
    padding: 28px 18px 22px;
  }

  .course-access-lock-actions,
  .course-access-lock-actions .button {
    width: 100%;
  }
}

.auth-body {
  display: grid;
  place-items: center;
  padding: 32px;
  background:
    linear-gradient(135deg, #fff8e8 0%, #eef7ff 42%, #f5efff 100%);
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, .58fr);
  gap: 26px;
  width: min(1080px, 100%);
}

.auth-brand,
.auth-card {
  padding: clamp(26px, 5vw, 52px);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.auth-brand {
  display: grid;
  align-content: space-between;
  min-height: 610px;
  background:
    linear-gradient(135deg, rgba(23, 180, 107, .16), rgba(255, 255, 255, 0) 42%),
    #ffffff;
}

.auth-logo {
  align-self: start;
}

.auth-brand h1 {
  max-width: 660px;
  margin: 70px 0 18px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: .96;
  letter-spacing: 0;
}

.auth-brand p {
  max-width: 560px;
  margin: 0;
  color: #525a52;
  font-size: 18px;
}

.auth-preview {
  display: grid;
  grid-template-columns: 180px 1fr;
  align-items: end;
  gap: 20px;
  width: min(520px, 100%);
  margin-top: 50px;
  padding: 22px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.auth-preview strong {
  display: block;
  font-size: 48px;
}

.mini-bars {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  gap: 8px;
  height: 110px;
}

.mini-bars span {
  display: block;
  background: linear-gradient(180deg, var(--green), #dbecc5);
  border-radius: 999px 999px 0 0;
}

.auth-card {
  align-self: center;
}

.student-auth-brand {
  position: relative;
  overflow: hidden;
  min-height: 640px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .74) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, .74) 1px, transparent 1px),
    linear-gradient(135deg, #ffffff 0%, #eef9ff 42%, #fff6dc 100%);
  background-size: 34px 34px, 34px 34px, auto;
}

.student-auth-copy {
  align-self: center;
}

.student-auth-copy h1 {
  max-width: 620px;
  margin: 22px 0 16px;
  color: #07152f;
  font-size: clamp(42px, 5.8vw, 68px);
  line-height: .98;
}

.student-auth-copy p {
  max-width: 610px;
  color: #41506f;
  font-size: 18px;
  line-height: 1.55;
}

.student-auth-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  color: #124c36;
  background: #dff8e9;
  border: 1px solid #b9eed0;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 750;
}

.student-auth-pill svg {
  width: 16px;
  height: 16px;
}

.student-login-board {
  display: grid;
  gap: 12px;
  width: min(560px, 100%);
  margin-top: 38px;
}

.student-login-focus,
.student-login-mini-grid article {
  background: rgba(255, 255, 255, .88);
  border: 1px solid #dce8f7;
  border-radius: var(--radius);
  box-shadow: 0 18px 34px rgba(58, 101, 165, .11);
}

.student-login-focus {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  padding: 16px;
}

.student-login-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: #ffffff;
  background: #2563eb;
  border-radius: var(--radius);
}

.student-login-icon svg {
  width: 22px;
  height: 22px;
}

.student-login-focus small,
.student-login-focus strong,
.student-login-focus em {
  display: block;
}

.student-login-focus small,
.student-login-mini-grid span {
  color: #66748a;
  font-size: 12px;
  font-weight: 700;
}

.student-login-focus strong {
  margin-top: 2px;
  color: #07152f;
  font-size: 18px;
  font-weight: 800;
}

.student-login-focus em {
  margin-top: 3px;
  color: #10a66c;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.student-login-progress {
  grid-column: 1 / -1;
  height: 8px;
  overflow: hidden;
  background: #e8eef7;
  border-radius: 999px;
}

.student-login-progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #2563eb, #25c985);
  border-radius: inherit;
}

.student-login-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.student-login-mini-grid article {
  display: grid;
  gap: 7px;
  min-height: 112px;
  padding: 14px;
}

.student-login-mini-grid svg {
  width: 20px;
  height: 20px;
  color: #2563eb;
}

.student-login-mini-grid article:nth-child(2) svg {
  color: #f59e0b;
}

.student-login-mini-grid article:nth-child(3) svg {
  color: #16a34a;
}

.student-login-mini-grid strong {
  color: #07152f;
  font-size: 18px;
  font-weight: 800;
}

.auth-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(255, 255, 255, .9)),
    #ffffff;
  border-color: #dce8f7;
}

.auth-card h2 {
  margin-bottom: 8px;
}

.auth-card-subtitle {
  max-width: 300px;
  margin: 0;
  color: #5f6f8d;
  font-size: 14px;
}

.auth-card input {
  min-height: 48px;
  background: #fbfdff;
  border-color: #dbe7f5;
}

.auth-card input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}

.auth-card .button.primary {
  min-height: 48px;
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
  border-color: transparent;
  box-shadow: 0 16px 28px rgba(37, 99, 235, .2);
}

.auth-inline-link {
  margin: -4px 0 2px;
  font-size: 13px;
  font-weight: 800;
  text-align: right;
}

.auth-inline-link a {
  color: #2563eb;
}

.auth-inline-link a:hover,
.auth-inline-link a:focus-visible {
  color: #0f63ff;
  text-decoration: underline;
}

.student-login-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0 0;
  color: #53637f;
  font-size: 12px;
  font-weight: 650;
}

.student-login-note svg {
  width: 16px;
  height: 16px;
  color: #16a34a;
}

.auth-switch-link {
  margin: 14px 0 0;
  color: #53637f;
  font-size: 13px;
  font-weight: 650;
  text-align: center;
}

.auth-switch-link a {
  color: #2563eb;
  font-weight: 800;
}

.auth-switch-link a:hover,
.auth-switch-link a:focus-visible {
  color: #0f63ff;
  text-decoration: underline;
}

.auth-home-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  margin-bottom: 20px;
  padding: 0 12px;
  color: #12345a;
  background: #f4f8ff;
  border: 1px solid #d8e5f7;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

.auth-home-link svg {
  width: 16px;
  height: 16px;
}

.auth-home-link:hover,
.auth-home-link:focus-visible {
  color: #ffffff;
  background: #145cff;
  border-color: #145cff;
  transform: translateY(-1px);
}

.demo-logins {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 16px;
}

.demo-logins button {
  min-height: 36px;
  color: #404840;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 700;
}

.course-intro p {
  max-width: 720px;
  margin: 7px 0 0;
  color: #626a62;
}

.button.accent {
  color: #111111;
  background: var(--accent, #d7ef60);
  border-color: rgba(0, 0, 0, .04);
}

.watch-strip {
  margin-bottom: 18px;
  background: rgba(255, 255, 255, .92);
}

.watch-strip-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.watch-card {
  position: relative;
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  min-height: 124px;
  padding: 16px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.watch-card img,
.course-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center var(--course-thumbnail-y, 50%);
  background: #dfe5dc;
}

.watch-card img {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
}

.watch-card h3,
.learning-card h3 {
  margin: 8px 0;
  font-size: 17px;
  line-height: 1.25;
}

.watch-card > small {
  position: absolute;
  right: 18px;
  top: 16px;
  color: #262b26;
  font-weight: 700;
}

.mini-progress {
  display: grid;
  gap: 8px;
}

.mini-progress > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.catalog-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 22px;
}

.catalog-toolbar > div,
.catalog-search {
  min-width: 0;
}

.catalog-toolbar h2 {
  margin: 0 0 16px;
  font-size: 20px;
}

.course-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.course-tabs a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 12px;
  color: #565e56;
  background: var(--surface-soft);
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 700;
}

.course-tabs a.active,
.course-tabs a:hover {
  color: #111111;
  background: #e9edf0;
  border-color: #dde2e5;
}

.catalog-search {
  display: grid;
  grid-template-columns: auto minmax(130px, 190px) auto auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.catalog-search > i,
.catalog-search > svg {
  width: 18px;
  min-width: 18px;
  pointer-events: none;
}

.catalog-search input {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  background: var(--surface-soft);
}

.learning-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(245px, 1fr));
  gap: 18px;
}

.learning-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  min-width: 0;
  min-height: 360px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 34px rgba(28, 35, 28, .06);
}

.course-thumb {
  display: block;
  height: 132px;
  background: var(--accent, #d7ef60);
}

.learning-card-body {
  display: grid;
  gap: 10px;
  padding: 14px 14px 0;
}

.learning-card-body p {
  display: -webkit-box;
  overflow: hidden;
  min-height: 42px;
  margin: 0;
  color: #555d55;
  font-size: 13px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.course-card-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  color: #13213d;
  font-size: 13px;
}

.course-card-price strong {
  font-size: 15px;
  font-weight: 800;
}

.course-card-price del {
  color: #7a8497;
  font-size: 12px;
}

.course-card-price small {
  color: #168253;
  font-size: 11px;
  font-weight: 700;
}

.learning-card .course-card-head {
  min-width: 0;
  flex-wrap: wrap;
  color: #4f574f;
  font-size: 12px;
  font-weight: 700;
}

.learning-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px;
}

.learning-card-actions .button {
  flex: 1;
  min-height: 38px;
}

.course-purchase-button {
  justify-content: center;
  white-space: nowrap;
}

.course-purchase-unavailable {
  flex: 1;
  min-height: 38px;
  justify-content: center;
}

.course-builder-panel,
.course-editor-panel {
  margin-top: 18px;
}

.course-builder-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.course-builder-form > label,
.course-builder-form > .course-title-url-stack,
.course-builder-form > .course-url-editor,
.course-builder-form > .course-tag-editor,
.course-builder-form > .thumbnail-picker,
.course-builder-form > .form-row,
.course-builder-form > button {
  grid-column: span 1;
}

.course-builder-form > label:has(textarea),
.course-builder-form > .course-description-field,
.course-builder-form > button {
  grid-column: 1 / -1;
}

.course-builder-form > .form-row,
.course-builder-form > .course-validity-field {
  align-self: start;
}

.course-builder-form > .course-description-field .rich-text-surface,
.course-builder-form > .course-description-field .rich-text-source {
  min-height: 320px;
  max-height: 560px;
}

.course-title-url-stack {
  display: grid;
  align-content: start;
  gap: 12px;
}

.course-url-editor {
  display: grid;
  gap: 6px;
}

.course-url-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.course-url-head > span {
  color: #4d554d;
  font-size: 13px;
  font-weight: 700;
}

.course-url-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.course-url-edit,
.course-url-copy {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: #536178;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 18px rgba(40, 79, 142, .05);
}

.course-url-edit:hover,
.course-url-copy:hover,
.course-url-editor.is-editing .course-url-edit {
  color: #0f63ff;
  border-color: #cfe0ff;
  background: #f5f9ff;
}

.course-url-copy.is-copied {
  color: #0e8f62;
  border-color: #bdebd1;
  background: #eefaf3;
}

.course-url-edit svg,
.course-url-copy svg {
  width: 15px;
  height: 15px;
}

.course-url-line {
  display: flex;
  align-items: center;
  min-height: 38px;
  overflow: hidden;
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.course-url-editor.is-editing .course-url-line {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(23, 180, 107, .13);
}

.course-url-prefix {
  flex: 0 1 auto;
  min-width: 0;
  padding: 0 0 0 12px;
  overflow: hidden;
  color: #65738b;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

.course-url-line input {
  flex: 1 1 180px;
  min-width: 140px;
  min-height: 36px;
  padding: 7px 10px 7px 2px;
  color: #0f63ff;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font-weight: 700;
}

.course-url-line input:focus {
  border: 0;
  box-shadow: none;
}

.course-url-line input[readonly] {
  cursor: default;
}

.course-url-helper {
  color: #6a768d;
  font-size: 11px;
  font-weight: 600;
}

.course-tag-editor {
  display: grid;
  gap: 7px;
  align-content: start;
}

.course-tag-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.course-tag-head > span {
  color: #4d554d;
  font-size: 13px;
  font-weight: 700;
}

.course-tag-head small,
.course-tag-helper {
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.course-tag-box {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  min-height: 40px;
  padding: 6px 8px;
  background: #fbfdff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.course-tag-box:focus-within {
  border-color: #8bb3ff;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, .12);
}

.course-tag-chips {
  display: contents;
}

.course-tag-chip,
.course-tag-list span {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 28px;
  padding: 0 10px;
  color: #17486c;
  background: #edf6ff;
  border: 1px solid #d6e9ff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.course-tag-chip {
  gap: 6px;
}

.course-tag-chip button {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  padding: 0;
  color: #5a6b82;
  background: rgba(255, 255, 255, .7);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
  line-height: 1;
}

.course-tag-chip button:hover {
  color: #dc2626;
  background: #ffffff;
}

.course-tag-box input {
  flex: 1 1 170px;
  min-width: 150px;
  min-height: 26px;
  padding: 0 4px;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.course-tag-box input:focus {
  border: 0;
  box-shadow: none;
}

.course-tag-box input:disabled {
  cursor: default;
}

.course-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.course-tag-list.compact {
  gap: 5px;
  margin-top: 0;
}

.course-tag-list.compact.is-empty {
  display: none;
}

.course-tag-list.compact span {
  min-height: 24px;
  padding: 0 8px;
  font-size: 11px;
}

.course-category-manager,
.course-coupon-manager {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.team-edit-dialog.course-category-dialog {
  width: min(1080px, calc(100vw - 44px));
  overflow-x: hidden;
}

.team-edit-dialog.course-coupon-dialog {
  width: min(1160px, calc(100vw - 44px));
  max-height: calc(100vh - 56px);
  overflow-x: hidden;
  overflow-y: auto;
}

.course-category-dialog .course-category-manager,
.course-coupon-dialog .course-coupon-manager {
  margin-top: 0;
}

.course-category-dialog .team-edit-head h2,
.course-category-dialog .team-edit-head p,
.course-category-dialog .panel-title-row h3,
.course-category-dialog .panel-title-row p,
.course-coupon-dialog .team-edit-head h2,
.course-coupon-dialog .team-edit-head p,
.course-coupon-dialog .panel-title-row h3,
.course-coupon-dialog .panel-title-row p {
  margin: 0;
}

.course-category-dialog .team-edit-head p,
.course-category-dialog .panel-title-row p,
.course-coupon-dialog .team-edit-head p,
.course-coupon-dialog .panel-title-row p {
  color: var(--muted);
}

.team-edit-dialog.course-create-dialog {
  width: min(1080px, calc(100vw - 44px));
  overflow-x: hidden;
}

.course-create-dialog .team-edit-head h2,
.course-create-dialog .team-edit-head p {
  margin: 0;
}

.course-create-dialog .team-edit-head p {
  color: var(--muted);
}

.course-create-form {
  gap: 14px;
}

.category-create-form,
.coupon-create-form {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(240px, 1.4fr) 90px 90px auto;
  gap: 10px;
  align-items: end;
  padding: 14px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.coupon-create-form {
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.coupon-create-form > label:nth-of-type(1) {
  grid-column: 1 / span 2;
}

.coupon-create-form > label:nth-of-type(2) {
  grid-column: 3 / span 4;
}

.coupon-create-form > label:nth-of-type(3) {
  grid-column: 7 / span 2;
}

.coupon-create-form > label:nth-of-type(4) {
  grid-column: 9 / span 2;
}

.coupon-create-form > label:nth-of-type(5) {
  grid-column: 1 / span 3;
}

.coupon-create-form > label:nth-of-type(6) {
  grid-column: 4 / span 3;
}

.coupon-create-form > label:nth-of-type(7) {
  grid-column: 7 / span 2;
}

.coupon-create-form > .button {
  grid-column: 11 / -1;
  grid-row: 1;
  width: 100%;
  min-height: 42px;
  justify-content: center;
  white-space: nowrap;
}

.category-create-form label,
.coupon-create-form label {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: #343a34;
  font-weight: 650;
}

.category-create-form label span,
.coupon-create-form label span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.category-create-form input,
.category-create-form select,
.coupon-create-form input,
.coupon-create-form select,
.category-edit-form input,
.category-edit-form select,
.coupon-edit-form input,
.coupon-edit-form select {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.category-create-form input[type="color"],
.category-edit-form input[type="color"] {
  padding: 4px;
}

.category-management-list {
  display: grid;
  gap: 10px;
}

.coupon-management-list {
  display: grid;
  gap: 10px;
}

.category-management-list article,
.coupon-management-list article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.coupon-management-list article {
  grid-template-columns: minmax(0, 1fr) auto;
}

.category-management-list article.is-archived {
  opacity: .72;
  background: #f8fafc;
}

.course-category-empty {
  display: grid;
  gap: 4px;
  padding: 16px;
  color: #52637f;
  background: #f8fbff;
  border: 1px dashed #cbdaf0;
  border-radius: var(--radius);
}

.course-category-empty strong,
.course-category-empty small {
  display: block;
}

.category-color-dot {
  width: 34px;
  height: 34px;
  background: var(--category-color, #3b82f6);
  border: 4px solid color-mix(in srgb, var(--category-color, #3b82f6) 18%, #ffffff);
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .12);
}

.category-edit-form {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(180px, 1.25fr) 76px 80px auto auto;
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.coupon-edit-form {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.coupon-edit-form input[name="coupon_code"] {
  grid-column: 1 / span 2;
}

.coupon-edit-form select[name="coupon_course_id"] {
  grid-column: 3 / span 4;
}

.coupon-edit-form select[name="coupon_discount_type"] {
  grid-column: 7 / span 2;
}

.coupon-edit-form .coupon-discount-input {
  grid-column: 9 / span 2;
}

.coupon-edit-form input[name="coupon_expires_at"] {
  grid-column: 1 / span 2;
}

.coupon-edit-form input[name="coupon_usage_limit"] {
  grid-column: 3 / span 2;
}

.coupon-edit-form select[name="coupon_status"] {
  grid-column: 11 / span 2;
}

.coupon-edit-form > .icon-button {
  grid-column: 11 / span 2;
  width: 100%;
  justify-content: center;
}

.coupon-row-summary {
  grid-column: 5 / span 6;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 132px;
}

.coupon-row-summary small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

.coupon-discount-input {
  position: relative;
  display: block;
  min-width: 0;
}

.coupon-discount-input input {
  padding-right: 42px;
}

.coupon-discount-input [data-coupon-discount-unit] {
  position: absolute;
  top: 50%;
  right: 12px;
  display: inline-grid;
  min-width: 22px;
  height: 24px;
  place-items: center;
  color: #475569;
  font-size: 13px;
  font-weight: 900;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  transform: translateY(-50%);
  pointer-events: none;
}

.checkout-box {
  display: grid;
  gap: 10px;
  width: 100%;
  padding: 12px;
  background: #f8fbff;
  border: 1px solid #dfe8f5;
  border-radius: 14px;
}

.checkout-coupon-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
}

.checkout-coupon-form label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.checkout-coupon-form label span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.checkout-coupon-form input {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 10px;
  text-transform: uppercase;
}

.checkout-coupon-form .button {
  min-height: 42px;
  padding: 0 13px;
}

.checkout-coupon-message {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
}

.checkout-coupon-message.is-success {
  color: #087443;
}

.checkout-coupon-message.is-error {
  color: #b42318;
}

.checkout-summary {
  display: grid;
  gap: 7px;
}

.checkout-summary span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 32px;
  padding: 0 2px;
  color: #172036;
}

.checkout-summary span + span {
  border-top: 1px solid #e3ebf7;
}

.checkout-summary small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.checkout-summary strong {
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.public-emi-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: flex-start;
  margin-top: 10px;
  padding: 10px 11px;
  border: 1px solid #d7e7ff;
  border-radius: 8px;
  background: #f4f9ff;
}

.public-emi-summary svg {
  width: 17px;
  height: 17px;
  margin-top: 1px;
  color: #145cff;
}

.public-emi-summary span {
  display: grid;
  gap: 2px;
}

.public-emi-summary strong {
  color: #102544;
  font-size: 12px;
  font-weight: 900;
}

.public-emi-summary small {
  color: #50627d;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

.thumbnail-picker {
  display: grid;
  gap: 8px;
  align-content: start;
}

.thumbnail-picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.thumbnail-picker-head > span {
  color: #4d554d;
  font-size: 13px;
  font-weight: 700;
}

.thumbnail-upload-box {
  position: relative;
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px !important;
  align-items: center;
  min-height: 50px;
  padding: 9px 12px;
  color: #53647c;
  background: #f8fbff;
  border: 1px dashed #c9d8ee;
  border-radius: var(--radius);
  text-align: left;
  cursor: pointer;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.thumbnail-upload-box:hover {
  border-color: #3f66ff;
  box-shadow: 0 14px 30px rgba(63, 102, 255, .1);
  transform: translateY(-1px);
}

.thumbnail-upload-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: #3158ff;
  background: #eef4ff;
  border: 1px solid #dbe5ff;
  border-radius: 10px;
}

.thumbnail-upload-icon svg {
  width: 18px;
  height: 18px;
  color: #0f63ff;
}

.thumbnail-upload-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.thumbnail-upload-copy strong {
  color: #12213b;
  font-size: 13px;
  font-weight: 750;
}

.thumbnail-upload-copy small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.thumbnail-file-name {
  grid-column: 2 / 3;
  max-width: 160px;
  padding: 4px 9px;
  overflow: hidden;
  color: #173154 !important;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.thumbnail-upload-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  grid-column: 3 / 4;
  grid-row: 1 / 3;
  min-height: 32px;
  padding: 0 13px;
  color: #ffffff;
  background: #111111;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

.thumbnail-upload-box input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  opacity: 0;
  border: 0;
  pointer-events: none;
}

.thumbnail-current-preview {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
  padding: 10px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.thumbnail-current-preview img {
  width: 74px;
  height: 46px;
  object-fit: cover;
  object-position: center var(--course-thumbnail-y, 50%);
  border-radius: 6px;
}

.thumbnail-current-preview span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.thumbnail-current-preview strong {
  color: #13213a;
  font-size: 12px;
  font-weight: 750;
}

.thumbnail-current-preview small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.file-upload-box {
  position: relative;
  display: grid !important;
  gap: 8px !important;
  align-content: start;
  padding: 14px;
  background: #f8fbff;
  border: 1px dashed #c9d8ee;
  border-radius: var(--radius);
  cursor: pointer;
}

.file-upload-box > span {
  color: #173154 !important;
  font-size: 13px !important;
  font-weight: 750;
}

.file-upload-box small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
}

.file-upload-box [data-upload-file-name] {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-upload-box::after {
  content: "Browse";
  justify-self: start;
  padding: 8px 12px;
  color: #ffffff;
  background: #111827;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 750;
  line-height: 1;
}

.file-upload-box:focus-within {
  border-color: #9bbcf3;
  box-shadow: 0 0 0 3px rgba(15, 99, 255, .11);
}

.file-upload-box input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  overflow: hidden;
  padding: 0;
  opacity: 0;
  pointer-events: none;
}

.upload-preview-thumb {
  width: 72px;
  height: 72px;
  object-fit: contain;
  padding: 8px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.file-upload-inline {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 9px 10px;
  background: #f8fbff;
  border: 1px dashed #c9d8ee;
  border-radius: var(--radius);
}

.file-upload-inline span {
  overflow: hidden;
  color: #173154;
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-upload-inline input[type="file"] {
  min-height: auto;
  padding: 0;
  background: transparent;
  border: 0;
}

.file-upload-inline.compact-upload {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 9px 11px;
  cursor: pointer;
}

.file-upload-inline.compact-upload::after {
  content: "Browse";
  flex: 0 0 auto;
  padding: 8px 12px;
  color: #ffffff;
  background: #111827;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 750;
  line-height: 1;
}

.file-upload-inline.compact-upload input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.course-player-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, clamp(300px, 26vw, 380px));
  gap: 18px;
  align-items: start;
  width: 100%;
  margin-bottom: 18px;
}

.course-player-card {
  display: grid;
  gap: 20px;
  min-width: 0;
}

.video-frame {
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 320px;
  background: #121512;
  border-radius: var(--radius);
}

.video-frame iframe,
.video-frame video {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-frame video {
  object-fit: contain;
  background: #000000;
}

.video-placeholder {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  height: 100%;
  padding: clamp(20px, 4vw, 34px);
  color: #ffffff;
  background-position: center;
  background-size: cover;
}

.video-placeholder h2 {
  max-width: 680px;
  margin: 12px 0 4px;
  color: #ffffff;
  font-size: clamp(28px, 4vw, 48px);
  letter-spacing: 0;
}

.video-placeholder p {
  margin: 0;
  color: rgba(255, 255, 255, .78);
  font-weight: 700;
}

.video-play {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 68px;
  height: 68px;
  color: #111111;
  background: var(--accent, #d7ef60);
  border: 0;
  border-radius: 50%;
  text-decoration: none;
}

.video-play svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.player-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  min-width: 0;
  flex-wrap: wrap;
}

.player-info-row > div {
  min-width: 0;
}

.player-info-row h2 {
  margin: 4px 0 0;
  font-size: 26px;
  overflow-wrap: anywhere;
}

.compact-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.curriculum-panel {
  align-self: start;
  position: sticky;
  top: 92px;
  max-height: calc(100vh - 116px);
  overflow: auto;
  scrollbar-gutter: stable;
}

.lesson-watch-list {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.lesson-watch-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 12px;
  color: #3f463f;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.lesson-watch-list a > span:last-child {
  min-width: 0;
}

.lesson-watch-list a.active {
  color: #111111;
  background: #ffffff;
  border-color: #cfd7ca;
  box-shadow: 0 12px 26px rgba(28, 35, 28, .07);
}

.lesson-state {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  color: #1f251f;
  background: #e8ede5;
  border-radius: var(--radius);
}

.lesson-state.done {
  color: #075e38;
  background: #dcf8e8;
}

.lesson-state svg {
  width: 17px;
  height: 17px;
}

.lesson-watch-list strong,
.lesson-watch-list small {
  display: block;
  overflow-wrap: anywhere;
}

.lesson-edit-list {
  display: grid;
  gap: 10px;
}

.lesson-edit-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.lesson-edit-form,
.lesson-add-form {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) 96px minmax(180px, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.lesson-add-form {
  margin-top: 16px;
}

.page-course {
  overflow-x: hidden;
}

.page-course .main-area,
.page-course .course-intro,
.page-course .course-player-layout,
.page-course .course-player-card,
.page-course .curriculum-panel,
.page-course .course-editor-panel,
.page-course .content-grid,
.page-course .panel,
.page-course .learning-room-shell,
.page-course .learning-room-sidebar,
.page-course .learning-room-main,
.page-course .learning-context-panel,
.page-course .learning-video-card,
.page-course .learning-heading-row,
.page-course .learning-record-card {
  min-width: 0;
  max-width: 100%;
}

.page-course iframe,
.page-course video,
.page-course img {
  max-width: 100%;
}

.learning-room-shell {
  display: grid;
  grid-template-columns: minmax(250px, 300px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  width: 100%;
  max-width: 100%;
}

.learning-room-sidebar {
  position: sticky;
  top: 92px;
  min-width: 0;
  max-height: calc(100vh - 110px);
  overflow: auto;
  scrollbar-gutter: stable;
}

.learning-context-panel {
  grid-column: 2;
  position: static;
  max-height: none;
  overflow: visible;
  min-width: 0;
}

.learning-room-sidebar {
  display: grid;
  gap: 16px;
}

.learning-back-link,
.learning-breadcrumbs,
.learning-panel-tabs,
.learning-heading-actions,
.learning-player-meta,
.learning-tabs,
.learning-command-strip {
  display: flex;
  align-items: center;
  gap: 10px;
}

.learning-back-link {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.learning-back-link svg,
.learning-breadcrumbs svg,
.learning-tabs svg,
.learning-player-meta svg,
.learning-lesson-meta svg,
.learning-progress-summary svg,
.learning-view-all svg {
  width: 17px;
  height: 17px;
}

.learning-course-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-width: 0;
}

.learning-course-card img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  object-position: center var(--course-thumbnail-y, 50%);
  background: var(--accent, #4f6bed);
  border-radius: var(--radius);
}

.learning-course-card h2 {
  margin: 8px 0;
  font-size: 17px;
  line-height: 1.25;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.learning-sidebar-tabs,
.learning-panel-tabs {
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.learning-sidebar-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
}

.learning-sidebar-tabs a,
.learning-panel-tabs a {
  min-height: 34px;
  color: #536072;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  border-bottom: 2px solid transparent;
}

.learning-sidebar-tabs a.active,
.learning-panel-tabs a.active,
.learning-sidebar-tabs a:hover,
.learning-panel-tabs a:hover {
  color: #0f63ff;
  border-bottom-color: #0f63ff;
}

.learning-lesson-search {
  position: relative;
  min-width: 0;
}

.learning-lesson-search svg {
  position: absolute;
  left: 12px;
  top: 50%;
  width: 17px;
  height: 17px;
  color: var(--muted);
  transform: translateY(-50%);
  pointer-events: none;
}

.learning-lesson-search input {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  padding-left: 38px;
  background: var(--surface-soft);
}

.learning-module-list,
.learning-lesson-list,
.learning-note-list,
.learning-resource-list,
.learning-question-list,
.learning-task-list,
.learning-plan-list {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.learning-module {
  border-bottom: 1px solid var(--line);
}

.learning-module:last-child {
  border-bottom: 0;
}

.learning-module summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  cursor: pointer;
  list-style: none;
}

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

.learning-module summary small,
.learning-course-details span,
.learning-command-strip span,
.learning-lesson-meta span,
.learning-progress-summary span,
.learning-player-meta {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.learning-module summary strong,
.learning-module summary em,
.learning-lesson-list strong,
.learning-lesson-list small,
.learning-course-details strong,
.learning-progress-summary strong,
.learning-lesson-meta strong {
  display: block;
  min-width: 0;
}

.learning-module summary strong {
  font-size: 14px;
  overflow-wrap: anywhere;
}

.learning-module summary em {
  color: #536072;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

.learning-lesson-list {
  padding: 0 0 10px;
}

.learning-lesson-list a,
.learning-lesson-locked {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
  min-height: 54px;
  padding: 10px;
  color: #3f4a5d;
  border: 1px solid transparent;
  border-radius: var(--radius);
}

.learning-lesson-locked {
  color: #7b8494;
  background: linear-gradient(135deg, rgba(245, 247, 251, .92), rgba(238, 244, 255, .72));
  border-color: #e4ebf6;
  cursor: default;
}

.learning-lesson-list a.active,
.learning-lesson-list a:hover {
  color: #0f1f3d;
  background: #eef5ff;
  border-color: #d9e8ff;
}

.learning-lesson-list small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.lesson-state.locked {
  color: #6b7280;
  background: #ffffff;
  border-color: #d9e2ef;
}

.learning-emi-actions {
  display: inline-grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  max-width: 280px;
  padding: 10px 12px;
  color: #24314a;
  background: #f7faff;
  border: 1px solid #dae7fb;
  border-radius: var(--radius);
}

.learning-emi-actions > i {
  width: 36px;
  height: 36px;
  padding: 8px;
  color: #2563eb;
  background: #eaf2ff;
  border-radius: 999px;
}

.learning-emi-actions span,
.learning-emi-actions small {
  display: block;
}

.learning-emi-actions small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.learning-emi-strip strong {
  color: #0f62fe;
}

.learning-emi-locked-stage {
  display: grid;
  place-items: center;
  min-height: 360px;
  padding: 42px;
  color: #f8fbff;
  background:
    radial-gradient(circle at 50% 0%, rgba(59, 130, 246, .34), transparent 44%),
    linear-gradient(135deg, #07111f, #142235 58%, #0a1220);
  text-align: center;
}

.learning-emi-locked-stage > div {
  display: grid;
  justify-items: center;
  gap: 10px;
  max-width: 520px;
}

.learning-emi-locked-stage h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(24px, 3vw, 34px);
}

.learning-emi-locked-stage p {
  max-width: 480px;
  margin: 0;
  color: rgba(226, 236, 255, .78);
  line-height: 1.65;
}

.learning-emi-lock-icon {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin-bottom: 16px;
  color: #ffffff;
  background: rgba(37, 99, 235, .24);
  border: 1px solid rgba(147, 197, 253, .38);
  border-radius: 999px;
  box-shadow: 0 20px 45px rgba(15, 23, 42, .36);
}

.learning-empty-mini {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 18px;
  color: var(--muted);
  background: var(--surface-soft);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  font-weight: 700;
  text-align: center;
}

.learning-course-details {
  display: grid;
  gap: 10px;
  padding: 12px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.learning-course-details div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.learning-room-main {
  display: grid;
  gap: 18px;
  min-width: 0;
  max-width: 100%;
}

.learning-breadcrumbs {
  display: none;
  flex-wrap: wrap;
  color: #536072;
  font-size: 13px;
  font-weight: 650;
}

.learning-breadcrumbs a:hover {
  color: #0f63ff;
}

.learning-heading-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
}

.learning-record-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .96), rgba(244, 249, 255, .92));
  border: 1px solid #dfe8f7;
  border-radius: 14px;
  box-shadow: 0 16px 36px rgba(15, 35, 70, .07);
}

.learning-heading-row h1 {
  max-width: 900px;
  margin: 4px 0 8px;
  font-size: clamp(28px, 2.6vw, 40px);
  line-height: 1.12;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.learning-heading-row p {
  max-width: 880px;
  margin: 0;
  color: #536072;
  font-size: 16px;
}

.learning-heading-note {
  max-width: 880px;
  color: #536072;
  font-size: 16px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.learning-heading-note.course-description-content {
  margin: 0;
}

.learning-description-block {
  position: relative;
  display: grid;
  gap: 10px;
  min-width: 0;
}

.learning-description-block.is-collapsible:not(.is-expanded) [data-show-more-content] {
  max-height: var(--show-more-collapsed-height, 154px);
  overflow: hidden;
}

.learning-description-block.is-collapsible:not(.is-expanded)::after {
  position: absolute;
  right: 0;
  bottom: 42px;
  left: 0;
  height: 58px;
  background: linear-gradient(180deg, rgba(248, 251, 255, 0), rgba(248, 251, 255, .98));
  content: "";
  pointer-events: none;
}

.learning-show-more {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  gap: 6px;
  min-height: 34px;
  padding: 0 12px;
  color: #0f63ff;
  background: #eef5ff;
  border: 1px solid #cfe0ff;
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.learning-show-more:hover,
.learning-show-more:focus-visible {
  color: #ffffff;
  background: #0f63ff;
  border-color: #0f63ff;
}

.learning-show-more svg {
  width: 16px;
  height: 16px;
}

.learning-show-more[hidden] {
  display: none;
}

.learning-overview-content.course-description-content {
  color: #536072;
}

.learning-heading-actions {
  justify-content: flex-end;
  flex-wrap: wrap;
  min-width: 0;
}

.learning-heading-actions form {
  align-items: stretch;
}

.button:disabled,
.button[disabled] {
  cursor: not-allowed;
  opacity: .62;
  box-shadow: none;
}

.learning-watch-gate {
  width: 100%;
  margin: 6px 0 0;
  color: #66758a;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.learning-watch-gate.is-ready {
  color: #087f5b;
}

.icon-button.is-active {
  color: #0f63ff;
  background: #eaf2ff;
  border-color: #cfe0ff;
}

.learning-command-strip {
  justify-content: flex-start;
  flex-wrap: wrap;
  padding: 10px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 14px 30px rgba(15, 35, 70, .05);
}

.learning-command-strip span {
  min-width: 120px;
  padding: 8px 12px;
  background: #f8fbff;
  border: 1px solid #e2eaf7;
  border-radius: 10px;
}

.learning-command-strip strong {
  display: block;
  color: #0f1f3d;
  font-size: 18px;
}

.learning-tabs {
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  border-bottom: 0;
}

.learning-tabs a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 12px;
  color: #536072;
  background: #ffffff;
  border: 1px solid #dce7f7;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.learning-tabs a.active,
.learning-tabs a:hover {
  color: #ffffff;
  background: #0f63ff;
  border-color: #0f63ff;
}

.learning-video-card {
  overflow: hidden;
  min-width: 0;
  padding: 0;
  border-radius: 14px;
  box-shadow: 0 22px 54px rgba(15, 35, 70, .12);
}

.learning-mobile-focus {
  display: none;
}

.learning-mobile-context-title {
  display: none;
}

.learning-video-card:fullscreen,
.learning-video-card:-webkit-full-screen,
.learning-private-video-shell:fullscreen,
.learning-private-video-shell:-webkit-full-screen {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #000000;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.learning-video-card:fullscreen,
.learning-video-card:-webkit-full-screen {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
}

.learning-video-card:fullscreen .learning-video-stage,
.learning-video-card:-webkit-full-screen .learning-video-stage {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  background: #000000;
}

.learning-video-card:fullscreen .learning-private-video-shell,
.learning-video-card:-webkit-full-screen .learning-private-video-shell,
.learning-private-video-shell:fullscreen,
.learning-private-video-shell:-webkit-full-screen {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100%;
  background: #000000;
}

.learning-private-video-shell:fullscreen iframe,
.learning-private-video-shell:fullscreen video,
.learning-private-video-shell:-webkit-full-screen iframe,
.learning-private-video-shell:-webkit-full-screen video,
.learning-video-card:fullscreen .learning-private-video-shell iframe,
.learning-video-card:fullscreen .learning-private-video-shell video,
.learning-video-card:-webkit-full-screen .learning-private-video-shell iframe,
.learning-video-card:-webkit-full-screen .learning-private-video-shell video,
.learning-video-card:fullscreen .learning-video-stage video,
.learning-video-card:-webkit-full-screen .learning-video-stage video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #000000;
  object-fit: contain;
}

@media (max-width: 860px) and (orientation: portrait) {
  .learning-private-video-shell.is-landscape-fullscreen:fullscreen,
  .learning-private-video-shell.is-landscape-fullscreen:-webkit-full-screen {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 100vh;
    width: 100dvh;
    height: 100vw;
    height: 100dvw;
    transform: translate(-50%, -50%) rotate(90deg);
    transform-origin: center center;
  }
}

.learning-video-stage {
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 0;
  background: #07152a;
}

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

.learning-video-stage video {
  object-fit: contain;
  background: #000000;
}

.secure-video-frame {
  position: relative;
  user-select: none;
  -webkit-user-select: none;
}

.secure-video-frame iframe,
.secure-video-frame video {
  user-select: none;
  -webkit-user-drag: none;
}

.learning-private-video-shell {
  position: relative;
  width: 100%;
  height: 100%;
  min-width: 0;
  overflow: hidden;
  isolation: isolate;
  background: #020712;
}

.learning-private-video-shell::before,
.learning-private-video-shell::after {
  position: absolute;
  z-index: 4;
  content: "";
  pointer-events: none;
}

.learning-private-video-shell::before {
  top: 0;
  right: 0;
  left: 0;
  height: 72px;
  background: linear-gradient(180deg, rgba(0, 0, 0, .52), rgba(0, 0, 0, 0));
}

.learning-private-video-shell::after {
  right: 0;
  bottom: 0;
  left: 0;
  height: 112px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, .92));
}

.learning-private-video-shell iframe {
  pointer-events: none;
}

.learning-private-video-shell video {
  display: block;
  width: 100%;
  height: 100%;
  background: #000000;
  object-fit: contain;
  pointer-events: none;
}

.learning-private-video-click-zone {
  position: absolute;
  inset: 0;
  z-index: 5;
  cursor: pointer;
}

.learning-private-video-overlay {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: grid;
  place-items: center;
  padding: 18px;
  background:
    radial-gradient(circle at center, rgba(15, 99, 255, .14), rgba(0, 0, 0, .48));
  cursor: pointer;
  opacity: 1;
  transition: opacity .22s ease, transform .22s ease;
  user-select: none;
}

.learning-private-video-shell.is-playing .learning-private-video-overlay {
  opacity: 0;
  pointer-events: none;
  transform: scale(.985);
}

.learning-private-video-shell.has-ended .learning-private-video-overlay {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.learning-private-play-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 22px;
  color: #ffffff;
  background: linear-gradient(135deg, rgba(15, 99, 255, .96), rgba(14, 165, 233, .92));
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 999px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, .36);
  font-size: 14px;
  font-weight: 800;
}

.learning-private-play-button svg {
  width: 20px;
  height: 20px;
}

.learning-private-video-overlay:focus-visible .learning-private-play-button {
  outline: 3px solid rgba(255, 255, 255, .42);
  outline-offset: 4px;
}

.learning-private-controls {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 8;
  display: grid;
  gap: 9px;
  min-width: 0;
  max-width: 100%;
  padding: 34px 16px 14px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(2, 6, 14, .66) 32%, rgba(2, 6, 14, .94));
  color: #ffffff;
  transition: opacity .2s ease, transform .2s ease;
}

.learning-private-video-shell.is-playing:not(.is-controls-active) .learning-private-controls {
  opacity: .28;
  transform: translateY(8px);
}

.learning-private-video-shell.is-playing:not(.is-controls-active):hover .learning-private-controls,
.learning-private-video-shell.is-playing.is-controls-active .learning-private-controls {
  opacity: 1;
  transform: none;
}

.learning-private-progress-row {
  display: grid;
  min-width: 0;
}

.learning-private-control-row,
.learning-private-control-cluster {
  display: flex;
  align-items: center;
  min-width: 0;
}

.learning-private-control-row {
  justify-content: space-between;
  gap: 14px;
}

.learning-private-control-cluster {
  gap: 8px;
}

.learning-private-control-left {
  flex: 1 1 auto;
}

.learning-private-control-right {
  flex: 0 0 auto;
}

.learning-private-icon-button,
.learning-private-settings-menu button {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #ffffff;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease, transform .16s ease;
}

.learning-private-icon-button:hover,
.learning-private-icon-button[aria-pressed="true"],
.learning-private-settings-menu button:hover {
  background: rgba(255, 255, 255, .18);
  border-color: rgba(255, 255, 255, .24);
  transform: translateY(-1px);
}

.learning-private-skip {
  opacity: .94;
}

.learning-private-controls svg {
  width: 18px;
  height: 18px;
}

.learning-private-progress,
.learning-private-volume input {
  --range-fill: 0%;
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 0;
  height: 5px;
  padding: 0;
  margin: 0;
  color: transparent;
  background: linear-gradient(90deg, #ff0033 var(--range-fill), rgba(255, 255, 255, .34) var(--range-fill));
  border: 0;
  border-radius: 999px;
  box-shadow: none;
  cursor: pointer;
  outline: 0;
}

.learning-private-volume input {
  --range-fill: 80%;
  width: 94px;
}

.learning-private-progress::-webkit-slider-runnable-track,
.learning-private-volume input::-webkit-slider-runnable-track {
  width: 100%;
  height: 5px;
  background: transparent;
  border: 0;
  border-radius: 999px;
  box-shadow: none;
}

.learning-private-progress::-moz-range-track,
.learning-private-volume input::-moz-range-track {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, .34);
  border: 0;
  border-radius: 999px;
  box-shadow: none;
}

.learning-private-progress::-moz-range-progress,
.learning-private-volume input::-moz-range-progress {
  height: 5px;
  background: #ff0033;
  border-radius: 999px;
}

.learning-private-progress:focus-visible,
.learning-private-volume input:focus-visible {
  outline: 2px solid rgba(255, 255, 255, .72);
  outline-offset: 6px;
}

.learning-private-progress::-webkit-slider-thumb,
.learning-private-volume input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  margin-top: -5.5px;
  background: #ffffff;
  border: 2px solid #ff0033;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .34);
}

.learning-private-progress::-moz-range-thumb,
.learning-private-volume input::-moz-range-thumb {
  width: 14px;
  height: 14px;
  background: #ffffff;
  border: 2px solid #ff0033;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .34);
}

.learning-private-volume {
  display: inline-flex;
  min-width: 0;
  color: #ffffff;
}

.learning-private-time {
  min-width: 108px;
  color: rgba(255, 255, 255, .94);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  text-align: left;
  white-space: nowrap;
}

.learning-private-settings {
  position: relative;
}

.learning-private-settings-menu {
  position: absolute;
  right: -10px;
  bottom: 46px;
  display: grid;
  gap: 8px;
  width: min(220px, calc(100vw - 28px));
  min-width: 0;
  padding: 12px;
  background: rgba(8, 14, 24, .98);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .34);
}

.learning-private-settings-menu[hidden] {
  display: none;
}

.learning-private-settings-menu label {
  display: grid;
  gap: 6px;
  color: rgba(255, 255, 255, .82);
  font-size: 12px;
  font-weight: 800;
}

.learning-private-settings-menu select {
  min-height: 34px;
  color: #ffffff;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
  padding: 0 8px;
}

.learning-private-settings-menu button {
  display: inline-flex;
  justify-content: flex-start;
  gap: 8px;
  width: 100%;
  padding: 0 8px;
  font-weight: 800;
}

.learning-private-settings-menu option {
  color: #0f1f3d;
}

.learning-room-shell.is-theater-player {
  grid-template-columns: minmax(0, 1fr);
}

.learning-room-shell.is-theater-player .learning-room-sidebar {
  display: none;
}

.course-player-layout.is-theater-player {
  grid-template-columns: minmax(0, 1fr);
}

.course-player-layout.is-theater-player > :not(.course-player-card) {
  display: none;
}

.learning-video-card.is-theater-player,
.course-player-card.is-theater-player {
  max-width: min(1280px, 100%);
  justify-self: center;
  width: 100%;
}

@media (max-width: 760px) {
  .learning-private-controls {
    gap: 7px;
    padding: 28px 10px 10px;
  }

  .learning-private-control-row {
    gap: 8px;
  }

  .learning-private-control-cluster {
    gap: 6px;
  }

  .learning-private-icon-button {
    width: 32px;
    height: 32px;
  }

  .learning-private-volume {
    display: none;
  }

  .learning-private-time {
    min-width: 72px;
    font-size: 11px;
  }

  .learning-private-skip {
    display: none;
  }

  .learning-private-settings-menu {
    right: 0;
    bottom: 42px;
  }
}

.learning-video-placeholder {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  height: 100%;
  padding: clamp(22px, 4vw, 44px);
  color: #ffffff;
  background-position: center;
  background-size: cover;
}

.learning-video-placeholder h2 {
  max-width: 700px;
  margin: 12px 0 4px;
  color: #ffffff;
  font-size: clamp(32px, 4vw, 58px);
  line-height: 1.05;
  letter-spacing: 0;
}

.learning-video-placeholder p {
  margin: 0;
  color: rgba(255, 255, 255, .8);
  font-weight: 700;
}

.learning-player-meta {
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 12px 16px 16px;
}

.learning-player-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.learning-lesson-meta,
.learning-overview-grid,
.learning-progress-summary {
  display: grid;
  gap: 12px;
}

.learning-lesson-meta {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.learning-lesson-meta > a,
.learning-lesson-meta > div,
.learning-progress-summary > div,
.learning-progress-summary > a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 76px;
  padding: 14px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.learning-lesson-meta a.disabled {
  pointer-events: none;
  opacity: .55;
}

.learning-lesson-meta strong {
  margin-top: 4px;
  color: #0f1f3d;
  font-size: 14px;
}

.learning-overview-grid {
  grid-template-columns: minmax(0, 1fr);
}

.learning-text-panel p,
.learning-practice-panel p {
  color: #566176;
}

.learning-checklist {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.learning-checklist span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #0d7a48;
  font-weight: 700;
}

.learning-checklist svg {
  width: 18px;
  height: 18px;
}

.learning-practice-panel pre {
  overflow: auto;
  margin: 0;
  padding: 16px;
  color: #e8f0ff;
  background: #101827;
  border-radius: var(--radius);
  font-size: 13px;
  line-height: 1.55;
}

.learning-progress-summary {
  grid-template-columns: 1.4fr 1fr 1fr auto;
  align-items: center;
}

.learning-progress-summary.panel {
  padding: 18px;
}

.learning-progress-summary > div,
.learning-progress-summary > a {
  min-height: 72px;
  padding: 0 16px;
  background: transparent;
  border: 0;
  border-right: 1px solid var(--line);
}

.learning-progress-summary > :last-child {
  border-right: 0;
}

.learning-ring {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  color: #0f1f3d;
  background: conic-gradient(#0f63ff var(--value), #e5ebf6 0);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 750;
}

.learning-context-panel {
  display: grid;
  gap: 16px;
}

.learning-note-form {
  display: grid;
  gap: 10px;
}

.learning-note-form input,
.learning-note-form textarea {
  width: 100%;
  background: var(--surface-soft);
}

.learning-note-list article,
.learning-resource-list a,
.learning-question-list article,
.learning-task-list article,
.learning-plan-list article,
.learning-mini-section a {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-width: 0;
  min-height: 76px;
  padding: 12px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.learning-resource-list a,
.learning-plan-list article,
.learning-mini-section a {
  grid-template-columns: 42px minmax(0, 1fr);
}

.learning-question-list article {
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: start;
}

.learning-note-list strong,
.learning-resource-list strong,
.learning-question-list strong,
.learning-task-list strong,
.learning-plan-list strong,
.learning-mini-section strong,
.learning-mini-section a {
  color: #0f1f3d;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.learning-note-list p,
.learning-question-list p {
  margin: 4px 0;
  color: #566176;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.learning-note-content {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.learning-note-edit {
  display: grid;
  gap: 8px;
}

.learning-note-edit summary {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: max-content;
  color: #0f63ff;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.learning-note-edit summary::-webkit-details-marker {
  display: none;
}

.learning-note-update-form {
  display: grid;
  gap: 8px;
}

.learning-note-update-form textarea {
  width: 100%;
  min-height: 86px;
  background: #ffffff;
}

.learning-note-list small,
.learning-resource-list small,
.learning-question-list small,
.learning-task-list small,
.learning-plan-list small,
.learning-mini-section small {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.resource-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #0f63ff;
  background: #eaf2ff;
  border-radius: var(--radius);
}

.resource-icon.note {
  color: #7257d1;
  background: #f0edff;
}

.resource-icon.html {
  color: #0f766e;
  background: #dff7f1;
}

.resource-icon.zip,
.resource-icon.assignment {
  color: #b7791f;
  background: #fff4dc;
}

.resource-icon.link {
  color: #0d7a48;
  background: #e6f7ee;
}

.resource-icon svg {
  width: 19px;
  height: 19px;
}

.learning-mini-section {
  display: grid;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.learning-mini-section h3 {
  margin: 0 0 4px;
  font-size: 15px;
}

.learning-view-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
  color: #0f63ff;
  font-weight: 700;
}

.dashboard-intro p {
  max-width: 760px;
  margin: 8px 0 0;
  color: #61718a;
}

.erp-top-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  gap: 18px;
  align-items: start;
  margin-bottom: 18px;
}

.erp-top-main,
.erp-dashboard-rail {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.erp-dashboard-rail {
  position: sticky;
  top: 92px;
}

.erp-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.erp-hero-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, .45fr);
  gap: 18px;
  overflow: hidden;
  min-height: 214px;
  padding: clamp(22px, 3vw, 34px);
  background:
    linear-gradient(120deg, rgba(226, 241, 255, .96) 0%, rgba(255, 255, 255, .94) 58%, rgba(235, 250, 245, .9) 100%);
}

.dashboard-hero-card {
  border-color: #dbeafe;
  box-shadow: 0 24px 50px rgba(51, 83, 135, .1);
}

.erp-hero-copy {
  position: relative;
  z-index: 1;
  align-self: center;
}

.erp-hero-copy h2 {
  max-width: 640px;
  margin: 6px 0 10px;
  color: #10203d;
  font-size: clamp(30px, 3.4vw, 42px);
  line-height: 1.08;
  letter-spacing: 0;
}

.erp-hero-copy p {
  max-width: 560px;
  margin: 0;
  color: #526178;
  font-weight: 600;
}

.erp-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.erp-hero-visual {
  position: relative;
  min-height: 180px;
}

.erp-portrait {
  position: absolute;
  right: 42px;
  bottom: 6px;
  display: grid;
  place-items: center;
  width: 148px;
  height: 148px;
  background: linear-gradient(145deg, #ffffff, #e7f2ff);
  border: 1px solid #dcecff;
  border-radius: 50%;
  box-shadow: 0 24px 48px rgba(15, 99, 255, .13);
}

.erp-portrait .avatar.large {
  width: 74px;
  height: 74px;
  font-size: 22px;
  box-shadow: 0 12px 24px rgba(16, 31, 61, .12);
}

.erp-portrait > svg {
  position: absolute;
  right: 20px;
  top: 18px;
  width: 34px;
  height: 34px;
  color: #0f63ff;
}

.erp-floating-card {
  position: absolute;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-width: 132px;
  padding: 10px;
  background: rgba(255, 255, 255, .92);
  border: 1px solid #dcecff;
  border-radius: var(--radius);
  box-shadow: 0 16px 34px rgba(40, 79, 142, .12);
}

.erp-floating-card.first {
  right: 0;
  top: 16px;
}

.erp-floating-card.second {
  left: 0;
  bottom: 18px;
}

.erp-floating-card svg {
  grid-row: span 2;
  width: 24px;
  height: 24px;
  color: #0f63ff;
}

.erp-floating-card strong,
.erp-floating-card small {
  display: block;
}

.erp-floating-card strong {
  font-size: 12px;
}

.erp-floating-card small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.erp-ai-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.erp-ai-card {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 10px 12px;
  align-items: center;
  min-height: 100px;
  padding: 16px;
  background:
    linear-gradient(135deg, #ffffff 0%, #eef7ff 100%);
}

.erp-ai-card.purple {
  background:
    linear-gradient(135deg, #ffffff 0%, #f2efff 100%);
}

.erp-ai-card span,
.erp-quick-link-grid span,
.erp-reminder-card > a span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #0f63ff;
  background: #eaf2ff;
  border-radius: var(--radius);
}

.erp-ai-card.purple span {
  color: #7b61ff;
  background: #f0edff;
}

.erp-ai-card strong,
.erp-ai-card small {
  display: block;
}

.erp-ai-card strong {
  font-size: 14px;
}

.erp-ai-card small {
  grid-column: 2;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.business-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.dashboard-kpi-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.kpi-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-height: 128px;
  padding: 18px;
  box-shadow: 0 16px 34px rgba(40, 79, 142, .07);
}

.dashboard-kpi-card {
  position: relative;
  overflow: hidden;
  color: inherit;
  background: #ffffff;
  border: 1px solid #dce7fb;
  text-decoration: none;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.dashboard-kpi-card > div {
  min-width: 0;
}

.dashboard-kpi-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: #0f63ff;
}

.dashboard-kpi-card:hover,
.dashboard-kpi-card:focus-visible {
  border-color: #b8d2ff;
  box-shadow: 0 22px 42px rgba(35, 75, 140, .12);
  transform: translateY(-2px);
}

.dashboard-kpi-card.is-today::before {
  background: #0e8f62;
}

.dashboard-kpi-card.is-students::before,
.dashboard-kpi-card.is-courses::before {
  background: #3b82f6;
}

.dashboard-kpi-card.is-active::before {
  background: #10b981;
}

.dashboard-kpi-card.is-logins::before {
  background: #d97706;
}

.dashboard-kpi-card.is-payments::before {
  background: #e11d48;
}

.dashboard-kpi-card.is-payments {
  background:
    linear-gradient(135deg, rgba(255, 241, 242, .9), rgba(255, 255, 255, .96) 62%),
    #ffffff;
}

.primary-kpi {
  background:
    linear-gradient(135deg, rgba(15, 99, 255, .12), rgba(255, 255, 255, 0) 62%),
    #ffffff;
}

.kpi-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  color: #0f63ff;
  background: #eaf2ff;
  border-radius: var(--radius);
}

.kpi-icon.lime {
  color: #0e8f62;
  background: #e9f9f1;
}

.kpi-icon.blue {
  color: #0f63ff;
  background: #dce6ff;
}

.kpi-icon.mint {
  color: #0e8f62;
  background: #dff8ea;
}

.kpi-icon.amber {
  color: #b97810;
  background: #ffe5ad;
}

.kpi-icon.rose {
  color: #ca314a;
  background: #ffdce1;
}

.kpi-card small,
.today-stack span,
.health-grid small {
  color: var(--muted);
  font-weight: 650;
}

.kpi-card strong {
  display: block;
  margin: 8px 0 5px;
  color: #10203d;
  font-size: clamp(24px, 2vw, 32px);
  line-height: 1;
}

.kpi-card em,
.business-event em {
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
}

.dashboard-kpi-card em {
  display: block;
  line-height: 1.35;
}

.dashboard-command-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, .72fr) minmax(320px, .82fr);
  gap: 18px;
}

.erp-quick-links {
  padding: 18px;
}

.erp-quick-links .panel-title-row {
  margin-bottom: 14px;
}

.erp-quick-links .panel-title-row a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #0f63ff;
}

.erp-quick-link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 12px;
}

.erp-quick-link-grid a {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 8px;
  min-height: 112px;
  padding: 14px 10px;
  color: inherit;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
  text-decoration: none;
  box-shadow: 0 12px 24px rgba(40, 79, 142, .04);
}

.erp-quick-link-grid a:hover {
  border-color: #cfe2ff;
  transform: translateY(-1px);
}

.erp-quick-link-grid strong {
  color: #1c2f50;
  font-size: 13px;
}

.erp-quick-link-grid small {
  max-width: 100%;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.support-dashboard-console {
  padding: 18px;
  border-color: #d9e7fb;
  background:
    linear-gradient(135deg, rgba(239, 247, 255, .9), rgba(255, 255, 255, .98) 44%),
    #ffffff;
}

.support-dashboard-console .panel-title-row {
  margin-bottom: 14px;
}

.support-data-form {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(6, minmax(112px, 1fr));
  gap: 12px;
  align-items: end;
}

.support-data-form label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.support-data-form label span {
  color: #4d5b70;
  font-size: 12px;
  font-weight: 750;
}

.support-data-form input,
.support-data-form select {
  width: 100%;
  min-width: 0;
}

.support-data-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  padding-top: 2px;
}

.support-data-actions .button {
  white-space: nowrap;
}

.erp-calendar-card,
.erp-schedule-card,
.erp-reminder-card {
  padding: 18px;
}

.erp-calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.erp-mini-calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 7px;
}

.erp-mini-calendar > span,
.erp-mini-calendar > a {
  display: grid;
  place-items: center;
  min-height: 32px;
  color: #43516a;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 700;
}

.erp-mini-calendar > .day-name {
  min-height: 24px;
  color: #7c8ba1;
  font-size: 10px;
  text-transform: uppercase;
}

.erp-mini-calendar > .muted-day {
  background: transparent;
}

.erp-mini-calendar > a {
  position: relative;
  text-decoration: none;
  outline: none;
}

.erp-mini-calendar > a.today {
  color: #ffffff;
  background: #0f63ff;
  box-shadow: 0 10px 20px rgba(15, 99, 255, .2);
}

.erp-mini-calendar > a.today.has-event {
  animation: calendarTodayEventBlink 1.8s ease-in-out infinite;
}

.erp-mini-calendar > a.has-event {
  font-weight: 800;
  cursor: pointer;
}

.erp-mini-calendar > a.has-event:not(.today) {
  color: #0f63ff;
  background: #edf5ff;
  box-shadow: 0 0 0 0 rgba(15, 99, 255, .2);
  animation: calendarEventBlink 1.8s ease-in-out infinite;
}

.erp-mini-calendar > a.has-event::after {
  content: "";
  width: 4px;
  height: 4px;
  margin-top: -2px;
  background: currentColor;
  border-radius: 50%;
}

.erp-calendar-day-number {
  line-height: 1;
}

.erp-calendar-batch-dots {
  position: absolute;
  right: 4px;
  bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 2px;
  max-width: calc(100% - 8px);
  pointer-events: none;
}

.erp-calendar-batch-dots i {
  width: 5px;
  height: 5px;
  background: var(--batch-color, #0f766e);
  border: 1px solid rgba(255, 255, 255, .85);
  border-radius: 999px;
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--batch-color, #0f766e) 28%, transparent);
  animation: batchClassPulse 1.7s ease-in-out infinite;
}

.erp-mini-calendar > a.today .erp-calendar-batch-dots i {
  border-color: rgba(255, 255, 255, .95);
}

.erp-calendar-tooltip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  z-index: 30;
  display: grid;
  gap: 6px;
  width: min(240px, 70vw);
  padding: 12px;
  color: #0d1b36;
  background: #ffffff;
  border: 1px solid #dce7fb;
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(25, 55, 105, .18);
  opacity: 0;
  pointer-events: none;
  text-align: left;
  transform: translate(-50%, 6px) scale(.96);
  transition: opacity .16s ease, transform .16s ease;
}

.erp-calendar-tooltip::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 10px;
  height: 10px;
  background: #ffffff;
  border-right: 1px solid #dce7fb;
  border-bottom: 1px solid #dce7fb;
  transform: translate(-50%, -5px) rotate(45deg);
}

.erp-calendar-tooltip strong,
.erp-calendar-tooltip span,
.erp-calendar-tooltip small {
  display: block;
}

.erp-calendar-tooltip strong {
  color: #101c33;
  font-size: 12px;
  line-height: 1.2;
}

.erp-calendar-tooltip span,
.erp-calendar-tooltip small {
  color: #4d5d7a;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.35;
}

.erp-calendar-tooltip em {
  display: inline-block;
  min-width: 52px;
  margin-right: 6px;
  color: #0f63ff;
  font-style: normal;
  font-weight: 800;
}

.erp-mini-calendar > a.has-event:hover,
.erp-mini-calendar > a.has-event:focus-visible {
  z-index: 20;
  transform: translateY(-1px);
}

.erp-mini-calendar > a.has-event:hover .erp-calendar-tooltip,
.erp-mini-calendar > a.has-event:focus-visible .erp-calendar-tooltip {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
  animation: calendarTooltipPulse 1.2s ease-in-out infinite;
}

.erp-mini-calendar > a:nth-child(7n + 1) .erp-calendar-tooltip {
  left: 0;
  transform: translate(0, 6px) scale(.96);
}

.erp-mini-calendar > a:nth-child(7n + 1) .erp-calendar-tooltip::after {
  left: 16px;
  transform: translate(0, -5px) rotate(45deg);
}

.erp-mini-calendar > a:nth-child(7n + 1):hover .erp-calendar-tooltip,
.erp-mini-calendar > a:nth-child(7n + 1):focus-visible .erp-calendar-tooltip {
  transform: translate(0, 0) scale(1);
}

.erp-mini-calendar > a:nth-child(7n) .erp-calendar-tooltip {
  right: 0;
  left: auto;
  transform: translate(0, 6px) scale(.96);
}

.erp-mini-calendar > a:nth-child(7n) .erp-calendar-tooltip::after {
  right: 16px;
  left: auto;
  transform: translate(0, -5px) rotate(45deg);
}

.erp-mini-calendar > a:nth-child(7n):hover .erp-calendar-tooltip,
.erp-mini-calendar > a:nth-child(7n):focus-visible .erp-calendar-tooltip {
  transform: translate(0, 0) scale(1);
}

@keyframes calendarEventBlink {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(15, 99, 255, .22);
  }

  50% {
    box-shadow: 0 0 0 5px rgba(15, 99, 255, .08);
  }
}

@keyframes calendarTodayEventBlink {
  0%,
  100% {
    box-shadow: 0 10px 20px rgba(15, 99, 255, .2), 0 0 0 0 rgba(15, 99, 255, .22);
  }

  50% {
    box-shadow: 0 10px 20px rgba(15, 99, 255, .2), 0 0 0 5px rgba(15, 99, 255, .12);
  }
}

@keyframes calendarTooltipPulse {
  0%,
  100% {
    box-shadow: 0 18px 40px rgba(25, 55, 105, .18);
  }

  50% {
    box-shadow: 0 20px 44px rgba(15, 99, 255, .24);
  }
}

@keyframes calendarEventCellBlink {
  0%,
  100% {
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, .18), 0 0 0 0 rgba(37, 99, 235, .16);
  }

  50% {
    box-shadow: inset 0 0 0 2px rgba(37, 99, 235, .4), 0 0 0 6px rgba(37, 99, 235, .08);
  }
}

@keyframes calendarEventDotBlink {
  0%,
  100% {
    opacity: .65;
    box-shadow: 0 0 0 0 rgba(37, 99, 235, .32);
  }

  50% {
    opacity: 1;
    box-shadow: 0 0 0 5px rgba(37, 99, 235, .09);
  }
}

@keyframes batchClassPulse {
  0%,
  100% {
    opacity: .68;
    transform: scale(.9);
  }

  50% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 0 4px rgba(15, 118, 110, .08);
  }
}

@media (prefers-reduced-motion: reduce) {
  .calendar-day.has-events,
  .calendar-day.has-events::after,
  .erp-mini-calendar > a.today.has-event,
  .erp-mini-calendar > a.has-event:not(.today),
  .erp-mini-calendar > a.has-event:hover .erp-calendar-tooltip,
  .erp-mini-calendar > a.has-event:focus-visible .erp-calendar-tooltip,
  .calendar-batch-indicator i,
  .calendar-list-icon.batch::after,
  .legend-dot.batch,
  .erp-calendar-batch-dots i,
  .erp-schedule-list a.is-batch-class time::before,
  .dashboard-batch-indicator {
    animation: none;
  }
}

.erp-schedule-list,
.erp-reminder-card {
  display: grid;
  gap: 10px;
}

.erp-schedule-list a,
.erp-reminder-card > a {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 66px;
  padding: 12px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-left: 3px solid var(--event, #0f63ff);
  border-radius: var(--radius);
}

.erp-schedule-list a.is-batch-class {
  background: color-mix(in srgb, var(--event, #0f766e) 8%, #ffffff);
}

.erp-schedule-list a.is-batch-class time::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 6px;
  background: var(--event, #0f766e);
  border-radius: 999px;
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--event, #0f766e) 28%, transparent);
  animation: batchClassPulse 1.7s ease-in-out infinite;
}

.erp-schedule-list time {
  color: #0f63ff;
  font-size: 12px;
  font-weight: 750;
}

.erp-schedule-list strong,
.erp-schedule-list small,
.erp-reminder-card strong,
.erp-reminder-card small {
  display: block;
}

.erp-schedule-list small,
.erp-reminder-card small {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.erp-reminder-card > a {
  grid-template-columns: 42px minmax(0, 1fr);
  border-left: 1px solid var(--line);
}

.revenue-panel {
  min-height: 390px;
}

.revenue-panel h2 {
  margin: 4px 0 0;
  font-size: 28px;
}

.revenue-panel-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.revenue-trend-pill.up {
  color: var(--green-dark);
  background: #e9f9f1;
}

.revenue-trend-pill.down {
  color: var(--red);
  background: #fff1f2;
}

.revenue-panel canvas {
  display: block;
  width: 100%;
  min-height: 260px;
}

.revenue-bars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(5px, 1fr));
  align-items: end;
  gap: 4px;
  height: 80px;
  margin-top: -82px;
  padding: 0 46px 22px;
  pointer-events: none;
}

.revenue-bars span {
  display: block;
  min-height: 12px;
  background: linear-gradient(180deg, #0f63ff, #6ee7b7);
  border-radius: 999px 999px 0 0;
  opacity: .24;
}

.dashboard-kpi-card[data-revenue-analytics-open] {
  cursor: pointer;
}

.revenue-analytics-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
}

.revenue-analytics-modal[hidden] {
  display: none;
}

.revenue-analytics-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .62);
  border: 0;
  cursor: pointer;
}

.revenue-analytics-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 18px;
  width: min(1120px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 22px;
  color: #10203d;
  background:
    linear-gradient(135deg, rgba(239, 246, 255, .98), rgba(255, 255, 255, .98) 44%, rgba(240, 253, 244, .96)),
    #ffffff;
  border: 1px solid #d7e6fb;
  border-radius: var(--radius);
  box-shadow: 0 32px 90px rgba(11, 24, 48, .28);
}

.revenue-analytics-header {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 42px;
  gap: 14px;
  align-items: start;
}

.revenue-analytics-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  color: #0f63ff;
  background: #eaf2ff;
  border: 1px solid #cfe2ff;
  border-radius: var(--radius);
}

.revenue-analytics-header h2,
.revenue-analytics-chart-head h3 {
  margin: 0;
  color: #0b1d3b;
}

.revenue-analytics-header h2 {
  font-size: 30px;
  line-height: 1.12;
}

.revenue-analytics-header p,
.revenue-analytics-chart-head p {
  margin: 6px 0 0;
  color: #54647f;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.45;
}

.revenue-analytics-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.revenue-analytics-summary-card {
  display: grid;
  align-content: start;
  gap: 7px;
  min-height: 120px;
  padding: 16px;
  background: rgba(255, 255, 255, .92);
  border: 1px solid #dce7fb;
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(33, 68, 128, .06);
}

.revenue-analytics-summary-card.primary {
  background:
    linear-gradient(135deg, rgba(15, 99, 255, .1), rgba(255, 255, 255, .95)),
    #ffffff;
}

.revenue-analytics-summary-card small {
  color: #64748b;
  font-size: 12px;
  font-weight: 750;
}

.revenue-analytics-summary-card strong {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #0b1d3b;
  font-size: 26px;
  line-height: 1;
}

.revenue-analytics-summary-card strong svg {
  width: 22px;
  height: 22px;
}

.revenue-analytics-summary-card span {
  color: #5d6e88;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
}

.revenue-analytics-summary-card.trend.up {
  border-color: #bbf7d0;
  background:
    linear-gradient(135deg, rgba(220, 252, 231, .86), rgba(255, 255, 255, .96)),
    #ffffff;
}

.revenue-analytics-summary-card.trend.down {
  border-color: #fecdd3;
  background:
    linear-gradient(135deg, rgba(255, 241, 242, .9), rgba(255, 255, 255, .96)),
    #ffffff;
}

.revenue-analytics-summary-card.trend.up strong,
.revenue-analytics-summary-card.trend.up span {
  color: #047857;
}

.revenue-analytics-summary-card.trend.down strong,
.revenue-analytics-summary-card.trend.down span {
  color: #be123c;
}

.revenue-analytics-chart-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  background: #ffffff;
  border: 1px solid #dce7fb;
  border-radius: var(--radius);
  box-shadow: 0 18px 44px rgba(31, 61, 112, .08);
}

.revenue-analytics-chart-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.revenue-analytics-chart-head .revenue-trend-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 360px;
  white-space: normal;
}

.revenue-analytics-chart-head .revenue-trend-pill svg {
  width: 16px;
  height: 16px;
}

.revenue-analytics-canvas-shell {
  position: relative;
  min-height: 360px;
}

.revenue-analytics-canvas-shell canvas {
  display: block;
  width: 100%;
  min-height: 360px;
}

.revenue-analytics-tooltip {
  position: absolute;
  z-index: 4;
  display: grid;
  gap: 3px;
  min-width: 148px;
  padding: 10px 12px;
  color: #0b1d3b;
  background: rgba(255, 255, 255, .98);
  border: 1px solid #cfe2ff;
  border-radius: var(--radius);
  box-shadow: 0 16px 38px rgba(20, 44, 88, .18);
  pointer-events: none;
  transform: translate(-50%, calc(-100% - 12px));
}

.revenue-analytics-tooltip small,
.revenue-analytics-tooltip em {
  color: #66758f;
  font-size: 11px;
  font-style: normal;
  font-weight: 750;
}

.revenue-analytics-tooltip strong {
  color: #0f63ff;
  font-size: 18px;
  line-height: 1.1;
}

.revenue-analytics-breakdown {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.revenue-analytics-breakdown > div {
  display: grid;
  gap: 5px;
  padding: 14px;
  background: rgba(248, 251, 255, .96);
  border: 1px solid #dce7fb;
  border-radius: var(--radius);
}

.revenue-analytics-breakdown small,
.revenue-analytics-day-grid small {
  color: #64748b;
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
}

.revenue-analytics-breakdown strong {
  color: #10203d;
  font-size: 20px;
}

.revenue-analytics-breakdown span {
  color: #5d6e88;
  font-size: 12px;
  font-weight: 650;
}

.revenue-analytics-daily-details {
  background: rgba(255, 255, 255, .82);
  border: 1px solid #dce7fb;
  border-radius: var(--radius);
}

.revenue-analytics-daily-details summary {
  cursor: pointer;
  padding: 14px 16px;
  color: #10203d;
  font-size: 14px;
  font-weight: 850;
}

.revenue-analytics-day-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 8px;
  max-height: 230px;
  overflow-y: auto;
  padding: 0 14px 14px;
}

.revenue-analytics-day-grid span {
  display: grid;
  gap: 4px;
  padding: 10px;
  background: #ffffff;
  border: 1px solid #e2ebf8;
  border-radius: var(--radius);
}

.revenue-analytics-day-grid strong {
  color: #0b1d3b;
  font-size: 16px;
}

.revenue-analytics-day-grid em {
  color: #64748b;
  font-size: 11px;
  font-style: normal;
  font-weight: 650;
}

.revenue-analytics-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

@media (max-width: 980px) {
  .revenue-analytics-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .revenue-analytics-breakdown {
    grid-template-columns: 1fr;
  }

  .revenue-analytics-chart-head {
    display: grid;
  }

  .revenue-analytics-chart-head .revenue-trend-pill {
    max-width: none;
    justify-self: start;
  }
}

@media (max-width: 640px) {
  .revenue-analytics-modal {
    padding: 10px;
  }

  .revenue-analytics-dialog {
    gap: 14px;
    max-height: calc(100vh - 20px);
    padding: 14px;
  }

  .revenue-analytics-header {
    grid-template-columns: 44px minmax(0, 1fr) 38px;
    gap: 10px;
  }

  .revenue-analytics-icon {
    width: 42px;
    height: 42px;
  }

  .revenue-analytics-header h2 {
    font-size: 24px;
  }

  .revenue-analytics-summary-grid {
    grid-template-columns: 1fr;
  }

  .revenue-analytics-chart-card {
    padding: 12px;
  }

  .revenue-analytics-canvas-shell,
  .revenue-analytics-canvas-shell canvas {
    min-height: 320px;
  }

  .revenue-analytics-actions,
  .revenue-analytics-actions .button {
    width: 100%;
  }

  .revenue-analytics-actions {
    display: grid;
  }
}

.analytics-workspace {
  display: grid;
  gap: 18px;
}

.analytics-command-center {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 26px;
  background:
    linear-gradient(135deg, rgba(15, 99, 255, .08), rgba(16, 185, 129, .08)),
    #ffffff;
  border-color: #dce7fb;
  box-shadow: 0 18px 38px rgba(40, 79, 142, .08);
}

.analytics-command-center h1 {
  margin: 6px 0 8px;
  color: #0b1d3b;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1;
  letter-spacing: 0;
}

.analytics-command-center p {
  max-width: 700px;
  margin: 0;
  color: #52627b;
  font-weight: 650;
}

.analytics-filter-form {
  display: grid;
  gap: 12px;
  min-width: min(100%, 520px);
}

.analytics-filter-presets,
.analytics-custom-fields {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.analytics-filter-presets button {
  min-height: 36px;
  padding: 0 12px;
  color: #43516a;
  background: #ffffff;
  border: 1px solid #dce7fb;
  border-radius: var(--radius);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.analytics-filter-presets button:hover,
.analytics-filter-presets button.is-active {
  color: #ffffff;
  background: #0f63ff;
  border-color: #0f63ff;
  box-shadow: 0 12px 26px rgba(15, 99, 255, .2);
}

.analytics-custom-fields label {
  display: grid;
  gap: 4px;
  color: #6b7890;
  font-size: 11px;
  font-weight: 800;
}

.analytics-custom-fields input {
  width: 142px;
  min-height: 38px;
  padding: 0 10px;
  color: #10203d;
  background: #ffffff;
  border: 1px solid #dce7fb;
  border-radius: var(--radius);
  font: inherit;
  font-size: 12px;
  font-weight: 750;
}

.analytics-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
  gap: 14px;
}

.analytics-kpi-card {
  position: relative;
  display: flex;
  gap: 14px;
  min-width: 0;
  min-height: 154px;
  padding: 18px;
  color: inherit;
  background: #ffffff;
  border: 1px solid #dce7fb;
  border-radius: var(--radius);
  text-decoration: none;
  box-shadow: 0 16px 34px rgba(40, 79, 142, .07);
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.analytics-kpi-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: #0f63ff;
  border-radius: var(--radius) 0 0 var(--radius);
}

.analytics-kpi-card:hover,
.analytics-kpi-card:focus-visible {
  border-color: #b8d2ff;
  box-shadow: 0 22px 42px rgba(35, 75, 140, .12);
  transform: translateY(-2px);
}

.analytics-kpi-icon,
.analytics-module-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  color: #0f63ff;
  background: #eaf2ff;
  border-radius: var(--radius);
}

.analytics-kpi-card > span:last-child,
.analytics-module-card > span:nth-child(2) {
  min-width: 0;
}

.analytics-kpi-card small,
.analytics-module-card small,
.analytics-snapshot-list small,
.analytics-operation-grid small {
  display: block;
  color: #64748b;
  font-weight: 750;
}

.analytics-kpi-card strong {
  display: block;
  margin: 9px 0 5px;
  color: #10203d;
  font-size: 30px;
  line-height: 1;
}

.analytics-kpi-card em,
.analytics-kpi-card b,
.analytics-module-card em,
.analytics-course-row em,
.analytics-payment-row small,
.analytics-due-list small,
.analytics-timeline small {
  display: block;
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.analytics-kpi-card b,
.analytics-module-card em {
  margin-top: 6px;
  color: #64748b;
}

.analytics-kpi-card.tone-green .analytics-kpi-icon,
.analytics-module-card.tone-green .analytics-module-icon {
  color: #0e8f62;
  background: #dff8ea;
}

.analytics-kpi-card.tone-cyan .analytics-kpi-icon,
.analytics-module-card.tone-cyan .analytics-module-icon {
  color: #0284c7;
  background: #e0f7ff;
}

.analytics-kpi-card.tone-indigo .analytics-kpi-icon,
.analytics-module-card.tone-indigo .analytics-module-icon {
  color: #4f46e5;
  background: #e8edff;
}

.analytics-kpi-card.tone-amber .analytics-kpi-icon,
.analytics-module-card.tone-amber .analytics-module-icon {
  color: #b97810;
  background: #fff0c2;
}

.analytics-kpi-card.tone-rose .analytics-kpi-icon,
.analytics-module-card.tone-rose .analytics-module-icon {
  color: #ca314a;
  background: #ffdce1;
}

.analytics-kpi-card.tone-violet .analytics-kpi-icon,
.analytics-module-card.tone-violet .analytics-module-icon {
  color: #7c3aed;
  background: #f0e7ff;
}

.analytics-kpi-card.tone-slate .analytics-kpi-icon,
.analytics-module-card.tone-slate .analytics-module-icon {
  color: #475569;
  background: #e9eef6;
}

.analytics-kpi-card.tone-green::before,
.analytics-module-card.tone-green .analytics-module-meter b {
  background: #10b981;
}

.analytics-kpi-card.tone-cyan::before,
.analytics-module-card.tone-cyan .analytics-module-meter b {
  background: #0284c7;
}

.analytics-kpi-card.tone-indigo::before,
.analytics-module-card.tone-indigo .analytics-module-meter b {
  background: #4f46e5;
}

.analytics-kpi-card.tone-amber::before,
.analytics-module-card.tone-amber .analytics-module-meter b {
  background: #d97706;
}

.analytics-kpi-card.tone-rose::before,
.analytics-module-card.tone-rose .analytics-module-meter b {
  background: #e11d48;
}

.analytics-kpi-card.tone-violet::before,
.analytics-module-card.tone-violet .analytics-module-meter b {
  background: #7c3aed;
}

.analytics-kpi-card.tone-slate::before,
.analytics-module-card.tone-slate .analytics-module-meter b {
  background: #475569;
}

.analytics-alert-panel {
  display: grid;
  gap: 16px;
  padding: 20px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .96), rgba(239, 246, 255, .92)),
    #ffffff;
  border-color: #d8e7fb;
  box-shadow: 0 18px 38px rgba(40, 79, 142, .08);
  scroll-margin-top: 92px;
}

.analytics-alert-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.analytics-alert-panel-head h2 {
  margin: 4px 0 6px;
  color: #0b1d3b;
  font-size: 24px;
  line-height: 1.14;
}

.analytics-alert-panel-head p {
  max-width: 720px;
  margin: 0;
  color: #52627b;
  font-weight: 650;
  line-height: 1.45;
}

.analytics-alert-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.analytics-alert-count {
  display: grid;
  gap: 2px;
  min-width: 88px;
  padding: 10px 12px;
  background: #f8fbff;
  border: 1px solid #dce7fb;
  border-radius: var(--radius);
}

.analytics-alert-count strong {
  color: #0b1d3b;
  font-size: 22px;
  line-height: 1;
}

.analytics-alert-count small {
  color: #64748b;
  font-size: 11px;
  font-weight: 850;
}

.analytics-alert-count.is-pending {
  background: #fff7f8;
  border-color: #fecdd3;
}

.analytics-alert-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 12px;
}

.analytics-alert-card {
  appearance: none;
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 12px;
  min-width: 0;
  min-height: 132px;
  padding: 15px;
  color: inherit;
  background: #ffffff;
  border: 1px solid #dce7fb;
  border-left-width: 4px;
  border-radius: var(--radius);
  box-shadow: 0 12px 26px rgba(40, 79, 142, .06);
  cursor: pointer;
  text-align: left;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.analytics-alert-card:hover,
.analytics-alert-card:focus-visible {
  border-color: #a9c8ff;
  box-shadow: 0 18px 36px rgba(35, 75, 140, .12);
  outline: none;
  transform: translateY(-1px);
}

.analytics-alert-card.status-resolved {
  opacity: .72;
}

.analytics-alert-card.severity-critical,
.analytics-alert-card.severity-high {
  border-left-color: #e11d48;
}

.analytics-alert-card.severity-warning {
  border-left-color: #d97706;
}

.analytics-alert-card.severity-info {
  border-left-color: #0f63ff;
}

.analytics-alert-icon,
.analytics-alert-dialog-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: #0f63ff;
  background: #eaf2ff;
  border-radius: var(--radius);
}

.analytics-alert-card.severity-critical .analytics-alert-icon,
.analytics-alert-card.severity-high .analytics-alert-icon {
  color: #be123c;
  background: #ffe4e8;
}

.analytics-alert-card.severity-warning .analytics-alert-icon {
  color: #b97810;
  background: #fff0c2;
}

.analytics-alert-copy {
  min-width: 0;
}

.analytics-alert-copy small,
.analytics-alert-copy em,
.analytics-alert-copy b,
.analytics-alert-meta small {
  display: block;
  font-style: normal;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.35;
}

.analytics-alert-copy small,
.analytics-alert-copy em,
.analytics-alert-copy b,
.analytics-alert-meta small {
  color: #64748b;
}

.analytics-alert-copy strong {
  display: block;
  margin: 5px 0 4px;
  overflow: hidden;
  color: #10203d;
  font-size: 15px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.analytics-alert-copy b {
  display: -webkit-box;
  margin-top: 7px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.analytics-alert-meta {
  display: grid;
  gap: 8px;
  align-content: start;
  justify-items: end;
}

.analytics-alert-empty {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 26px;
  color: #52627b;
  background: #f8fbff;
  border: 1px dashed #cfe0f5;
  border-radius: var(--radius);
  text-align: center;
}

.analytics-alert-empty i {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #0e8f62;
  background: #dff8ea;
  border-radius: var(--radius);
}

.analytics-alert-empty strong {
  color: #0b1d3b;
  font-size: 17px;
}

.analytics-alert-empty span {
  font-size: 13px;
  font-weight: 700;
}

.analytics-alert-modal[hidden] {
  display: none;
}

.analytics-alert-modal {
  position: fixed;
  inset: 0;
  z-index: 2500;
  display: grid;
  place-items: center;
  padding: 24px;
}

.analytics-alert-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 20, 40, .46);
  border: 0;
  cursor: pointer;
}

.analytics-alert-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
  width: min(720px, 100%);
  max-height: min(760px, calc(100vh - 48px));
  overflow: auto;
  padding: 20px;
  background: #ffffff;
  border: 1px solid #dce7fb;
  border-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(8, 18, 38, .24);
}

.analytics-alert-dialog header {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 40px;
  gap: 12px;
  align-items: start;
}

.analytics-alert-dialog header small {
  color: #64748b;
  font-size: 12px;
  font-weight: 850;
}

.analytics-alert-dialog h2 {
  margin: 3px 0 0;
  color: #0b1d3b;
  font-size: 22px;
  line-height: 1.2;
}

.analytics-alert-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.analytics-alert-detail-grid div,
.analytics-alert-description,
.analytics-alert-context span:not(:empty) {
  padding: 13px;
  background: #f8fbff;
  border: 1px solid #e3edf9;
  border-radius: var(--radius);
}

.analytics-alert-detail-grid dt {
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.analytics-alert-detail-grid dd {
  margin: 5px 0 0;
  color: #10203d;
  font-weight: 800;
  line-height: 1.35;
}

.analytics-alert-description p {
  margin: 8px 0 0;
  color: #24334d;
  font-weight: 650;
  line-height: 1.55;
}

.analytics-alert-context {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.analytics-alert-context span {
  color: #52627b;
  font-size: 12px;
  font-weight: 800;
}

.analytics-alert-dialog footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 4px;
}

.analytics-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 18px;
}

.analytics-trend-card,
.analytics-snapshot-card,
.analytics-list-panel {
  padding: 18px;
}

.analytics-chart-shell {
  position: relative;
  min-width: 0;
  margin-top: 16px;
}

.analytics-chart-shell canvas {
  display: block;
  width: 100%;
  min-height: 360px;
}

.analytics-chart-tooltip {
  position: absolute;
  z-index: 4;
  min-width: 190px;
  padding: 12px;
  color: #10203d;
  background: rgba(255, 255, 255, .98);
  border: 1px solid #dce7fb;
  border-radius: var(--radius);
  box-shadow: 0 18px 38px rgba(21, 45, 80, .16);
  pointer-events: none;
  transform: translate(-50%, -100%);
}

.analytics-chart-tooltip small {
  display: block;
  color: #64748b;
  font-weight: 800;
}

.analytics-chart-tooltip strong {
  display: block;
  margin: 4px 0 8px;
  color: #0b1d3b;
  font-size: 20px;
}

.analytics-tooltip-grid {
  display: grid;
  gap: 5px;
}

.analytics-tooltip-grid span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.analytics-tooltip-grid em,
.analytics-tooltip-grid b {
  font-style: normal;
  font-size: 12px;
}

.analytics-tooltip-grid em {
  color: #64748b;
}

.analytics-chart-legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 12px;
  color: #52627b;
  font-size: 12px;
  font-weight: 800;
}

.legend-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 6px;
  border-radius: 50%;
  vertical-align: middle;
}

.legend-dot.revenue {
  background: #10b981;
}

.legend-dot.enrollments {
  background: #0f63ff;
}

.legend-dot.activity {
  background: #7c3aed;
}

.legend-dot.chat {
  background: #db2777;
}

.analytics-snapshot-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.analytics-snapshot-list div,
.analytics-operation-grid div {
  padding: 14px;
  background: #f7fbff;
  border: 1px solid #e3edf9;
  border-radius: var(--radius);
}

.analytics-snapshot-list strong,
.analytics-operation-grid strong {
  display: block;
  margin-top: 6px;
  color: #0b1d3b;
  font-size: 24px;
  line-height: 1;
}

.analytics-snapshot-list span {
  display: block;
  margin-top: 6px;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.analytics-module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.analytics-module-card {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
  min-height: 128px;
  padding: 16px;
  color: inherit;
  background: #ffffff;
  border: 1px solid #dce7fb;
  border-radius: var(--radius);
  text-decoration: none;
  box-shadow: 0 12px 26px rgba(40, 79, 142, .05);
}

.analytics-module-card:hover {
  border-color: #b8d2ff;
  transform: translateY(-1px);
}

.analytics-module-card strong {
  display: block;
  margin-top: 5px;
  color: #10203d;
  font-size: 23px;
  line-height: 1;
}

.analytics-module-meter {
  grid-column: 1 / -1;
  display: block;
  width: 100%;
  height: 7px;
  overflow: hidden;
  background: #edf4ff;
  border-radius: 999px;
}

.analytics-module-meter b {
  display: block;
  height: 100%;
  min-width: 4px;
  background: #0f63ff;
  border-radius: inherit;
}

.analytics-drilldown-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.analytics-course-table,
.analytics-payment-stack,
.analytics-due-list,
.analytics-timeline {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.analytics-course-row,
.analytics-payment-row,
.analytics-due-list div,
.analytics-timeline div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
  padding: 13px;
  color: inherit;
  background: #f8fbff;
  border: 1px solid #e3edf9;
  border-radius: var(--radius);
  text-decoration: none;
}

.analytics-course-row:hover {
  border-color: #b8d2ff;
}

.analytics-course-row span,
.analytics-payment-row span,
.analytics-due-list span,
.analytics-timeline span {
  min-width: 0;
}

.analytics-course-row strong,
.analytics-payment-row strong,
.analytics-due-list strong,
.analytics-timeline strong {
  display: block;
  overflow: hidden;
  color: #10203d;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.analytics-course-row small,
.analytics-due-list small,
.analytics-timeline small {
  overflow: hidden;
  color: #64748b;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.analytics-course-row b,
.analytics-payment-row b {
  display: block;
  color: #0e8f62;
  font-size: 15px;
  text-align: right;
  white-space: nowrap;
}

.analytics-course-row em,
.analytics-due-list em,
.analytics-timeline em {
  color: #64748b;
  text-align: right;
  white-space: nowrap;
}

.analytics-due-list {
  padding-top: 12px;
  border-top: 1px solid #e3edf9;
}

.analytics-due-list h3 {
  margin: 0;
  color: #0b1d3b;
  font-size: 15px;
}

.analytics-operation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.analytics-timeline div {
  justify-content: flex-start;
}

.analytics-timeline i {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  color: #0f63ff;
  background: #eaf2ff;
  border-radius: var(--radius);
  font-style: normal;
  font-weight: 900;
}

.analytics-timeline em {
  margin-left: auto;
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
}

.compact-empty {
  margin: 0;
  padding: 12px;
  background: #f8fbff;
  border: 1px dashed #d7e4f5;
  border-radius: var(--radius);
}

@media (max-width: 1180px) {
  .analytics-command-center,
  .analytics-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .analytics-command-center {
    display: grid;
  }

  .analytics-alert-panel-head {
    display: grid;
  }

  .analytics-filter-presets,
  .analytics-custom-fields,
  .analytics-alert-toolbar {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .analytics-command-center {
    padding: 20px;
  }

  .analytics-custom-fields label,
  .analytics-custom-fields input,
  .analytics-custom-fields .button {
    width: 100%;
  }

  .analytics-kpi-grid,
  .analytics-module-grid,
  .analytics-drilldown-grid,
  .analytics-operation-grid,
  .analytics-alert-list,
  .analytics-alert-detail-grid {
    grid-template-columns: 1fr;
  }

  .analytics-course-row,
  .analytics-payment-row,
  .analytics-due-list div,
  .analytics-timeline div {
    align-items: flex-start;
    flex-direction: column;
  }

  .analytics-alert-card {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .analytics-alert-meta {
    grid-column: 1 / -1;
    justify-items: start;
  }

  .analytics-alert-modal {
    padding: 14px;
  }

  .analytics-alert-dialog {
    max-height: calc(100vh - 28px);
    padding: 16px;
  }

  .analytics-alert-dialog header {
    grid-template-columns: 40px minmax(0, 1fr) 36px;
  }

  .analytics-course-row b,
  .analytics-course-row em,
  .analytics-due-list em,
  .analytics-timeline em {
    text-align: left;
  }
}

.today-panel,
.learning-health-panel {
  align-self: stretch;
}

.today-stack,
.health-grid {
  display: grid;
  gap: 12px;
}

.health-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.today-stack div,
.today-stack a,
.health-grid div,
.health-grid a {
  padding: 14px;
  color: inherit;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
}

.today-stack a:hover,
.today-stack a:focus-visible,
.health-grid a:hover,
.health-grid a:focus-visible {
  border-color: #b8d2ff;
  background: #ffffff;
}

.today-stack a.is-payment-due {
  border-color: #fecdd3;
  background: #fff7f8;
}

.today-stack strong,
.health-grid strong {
  display: block;
  margin-top: 6px;
  font-size: 24px;
}

.health-grid a {
  display: grid;
  gap: 5px;
  min-height: 136px;
  align-content: start;
}

.health-grid em {
  color: #637083;
  font-size: 12px;
  font-style: normal;
  line-height: 1.35;
}

.health-icon {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 3px;
  color: #0f63ff;
  background: #eaf2ff;
  border-radius: var(--radius);
}

.health-icon svg {
  width: 18px;
  height: 18px;
}

.health-icon.mint {
  color: #0e8f62;
  background: #dff8ea;
}

.health-icon.blue {
  color: #0f63ff;
  background: #dce6ff;
}

.health-icon.amber {
  color: #b97810;
  background: #ffe8b8;
}

.health-icon.rose {
  color: #ca314a;
  background: #ffdce1;
}

@media (max-width: 760px) {
  .health-grid {
    grid-template-columns: 1fr;
  }
}

.dashboard-lower-grid {
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, .72fr) minmax(280px, .72fr);
}

.course-performance-panel {
  grid-row: span 2;
}

.course-performance-list {
  display: grid;
  gap: 12px;
}

.course-performance-row {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) auto minmax(120px, .32fr);
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.course-performance-row img {
  width: 78px;
  height: 54px;
  object-fit: cover;
  object-position: center var(--course-thumbnail-y, 50%);
  background: #dfe5dc;
  border-radius: var(--radius);
}

.course-performance-row strong,
.course-performance-row small {
  display: block;
}

.course-performance-money {
  color: #111111;
  font-weight: 750;
  white-space: nowrap;
}

.source-list {
  display: grid;
  gap: 13px;
}

.source-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding-bottom: 12px;
}

.source-row strong,
.source-row small {
  display: block;
}

.source-row > span {
  font-weight: 750;
}

.source-row i {
  position: absolute;
  left: 0;
  right: auto;
  bottom: 0;
  height: 6px;
  background: linear-gradient(90deg, #0f63ff, #16b981);
  border-radius: 999px;
}

.compact-live-panel .avatar-stack {
  margin-top: 42px;
}

.business-event-list {
  display: grid;
  gap: 10px;
}

.business-event {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.event-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #111111;
  background: #dff8ea;
  border-radius: var(--radius);
}

.event-icon.payment {
  color: #0e8f62;
  background: #e9f9f1;
}

.event-icon.trial {
  background: #ffe5ad;
}

.business-event strong,
.business-event small {
  display: block;
}

.dashboard-engagement-panel {
  grid-row: auto;
}

.role-student {
  --page: #f6f9ff;
  --surface-soft: #f8fbff;
  --line: #dfe7f4;
  --green: #16a34a;
  --green-dark: #15803d;
  color: #071534;
}

.role-student .brand-mark {
  background: #2563eb;
}

.student-profile-mini {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin: 28px 0 18px;
  padding: 14px 8px 16px;
  border-bottom: 1px solid var(--line);
}

.app-shell.sidebar-collapsed .student-profile-mini {
  display: flex;
  justify-content: center;
  width: 48px;
  min-height: 48px;
  margin: 20px 0 0;
  padding: 0;
  border-bottom: 0;
}

.app-shell.sidebar-collapsed .student-profile-mini .avatar {
  width: 38px;
  height: 38px;
}

.student-profile-mini strong,
.student-profile-mini small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.student-profile-mini small {
  color: #5a6b93;
}

.nav-count {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-left: auto;
  color: #ffffff;
  background: #2563eb;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 750;
}

.student-dashboard-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  gap: 28px;
}

.student-dashboard-main {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.student-welcome {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.student-welcome h1 {
  margin: 4px 0 4px;
  color: #071534;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.05;
}

.student-welcome p {
  margin: 0;
  color: #53658f;
}

.student-top-actions {
  display: flex;
  gap: 10px;
}

.student-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.student-stat-card {
  position: relative;
  display: grid;
  align-content: start;
  min-height: 214px;
  padding: 22px;
  color: #071534;
  border-color: #dae5f5;
  box-shadow: 0 18px 46px rgba(37, 99, 235, .08);
}

.student-stat-card small {
  color: #17254a;
  font-weight: 700;
}

.student-stat-card p {
  margin: 14px 0 16px;
  color: #52648c;
}

.student-stat-card a,
.student-inline-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #2563eb;
  font-weight: 700;
  font-size: 14px;
}

.student-stat-card a svg,
.student-inline-link svg {
  width: 15px;
  height: 15px;
}

.student-stat-icon {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
}

.student-stat-icon.blue {
  color: #2563eb;
  background: #e7efff;
}

.student-stat-icon.green,
.student-quick-icon.green {
  color: #15803d;
  background: #e1f8eb;
}

.student-stat-icon.purple,
.student-quick-icon.purple {
  color: #6d3bd1;
  background: #f0e8ff;
}

.student-stat-icon.mint {
  color: #15803d;
  background: #ddf7e7;
}

.student-progress-ring {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  margin-top: 18px;
  background:
    radial-gradient(circle at center, #ffffff 0 54%, transparent 56%),
    conic-gradient(#2563eb calc(var(--progress) * 1%), #dbe6f7 0);
  border-radius: 50%;
}

.student-progress-ring strong {
  color: #071534;
  font-size: 24px;
}

.student-big-number {
  display: block;
  margin-top: 18px;
  color: #15803d;
  font-size: 42px;
  line-height: 1;
}

.student-stat-card:nth-child(3) .student-big-number {
  color: #6d3bd1;
}

.danger-text {
  color: #dc2626;
}

.muted-text {
  color: #53658f;
}

.next-class-card strong {
  display: block;
  max-width: 220px;
  margin-top: 18px;
  font-size: 22px;
  line-height: 1.2;
}

.student-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(250px, .82fr) minmax(280px, .95fr);
  gap: 16px;
}

.student-progress-panel {
  min-height: 330px;
}

.student-progress-panel canvas {
  width: 100%;
  min-height: 270px;
}

.student-class-list,
.student-announcement-list,
.student-quick-actions,
.student-course-list {
  display: grid;
  gap: 12px;
}

.student-class-list a,
.student-announcement-list article,
.student-quick-actions a,
.student-course-list a {
  display: grid;
  align-items: center;
  gap: 12px;
  padding: 13px;
  background: #ffffff;
  border: 1px solid #dfe7f4;
  border-radius: var(--radius);
}

.student-class-list a {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.student-class-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #2563eb;
  background: color-mix(in srgb, var(--accent, #dbeafe) 45%, #ffffff);
  border-radius: var(--radius);
}

.student-class-list strong,
.student-class-list small,
.student-announcement-list strong,
.student-announcement-list small,
.student-quick-actions strong,
.student-quick-actions small,
.student-course-list strong,
.student-course-list small {
  display: block;
}

.student-class-list em,
.student-announcement-list em {
  color: #071534;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  text-align: right;
}

.student-announcement-list article {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.student-announcement-icon,
.student-quick-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #16a34a;
  background: #e1f8eb;
  border-radius: var(--radius);
}

.student-announcement-list article:nth-child(2) .student-announcement-icon {
  color: #6d3bd1;
  background: #f0e8ff;
}

.student-announcement-list article:nth-child(3) .student-announcement-icon {
  color: #2563eb;
  background: #e7efff;
}

.student-quick-panel {
  padding: 18px;
}

.student-quick-actions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.student-quick-actions a {
  grid-template-columns: auto minmax(0, 1fr);
}

.student-quick-icon.blue {
  color: #2563eb;
  background: #e7efff;
}

.student-course-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.student-course-list a {
  grid-template-columns: 76px minmax(0, 1fr) minmax(80px, .45fr) auto;
}

.student-course-list img {
  width: 76px;
  height: 54px;
  object-fit: cover;
  background: #dfe7f4;
  border-radius: var(--radius);
}

.student-course-list em {
  color: #2563eb;
  font-style: normal;
  font-weight: 750;
}

.student-planning-panel {
  position: sticky;
  top: 28px;
  align-self: start;
  display: grid;
  gap: 22px;
  padding: 8px 0 24px;
}

.student-hero-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 210px;
}

.book-stack {
  display: grid;
  gap: 10px;
  width: 160px;
  transform: skewY(-5deg);
}

.book-stack span {
  display: block;
  height: 34px;
  background: linear-gradient(90deg, #1e3a8a, #2563eb);
  border-radius: 4px;
  box-shadow: 12px 12px 22px rgba(37, 99, 235, .16);
}

.book-stack span:nth-child(2) {
  background: linear-gradient(90deg, #ffffff, #dbeafe);
  border: 1px solid #bcd2f7;
}

.student-hero-art > svg {
  position: absolute;
  top: 16px;
  right: 56px;
  width: 92px;
  height: 92px;
  color: #071534;
  fill: #071534;
  stroke-width: 1.4;
}

.student-planning-panel h2 {
  margin: 0;
  color: #2563eb;
  font-size: 24px;
}

.student-planning-panel h2::after {
  display: block;
  width: 42px;
  height: 3px;
  margin-top: 12px;
  background: #2563eb;
  border-radius: 999px;
  content: "";
}

.highlight-list {
  display: grid;
}

.highlight-list article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  padding: 24px 0;
  border-bottom: 1px solid #dbe5f4;
}

.highlight-list article > span {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  color: #2563eb;
  background: #eaf2ff;
  border: 1px solid #d4e3fb;
  border-radius: var(--radius);
}

.highlight-list article:nth-child(2) > span {
  color: #16a34a;
  background: #e8f8ef;
}

.highlight-list article:nth-child(3) > span {
  color: #6d3bd1;
  background: #f0e8ff;
}

.highlight-list article:nth-child(4) > span {
  color: #2563eb;
  background: #edf5ff;
}

.highlight-list strong {
  display: block;
  color: #071534;
  font-size: 18px;
}

.highlight-list p {
  margin: 7px 0 0;
  color: #52648c;
}

.student-dashboard-reference {
  display: grid;
  gap: 20px;
  min-width: 0;
}

.student-reference-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(270px, 420px);
  align-items: center;
  gap: 22px;
  min-height: 144px;
  overflow: hidden;
  padding: 24px 28px;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, .96), rgba(236, 245, 255, .92)),
    linear-gradient(140deg, rgba(37, 99, 235, .08), rgba(16, 185, 129, .08));
  border: 1px solid #dbe7f8;
  border-radius: var(--radius);
  box-shadow: 0 18px 45px rgba(37, 99, 235, .08);
}

.student-reference-hero::before {
  position: absolute;
  top: -40%;
  right: -14%;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .82), rgba(37, 99, 235, .3) 35%, rgba(16, 185, 129, .2) 68%, transparent 100%);
  border-radius: 999px;
  filter: blur(2px);
  opacity: .72;
  pointer-events: none;
  animation: studentHeroFloat 11s ease-in-out infinite;
  content: "";
}

.student-reference-hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(36%, 430px);
  height: 92px;
  background: linear-gradient(135deg, transparent 0 25%, rgba(37, 99, 235, .12) 26% 60%, rgba(20, 184, 166, .12) 61% 100%);
  clip-path: polygon(0 100%, 26% 34%, 52% 78%, 72% 28%, 100% 66%, 100% 100%);
  content: "";
}

.student-reference-hero h1 {
  margin: 5px 0 8px;
  color: #071534;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.05;
}

.student-reference-hero p,
.student-quote-card small,
.student-card-foot,
.student-mini-list small,
.upcoming-class-list small,
.achievement-body small {
  color: #53658f;
}

.student-reference-hero,
.student-reference-card,
.student-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .72s cubic-bezier(.16, 1, .3, 1), transform .72s cubic-bezier(.16, 1, .3, 1);
  transition-delay: var(--student-delay, 0ms);
}

.student-reference-hero.is-visible,
.student-reference-card.is-visible,
.student-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.student-quote-card {
  position: relative;
  z-index: 1;
  display: grid;
  justify-self: end;
  max-width: 360px;
  gap: 8px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, .78);
  border: 1px solid rgba(210, 224, 246, .82);
  border-radius: var(--radius);
  box-shadow: 0 16px 38px rgba(37, 99, 235, .08);
  animation: studentFloat 7s ease-in-out infinite;
}

.student-quote-card svg {
  width: 22px;
  height: 22px;
  color: #2563eb;
}

.student-quote-card blockquote {
  margin: 0;
  color: #142145;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

.student-reference-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
  min-width: 0;
}

.student-reference-card {
  display: grid;
  align-content: start;
  gap: 16px;
  min-width: 0;
  padding: 20px;
  border-color: #dbe7f8;
  box-shadow: 0 18px 46px rgba(15, 23, 42, .055);
}

.continue-card,
.live-card,
.progress-card,
.assignments-card,
.attendance-card,
.upcoming-card {
  grid-column: span 4;
}

.achievements-card {
  grid-column: span 4;
}

.student-card-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.student-card-head h2 {
  overflow-wrap: anywhere;
  margin: 0;
  color: #101936;
  font-size: 18px;
  line-height: 1.25;
}

.student-card-title {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.student-purchased-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #bbf7d0;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.student-purchased-badge svg {
  width: 13px;
  height: 13px;
}

.student-card-head > a {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #38507a;
  border-radius: 999px;
}

.student-card-head > a:hover {
  background: #eef5ff;
  color: #2563eb;
}

.student-ref-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
}

.student-ref-icon.small {
  width: 38px;
  height: 38px;
}

.student-ref-icon.blue {
  color: #2563eb;
  background: #e8f0ff;
}

.student-ref-icon.cyan {
  color: #0284c7;
  background: #e0f2fe;
}

.student-ref-icon.purple,
.student-ref-icon.violet {
  color: #6d3bd1;
  background: #f0e8ff;
}

.student-ref-icon.green {
  color: #16a34a;
  background: #e4f8ec;
}

.student-ref-icon.amber {
  color: #b7791f;
  background: #fff4d8;
}

.continue-course-body {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
}

.continue-course-body img,
.course-thumb-fallback {
  width: 150px;
  height: 92px;
  object-fit: cover;
  border-radius: var(--radius);
}

.course-thumb-fallback {
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, #0f2a5f, #2563eb);
}

.course-thumb-fallback svg {
  width: 42px;
  height: 42px;
}

.continue-course-body h3,
.live-class-body h3,
.student-mini-list strong,
.upcoming-class-list strong,
.achievement-body strong {
  overflow-wrap: anywhere;
  margin: 0;
  color: #101936;
  line-height: 1.25;
}

.student-wide-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 0 16px;
  color: #ffffff;
  background: linear-gradient(90deg, #2563eb, #3b82f6);
  border-radius: var(--radius);
  font-weight: 750;
  box-shadow: 0 12px 26px rgba(37, 99, 235, .2);
}

.student-card-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 13px;
  font-weight: 650;
}

.student-card-foot svg,
.live-class-body p svg {
  width: 15px;
  height: 15px;
}

.live-class-body {
  display: grid;
  gap: 9px;
  min-height: 150px;
  padding: 16px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .92), rgba(240, 247, 255, .78)),
    linear-gradient(135deg, rgba(37, 99, 235, .09), rgba(20, 184, 166, .07));
  border: 1px solid #dbe7f8;
  border-radius: var(--radius);
}

.live-class-body p {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  color: #42547d;
  font-size: 13px;
  font-weight: 650;
}

.live-class-body p.with-dashboard-batch-indicator {
  --batch-color: #0f766e;
  color: color-mix(in srgb, var(--batch-color) 72%, #1f2f52);
}

.dashboard-batch-title {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 7px;
}

.dashboard-batch-title strong {
  min-width: 0;
}

.dashboard-batch-indicator {
  display: inline-block;
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  background: var(--batch-color, #0f766e);
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 999px;
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--batch-color, #0f766e) 28%, transparent);
  animation: batchClassPulse 1.7s ease-in-out infinite;
}

.live-faculty-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 11px;
  margin: 2px 0 4px;
  padding: 12px;
  background: rgba(255, 255, 255, .82);
  border: 1px solid #d8e6f7;
  border-radius: var(--radius);
}

.live-faculty-avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #ffffff;
  background: var(--faculty-color, #7c3aed);
  border-radius: 14px;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(124, 58, 237, .18);
}

.live-faculty-card > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.live-faculty-card small,
.live-faculty-card span,
.live-faculty-details em {
  overflow-wrap: anywhere;
}

.live-faculty-card small {
  color: #5b6a83;
  font-size: 12px;
  font-weight: 800;
}

.live-faculty-card small strong {
  color: #101936;
}

.live-faculty-card span:not(.live-faculty-avatar) {
  color: #243653;
  font-size: 13px;
  font-weight: 750;
}

.live-faculty-details {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.live-faculty-details em {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 24px;
  padding: 4px 7px;
  color: #49617f;
  background: #f5f9ff;
  border: 1px solid #e0ebf8;
  border-radius: 999px;
  font-size: 11px;
  font-style: normal;
  font-weight: 750;
}

.live-faculty-details svg {
  width: 12px;
  height: 12px;
  color: #0284c7;
  flex: 0 0 auto;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-self: start;
  padding: 5px 10px;
  color: #ffffff;
  background: #2563eb;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
}

.live-pill svg {
  width: 12px;
  height: 12px;
}

.student-progress-summary {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
}

.student-progress-ring.large {
  width: 118px;
  height: 118px;
  margin-top: 0;
  background:
    radial-gradient(circle at center, #ffffff 0 52%, transparent 54%),
    conic-gradient(#3b5bfd calc(var(--progress) * 1%), #dce7f8 0);
}

.student-progress-ring.large {
  gap: 2px;
}

.student-progress-ring.large strong,
.student-progress-ring.large small {
  display: block;
}

.student-progress-ring.large small {
  margin-top: -24px;
  color: #53658f;
  font-size: 11px;
  font-weight: 700;
}

.student-progress-summary ul {
  display: grid;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.student-progress-summary li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  color: #42547d;
  font-size: 13px;
  font-weight: 650;
}

.student-progress-summary li strong {
  color: #071534;
  font-size: 15px;
}

.dot {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot.green {
  background: #16a34a;
}

.dot.teal {
  background: #10b981;
}

.dot.amber {
  background: #f59e0b;
}

.dot.violet {
  background: #4f46e5;
}

.student-mini-list,
.upcoming-class-list,
.batch-schedule-strip {
  display: grid;
  gap: 10px;
}

.student-mini-list a,
.upcoming-class-list a,
.batch-schedule-strip a {
  display: grid;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 12px;
  color: inherit;
  background: #f8fbff;
  border: 1px solid #dfe8f7;
  border-radius: var(--radius);
}

.student-mini-list a.has-dashboard-batch-indicator,
.upcoming-class-list a.has-dashboard-batch-indicator,
.batch-schedule-strip a.has-dashboard-batch-indicator {
  --batch-color: #0f766e;
  background: color-mix(in srgb, var(--batch-color) 7%, #ffffff);
  border-left: 3px solid var(--batch-color);
}

.student-mini-list a {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.student-mini-list.compact a {
  grid-template-columns: auto minmax(0, 1fr);
}

.student-mini-list em {
  padding: 5px 9px;
  color: #dc2626;
  background: #fff0f2;
  border-radius: 999px;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  white-space: nowrap;
}

.attendance-schedule-layout {
  display: grid;
  grid-template-columns: minmax(115px, .6fr) minmax(160px, 1fr);
  align-items: center;
  gap: 18px;
}

.attendance-card .student-big-number {
  margin-top: 0;
  color: #0f8f55;
  font-size: 38px;
}

.attendance-trend {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 10px;
  padding: 5px 9px;
  color: #0f8f55;
  background: #e7f8ef;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.attendance-trend svg {
  width: 13px;
  height: 13px;
}

.attendance-heatmap {
  display: grid;
  grid-template-columns: repeat(7, 16px);
  gap: 8px;
  justify-content: end;
}

.attendance-heatmap span {
  display: block;
  width: 16px;
  height: 16px;
  background: #e7edf7;
  border-radius: 4px;
}

.attendance-heatmap .present,
.attendance-heatmap .late,
.attendance-heatmap .excused {
  background: #66d4a1;
}

.attendance-heatmap .absent {
  background: #f5b7bd;
}

.attendance-heatmap .empty {
  background: #edf2f8;
}

.batch-schedule-strip a {
  grid-template-columns: minmax(0, 1fr);
  padding: 10px 12px;
}

.batch-schedule-strip a.has-dashboard-batch-indicator {
  grid-template-columns: auto minmax(0, 1fr);
}

.batch-schedule-strip a.has-dashboard-batch-indicator > div {
  min-width: 0;
}

.batch-schedule-strip a.has-dashboard-batch-indicator strong,
.batch-schedule-strip a.has-dashboard-batch-indicator small {
  display: block;
}

.batch-schedule-strip strong,
.batch-schedule-strip small {
  display: block;
}

.upcoming-class-list a {
  grid-template-columns: 48px minmax(0, 1fr) auto;
}

.upcoming-class-list time {
  display: grid;
  place-items: center;
  width: 48px;
  height: 54px;
  color: #53658f;
  background: #f0f5fb;
  border: 1px solid #dfe8f7;
  border-radius: var(--radius);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.upcoming-class-list time strong {
  color: #071534;
  font-size: 17px;
}

.upcoming-class-list em {
  padding: 8px 14px;
  color: #2563eb;
  background: #eef5ff;
  border-radius: var(--radius);
  font-style: normal;
  font-weight: 750;
}

.achievement-body {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
}

.achievement-badge {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  color: #f59e0b;
  background: linear-gradient(135deg, #eaf1ff, #4f7cff);
  border-radius: 24px;
  box-shadow: inset 0 0 0 8px rgba(255, 255, 255, .28), 0 18px 36px rgba(37, 99, 235, .16);
}

.achievement-badge svg {
  width: 38px;
  height: 38px;
  fill: currentColor;
}

.achievement-body p {
  margin: 8px 0 0;
  color: #53658f;
  font-size: 13px;
  font-weight: 650;
}

.achievement-body p span {
  color: #071534;
  font-size: 18px;
  font-weight: 800;
}

@media (max-width: 1320px) {
  .continue-card,
  .live-card,
  .progress-card,
  .assignments-card,
  .attendance-card,
  .upcoming-card,
  .achievements-card {
    grid-column: span 6;
  }
}

@media (max-width: 920px) {
  .student-reference-hero,
  .continue-course-body,
  .student-progress-summary,
  .attendance-schedule-layout {
    grid-template-columns: 1fr;
  }

  .student-reference-grid {
    grid-template-columns: 1fr;
  }

  .continue-card,
  .live-card,
  .progress-card,
  .assignments-card,
  .attendance-card,
  .upcoming-card,
  .achievements-card {
    grid-column: auto;
  }

  .student-quote-card {
    justify-self: stretch;
  }

  .attendance-heatmap {
    justify-content: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .student-reference-hero,
  .student-reference-card,
  .student-reveal,
  .student-quote-card {
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
    transition: none !important;
  }
}

@keyframes studentHeroFloat {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-14px) rotate(4deg);
  }
}

@keyframes studentFloat {
  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

.studio-page-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  min-width: 0;
  max-width: 100%;
  margin-bottom: 22px;
}

.studio-page-head > * {
  min-width: 0;
}

.studio-page-head h1 {
  margin: 4px 0 6px;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.05;
  letter-spacing: 0;
}

.studio-page-head p {
  margin: 0;
  color: #5c635c;
}

.studio-head-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
  max-width: 100%;
}

.studio-head-actions form {
  margin: 0;
}

.studio-attention-panel,
.studio-catalog-panel,
.builder-summary-card,
.review-queue-panel {
  margin-bottom: 18px;
}

.studio-attention-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.studio-attention-grid article {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 16px;
  min-height: 120px;
  padding: 14px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.studio-attention-grid img {
  width: 150px;
  height: 88px;
  object-fit: cover;
  border-radius: var(--radius);
}

.studio-attention-grid strong,
.studio-attention-grid small,
.studio-attention-grid em,
.review-course-cell strong,
.review-course-cell small,
.person-mini strong,
.person-mini small {
  display: block;
}

.studio-attention-grid strong {
  margin: 8px 0 6px;
}

.studio-attention-grid em {
  color: #3c443c;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  white-space: nowrap;
}

.studio-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.studio-toolbar h2 {
  margin: 0 0 16px;
}

.studio-search-controls {
  display: grid;
  grid-template-columns: minmax(220px, 320px) auto minmax(150px, auto);
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.studio-search-controls label {
  position: relative;
  min-width: 0;
}

.studio-search-controls label svg {
  position: absolute;
  left: 13px;
  top: 50%;
  width: 16px;
  height: 16px;
  color: #6a716a;
  transform: translateY(-50%);
  pointer-events: none;
}

.studio-search-controls input {
  min-width: 0;
  padding-left: 38px;
  background: var(--surface-soft);
}

.studio-course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(270px, 100%), 306px));
  gap: 16px;
  align-items: stretch;
  justify-content: start;
}

.studio-course-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: visible;
  min-width: 0;
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 10px 26px rgba(22, 30, 22, .055);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.studio-course-card:hover {
  transform: translateY(-2px);
  border-color: #cbd8ee;
  box-shadow: 0 18px 42px rgba(28, 44, 84, .1);
}

.studio-card-media {
  position: relative;
  display: block;
  overflow: hidden;
  height: 148px;
  background: linear-gradient(135deg, #f8fbff 0%, #eef4ff 100%);
  border-bottom: 1px solid var(--line);
  border-radius: 14px 14px 0 0;
}

.studio-card-media a {
  display: block;
  width: 100%;
  height: 100%;
}

.studio-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  object-fit: cover;
  object-position: center var(--course-thumbnail-y, 50%);
}

.studio-card-body {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 13px 14px;
}

.studio-card-body h3 {
  overflow-wrap: anywhere;
  margin: 0;
  font-size: 16px;
  line-height: 1.28;
}

.studio-card-body > .badge {
  justify-self: start;
  max-width: 100%;
}

.studio-card-body p {
  display: -webkit-box;
  overflow: hidden;
  min-height: 40px;
  margin: 0;
  color: #515951;
  font-size: 13px;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.studio-card-meta,
.studio-card-status {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: #535b53;
  font-size: 12px;
  font-weight: 700;
}

.studio-card-meta span,
.studio-card-status small {
  min-width: 0;
}

.studio-card-meta span:last-child,
.studio-card-status small {
  margin-left: auto;
  white-space: nowrap;
}

.studio-course-price,
.course-summary-price {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}

.studio-course-price del,
.course-summary-price del {
  color: #7a8497;
  font-weight: 600;
}

.studio-course-price small,
.course-summary-price small {
  color: #15803d;
  font-size: 10px;
  font-weight: 800;
}

.studio-card-actions {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 40px;
  gap: 7px;
  padding: 10px 12px;
  background: #fbfdff;
  border-top: 1px solid var(--line);
  border-radius: 0 0 14px 14px;
}

.studio-card-actions form {
  display: grid;
  min-width: 0;
  margin: 0;
}

.studio-card-actions .button,
.studio-card-actions .icon-button {
  width: 100%;
  min-width: 0;
  min-height: 34px;
  padding: 0 9px;
  font-size: 12px;
  box-shadow: none;
}

.studio-card-actions .icon-button svg {
  width: 16px;
  height: 16px;
}

.studio-card-menu {
  position: relative;
  min-width: 0;
}

.studio-card-menu > summary {
  list-style: none;
}

.studio-card-menu > summary::-webkit-details-marker {
  display: none;
}

.studio-card-menu[open] > summary {
  color: #ffffff;
  background: #0f172a;
  border-color: #0f172a;
}

.studio-card-menu-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  z-index: 40;
  display: grid;
  gap: 2px;
  width: min(228px, calc(100vw - 32px));
  padding: 6px;
  background: rgba(255, 255, 255, .96);
  border: 1px solid #e3eaf5;
  border-radius: 10px;
  box-shadow: 0 16px 38px rgba(15, 23, 42, .13);
  backdrop-filter: blur(14px);
}

.studio-card-menu-panel::after {
  content: "";
  position: absolute;
  right: 13px;
  bottom: -6px;
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, .96);
  border-right: 1px solid #e3eaf5;
  border-bottom: 1px solid #e3eaf5;
  transform: rotate(45deg);
}

.studio-card-actions .studio-card-menu-panel form {
  display: block;
  margin: 0;
}

.studio-card-menu-panel a,
.studio-card-menu-panel button {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  width: 100%;
  min-height: 39px;
  padding: 6px 8px;
  color: #1f2a44;
  background: transparent;
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-size: 13px;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
}

.studio-card-menu-panel a:hover,
.studio-card-menu-panel a:focus-visible,
.studio-card-menu-panel button:hover,
.studio-card-menu-panel button:focus-visible {
  color: #0f172a;
  background: #f5f8fc;
}

.studio-card-menu-panel i {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 5px;
  color: #2563eb;
  background: #f0f5ff;
  border-radius: 7px;
}

.studio-card-menu-panel span,
.studio-card-menu-panel small {
  display: block;
  min-width: 0;
}

.studio-card-menu-panel small {
  margin-top: 1px;
  color: #7a879a;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.3;
}

.studio-card-menu-panel .danger {
  color: #b42318;
}

.studio-card-menu-panel .danger i {
  color: #dc2626;
  background: #fff1f2;
}

.studio-card-menu-panel .danger:hover,
.studio-card-menu-panel .danger:focus-visible {
  color: #991b1b;
  background: #fff5f5;
}

.studio-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 22px;
  color: #5a625a;
  font-size: 13px;
}

.studio-pagination nav,
.studio-pagination form,
.studio-pagination label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.studio-pagination form {
  margin: 0;
}

.studio-pagination nav a:not(.icon-button) {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 700;
}

.studio-pagination nav a.active {
  color: #ffffff;
  background: #111111;
}

.studio-empty-results {
  grid-column: 1 / -1;
  padding: 34px 16px;
}

.builder-summary-card {
  display: grid;
  grid-template-columns: 170px minmax(220px, .85fr) minmax(540px, 1.35fr);
  align-items: center;
  gap: 20px;
}

.builder-summary-card > img {
  width: 170px;
  height: 96px;
  object-fit: cover;
  object-position: center var(--course-thumbnail-y, 50%);
  border-radius: var(--radius);
}

.course-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.course-title-row h2 {
  margin: 0;
  font-size: 20px;
}

.builder-summary-card p {
  margin: 8px 0 0;
  color: #535b53;
}

.builder-summary-card dl {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin: 0;
}

.builder-summary-card dl > div {
  min-height: 72px;
  padding: 0 18px;
  border-left: 1px solid var(--line);
}

.builder-summary-card dt {
  margin-bottom: 10px;
  color: #6b736b;
  font-size: 12px;
  font-weight: 700;
}

.builder-summary-card dd {
  margin: 0;
  font-weight: 700;
}

.person-mini {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.builder-enrollment-trigger {
  min-height: 36px;
  padding: 0 10px;
  gap: 6px;
  font-size: 13px;
}

.builder-enrollment-trigger > span {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  color: #3854ad;
  background: #eaf0ff;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

.team-edit-dialog.course-enrollment-dialog {
  position: relative;
  width: min(760px, calc(100vw - 32px));
  max-height: calc(100dvh - 44px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: #c7d3e8 transparent;
}

.course-enrollment-avatar {
  color: #315bf7;
  background: #eaf0ff;
}

.course-enrollment-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 0;
  border-top: 1px solid #dce7f7;
  border-bottom: 1px solid #e2ebf7;
}

.course-enrollment-stats span {
  display: inline-grid;
  grid-template-columns: auto auto;
  align-items: baseline;
  gap: 7px;
  min-height: 34px;
  padding: 6px 12px;
  color: #102040;
  background: #ffffff;
  border: 1px solid #dce7f7;
  border-radius: 8px;
}

.course-enrollment-stats strong {
  font-size: 18px;
  line-height: 1;
}

.course-enrollment-stats small {
  color: #52637f;
  font-size: 12px;
  font-weight: 750;
}

.course-enrollment-viewbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 0 14px;
  border-bottom: 1px solid #e2ebf7;
}

.course-enrollment-viewbar > span {
  color: #52637f;
  font-size: 12px;
  font-weight: 800;
}

.course-enrollment-viewbar button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 11px;
  color: #102040;
  background: #f8fbff;
  border: 1px solid #dce7f7;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.course-enrollment-viewbar button svg {
  width: 15px;
  height: 15px;
}

.course-enrollment-viewbar button strong {
  color: inherit;
  font-size: 13px;
}

.course-enrollment-viewbar button.active,
.course-enrollment-viewbar button:hover,
.course-enrollment-viewbar button:focus-visible {
  color: #ffffff;
  background: #0f63ff;
  border-color: #0f63ff;
  outline: 0;
}

.course-enrollment-enroll-panel {
  display: grid;
  gap: 13px;
  padding-bottom: 18px;
  border-bottom: 1px solid #dce7f7;
}

.course-enrollment-panel-head,
.course-enrollment-list-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.course-enrollment-panel-head h3,
.course-enrollment-list-heading h3 {
  margin: 0;
  color: #13223f;
  font-size: 15px;
}

.course-enrollment-panel-head p {
  margin: 4px 0 0;
  color: #60708a;
  font-size: 12px;
  line-height: 1.45;
}

.course-enrollment-panel-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.course-enrollment-duration {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 10px;
  color: #2455b7;
  background: #eef4ff;
  border: 1px solid #d5e3ff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

.course-enrollment-duration svg {
  width: 15px;
  height: 15px;
}

.course-student-enroll-form {
  display: grid;
  gap: 10px;
}

.course-student-enroll-form .student-picker-footer {
  position: sticky;
  bottom: -1px;
  z-index: 6;
  margin-top: 2px;
  padding: 12px 0 2px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .18) 0%, rgba(255, 255, 255, .94) 28%, #ffffff 100%);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(220, 231, 247, .85);
}

.course-enrollment-picker-list {
  align-content: start;
  grid-auto-rows: max-content;
  max-height: clamp(260px, calc(100dvh - 420px), 420px);
}

.course-student-enroll-form .course-enrollment-picker-list {
  max-height: none;
  overflow: visible;
  overflow-x: visible;
  overscroll-behavior: auto;
  padding-right: 0;
  scrollbar-gutter: auto;
}

@supports (content-visibility: auto) {
  .course-enrollment-picker-list .student-picker-card {
    content-visibility: auto;
    contain-intrinsic-size: 78px;
  }

  .course-enrollment-picker-list .student-picker-card:has([data-student-picker-emi-popup]) {
    content-visibility: visible;
    contain-intrinsic-size: auto;
  }
}

.course-enrollment-picker-list .student-picker-card.is-course-available:not(.is-student-inactive) {
  grid-template-columns: 40px minmax(0, 1fr) minmax(72px, auto);
}

.course-enrollment-picker-list .student-picker-row-action.select {
  justify-self: end;
  min-width: 72px;
}

.course-enrollment-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 11px;
  color: #52637f;
  background: #f8fbff;
  border: 1px solid #dce7f7;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 750;
}

.course-enrollment-pagination > div {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.course-enrollment-pagination strong {
  color: #102040;
  font-size: 12px;
}

.course-enrollment-pagination .button {
  min-height: 30px;
}

.course-enrollment-pagination .button:disabled {
  cursor: not-allowed;
  opacity: .55;
}

.course-enrollment-single-notice {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  padding: 10px 12px;
  color: #275281;
  background: #eef6ff;
  border: 1px solid #cfe4ff;
  border-radius: 12px;
  font-size: 12px;
  line-height: 1.45;
}

.course-enrollment-single-notice svg {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-top: 1px;
  color: #2563eb;
}

.course-enrollment-emi-popup {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: grid;
  place-items: center;
  padding: clamp(16px, 3vw, 28px);
  background: rgba(15, 23, 42, .34);
  backdrop-filter: blur(14px) saturate(1.06);
}

.course-enrollment-emi-popup[hidden] {
  display: none;
}

.course-enrollment-emi-card {
  display: grid;
  gap: 0;
  width: min(620px, 100%);
  max-height: min(680px, calc(100vh - 76px));
  overflow: auto;
  color: #10213d;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .98) 0%, rgba(248, 251, 255, .98) 100%);
  border: 1px solid rgba(190, 207, 232, .9);
  border-radius: 8px;
  box-shadow: 0 28px 80px rgba(15, 23, 42, .22);
}

.course-enrollment-emi-card header,
.course-enrollment-emi-card footer {
  gap: 14px;
}

.course-enrollment-emi-card header {
  position: sticky;
  top: 0;
  z-index: 1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  padding: 18px 20px;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid #e4ecf8;
  backdrop-filter: blur(12px);
}

.course-enrollment-emi-card footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 16px 20px 18px;
  background: #ffffff;
  border-top: 1px solid #e4ecf8;
}

.course-enrollment-emi-card footer .button {
  min-height: 40px;
}

.course-enrollment-emi-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #14532d;
  background: linear-gradient(135deg, #dcfce7, #e0f2fe);
  border: 1px solid #b7e4c7;
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(22, 101, 52, .12);
}

.course-enrollment-emi-icon svg {
  width: 20px;
  height: 20px;
}

.course-enrollment-emi-card h3,
.course-enrollment-emi-card p {
  margin: 0;
}

.course-enrollment-emi-card h3 {
  margin-top: 3px;
  color: #0f172a;
  font-size: 20px;
  letter-spacing: 0;
  line-height: 1.18;
}

.course-enrollment-emi-card p {
  color: #5e6e88;
  font-size: 13px;
  line-height: 1.45;
}

.course-enrollment-emi-start,
.course-enrollment-emi-select,
.course-enrollment-emi-options {
  display: grid;
  gap: 8px;
}

.course-enrollment-emi-start {
  display: none !important;
}

.course-enrollment-emi-select[hidden] {
  display: none;
}

.course-enrollment-emi-start > span,
.course-enrollment-emi-select > span {
  color: #40516f;
  font-size: 12px;
  font-weight: 750;
}

.course-enrollment-emi-select select {
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  color: #10213d;
  background: #f8fbff;
  border: 1px solid #dce7f7;
  border-radius: 12px;
  outline: none;
}

.course-enrollment-emi-select select:focus {
  border-color: #315bf7;
  box-shadow: 0 0 0 3px rgba(49, 91, 247, .12);
}

.course-enrollment-emi-select small {
  color: #62738e;
  font-size: 12px;
  line-height: 1.35;
}

.course-enrollment-emi-options {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  padding: 16px 20px 0;
}

.course-access-mode-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 16px 20px 0;
}

.course-access-mode-option {
  position: relative;
  min-width: 0;
}

.course-access-mode-option input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.course-access-mode-option > span {
  position: relative;
  display: grid;
  gap: 4px;
  min-height: 78px;
  padding: 14px 15px 14px 46px;
  color: #17233b;
  background: #ffffff;
  border: 1px solid #d9e5f8;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .05);
  transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.course-access-mode-option > span::after {
  content: "";
  position: absolute;
  top: 16px;
  left: 16px;
  width: 18px;
  height: 18px;
  background: #ffffff;
  border: 2px solid #b8c9e6;
  border-radius: 999px;
  transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.course-access-mode-option strong,
.course-access-mode-option small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.course-access-mode-option strong {
  color: #14213d;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.25;
}

.course-access-mode-option small {
  color: #596a86;
  font-size: 12px;
  line-height: 1.4;
}

.course-access-mode-option input:checked + span {
  background: linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
  border-color: #315bf7;
  box-shadow: 0 14px 30px rgba(49, 91, 247, .12);
}

.course-access-mode-option input:checked + span::after {
  background: #315bf7;
  border-color: #315bf7;
  box-shadow: inset 0 0 0 5px #ffffff, 0 0 0 4px rgba(49, 91, 247, .12);
}

.course-access-mode-option input:focus-visible + span {
  outline: 3px solid rgba(49, 91, 247, .18);
  outline-offset: 2px;
}

.course-access-installment-options[hidden] {
  display: none;
}

.course-enrollment-emi-option {
  position: relative;
  min-width: 0;
}

.course-enrollment-emi-option input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.course-enrollment-emi-option > span {
  position: relative;
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 96px;
  height: 100%;
  padding: 14px 46px 14px 14px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #d8e4f5;
  border-radius: 8px;
  transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.course-enrollment-emi-option > span::before {
  content: "";
  position: absolute;
  inset: 10px auto 10px 0;
  width: 3px;
  opacity: 0;
  background: linear-gradient(180deg, #315bf7, #16a34a);
  border-radius: 0 999px 999px 0;
  transition: opacity .18s ease;
}

.course-enrollment-emi-option > span::after {
  content: "";
  position: absolute;
  top: 14px;
  right: 14px;
  width: 20px;
  height: 20px;
  background: #f8fbff;
  border: 2px solid #c8d7ee;
  border-radius: 50%;
  box-shadow: inset 0 0 0 4px #ffffff;
  transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.course-enrollment-emi-option strong,
.course-enrollment-emi-option small {
  display: block;
  min-width: 0;
}

.course-enrollment-emi-option strong {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  color: #14213d;
  font-size: 14px;
  line-height: 1.25;
}

.course-enrollment-emi-option em {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  padding: 0 7px;
  color: #166534;
  background: #dcfce7;
  border-radius: 999px;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

.course-enrollment-emi-option small {
  color: #596a86;
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.course-enrollment-emi-option input:checked + span {
  background: linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
  border-color: #315bf7;
  box-shadow: 0 16px 34px rgba(49, 91, 247, .15);
  transform: translateY(-1px);
}

.course-enrollment-emi-option input:checked + span::before {
  opacity: 1;
}

.course-enrollment-emi-option input:checked + span::after {
  background: #315bf7;
  border-color: #315bf7;
  box-shadow: inset 0 0 0 5px #ffffff, 0 0 0 4px rgba(49, 91, 247, .12);
}

.course-enrollment-emi-option input:hover + span {
  border-color: #abc2ec;
  box-shadow: 0 12px 26px rgba(15, 23, 42, .08);
}

.course-enrollment-emi-option input:focus-visible + span {
  outline: 3px solid rgba(49, 91, 247, .18);
  outline-offset: 2px;
}

.course-enrollment-emi-option input:disabled {
  cursor: not-allowed;
}

.course-enrollment-emi-option input:disabled + span {
  color: #7b8798;
  background: #f5f7fb;
  border-color: #e1e7f0;
  box-shadow: none;
  opacity: .68;
  transform: none;
}

.course-enrollment-emi-option input:disabled + span::before,
.course-enrollment-emi-option input:disabled + span::after {
  opacity: .45;
}

.course-access-custom-date {
  display: grid;
  gap: 8px;
  margin: 16px 20px 0;
  padding: 14px 16px;
  background: #f8fbff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
}

.course-access-custom-date[hidden] {
  display: none;
}

.course-access-custom-date span {
  color: #17233b;
  font-size: 13px;
  font-weight: 850;
}

.course-access-custom-date input {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  color: #14213d;
  background: #ffffff;
  border: 1px solid #c8d8ef;
  border-radius: 8px;
  font: inherit;
  font-weight: 700;
}

.course-access-custom-date input:focus {
  border-color: #315bf7;
  outline: 3px solid rgba(49, 91, 247, .18);
}

.course-access-custom-date small {
  color: #53647f;
  font-size: 12px;
  line-height: 1.4;
}

.course-enrollment-emi-summary {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 14px 20px 0;
  padding: 12px 14px;
  color: #0d5a36 !important;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  font-weight: 700;
}

.course-enrollment-emi-summary::before {
  content: "";
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  margin-top: 4px;
  background: #16a34a;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(22, 163, 74, .13);
}

.course-access-validation {
  margin: 10px 20px 0;
  padding: 10px 12px;
  color: #991b1b;
  background: #fff1f2;
  border: 1px solid #fecdd3;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
}

.course-access-validation[hidden] {
  display: none;
}

.enrollment-emi-stage-popup {
  position: fixed;
  z-index: 70;
}

.course-enrollment-dialog.is-emi-stage-open .course-enrollment-row:hover,
.course-enrollment-dialog.is-emi-stage-open .course-enrollment-row:focus-within {
  transform: none;
}

.enrollment-emi-stage-card {
  width: min(560px, 100%);
}

.enrollment-emi-stage-student {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 20px 0;
  padding: 12px;
  background: #f8fbff;
  border: 1px solid #dce7f7;
  border-radius: 8px;
}

.enrollment-emi-stage-student > span:last-child {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.enrollment-emi-stage-student strong,
.enrollment-emi-stage-student small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.enrollment-emi-stage-student strong {
  color: #10213d;
  font-size: 13px;
}

.enrollment-emi-stage-student small {
  color: #60708a;
  font-size: 12px;
}

.course-enrollment-all-assigned {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  margin: 0;
  padding: 0 12px;
  color: #38624a;
  background: #f2fbf5;
  border: 1px solid #d0ecd9;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 650;
}

.course-enrollment-all-assigned svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  color: #18834c;
}

.course-enrollment-list-heading {
  margin-top: 2px;
}

.course-enrollment-list-heading > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.course-enrollment-list-heading > div > span {
  color: #60708a;
  font-size: 12px;
  font-weight: 700;
}

.course-enrollment-search {
  position: relative;
  display: flex;
  align-items: center;
  flex: 0 1 280px;
  min-width: 220px;
  max-width: 100%;
}

.course-enrollment-search svg {
  position: absolute;
  left: 12px;
  width: 16px;
  height: 16px;
  color: #64748b;
  pointer-events: none;
}

.course-enrollment-search input {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  padding: 0 38px 0 36px;
  color: var(--text);
  background: #ffffff;
  border: 1px solid #dbe6f5;
  border-radius: 10px;
  outline: 0;
}

.course-enrollment-search input:focus {
  border-color: #315bf7;
  box-shadow: 0 0 0 3px rgba(49, 91, 247, .12);
}

.course-enrollment-search-clear {
  position: absolute;
  right: 8px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  color: #64748b;
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.course-enrollment-search-clear svg {
  position: static;
  width: 14px;
  height: 14px;
}

.course-enrollment-search-clear:hover,
.course-enrollment-search-clear:focus-visible {
  color: #1d4ed8;
  background: #eef4ff;
  outline: 0;
}

.course-enrollment-search-clear[hidden],
.course-enrollment-row[hidden],
.course-enrollment-search-empty[hidden] {
  display: none;
}

.course-enrollment-list {
  display: grid;
  gap: 8px;
  max-height: min(280px, calc(100vh - 470px));
  padding-right: 3px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: #c7d3e8 transparent;
}

.course-enrollment-dialog .course-enrollment-list {
  max-height: none;
  overflow: visible;
  padding-right: 0;
  overscroll-behavior: auto;
  scrollbar-gutter: auto;
}

.course-enrollment-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 6px;
  color: var(--text);
  background: #fbfcfe;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .18s ease, background-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.course-enrollment-row:hover,
.course-enrollment-row:focus-within {
  color: var(--text);
  background: #ffffff;
  border-color: #c9d8f7;
  box-shadow: 0 8px 20px rgba(36, 65, 124, .07);
  outline: 0;
  transform: translateY(-1px);
}

.course-enrollment-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(150px, 220px);
  align-items: center;
  gap: 11px;
  min-width: 0;
  padding: 5px 4px 5px 6px;
  color: inherit;
}

.course-enrollment-main:hover,
.course-enrollment-main:focus-visible {
  color: inherit;
  outline: 0;
}

.course-enrollment-student,
.course-enrollment-progress {
  min-width: 0;
}

.course-enrollment-student > strong,
.course-enrollment-student > small,
.course-enrollment-progress > strong {
  display: block;
}

.course-enrollment-student > strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
}

.course-enrollment-student > small,
.course-enrollment-meta > small {
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}

.course-enrollment-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  margin-top: 6px;
}

.course-enrollment-meta .badge {
  flex: 0 0 auto;
}

.course-enrollment-progress {
  display: grid;
  justify-items: stretch;
  gap: 5px;
}

.course-enrollment-progress > strong,
.course-enrollment-progress-label strong {
  color: #233455;
  font-size: 13px;
}

.course-enrollment-progress-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}

.course-enrollment-progress-label small {
  overflow: hidden;
  color: #697894;
  font-size: 10px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.course-enrollment-progress .progress-line {
  width: 100%;
  height: 5px;
  background: #e4eaf4;
}

.course-enrollment-progress .progress-line span {
  background: #315bf7;
}

.course-enrollment-access {
  display: grid;
  gap: 5px;
}

.course-enrollment-access > span:first-child {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
}

.course-enrollment-access strong,
.course-enrollment-access small {
  display: block;
}

.course-enrollment-access strong {
  color: #21375f;
  font-size: 12px;
  white-space: nowrap;
}

.course-enrollment-access > span:first-child small,
.course-enrollment-access > small {
  color: #697894;
  font-size: 10px;
  font-weight: 650;
}

.course-enrollment-access > small {
  white-space: nowrap;
}

.course-access-track {
  display: block;
  height: 6px;
  overflow: hidden;
  background: #e4eaf4;
  border-radius: 999px;
}

.course-access-track > span {
  display: block;
  height: 100%;
  background: #315bf7;
  border-radius: inherit;
  transition: width .2s ease;
}

.course-enrollment-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.course-enrollment-emi-form,
.course-enrollment-remove-form {
  display: flex;
  align-items: center;
  justify-content: center;
}

.course-enrollment-emi-advance {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  column-gap: 4px;
  row-gap: 1px;
  min-width: 78px;
  min-height: 34px;
  height: auto;
  padding: 5px 8px;
  color: #166534;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  transition: transform .18s ease, border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.course-enrollment-emi-advance svg {
  width: 14px;
  height: 14px;
}

.course-enrollment-emi-advance small {
  flex: 0 0 100%;
  min-width: 0;
  color: inherit;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.05;
  text-align: center;
  white-space: nowrap;
}

.course-enrollment-emi-advance:hover,
.course-enrollment-emi-advance:focus-visible {
  color: #14532d;
  background: #dcfce7;
  border-color: #86efac;
  box-shadow: 0 8px 18px rgba(22, 101, 52, .12);
  outline: 0;
  transform: translateY(-1px);
}

.course-enrollment-emi-advance:disabled {
  color: #64748b;
  background: #f8fafc;
  border-color: #e2e8f0;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.course-enrollment-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: #dc2626;
  background: #ffffff;
  border: 1px solid #ffd1d1;
  border-radius: 8px;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.course-enrollment-remove svg {
  width: 16px;
  height: 16px;
}

.course-enrollment-remove:hover,
.course-enrollment-remove:focus-visible {
  color: #b91c1c;
  background: #fff5f5;
  border-color: #fca5a5;
  box-shadow: 0 8px 18px rgba(220, 38, 38, .12);
  outline: 0;
  transform: translateY(-1px);
}

.course-enrollment-empty {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 32px 20px;
  color: var(--muted);
  text-align: center;
}

.course-enrollment-empty > i {
  width: 28px;
  height: 28px;
  color: #7183a5;
}

.course-enrollment-empty > strong {
  color: var(--text);
}

.course-enrollment-empty > span {
  max-width: 360px;
  font-size: 13px;
  line-height: 1.5;
}

.course-enrollment-search-empty {
  margin: 0;
  padding: 18px;
  color: #60708a;
  text-align: center;
  background: #fbfcfe;
  border: 1px dashed #cfdcf0;
  border-radius: var(--radius);
  font-size: 13px;
}

@media (max-width: 640px) {
  .student-bulk-course-switcher {
    grid-template-columns: 1fr;
  }

  .student-bulk-course-status small {
    max-width: none;
  }

  .course-enrollment-panel-head,
  .course-enrollment-list-heading {
    align-items: flex-start;
  }

  .course-enrollment-panel-head,
  .course-enrollment-list-heading {
    flex-direction: column;
  }

  .course-enrollment-search {
    flex-basis: auto;
    width: 100%;
    min-width: 0;
  }

  .course-enrollment-pagination {
    align-items: flex-start;
    flex-direction: column;
  }

  .course-enrollment-pagination > div {
    justify-content: space-between;
    width: 100%;
  }

  .course-enrollment-emi-popup {
    padding: 12px;
  }

  .course-enrollment-emi-card {
    max-height: calc(100vh - 72px);
  }

  .course-enrollment-emi-card header,
  .course-enrollment-emi-card footer {
    padding-inline: 14px;
  }

  .course-enrollment-emi-card header,
  .course-enrollment-emi-card footer {
    align-items: flex-start;
  }

  .course-enrollment-emi-card footer,
  .course-enrollment-emi-options {
    grid-template-columns: 1fr;
  }

  .course-enrollment-emi-options {
    padding: 14px 14px 0;
  }

  .enrollment-emi-stage-student,
  .course-enrollment-emi-summary {
    margin: 12px 14px 0;
  }

  .course-enrollment-emi-card footer {
    display: grid;
  }

  .course-enrollment-row {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }

  .course-enrollment-actions {
    flex-direction: column;
  }

  .course-enrollment-main {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .course-enrollment-progress {
    grid-column: 2;
  }

  .course-enrollment-progress {
    justify-items: stretch;
  }

  .course-enrollment-progress .progress-line {
    max-width: 130px;
  }
}

.course-basics-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
  gap: 16px;
  align-items: start;
  margin-bottom: 18px;
}

.course-basics-form {
  align-items: start;
  gap: 12px;
  padding: 16px 18px;
}

.course-basics-form > .section-heading,
.course-basics-form > .course-description-field,
.course-basics-form > .course-basics-advanced,
.course-basics-form > button {
  grid-column: 1 / -1;
}

.course-basics-form .section-heading {
  margin-bottom: 0;
}

.course-basics-form .section-heading p {
  max-width: 760px;
  margin-top: 5px;
}

.course-description-field textarea {
  height: 120px;
  min-height: 108px;
  line-height: 1.5;
}

.course-description-field {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.course-description-field > span {
  color: #4a5568;
  font-size: 12px;
  font-weight: var(--weight-label);
}

.course-description-field > small {
  color: #69758a;
  font-size: 12px;
  line-height: 1.4;
}

.rich-text-editor {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #dce5f1;
  border-radius: 8px;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.rich-text-editor:focus-within {
  border-color: #315bf7;
  box-shadow: 0 0 0 3px rgba(49, 91, 247, .1);
}

.rich-text-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3px;
  min-height: 46px;
  padding: 6px 8px;
  background: #f8faff;
  border-bottom: 1px solid #e3eaf4;
}

.rich-text-style-select {
  width: 118px;
  min-height: 30px;
  padding: 4px 25px 4px 8px;
  color: #26364d;
  background-color: #ffffff;
  border: 1px solid #d9e2ef;
  border-radius: 6px;
  box-shadow: none;
  font-size: 12px;
  font-weight: 700;
}

.rich-text-tool {
  display: inline-grid;
  width: 30px;
  height: 30px;
  padding: 0;
  place-items: center;
  color: #4b5b71;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
}

.rich-text-tool:hover,
.rich-text-tool:focus-visible {
  color: #173cbb;
  background: #eaf0ff;
  border-color: #d4e0ff;
  box-shadow: none;
}

.rich-text-tool .lucide {
  width: 16px;
  height: 16px;
  stroke-width: 2;
}

.rich-text-toolbar-separator {
  width: 1px;
  height: 20px;
  margin: 0 3px;
  background: #dbe4ef;
}

.rich-text-mode-tabs {
  display: inline-flex;
  align-items: flex-end;
  gap: 0;
  margin-left: auto;
  align-self: stretch;
}

.rich-text-mode-tab {
  display: inline-flex;
  align-items: center;
  min-height: 31px;
  padding: 0 12px;
  color: #5b6678;
  background: #ffffff;
  border: 1px solid #d9e2ef;
  border-bottom-color: #d9e2ef;
  border-radius: 6px 6px 0 0;
  box-shadow: none;
  font-size: 12px;
  font-weight: 700;
}

.rich-text-mode-tab + .rich-text-mode-tab {
  margin-left: -1px;
}

.rich-text-mode-tab:hover,
.rich-text-mode-tab:focus-visible,
.rich-text-mode-tab.is-active {
  position: relative;
  z-index: 1;
  color: #173cbb;
  background: #ffffff;
  border-color: #7d94ff;
  box-shadow: none;
}

.rich-text-mode-tab.is-active {
  border-bottom-color: #ffffff;
}

.rich-text-surface {
  min-height: 210px;
  max-height: 420px;
  padding: 15px 16px;
  overflow-y: auto;
  color: #26364d;
  outline: none;
  font-size: 14px;
  line-height: 1.65;
  white-space: normal;
}

.rich-text-surface:empty::before {
  color: #8a97a9;
  content: attr(data-placeholder);
  pointer-events: none;
}

.rich-text-surface :first-child {
  margin-top: 0;
}

.rich-text-surface :last-child {
  margin-bottom: 0;
}

.rich-text-surface p,
.rich-text-surface div {
  margin: 0 0 12px;
}

.rich-text-surface h2,
.rich-text-surface h3,
.rich-text-surface h4 {
  margin: 22px 0 8px;
  color: #17233d;
  line-height: 1.25;
}

.rich-text-surface h2 {
  font-size: 20px;
}

.rich-text-surface h3 {
  font-size: 17px;
}

.rich-text-surface h4 {
  font-size: 15px;
}

.rich-text-surface ul,
.rich-text-surface ol {
  margin: 0 0 13px;
  padding-left: 24px;
}

.rich-text-surface li + li {
  margin-top: 4px;
}

.rich-text-surface blockquote {
  margin: 14px 0;
  padding: 9px 13px;
  color: #43526a;
  background: #f5f8fc;
  border-left: 3px solid #6c8cff;
}

.rich-text-surface pre {
  margin: 14px 0;
  padding: 12px;
  overflow-x: auto;
  color: #e6edf7;
  background: #1c2738;
  border-radius: 6px;
  font: 12px/1.55 Consolas, "Courier New", monospace;
}

.rich-text-surface a,
.course-description-content a {
  color: #2452dc;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.rich-text-surface img,
.course-description-content img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 16px 0;
  border: 1px solid #dde6f0;
  border-radius: 6px;
}

.rich-text-source {
  display: none;
  width: 100%;
  min-height: 210px;
  max-height: 420px;
  padding: 15px 16px;
  overflow: auto;
  resize: vertical;
  color: #26364d;
  background: #fbfcff;
  border: 0;
  border-top: 1px solid #e3eaf4;
  outline: none;
  font: 13px/1.6 Consolas, "Courier New", monospace;
}

.rich-text-editor.is-code-mode .rich-text-surface {
  display: none;
}

.rich-text-editor.is-code-mode .rich-text-source {
  display: block;
}

.rich-text-editor.is-code-mode .rich-text-tool,
.rich-text-editor.is-code-mode .rich-text-style-select {
  opacity: .48;
  cursor: not-allowed;
}

.course-description-content {
  max-width: 720px;
  margin: 7px 0 0;
  color: #626a62;
  line-height: 1.65;
}

.course-description-content :first-child {
  margin-top: 0;
}

.course-description-content :last-child {
  margin-bottom: 0;
}

.course-description-content p,
.course-description-content div {
  margin: 0 0 12px;
}

.course-description-content h2,
.course-description-content h3,
.course-description-content h4 {
  margin: 22px 0 8px;
  color: #17233d;
  line-height: 1.25;
}

.course-description-content h2 {
  font-size: 24px;
}

.course-description-content h3 {
  font-size: 20px;
}

.course-description-content h4 {
  font-size: 16px;
}

.course-description-content ul,
.course-description-content ol {
  margin: 0 0 14px;
  padding-left: 24px;
}

.course-description-content li + li {
  margin-top: 4px;
}

.course-description-content blockquote {
  margin: 16px 0;
  padding: 10px 14px;
  color: #45556c;
  background: #f5f8fc;
  border-left: 3px solid #6c8cff;
}

.course-description-content pre {
  margin: 16px 0;
  padding: 13px;
  overflow-x: auto;
  color: #e6edf7;
  background: #1c2738;
  border-radius: 6px;
  font: 12px/1.55 Consolas, "Courier New", monospace;
}

@media (max-width: 760px) {
  .rich-text-toolbar {
    gap: 2px;
    padding: 6px;
  }

  .rich-text-style-select {
    width: 108px;
  }

  .rich-text-toolbar-separator {
    display: none;
  }

  .rich-text-surface,
  .rich-text-source {
    min-height: 180px;
    padding: 13px;
  }
}

.course-basics-form .form-row {
  gap: 12px;
  align-items: start;
}

.course-basics-form .form-row label {
  gap: 6px;
  min-width: 0;
}

/* The password control is available only for Password Protected visibility. */
.course-basics-form .course-visibility-password[hidden] {
  display: none !important;
}

.course-basics-form label > span,
.curriculum-panel-pro label > span,
.pricing-card label > span {
  color: #4a5568;
  font-size: 12px;
  font-weight: var(--weight-label);
  letter-spacing: 0;
}

.course-basics-form input,
.course-basics-form select {
  min-height: 38px;
  padding: 8px 11px;
  border-radius: 9px;
  box-shadow: none;
}

.course-basics-form textarea {
  padding: 9px 11px;
  border-radius: 9px;
  box-shadow: none;
}

.course-basics-advanced {
  overflow: hidden;
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.course-basics-advanced summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 0 13px;
  color: #17233d;
  cursor: pointer;
  font-weight: 750;
  list-style: none;
}

.course-basics-advanced summary::-webkit-details-marker {
  display: none;
}

.course-basics-advanced summary svg {
  width: 16px;
  height: 16px;
  transition: transform .2s ease;
}

.course-basics-advanced[open] summary svg {
  transform: rotate(180deg);
}

.course-basics-advanced-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0 13px 13px;
}

.course-basics-advanced-grid label:has(textarea) {
  grid-column: 1 / -1;
}

.course-basics-side {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.course-basics-side .section-heading {
  margin-bottom: 0;
}

.course-basics-side-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.course-basics-side-grid > div,
.course-basics-guidance {
  display: grid;
  gap: 5px;
  padding: 10px;
  background: linear-gradient(180deg, #fbfdff, #f6f9ff);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.course-basics-side-grid svg {
  width: 18px;
  height: 18px;
  color: #3158ff;
}

.course-basics-side-grid strong {
  color: #07122b;
  font-size: 17px;
  line-height: 1.1;
  font-weight: 800;
}

.course-basics-side-grid span,
.course-basics-guidance span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.course-basics-guidance {
  background: #eefaf3;
  border-color: #c8efd7;
}

.course-basics-guidance strong {
  color: #0f5f35;
  font-weight: 800;
}

.builder-tabs,
.editor-tabs {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 12px 0 18px;
  border-bottom: 1px solid var(--line);
}

.builder-tabs a,
.editor-tabs a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  color: #545d54;
  border-bottom: 2px solid transparent;
  font-weight: 700;
}

.builder-tabs a.active,
.editor-tabs a.active {
  color: #111111;
  border-bottom-color: var(--green);
}

.builder-page-head h1,
.builder-page-head .button,
.builder-summary-card h2,
.builder-summary-card dt,
.builder-summary-card dd,
.builder-summary-card strong,
.builder-summary-card .badge,
.builder-summary-card .pill,
.builder-summary-card .summary-pill,
.builder-summary-card .course-tag-list span,
.builder-enrollment-trigger > span,
.builder-tabs a,
.course-basics-form .section-heading h2,
.course-basics-form label > span,
.course-basics-form strong,
.course-url-head > span,
.course-url-line input,
.course-url-helper,
.course-tag-head > span,
.course-tag-head small,
.course-tag-helper,
.course-tag-chip,
.course-tag-list span,
.thumbnail-picker-head > span,
.thumbnail-upload-copy strong,
.thumbnail-upload-copy small,
.thumbnail-file-name,
.thumbnail-upload-action,
.thumbnail-current-preview,
.thumbnail-current-preview strong,
.thumbnail-current-preview small,
.course-basics-side h2,
.course-basics-side strong,
.course-basics-guidance strong,
.rich-text-style-select,
.rich-text-mode-tab,
.course-description-content strong,
.course-description-content b,
.rich-text-surface strong,
.rich-text-surface b {
  font-weight: 400;
}

.builder-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

.builder-commercial-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 370px);
  align-items: start;
  gap: 18px;
  width: min(1320px, 100%);
  margin: 18px auto 32px;
}

.builder-commercial-workspace .curriculum-layout {
  width: 100%;
  margin: 0;
  justify-items: stretch;
}

.builder-commercial-workspace .curriculum-panel-pro {
  width: 100%;
}

.builder-commercial-workspace .pricing-settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  min-width: 0;
  margin: 0;
}

.builder-commercial-workspace .pricing-card,
.builder-commercial-workspace .course-controls-card {
  padding: 16px;
}

.builder-commercial-workspace .pricing-price-grid,
.builder-commercial-workspace .pricing-form-grid {
  grid-template-columns: minmax(0, 1fr);
}

.builder-commercial-workspace .pricing-save-button {
  width: 100%;
}

.curriculum-layout {
  justify-items: center;
  margin: 18px 0 32px;
}

.curriculum-panel-pro {
  display: flex;
  overflow: hidden;
  width: min(920px, 100%);
  max-height: min(760px, calc(100vh - 132px));
  flex-direction: column;
  padding: 0;
  background: #ffffff;
  border-color: #dfe8f6;
  border-radius: var(--radius);
  box-shadow: 0 24px 58px rgba(40, 79, 142, .12);
}

.curriculum-builder-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border-bottom: 1px solid var(--line);
}

.curriculum-builder-title {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.curriculum-builder-title > span {
  color: #3158ff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.curriculum-builder-title h2 {
  margin: 0;
  color: #10172a;
  font-size: 20px;
  line-height: 1.2;
}

.curriculum-builder-title p {
  margin: 0;
  font-size: 13px;
  font-weight: 650;
}

.curriculum-add-jump {
  min-height: 36px;
  padding: 0 12px;
  box-shadow: none;
}

.module-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-auto-rows: max-content;
  align-content: start;
  gap: 8px;
  min-height: 0;
  padding: 12px 14px 14px 12px;
  overflow: auto;
  background: #f7faff;
  scrollbar-width: thin;
  scrollbar-color: #c5d1e5 transparent;
}

.curriculum-panel-pro .module-list {
  flex: 1 1 auto;
  max-height: none;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-gutter: stable;
  overscroll-behavior: contain;
}

.curriculum-panel-pro .module-list::-webkit-scrollbar {
  width: 8px;
}

.curriculum-panel-pro .module-list::-webkit-scrollbar-thumb {
  background: #c5d1e5;
  border: 2px solid #f7faff;
  border-radius: 8px;
}

.curriculum-panel-pro .module-list::-webkit-scrollbar-thumb:hover {
  background: #9fb1ce;
}

.curriculum-empty-state {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 34px 18px;
  color: #536178;
  background: #ffffff;
  border: 1px dashed #cfe0f4;
  border-radius: var(--radius);
  text-align: center;
}

.curriculum-empty-state svg {
  width: 24px;
  height: 24px;
  color: #0f63ff;
}

.curriculum-empty-state strong {
  color: #0f1f3d;
  font-size: 15px;
}

.curriculum-empty-state p {
  max-width: 360px;
  margin: 0;
  font-size: 13px;
  font-weight: 650;
}

.module-card {
  position: relative;
  display: grid;
  min-height: max-content;
  gap: 0;
  overflow: hidden;
  padding: 0;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 24px rgba(40, 79, 142, .05);
}

.module-row,
.lesson-row-pro {
  display: grid;
  grid-template-columns: 22px 30px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
}

.module-row {
  min-height: 48px;
  padding: 7px 10px;
  background: #ffffff;
  border-bottom: 1px solid #edf2fb;
}

.module-title-stack {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.module-title-stack strong,
.lesson-row-title strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.module-title-stack strong {
  color: #10172a;
  font-size: 14px;
  line-height: 1.25;
}

.module-title-stack small {
  overflow: hidden;
  color: #6b7486;
  font-size: 12px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.module-meta-group,
.lesson-meta-group {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
  white-space: nowrap;
}

.module-meta-group small {
  color: #66748a;
  font-size: 12px;
  font-weight: 700;
}

.curriculum-panel-pro .badge {
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 7px;
  font-size: 11px;
}

.module-row [data-module-collapse] svg {
  transition: transform .18s ease;
}

.module-row [data-module-collapse][aria-expanded="false"] svg {
  transform: rotate(-90deg);
}

.lesson-row-pro {
  min-height: 42px;
  margin-top: 6px;
  padding: 7px 8px;
  color: #353d35;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.lesson-row-pro.active {
  background: #edf8f0;
  border-color: #cfead7;
}

.lesson-row-pro:hover,
.lesson-row-pro:focus-within {
  border-color: #b8c8ef;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .06);
  transform: translateY(-1px);
}

.lesson-list-pro {
  display: grid;
  gap: 0;
  padding: 0 10px 8px;
}

.lesson-row-title {
  min-width: 0;
  color: inherit;
}

.lesson-row-title strong {
  font-size: 13px;
  line-height: 1.25;
}

.lesson-meta-group small,
.lesson-meta-group time {
  color: #535b53;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.drag-handle {
  display: grid;
  place-items: center;
  color: #8a918a;
}

.drag-button {
  width: 22px;
  height: 30px;
  min-height: 30px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: grab;
}

.drag-button:hover,
.drag-button:focus {
  color: #2563eb;
  background: #edf4ff;
}

.drag-button:active {
  cursor: grabbing;
}

.module-card.is-dragging,
.lesson-row-pro.is-dragging {
  opacity: .52;
  outline: 2px dashed #3b82f6;
  outline-offset: 2px;
  transform: scale(.995);
}

.module-list.is-sort-target,
.lesson-list-pro.is-sort-target {
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 2px rgba(37, 99, 235, .16);
}

.module-card.is-collapsed .lesson-list-pro,
.module-card.is-collapsed .lesson-add-trigger,
.module-card.is-collapsed .lesson-add-shell,
.module-card.is-collapsed .lesson-add-inline {
  display: none;
}

.lesson-type-icon {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  background: #f0f3ef;
  border-radius: 7px;
}

.lesson-type-icon svg {
  width: 15px;
  height: 15px;
}

.module-edit-menu {
  position: relative;
  justify-self: end;
}

.module-edit-menu > summary {
  list-style: none;
}

.module-edit-menu > summary::-webkit-details-marker {
  display: none;
}

.module-edit-popover {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 18;
  display: grid;
  width: min(360px, calc(100vw - 48px));
  gap: 10px;
  padding: 14px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 24px 58px rgba(15, 23, 42, .16);
}

.module-edit-button,
.lesson-edit-button {
  justify-self: end;
}

.curriculum-row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.curriculum-panel-pro .icon-button {
  width: 34px;
  height: 34px;
  min-height: 34px;
  border-radius: var(--radius);
  box-shadow: none;
}

.curriculum-delete-form {
  margin: 0;
}

.curriculum-delete-button {
  color: #dc2626;
}

.curriculum-delete-button:hover,
.curriculum-delete-button:focus-visible {
  color: #b91c1c;
  background: #fff1f2;
  border-color: #fecdd3;
}

.curriculum-edit-modal {
  z-index: 92;
}

.curriculum-edit-dialog {
  width: min(640px, 100%);
  gap: 14px;
  padding: 22px;
  border-radius: 16px;
}

.lesson-popup-dialog {
  width: min(780px, 100%);
}

.curriculum-edit-avatar {
  color: #315bf7;
  background: #eef3ff;
  box-shadow: inset 0 0 0 1px #d8e4ff;
}

.curriculum-edit-avatar .lucide {
  width: 24px;
  height: 24px;
}

.curriculum-module-edit-form textarea,
.curriculum-lesson-edit-form textarea {
  resize: vertical;
}

.curriculum-lesson-edit-form .form-row {
  gap: 12px;
}

.curriculum-module-edit-form input,
.curriculum-module-edit-form textarea,
.curriculum-lesson-edit-form input,
.curriculum-lesson-edit-form select,
.curriculum-lesson-edit-form textarea {
  min-height: 38px;
  padding: 8px 11px;
  border-radius: 9px;
  box-shadow: none;
}

.curriculum-lesson-edit-form textarea {
  min-height: 108px;
  line-height: 1.45;
}

.curriculum-lesson-edit-form .lesson-short-notes-field .rich-text-surface,
.curriculum-lesson-edit-form .lesson-short-notes-field .rich-text-source {
  min-height: 180px;
  max-height: 340px;
  padding: 14px 15px;
  line-height: 1.6;
}

.curriculum-lesson-edit-form .lesson-content-field .rich-text-surface,
.curriculum-lesson-edit-form .lesson-content-field .rich-text-source {
  min-height: 230px;
  max-height: 420px;
  padding: 14px 15px;
  line-height: 1.6;
}

.curriculum-lesson-edit-form .toggle-row {
  min-height: 68px;
  padding: 12px;
  background: #f8fbff;
}

.lesson-add-shell {
  margin: 0 10px 10px;
}

.lesson-add-trigger,
.lesson-add-shell summary,
.add-module-card summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 36px;
  width: calc(100% - 20px);
  margin: 0 10px 10px;
  padding: 8px 10px;
  color: #173154;
  background: #fbfdff;
  border: 1px dashed #d5e2f4;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 13px;
  font-weight: 750;
  list-style: none;
}

.lesson-add-shell summary,
.add-module-card summary {
  width: 100%;
  margin: 0;
}

.lesson-add-shell summary::-webkit-details-marker,
.add-module-card summary::-webkit-details-marker {
  display: none;
}

.lesson-add-trigger span,
.lesson-add-shell summary span,
.add-module-card summary span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.lesson-add-trigger svg,
.lesson-add-shell summary svg,
.add-module-card summary svg {
  width: 16px;
  height: 16px;
}

.lesson-add-trigger > svg:last-child,
.lesson-add-shell summary > svg:last-child,
.add-module-card summary > svg:last-child {
  color: #7b8798;
  transition: transform .18s ease;
}

.lesson-add-shell[open] summary > svg:last-child,
.add-module-card[open] summary > svg:last-child {
  transform: rotate(180deg);
}

.lesson-add-inline {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 120px minmax(220px, 1fr) auto;
  gap: 8px;
  align-items: start;
  margin-top: 8px;
  padding: 10px;
  background: #fbfdff;
  border: 1px solid #dfe8f6;
  border-radius: var(--radius);
}

.lesson-add-field {
  display: grid;
  gap: 5px;
  min-width: 0;
  margin: 0;
}

.lesson-add-field > span {
  color: #4a5568;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
}

.lesson-add-field input,
.lesson-add-field select,
.lesson-add-reference input {
  min-height: 36px;
  padding: 7px 10px;
  border-radius: 9px;
  box-shadow: none;
}

.lesson-add-reference {
  gap: 5px;
}

.lesson-add-reference small {
  color: #667085;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lesson-add-reference .video-duration-status:empty {
  display: none;
  min-height: 0;
  margin: 0;
}

.lesson-add-inline .button {
  align-self: start;
  min-height: 36px;
  margin-top: 17px;
  padding: 0 12px;
  box-shadow: none;
  white-space: nowrap;
}

.add-module-card {
  display: block;
  margin: 0 12px 12px;
  background: #f8fbff;
  border: 1px dashed #cbd4cb;
  border-radius: var(--radius);
}

.add-module-card summary {
  border: 0;
  background: transparent;
}

.add-module-form {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 0 10px 10px;
}

.add-module-form input {
  min-height: 36px;
  padding: 7px 10px;
  border-radius: 9px;
  box-shadow: none;
}

.add-module-form .button {
  min-height: 36px;
  padding: 0 12px;
  box-shadow: none;
  white-space: nowrap;
}

.curriculum-summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  color: #4d554d;
  background: #ffffff;
  border-top: 1px solid var(--line);
  font-weight: 700;
  font-size: 12px;
}

.builder-switch-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.toggle-row {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  padding: 14px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.toggle-row span {
  display: grid;
  gap: 2px;
}

.toggle-row input[type="checkbox"] {
  flex: 0 0 auto;
  width: 44px;
  height: 24px;
  min-height: 24px;
  padding: 0;
  appearance: none;
  background: #c8cec8;
  border: 0;
  border-radius: 999px;
}

.toggle-row input[type="checkbox"]::after {
  display: block;
  width: 18px;
  height: 18px;
  margin: 3px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .16);
  content: "";
}

.toggle-row input[type="checkbox"]:checked {
  background: var(--green);
}

.toggle-row input[type="checkbox"]:checked::after {
  transform: translateX(20px);
}

.resource-list-pro,
.attachment-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.resource-list-pro h3,
.attachment-list h3 {
  margin: 0;
}

.attachment-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 10px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.attachment-row strong,
.attachment-row small {
  display: block;
}

.attachment-row > span:nth-child(2) {
  min-width: 0;
}

.attachment-row strong {
  overflow: hidden;
  color: #0f172a;
  font-size: 13px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attachment-row small {
  margin-top: 2px;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
}

.attachment-delete-form {
  display: flex;
  margin: 0;
}

.attachment-delete-form .icon-button {
  width: 34px;
  height: 34px;
}

.resource-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #ffffff;
  background: #ef4444;
  border-radius: var(--radius);
}

.resource-icon.zip {
  background: #f59e0b;
}

.resource-icon.link {
  background: #2563eb;
}

.resource-icon.html {
  background: #0f766e;
}

.resource-icon.image {
  background: #16a34a;
}

.resource-icon.video {
  background: #c2410c;
}

.resource-add-form,
.resource-manager-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 10px;
  padding: 10px;
  align-items: stretch;
  background: #fbfdff;
  border: 1px solid #dfe8f6;
  border-radius: 12px;
}

.resource-add-form input,
.resource-add-form select,
.resource-manager-form input,
.resource-manager-form select {
  color: #101828;
  font-size: 14px;
  font-weight: 700;
  min-height: 38px;
  border-radius: 9px;
  box-shadow: none;
}

.resource-add-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.resource-add-head label {
  display: grid;
  gap: 6px;
}

.resource-add-head label span {
  color: #4e5d78;
  font-size: 12px;
  font-weight: 700;
}

.resource-mode-toggle {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: #eef4ff;
  border: 1px solid #d9e4f5;
  border-radius: var(--radius);
}

.resource-mode-toggle button {
  min-height: 34px;
  padding: 0 12px;
  color: #42526e;
  background: transparent;
  border: 0;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}

.resource-mode-toggle button.active {
  color: #ffffff;
  background: #111827;
  box-shadow: 0 8px 18px rgba(17, 24, 39, .16);
}

.resource-pane {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.resource-pane[data-resource-pane="link"] {
  grid-template-columns: 1fr;
}

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

.lesson-attach-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  background: #fbfdff;
  border: 1px solid #dfe8f6;
  border-radius: 14px;
}

.lesson-attach-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lesson-attach-head h3 {
  margin: 0;
  color: #0b1f3f;
  font-size: 15px;
  font-weight: 850;
}

.lesson-attach-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: #0f63ff;
  background: #eaf2ff;
  border-radius: 10px;
}

.lesson-attach-icon svg {
  width: 18px;
  height: 18px;
}

.lesson-attach-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 10px;
}

.lesson-attachment-list {
  display: grid;
  gap: 10px;
}

.lesson-attachment-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px;
  gap: 10px;
  align-items: end;
  padding: 10px;
  background: #ffffff;
  border: 1px solid #dfe8f6;
  border-radius: 12px;
}

.lesson-attachment-row .lesson-attach-grid,
.lesson-attachment-row .lesson-attach-upload {
  grid-column: 1;
}

.lesson-attachment-remove {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
}

.lesson-attachment-add {
  justify-self: start;
}

.lesson-attach-grid label {
  display: grid;
  gap: 6px;
}

.lesson-attach-grid label span {
  color: #4e5d78;
  font-size: 12px;
  font-weight: 750;
}

.lesson-attach-upload {
  min-height: 46px;
}

.pricing-settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .48fr);
  gap: 18px;
  margin-top: 18px;
  align-items: start;
}

.pricing-card,
.checklist-card {
  padding: 18px 20px;
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, .06);
}

.pricing-card {
  align-self: start;
  gap: 12px;
}

.pricing-card .section-heading,
.checklist-card .section-heading {
  margin-bottom: 4px;
}

.pricing-card .section-heading h2,
.checklist-card .section-heading h2 {
  font-size: 18px;
}

.pricing-form-grid {
  display: grid;
  grid-template-columns: minmax(160px, .55fr) minmax(190px, .7fr) minmax(150px, .45fr);
  gap: 12px;
  align-items: end;
}

.pricing-card label {
  gap: 6px;
}

.pricing-card input,
.pricing-card select {
  min-height: 38px;
  padding: 8px 11px;
  border-radius: 10px;
}

.pricing-model-controls {
  display: grid;
  gap: 12px;
}

.pricing-model-fieldset {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}

.pricing-model-fieldset legend {
  padding: 0;
  color: #344054;
  font-size: 12px;
  font-weight: 800;
}

.pricing-model-options {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  gap: 3px;
  padding: 3px;
  background: #f3f6fb;
  border: 1px solid #dce5f1;
  border-radius: 8px;
}

.pricing-model-option {
  position: relative;
  display: inline-flex;
  gap: 0;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.pricing-model-option:hover {
  color: #244fcf;
  background: #e9effc;
}

.pricing-model-option.is-selected {
  border-color: #b7c9ff;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(33, 69, 139, .12);
}

.pricing-model-option input[type="radio"] {
  position: absolute;
  width: 1px;
  min-width: 1px;
  min-height: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  opacity: 0;
  pointer-events: none;
}

.pricing-model-option span {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.pricing-model-option strong {
  color: #17213b;
  font-size: 12px;
  line-height: 1;
}

.pricing-model-option.is-selected strong {
  color: #2452dc;
}

.pricing-model-option:focus-within {
  outline: 2px solid #315bf7;
  outline-offset: 1px;
}

.pricing-model-option small,
.pricing-card label small,
.pricing-discount-preview {
  color: #66738d;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
}

.pricing-model-option small {
  display: none;
}

.pricing-paid-fields {
  padding: 12px;
  border: 1px solid #e0e8f5;
  border-radius: 10px;
  background: #f9fbff;
}

.pricing-paid-fields[hidden] {
  display: none;
}

.pricing-price-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.pricing-price-grid label {
  display: grid;
  gap: 6px;
}

.pricing-price-grid label > span:first-child {
  color: #344054;
  font-size: 12px;
  font-weight: 800;
}

.pricing-price-grid label > span:first-child small {
  margin-left: 4px;
  color: #8a95a8;
  font-weight: 600;
}

.price-input {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  overflow: hidden;
  min-height: 38px;
  border: 1px solid #d9e3f3;
  border-radius: 9px;
  background: #fff;
}

.price-input:focus-within {
  border-color: #3b63f5;
  box-shadow: 0 0 0 3px rgba(59, 99, 245, .12);
}

.price-input b {
  display: grid;
  place-items: center;
  border-right: 1px solid #d9e3f3;
  color: #66738d;
  font-size: 14px;
}

.pricing-card .price-input input {
  min-width: 0;
  min-height: 36px;
  padding: 7px 9px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.pricing-card .price-input input:focus {
  box-shadow: none;
}

.pricing-discount-preview {
  min-height: 15px;
  margin: 9px 0 0;
  color: #21623f;
}

.pricing-emi-card {
  display: grid;
  gap: 10px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #e4ebf6;
}

.pricing-emi-card[hidden],
.pricing-emi-fields[hidden] {
  display: none;
}

.pricing-emi-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  margin: 0;
  padding: 9px 10px;
  border: 1px solid #dfe8f6;
  border-radius: 8px;
  background: #ffffff;
  cursor: pointer;
}

.pricing-emi-toggle input[type="checkbox"] {
  width: 17px;
  min-width: 17px;
  height: 17px;
  min-height: 17px;
  margin: 0;
  accent-color: #145cff;
}

.pricing-emi-toggle span {
  display: grid;
  gap: 2px;
}

.pricing-emi-toggle strong {
  color: #17213b;
  font-size: 13px;
  line-height: 1.2;
}

.pricing-emi-toggle small {
  color: #66738d;
  font-size: 11px;
  font-weight: 650;
}

.pricing-emi-fields {
  display: grid;
  gap: 8px;
}

.pricing-emi-grid {
  display: grid;
  grid-template-columns: .7fr 1fr;
  gap: 10px;
}

.pricing-emi-grid label {
  display: grid;
  gap: 6px;
}

.pricing-emi-grid label > span:first-child {
  color: #344054;
  font-size: 12px;
  font-weight: 800;
}

.pricing-emi-interval {
  display: grid;
  grid-template-columns: minmax(64px, .45fr) minmax(90px, .55fr);
  gap: 8px;
}

.pricing-emi-preview {
  min-height: 18px;
  margin: 0;
  color: #0f5f38;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.pricing-save-button {
  justify-self: start;
  min-height: 40px;
  padding: 0 18px;
  box-shadow: 0 10px 20px rgba(15, 99, 255, .16);
}

.check-progress {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
}

.check-progress strong {
  font-size: 14px;
}

.checklist-list {
  display: grid;
  gap: 0;
  margin: 12px 0 14px;
}

.checklist-list div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
}

.checklist-list.compact div {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.checklist-list em {
  font-style: normal;
  font-weight: 700;
}

.checklist-list.compact strong,
.checklist-list.compact em {
  min-width: 0;
  font-size: 13px;
  line-height: 1.25;
}

.checklist-list.compact em {
  max-width: 130px;
  overflow: hidden;
  color: #566176;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.course-controls-card {
  gap: 12px;
}

.course-controls-list {
  display: grid;
  gap: 10px;
}

.course-control-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  padding: 11px 12px;
  background: #f8fbff;
  border: 1px solid #dfe8f6;
  border-radius: 12px;
}

.course-control-item span {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 10px;
  row-gap: 2px;
  align-items: center;
  min-width: 0;
}

.course-control-item svg {
  grid-row: 1 / 3;
  width: 20px;
  height: 20px;
  color: #3158ff;
}

.course-control-item strong {
  min-width: 0;
  color: #14213d;
  font-size: 14px;
  line-height: 1.25;
}

.course-control-item small {
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.course-control-item > em {
  flex: 0 0 auto;
  max-width: 120px;
  overflow: hidden;
  color: #17233d;
  font-size: 12px;
  font-style: normal;
  font-weight: 750;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.check-good,
.check-warn {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
}

.check-good svg,
.check-warn svg {
  width: 14px;
  height: 14px;
}

.check-good {
  color: #ffffff;
  background: var(--green-dark);
}

.check-warn {
  color: #9a6512;
  background: #fff2d3;
}

.review-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 430px);
  gap: 18px;
  align-items: start;
}

.review-main {
  min-width: 0;
}

.review-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.review-stat {
  display: flex;
  gap: 18px;
  align-items: center;
  min-height: 124px;
}

.review-stat > span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: var(--green-dark);
  background: #e7f8ef;
  border-radius: var(--radius);
}

.review-stat strong {
  display: block;
  margin: 4px 0 2px;
  font-size: 28px;
}

.review-stat em {
  color: var(--green-dark);
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
}

.review-toolbar {
  align-items: center;
}

.review-table th,
.review-table td {
  padding: 12px;
}

.review-table tr.active {
  background: #f0faf3;
  box-shadow: inset 4px 0 0 var(--green);
}

.review-course-cell {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-width: 260px;
}

.review-course-cell img {
  width: 74px;
  height: 52px;
  object-fit: cover;
  object-position: center var(--course-thumbnail-y, 50%);
  border-radius: var(--radius);
}

.review-course-cell small {
  display: -webkit-box;
  overflow: hidden;
  color: #545c54;
  font-size: 12px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.table-progress {
  display: grid;
  gap: 6px;
  min-width: 90px;
}

.review-drawer {
  position: sticky;
  top: 24px;
  display: grid;
  gap: 18px;
  min-height: calc(100vh - 48px);
  padding: 24px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.review-drawer-head {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) auto;
  align-items: start;
  gap: 14px;
}

.review-drawer-head img {
  width: 90px;
  height: 64px;
  object-fit: cover;
  object-position: center var(--course-thumbnail-y, 50%);
  border-radius: var(--radius);
}

.review-drawer-head h2 {
  margin: 0 0 5px;
  font-size: 19px;
}

.review-drawer-head p,
.review-meta-line {
  color: #5d655d;
}

.review-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.review-check-panel h3 {
  margin: 0;
}

.review-decision-form {
  padding-top: 2px;
}

.review-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.button.success {
  color: #ffffff;
  background: #25a84f;
}

.button.warn {
  color: #a25b00;
  background: #fff8ea;
  border-color: #f2ba73;
}

.drawer-view-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  color: #1f2a1f;
  font-weight: 700;
}

.resource-manager-panel {
  margin-top: 18px;
}

.resource-manager-form {
  grid-template-columns: 1fr;
}

.resource-delete-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.calendar-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  gap: 28px;
  align-items: start;
  min-width: 0;
}

.calendar-main {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.calendar-board-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(310px, .72fr);
  gap: 18px;
  min-width: 0;
}

.calendar-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.calendar-toolbar h2 {
  margin: 0 0 4px;
  font-size: 24px;
}

.calendar-toolbar p {
  margin: 0;
  color: var(--muted);
  font-weight: 650;
}

.calendar-toolbar select {
  width: 150px;
  min-height: 38px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(88px, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.calendar-weekday {
  min-height: 36px;
  padding: 10px 8px;
  color: #2f3a52;
  background: #f8fafc;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  font-weight: 750;
  text-align: center;
}

.calendar-weekday:nth-child(7) {
  border-right: 0;
}

.calendar-day {
  position: relative;
  min-height: 116px;
  padding: 10px 8px;
  background: #ffffff;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.calendar-day-add {
  position: absolute;
  top: 7px;
  right: 7px;
  z-index: 2;
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  padding: 0;
  color: #6880b1;
  background: transparent;
  border: 0;
  border-radius: 999px;
  box-shadow: none;
  cursor: pointer;
  opacity: .46;
  transition: opacity .18s ease, color .18s ease, background-color .18s ease, box-shadow .18s ease, transform .18s cubic-bezier(.2, .8, .2, 1);
}

.calendar-day.has-events .calendar-day-add {
  right: 26px;
}

.calendar-day:hover .calendar-day-add,
.calendar-day:focus-within .calendar-day-add {
  opacity: .82;
}

.calendar-day-add:hover,
.calendar-day-add:focus-visible {
  opacity: 1;
  color: #274ec9;
  background: #e8efff;
  box-shadow: 0 0 0 2px rgba(83, 117, 218, .15);
  outline: 0;
  transform: scale(1.04);
}

.calendar-day-add:active {
  transform: scale(.92);
}

.calendar-day-add i {
  width: 15px;
  height: 15px;
  stroke-width: 2;
}

.calendar-day.has-events {
  z-index: 1;
  background:
    radial-gradient(circle at 88% 18%, rgba(59, 130, 246, .18), transparent 28px),
    linear-gradient(180deg, rgba(239, 246, 255, .92), #ffffff 72%);
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, .2);
  animation: calendarEventCellBlink 1.9s ease-in-out infinite;
}

.calendar-day.has-events::after {
  content: "";
  position: absolute;
  top: 12px;
  right: 12px;
  width: 7px;
  height: 7px;
  background: #2563eb;
  border-radius: 999px;
  box-shadow: 0 0 0 0 rgba(37, 99, 235, .32);
  animation: calendarEventDotBlink 1.3s ease-in-out infinite;
}

.calendar-day.has-events .calendar-day-number {
  color: #0f3ea9;
}

.calendar-day.has-events:focus-visible,
.calendar-day.has-events:hover {
  z-index: 4;
  outline: 2px solid rgba(37, 99, 235, .35);
  outline-offset: -2px;
}

.calendar-day:nth-child(7n) {
  border-right: 0;
}

.calendar-day.muted-day {
  background: #fafbf9;
}

.calendar-day.muted-day .calendar-day-number {
  color: #a3aaa3;
}

.calendar-day.today .calendar-day-number {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: #ffffff;
  background: #2563eb;
  border-radius: 50%;
}

.calendar-day-number {
  color: #141a24;
  font-weight: 750;
}

.calendar-day-events {
  display: grid;
  gap: 5px;
  margin-top: 8px;
}

.calendar-day.has-batch-classes:not(.has-events) {
  background:
    radial-gradient(circle at 90% 18%, rgba(15, 118, 110, .1), transparent 26px),
    #ffffff;
}

.calendar-batch-indicators {
  display: grid;
  gap: 4px;
}

.calendar-batch-indicator {
  display: grid;
  grid-template-columns: 8px 46px minmax(0, 1fr);
  align-items: center;
  gap: 5px;
  min-height: 26px;
  padding: 4px 6px;
  color: #0f172a;
  background: color-mix(in srgb, var(--batch-color, #0f766e) 9%, #ffffff);
  border: 1px solid color-mix(in srgb, var(--batch-color, #0f766e) 22%, #ffffff);
  border-radius: 6px;
  text-decoration: none;
}

.calendar-batch-indicator i {
  width: 7px;
  height: 7px;
  background: var(--batch-color, #0f766e);
  border-radius: 999px;
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--batch-color, #0f766e) 28%, transparent);
  animation: batchClassPulse 1.7s ease-in-out infinite;
}

.calendar-batch-indicator strong,
.calendar-batch-indicator span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.calendar-batch-indicator strong {
  color: var(--batch-color, #0f766e);
  font-size: 10px;
  font-weight: 850;
}

.calendar-batch-indicator span {
  font-size: 10px;
  font-weight: 750;
}

.calendar-batch-indicator:hover,
.calendar-batch-indicator:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--batch-color, #0f766e) 26%, transparent);
  outline-offset: 1px;
}

.calendar-chip {
  display: grid;
  gap: 1px;
  min-height: 48px;
  padding: 7px 8px;
  background: color-mix(in srgb, var(--event-color, #16a34a) 13%, #ffffff);
  border: 1px solid color-mix(in srgb, var(--event-color, #16a34a) 25%, #ffffff);
  border-left: 3px solid var(--event-color, #16a34a);
  border-radius: 6px;
}

.calendar-chip span,
.calendar-chip small,
.calendar-more {
  font-size: 10px;
  font-weight: 700;
}

.calendar-chip span {
  color: var(--event-color, #16a34a);
}

.calendar-chip strong {
  overflow: hidden;
  color: #0f172a;
  font-size: 11px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.calendar-chip small {
  color: #334155;
}

.calendar-more {
  color: #566056;
}

.calendar-legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 14px;
  color: #465046;
  font-size: 13px;
  font-weight: 700;
}

.calendar-legend span,
.calendar-sync-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.legend-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.legend-dot.live {
  background: #16a34a;
}

.legend-dot.batch {
  background: #0f766e;
  box-shadow: 0 0 0 0 rgba(15, 118, 110, .28);
  animation: batchClassPulse 1.7s ease-in-out infinite;
}

.legend-dot.due {
  background: #2563eb;
}

.legend-dot.exam {
  background: #ef4444;
}

.legend-dot.reminder {
  background: #06b6d4;
}

.calendar-sync-link {
  margin-left: auto;
  color: #2563eb;
}

.calendar-side-stack,
.calendar-list,
.deadline-list,
.reminder-list,
.agenda-list {
  display: grid;
  gap: 10px;
}

.calendar-side-stack {
  gap: 14px;
}

.calendar-list article,
.deadline-list article,
.reminder-list article,
.agenda-list article {
  display: grid;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.calendar-list article,
.deadline-list article,
.reminder-list article {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.agenda-list article {
  grid-template-columns: 72px minmax(0, 1fr) auto;
}

.calendar-list-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--event-color, #16a34a);
  background: color-mix(in srgb, var(--event-color, #16a34a) 14%, #ffffff);
  border-radius: var(--radius);
}

.calendar-list-icon.blue {
  --event-color: #2563eb;
}

.calendar-list-icon.red {
  --event-color: #ef4444;
}

.calendar-list-icon.batch {
  position: relative;
  border-radius: 999px;
}

.calendar-list-icon.batch::after {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  background: var(--event-color, #0f766e);
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 999px;
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--event-color, #0f766e) 28%, transparent);
  animation: batchClassPulse 1.7s ease-in-out infinite;
  content: "";
}

.calendar-list strong,
.calendar-list small,
.calendar-list em,
.deadline-list strong,
.deadline-list small,
.reminder-list strong,
.reminder-list small,
.agenda-list strong,
.agenda-list small {
  display: block;
}

.calendar-list small,
.deadline-list small,
.reminder-list small,
.agenda-list small {
  color: var(--muted);
}

.calendar-list em {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #2f3a52;
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
}

.calendar-list em svg {
  width: 13px;
  height: 13px;
}

.meet-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 10px;
  color: #111827;
  background: #ffffff;
  border: 1px solid #dbe4f0;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 750;
}

.meet-button svg {
  color: #2563eb;
}

.deadline-list time,
.reminder-list time {
  color: #2563eb;
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

.deadline-list article:nth-child(2n) time {
  color: #ef4444;
}

.calendar-lower-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, .62fr) minmax(320px, .74fr);
  gap: 18px;
}

.calendar-event-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.calendar-event-form label {
  display: grid;
  gap: 7px;
}

.calendar-event-form label span {
  color: #4d554d;
  font-size: 13px;
  font-weight: var(--weight-label);
}

.calendar-datetime-field {
  grid-column: 1 / -1;
  min-width: 0;
}

.calendar-datetime-picker {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(46px, .28fr) minmax(52px, .32fr) minmax(58px, .34fr);
  gap: 6px;
  width: 100%;
  min-width: 0;
}

.calendar-datetime-picker input,
.calendar-datetime-picker select {
  min-width: 0;
}

.calendar-datetime-picker select {
  padding-inline: 6px;
}

.calendar-event-form .full,
.calendar-event-form button {
    grid-column: 1 / -1;
}

.live-class-dialog {
    width: min(680px, 100%);
}

.live-class-event-form {
    margin: 0;
}

.calendar-quick-event-dialog {
    width: min(760px, calc(100vw - 32px));
}

.quick-calendar-event-form {
    margin: 0;
}

.agenda-list time {
  display: grid;
  gap: 3px;
  padding: 9px;
  color: #111827;
  background: #f4f7fb;
  border-radius: var(--radius);
  text-align: center;
}

.agenda-list .badge {
  justify-self: end;
}

.calendar-planning-panel {
  position: sticky;
  top: 28px;
  align-self: start;
  display: grid;
  gap: 22px;
  padding-bottom: 24px;
}

.calendar-planning-panel h2 {
  margin: 0;
  color: #2563eb;
  font-size: 24px;
}

.calendar-planning-panel h2::after {
  display: block;
  width: 42px;
  height: 3px;
  margin-top: 12px;
  background: #2563eb;
  border-radius: 999px;
  content: "";
}

.calendar-hero-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 210px;
}

.calendar-art-board {
  display: grid;
  grid-template-columns: repeat(4, 26px);
  gap: 10px;
  padding: 36px 24px 24px;
  background: linear-gradient(180deg, #eaf2ff, #ffffff);
  border: 5px solid #2563eb;
  border-top-width: 18px;
  border-radius: var(--radius);
  box-shadow: 18px 18px 38px rgba(37, 99, 235, .14);
  transform: rotate(6deg);
}

.calendar-art-board span {
  width: 26px;
  height: 22px;
  background: #ffffff;
  border: 2px solid #c7d9f7;
  border-radius: 5px;
}

.calendar-art-board span.checked {
  position: relative;
  background: #2563eb;
  border-color: #2563eb;
}

.calendar-art-board span.checked::after {
  position: absolute;
  inset: 4px 6px;
  border-right: 3px solid #ffffff;
  border-bottom: 3px solid #ffffff;
  transform: rotate(45deg);
  content: "";
}

.calendar-meet-tile {
  position: absolute;
  right: 26px;
  bottom: 24px;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  color: #2563eb;
  background: #ffffff;
  border: 1px solid #d9e5f8;
  border-radius: var(--radius);
  box-shadow: 0 16px 38px rgba(37, 99, 235, .14);
}

.calendar-meet-tile svg {
  width: 30px;
  height: 30px;
}

.calendar-highlights article > span {
  color: #16a34a;
  background: #e8f8ef;
}

.calendar-highlights article:nth-child(2) > span {
  color: #2563eb;
  background: #eaf2ff;
}

.calendar-highlights article:nth-child(3) > span {
  color: #7c3aed;
  background: #f1eaff;
}

.calendar-highlights article:nth-child(4) > span {
  color: #2563eb;
  background: #edf5ff;
}

.messages-search {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 42px;
  padding: 0 8px 0 12px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.messages-search input {
  width: 100%;
  min-width: 0;
  min-height: 36px;
  padding: 0;
  background: transparent;
  border: 0;
}

.batch-room-search {
  grid-template-columns: 18px minmax(0, 1fr) auto auto;
}

.batch-type-filter {
  position: relative;
  z-index: 20;
}

.batch-type-filter summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 10px;
  color: #17325c;
  background: #ffffff;
  border: 1px solid #d8e4f5;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 800;
  list-style: none;
  cursor: pointer;
}

.batch-type-filter summary::-webkit-details-marker {
  display: none;
}

.batch-type-filter summary svg {
  width: 15px;
  height: 15px;
}

.batch-type-filter[open] summary {
  color: #0f52d9;
  border-color: #b8cafa;
  box-shadow: 0 0 0 3px rgba(49, 91, 247, .12);
}

.batch-type-filter-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  gap: 6px;
  width: 252px;
  padding: 8px;
  background: #ffffff;
  border: 1px solid #dce7f7;
  border-radius: 14px;
  box-shadow: 0 18px 42px rgba(15, 23, 42, .16);
}

.batch-filter-menu-section {
  display: grid;
  gap: 5px;
}

.batch-filter-menu-section + .batch-filter-menu-section,
.batch-filter-clear {
  margin-top: 4px;
  padding-top: 8px !important;
  border-top: 1px solid #edf2fa !important;
}

.batch-filter-menu-title {
  display: block;
  padding: 3px 9px 1px;
  color: #6b7b96;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.batch-type-filter-menu a {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 9px;
  color: #233a62;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 800;
}

.batch-type-filter-menu a:hover,
.batch-type-filter-menu a.active {
  color: #0f52d9;
  background: #eef5ff;
  border-color: #cfe0ff;
}

.batch-type-filter-menu a.batch-filter-clear {
  color: #6b2431;
}

.batch-type-filter-menu a.batch-filter-clear:hover,
.batch-type-filter-menu a.batch-filter-clear:focus-visible {
  color: #be123c;
  background: #fff1f2;
  border-color: #fecdd3;
}

.batch-type-filter-menu svg {
  width: 15px;
  height: 15px;
}

.batch-type-filter-menu small {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  min-height: 22px;
  padding: 0 7px;
  color: #52637f;
  background: #f7faff;
  border: 1px solid #e2eaf7;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.batch-room-list {
  display: grid;
  gap: 8px;
}

.batch-room-list a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 72px;
  padding: 10px;
  color: #14213d;
  border: 1px solid transparent;
  border-radius: var(--radius);
}

.batch-room-list a.active,
.batch-room-list a:hover {
  background: #eef5ff;
  border-color: #dbe8ff;
}

.batch-room-list a.has-link-warning {
  background: #fffaf0;
  border-color: #fed7aa;
}

.batch-room-list a.has-link-warning.active,
.batch-room-list a.has-link-warning:hover {
  background: #fff7ed;
  border-color: #fb923c;
}

.batch-room-list a.is-chat-locked {
  background: #fffaf0;
  border-color: #fde7bd;
}

.batch-room-list a.is-chat-locked.active,
.batch-room-list a.is-chat-locked:hover {
  background: #fff7ed;
  border-color: #f59e0b;
}

.batch-avatar,
.anonymous-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  color: var(--batch-color, #16a34a);
  background: color-mix(in srgb, var(--batch-color, #16a34a) 16%, #ffffff);
  border-radius: 50%;
}

.batch-avatar.large {
  width: 52px;
  height: 52px;
}

.batch-avatar.is-type-internship {
  color: #7c3aed;
  background: #f3eaff;
}

.batch-type-inline,
.batch-type-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: max-content;
  max-width: 100%;
  color: #08714b;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.2;
}

.batch-type-inline.is-type-internship,
.batch-type-pill.is-type-internship {
  color: #6d28d9;
}

.batch-overview-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.batch-type-pill {
  min-height: 24px;
  padding: 0 9px;
  color: #047857;
  background: #e9f9ef;
  border: 1px solid #bbf7d0;
  border-radius: 999px;
}

.batch-type-pill.is-type-internship {
  color: #6d28d9;
  background: #f3eaff;
  border-color: #ddd6fe;
}

.batch-type-pill svg {
  width: 13px;
  height: 13px;
}

.batch-room-list strong,
.batch-room-list small,
.batch-room-list em {
  display: block;
}

.batch-room-list small {
  overflow: hidden;
  color: #5d6a86;
  font-size: 12px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.batch-room-list em {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: #ffffff;
  background: #2563eb;
  border-radius: 50%;
  font-size: 11px;
  font-style: normal;
  font-weight: 750;
}

.batch-room-list em.is-locked {
  width: auto;
  min-width: 54px;
  padding: 0 8px;
  color: #7c2d12;
  background: #ffedd5;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  font-size: 10px;
}

.batch-room-list .batch-link-warning-inline {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  overflow: visible;
  color: #b45309;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  text-overflow: clip;
  white-space: normal;
}

.batch-link-warning-inline svg {
  flex: 0 0 auto;
  width: 13px;
  height: 13px;
  animation: batch-link-warning-blink 1s ease-in-out infinite;
}

.batch-room-list .batch-duration-inline {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  overflow: visible;
  color: #315887;
  line-height: 1.2;
  text-overflow: clip;
  white-space: normal;
}

.batch-duration-inline svg {
  flex: 0 0 auto;
  width: 13px;
  height: 13px;
  color: #2563eb;
}

.batch-room-list .batch-chat-lock-inline {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  overflow: visible;
  color: #9a3412;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  text-overflow: clip;
  white-space: normal;
}

.batch-chat-lock-inline svg {
  flex: 0 0 auto;
  width: 13px;
  height: 13px;
  color: #ea580c;
}

.chat-room-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.chat-room-head h2 {
  margin: 0;
  font-size: 20px;
}

.chat-room-head p {
  margin: 4px 0 0;
  color: #5d677d;
}

.chat-head-actions {
  display: flex;
  gap: 8px;
}

.chat-message-stream {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 420px;
  padding: 18px;
  overflow: auto;
}

.chat-bubble-row {
  display: grid;
  grid-template-columns: auto minmax(0, 560px);
  gap: 10px;
  align-items: end;
}

.chat-bubble-row.mine {
  grid-template-columns: minmax(0, 560px) auto;
  justify-content: end;
}

.chat-bubble-row.mine .anonymous-avatar {
  grid-column: 2;
  grid-row: 1;
}

.chat-bubble-row.mine .chat-bubble {
  grid-column: 1;
  grid-row: 1;
  color: #0b1a3a;
  background: #eaf2ff;
}

.chat-bubble-row.is-deleted-audit .chat-bubble {
  color: #5f1f1f;
  background: #fff7ed;
  border-color: #fed7aa;
}

.anonymous-avatar {
  width: 34px;
  height: 34px;
  color: #2563eb;
  background: #e8f0ff;
}

.anonymous-avatar.moderator {
  color: #0b7a46;
  background: #e6f8ee;
}

.chat-bubble {
  position: relative;
  padding: 12px 14px;
  background: #f4f6fa;
  border: 1px solid #e5eaf2;
  border-radius: var(--radius);
}

.chat-bubble header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 6px;
  color: #30415f;
  font-size: 12px;
}

.chat-bubble header strong {
  line-height: 1.25;
}

.chat-bubble p {
  margin: 0;
  color: #10213f;
  font-size: 14px;
  line-height: 1.5;
}

.chat-bubble time {
  color: #6b7486;
  font-size: 11px;
  white-space: nowrap;
}

.chat-audit-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 0 0 7px;
  padding: 4px 8px;
  color: #9a3412;
  background: #ffedd5;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.chat-audit-label svg {
  width: 13px;
  height: 13px;
}

.message-moderate-form {
  margin-top: 8px;
  text-align: right;
}

.message-moderate-form button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #b4232d;
  background: transparent;
  border: 0;
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
}

.message-moderate-form button svg {
  width: 13px;
  height: 13px;
}

.chat-compose {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  margin: 0 18px 18px;
  padding: 10px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.send-button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #ffffff;
  background: #2563eb;
  border: 0;
  border-radius: 50%;
}

.attendance-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  gap: 28px;
}

.attendance-main {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.attendance-head p,
.attendance-manager-head p {
  max-width: 720px;
}

.attendance-kpi-grid,
.attendance-manager-kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.attendance-manager-kpis {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 18px;
}

.attendance-kpi-card {
  position: relative;
  display: grid;
  align-content: start;
  min-height: 242px;
  padding: 22px;
  color: #071534;
  border-color: #dae5f5;
  box-shadow: 0 18px 46px rgba(37, 99, 235, .08);
}

.attendance-kpi-card > small {
  max-width: 130px;
  color: #17254a;
  font-weight: 700;
}

.attendance-kpi-card p {
  margin: 14px 0 16px;
  color: #52648c;
}

.attendance-kpi-card a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #2563eb;
  font-weight: 700;
  font-size: 14px;
}

.student-stat-icon.orange,
.student-quick-icon.orange {
  color: #c2410c;
  background: #ffedd5;
}

.blue-text {
  color: #2563eb;
}

.orange-text {
  color: #c2410c;
}

.attendance-ring {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  margin-top: 18px;
  background:
    radial-gradient(circle at center, #ffffff 0 54%, transparent 56%),
    conic-gradient(var(--ring-color, #16a34a) calc(var(--progress) * 1%), #dbe6f7 0);
  border-radius: 50%;
}

.attendance-ring strong {
  color: #071534;
  font-size: 24px;
}

.attendance-ring.green {
  --ring-color: #16a34a;
}

.attendance-ring.blue {
  --ring-color: #2563eb;
}

.attendance-progress-track {
  position: relative;
  height: 8px;
  margin-top: 14px;
  overflow: hidden;
  background: #dfe7f4;
  border-radius: 999px;
}

.attendance-progress-track span {
  display: block;
  height: 100%;
  background: #2563eb;
  border-radius: inherit;
}

.attendance-progress-track.orange span {
  background: #f97316;
}

.grade-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 18px 0 14px;
}

.grade-summary-grid span {
  display: grid;
  gap: 2px;
  padding: 10px;
  text-align: center;
  background: #ffffff;
  border: 1px solid #dfe7f4;
  border-radius: var(--radius);
}

.grade-summary-grid strong {
  color: #16a34a;
  font-size: 22px;
}

.grade-summary-grid span:nth-child(3) strong {
  color: #7c3aed;
}

.grade-summary-grid span:nth-child(4) strong {
  color: #dc2626;
}

.grade-summary-grid em {
  color: #071534;
  font-style: normal;
  font-weight: 750;
}

.grade-summary-grid small {
  font-size: 11px;
}

.attendance-analytics-grid,
.attendance-lower-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
  gap: 16px;
}

.attendance-table-wrap {
  overflow-x: auto;
}

.attendance-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
}

.attendance-table th,
.attendance-table td {
  padding: 14px 10px;
  border-bottom: 1px solid #dfe7f4;
  text-align: left;
  vertical-align: middle;
}

.attendance-table th {
  color: #53658f;
  font-size: 12px;
}

.attendance-table strong,
.attendance-table small {
  display: block;
}

.attendance-table small {
  margin-top: 3px;
  color: #5a6b93;
}

.attendance-sparkline {
  display: inline-flex;
  align-items: end;
  gap: 4px;
  height: 36px;
}

.attendance-sparkline i {
  width: 8px;
  background: linear-gradient(180deg, #2563eb, #16a34a);
  border-radius: 999px;
}

.attendance-trend-panel canvas {
  display: block;
  width: 100%;
  min-height: 280px;
}

.attendance-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 8px;
  color: #53658f;
  font-size: 13px;
  font-weight: 700;
}

.attendance-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.attendance-legend i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.blue-dot {
  background: #2563eb;
}

.green-dot {
  background: #16a34a;
}

.attendance-session-feed,
.recorded-watch-list,
.manager-session-list,
.attendance-risk-list {
  display: grid;
  gap: 12px;
}

.attendance-session-feed article,
.recorded-watch-list article,
.attendance-risk-list article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 12px;
  padding: 13px;
  background: #ffffff;
  border: 1px solid #dfe7f4;
  border-radius: var(--radius);
}

.recorded-watch-list article,
.attendance-risk-list article {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.attendance-session-feed strong,
.attendance-session-feed small,
.recorded-watch-list strong,
.recorded-watch-list small,
.attendance-risk-list strong,
.attendance-risk-list small {
  display: block;
}

.attendance-session-feed em {
  color: #53658f;
  font-style: normal;
  font-weight: 700;
}

.attendance-feed-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #15803d;
  background: #e1f8eb;
  border-radius: var(--radius);
}

.attendance-feed-icon.orange {
  color: #c2410c;
  background: #ffedd5;
}

.attendance-feed-icon.green {
  color: #15803d;
  background: #e1f8eb;
}

.attendance-actions {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.attendance-hero-art {
  min-height: 190px;
}

.attendance-art-calendar {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 44px);
  gap: 10px;
  padding: 24px;
  background: #ffffff;
  border: 1px solid #d5e4ff;
  border-radius: 18px;
  box-shadow: 0 20px 48px rgba(37, 99, 235, .12);
}

.attendance-art-calendar span {
  width: 44px;
  height: 34px;
  background: #eaf2ff;
  border: 1px solid #cfe0ff;
  border-radius: var(--radius);
}

.attendance-art-calendar strong {
  position: absolute;
  right: -16px;
  bottom: -12px;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  color: #ffffff;
  background: #2563eb;
  border: 5px solid #ffffff;
  border-radius: 50%;
}

.attendance-manager-grid {
  display: grid;
  grid-template-columns: minmax(270px, .82fr) minmax(520px, 1.5fr) minmax(300px, .9fr);
  gap: 18px;
  align-items: start;
}

.manager-session-list a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 13px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.manager-session-list a.active,
.manager-session-list a:hover {
  background: #effaf3;
  border-color: #bde9d0;
}

.manager-session-list strong,
.manager-session-list small {
  display: block;
}

.manager-session-list em {
  color: #0a7a46;
  font-style: normal;
  font-weight: 750;
}

.attendance-roster-panel .panel-title-row p {
  margin: 6px 0 0;
  color: var(--muted);
}

.attendance-roster-list {
  display: grid;
  gap: 10px;
}

.attendance-roster-row {
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr) minmax(120px, .45fr) 92px minmax(120px, .65fr) auto;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.attendance-roster-row strong,
.attendance-roster-row small {
  display: block;
}

.attendance-roster-row-readonly .badge {
  justify-self: start;
}

.attendance-roster-row-readonly > small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.attendance-roster-row input,
.attendance-roster-row select,
.attendance-create-form input,
.attendance-create-form select {
  width: 100%;
  min-height: 38px;
  padding: 0 10px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.attendance-manager-side {
  display: grid;
  gap: 18px;
}

.attendance-assigned-classes-panel {
  margin-bottom: 18px;
}

.attendance-assigned-class {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #e5ebf8;
}

.attendance-assigned-class:last-of-type {
  border-bottom: 0;
}

.attendance-assigned-class-icon {
  display: grid;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #315bf7;
  background: #edf2ff;
  border-radius: 8px;
}

.attendance-assigned-class > div {
  min-width: 0;
  flex: 1;
}

.attendance-assigned-class strong,
.attendance-assigned-class small {
  display: block;
}

.attendance-assigned-class small {
  margin-top: 3px;
  color: #64748b;
  font-size: .82rem;
}

.attendance-create-form {
  display: grid;
  gap: 12px;
}

.attendance-create-form label {
  display: grid;
  gap: 7px;
  color: #343a34;
  font-weight: 650;
}

.attendance-create-form label span {
  color: var(--muted);
  font-size: 12px;
}

.batch-hub-shell,
.batch-hub-main {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.batch-hub-head {
  align-items: stretch;
}

.batch-hub-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr) 330px;
  gap: 18px;
  align-items: start;
}

.batch-hub-list-panel {
  position: sticky;
  top: 28px;
  display: grid;
  gap: 14px;
  padding: 18px;
}

.batch-hub-center,
.batch-hub-side {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.batch-overview-panel {
  padding: 22px;
}

.batch-overview-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
}

.batch-overview-head > div {
  min-width: 0;
}

.batch-overview-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.batch-overview-actions form {
  margin: 0;
}

.batch-overview-enroll-button {
  min-height: 40px;
  padding: 0 13px;
  white-space: nowrap;
}

.batch-overview-enroll-button svg {
  width: 16px;
  height: 16px;
}

.batch-overview-head h2 {
  margin: 2px 0 6px;
  font-size: 26px;
}

.batch-overview-head p {
  margin: 0;
  color: var(--muted);
}

.batch-launch-field {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: min(100%, 620px);
  min-height: 36px;
  margin-top: 10px;
  padding: 7px;
  color: #18315f;
  background: rgba(255, 255, 255, .72);
  border: 1px solid #cfe2ff;
  border-radius: var(--radius);
  box-shadow: none;
}

.batch-launch-field > i,
.batch-launch-field > svg {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  color: #0f63ff;
}

.batch-launch-field span {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  min-width: 0;
  gap: 3px 8px;
  padding-right: 2px;
}

.batch-launch-field small,
.batch-launch-field strong,
.batch-launch-field em {
  max-width: 100%;
}

.batch-launch-field small {
  color: #64748b;
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
}

.batch-launch-field small::after {
  content: ":";
}

.batch-launch-field strong {
  color: #0b1d3b;
  font-size: 13px;
  line-height: 1.2;
}

.batch-launch-field em {
  color: #52627b;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
}

.batch-launch-field.is-pending {
  border-color: #fde7b0;
  background: rgba(255, 250, 240, .82);
}

.batch-launch-field.is-pending > i,
.batch-launch-field.is-pending > svg {
  color: #b97810;
}

.batch-launch-edit-button {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-left: 4px;
  color: #0f63ff;
  background: rgba(255, 255, 255, .9);
  border: 1px solid #d7e6ff;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.batch-launch-edit-button svg {
  width: 15px;
  height: 15px;
}

.batch-launch-edit-button:hover,
.batch-launch-edit-button:focus-visible {
  border-color: #78a8ff;
  box-shadow: 0 8px 18px rgba(15, 99, 255, .14);
  transform: translateY(-1px);
  outline: none;
}

.batch-launch-dialog {
  width: min(520px, 100%);
}

.batch-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.batch-overview-grid article {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 14px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.batch-overview-grid article > span,
.batch-info-list article > span,
.batch-lesson-list a > span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #16a34a;
  background: #e6f8ee;
  border-radius: var(--radius);
}

.batch-overview-grid strong,
.batch-overview-grid small,
.batch-info-list strong,
.batch-info-list small,
.batch-lesson-list strong,
.batch-lesson-list small {
  display: block;
}

.batch-overview-grid strong {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.batch-overview-grid .schedule-days {
  overflow: visible;
  white-space: normal;
  text-overflow: clip;
}

.batch-duration-overview-card strong,
.batch-duration-overview-card small {
  overflow: visible;
  white-space: normal;
  text-overflow: clip;
}

.batch-mentor-card strong {
  overflow: visible;
  white-space: normal;
  text-overflow: clip;
  overflow-wrap: anywhere;
  line-height: 1.3;
}

.batch-link-warning-alert {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding: 12px;
  color: #7c2d12;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 12px;
  box-shadow: inset 4px 0 0 #f97316;
}

.batch-link-warning-alert > i,
.batch-link-warning-alert > svg {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #c2410c;
  background: #ffedd5;
  border-radius: 10px;
  animation: batch-link-warning-blink 1s ease-in-out infinite;
}

.batch-link-warning-alert span,
.batch-link-warning-alert strong,
.batch-link-warning-alert small,
.batch-link-warning-alert em {
  min-width: 0;
}

.batch-link-warning-alert strong,
.batch-link-warning-alert small,
.batch-link-warning-alert em {
  display: block;
}

.batch-link-warning-alert strong {
  font-size: 14px;
  font-weight: 850;
  line-height: 1.25;
}

.batch-link-warning-alert small {
  margin-top: 2px;
  color: #9a3412;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.35;
  animation: batch-link-warning-message-pulse 1s ease-in-out infinite;
}

.batch-link-warning-alert em {
  margin-top: 2px;
  color: #b45309;
  font-size: 12px;
  font-style: normal;
  line-height: 1.35;
}

.batch-link-warning-alert .button {
  min-height: 38px;
  padding: 0 13px;
  white-space: nowrap;
}

.batch-capacity-alert {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 10px 12px;
  color: #991b1b;
  background: #fff7f7;
  border: 1px solid #fecaca;
  border-radius: 12px;
}

.batch-capacity-alert[hidden] {
  display: none;
}

.batch-capacity-alert > i,
.batch-capacity-alert > svg {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #dc2626;
  background: #fee2e2;
  border-radius: 10px;
}

.batch-capacity-alert span,
.batch-capacity-alert strong,
.batch-capacity-alert small {
  min-width: 0;
}

.batch-capacity-alert strong,
.batch-capacity-alert small {
  display: block;
}

.batch-capacity-alert strong {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
}

.batch-capacity-alert small {
  margin-top: 2px;
  color: #7f1d1d;
  font-size: 12px;
  line-height: 1.35;
}

.batch-capacity-alert.is-strong {
  color: #7f1d1d;
  background: #fef2f2;
  border-color: #f87171;
  box-shadow: inset 4px 0 0 #ef4444;
}

.batch-capacity-alert.is-critical {
  color: #ffffff;
  background: #b91c1c;
  border-color: #7f1d1d;
  box-shadow: 0 16px 34px rgba(185, 28, 28, .22);
  animation: batch-critical-alert 1s ease-in-out infinite;
}

.batch-capacity-alert.is-critical > i,
.batch-capacity-alert.is-critical > svg {
  color: #b91c1c;
  background: #ffffff;
}

.batch-capacity-alert.is-critical small {
  color: #fee2e2;
}

.batch-capacity-alert-modal {
  margin: 0 20px 0;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

@keyframes batch-critical-alert {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: .68;
  }
}

@keyframes batch-link-warning-blink {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: .42;
    transform: scale(.94);
  }
}

@keyframes batch-link-warning-message-pulse {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: .58;
  }
}

@media (prefers-reduced-motion: reduce) {
  .batch-capacity-alert.is-critical,
  .batch-link-warning-alert > i,
  .batch-link-warning-alert > svg,
  .batch-link-warning-alert small,
  .batch-link-warning-inline svg {
    animation: none;
  }
}

.batch-schedule-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.batch-schedule-strip span {
  display: inline-grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 6px 10px;
  color: #0f5132;
  background: #e6f8ee;
  border: 1px solid #bfebd0;
  border-radius: 999px;
}

.batch-schedule-strip strong,
.batch-schedule-strip small {
  display: inline;
}

.batch-schedule-strip small {
  color: #2f6b4e;
  font-weight: 700;
}

.batch-management-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.batch-resource-list,
.batch-lesson-list,
.batch-info-list,
.batch-members-mini-list {
  display: grid;
  gap: 10px;
}

.batch-resource-list article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 13px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.batch-resource-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: #2563eb;
  background: #eaf2ff;
  border-radius: var(--radius);
}

.batch-resource-icon.type-recording,
.batch-resource-icon.type-video {
  color: #c2410c;
  background: #ffedd5;
}

.batch-resource-icon.type-live {
  color: #0b7a46;
  background: #e6f8ee;
}

.batch-resource-icon.type-assignment {
  color: #7c3aed;
  background: #f0e9ff;
}

.batch-resource-list strong,
.batch-resource-list p,
.batch-resource-list small {
  display: block;
}

.batch-resource-list p {
  margin: 4px 0 6px;
  color: #40506e;
}

.batch-lesson-list a,
.batch-info-list article,
.batch-members-mini-list article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.batch-members-mini-list article {
  grid-template-columns: minmax(0, 1fr) auto;
}

.batch-members-mini-list form {
  margin: 0;
}

.batch-member-row-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.batch-member-row-actions form {
  display: flex;
  align-items: center;
}

.batch-members-mini-list .icon-button {
  width: 34px;
  height: 34px;
}

.batch-lesson-list a {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.batch-lesson-list small,
.batch-members-mini-list small {
  color: var(--muted);
}

.batch-member-contact-row {
  min-height: 58px;
  background: #ffffff;
}

.batch-member-contact {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.batch-member-contact strong,
.batch-member-contact small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.batch-member-contact strong {
  color: #102040;
  font-size: 14px;
  font-weight: 800;
}

.batch-member-contact small {
  color: #52637f;
  font-size: 13px;
  font-weight: 650;
}

.batch-members-empty {
  display: grid;
  gap: 4px;
  padding: 16px;
  color: #52637f;
  background: #f8fbff;
  border: 1px dashed #cbdaf0;
  border-radius: var(--radius);
}

.batch-members-empty strong,
.batch-members-empty small {
  display: block;
}

.batch-hub-side {
  position: sticky;
  top: 28px;
}

.batch-schedule-field {
  display: grid;
  gap: 7px;
  min-width: 0;
  margin: 0;
  padding: 0;
  color: #343a34;
  border: 0;
  font-weight: 650;
}

.batch-schedule-field legend {
  padding: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.weekday-picker {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.weekday-picker label {
  display: block;
  min-width: 0;
}

.weekday-picker input {
  position: absolute;
  width: auto;
  min-height: 0;
  padding: 0;
  opacity: 0;
  pointer-events: none;
}

.weekday-picker span {
  display: grid;
  place-items: center;
  min-height: 42px;
  padding: 0 8px;
  color: #40506e;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}

.weekday-picker input:checked + span {
  color: #ffffff;
  background: #315bf7;
  border-color: #315bf7;
  box-shadow: 0 10px 24px rgba(49, 91, 247, .18);
}

.weekday-picker input:focus-visible + span {
  outline: 3px solid rgba(49, 91, 247, .2);
  outline-offset: 2px;
}

.batch-time-field {
  align-self: end;
  min-width: 0;
}

.batch-time-picker {
  display: grid;
  grid-template-columns: minmax(64px, 1fr) minmax(64px, 1fr) minmax(92px, auto);
  gap: 7px;
  align-items: center;
  width: 100%;
  min-width: 0;
  min-height: 54px;
  padding: 6px;
  background: #f8fbff;
  border: 1px solid #dce7f7;
  border-radius: 14px;
}

.batch-time-picker select {
  min-width: 0;
  min-height: 40px;
  padding: 0 9px;
  color: #10213f;
  background: #ffffff;
  border-color: #dce7f7;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 750;
}

.batch-time-picker select:focus {
  border-color: #315bf7;
  box-shadow: 0 0 0 3px rgba(49, 91, 247, .12);
}

.batch-period-toggle {
  display: grid;
  grid-template-columns: repeat(2, minmax(44px, 1fr));
  gap: 4px;
  min-width: 0;
}

.batch-period-toggle label {
  position: relative;
  display: block;
  gap: 0;
  min-width: 0;
}

.batch-period-toggle input {
  position: absolute;
  width: auto;
  min-height: 0;
  padding: 0;
  opacity: 0;
  pointer-events: none;
}

.batch-period-toggle label span {
  display: grid;
  place-items: center;
  min-height: 40px;
  padding: 0 8px;
  color: #40506e;
  background: #ffffff;
  border: 1px solid #dce7f7;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.batch-period-toggle input:checked + span {
  color: #ffffff;
  background: #315bf7;
  border-color: #315bf7;
  box-shadow: 0 10px 20px rgba(49, 91, 247, .16);
}

.batch-period-toggle input:focus-visible + span {
  outline: 3px solid rgba(49, 91, 247, .2);
  outline-offset: 2px;
}

.faculty-picker-field {
  display: grid;
  gap: 9px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.faculty-picker-field legend {
  padding: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.faculty-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
  max-height: 184px;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 2px;
}

.faculty-picker-card {
  box-sizing: border-box;
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 10px;
  min-height: 62px;
  min-width: 0;
  padding: 10px;
  color: #13223f;
  background: #ffffff;
  border: 1px solid #dce7f7;
  border-radius: 14px;
  cursor: pointer;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.faculty-picker-card:hover {
  border-color: #b8cafa;
  box-shadow: 0 12px 26px rgba(49, 91, 247, .09);
  transform: translateY(-1px);
}

.faculty-picker-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.faculty-picker-avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #ffffff;
  background: var(--faculty-color, #7c3aed);
  border-radius: 12px;
  font-size: 12px;
  font-weight: 800;
}

.faculty-picker-card strong,
.faculty-picker-card small {
  display: block;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}

.faculty-picker-card strong {
  font-size: 13px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.faculty-picker-card small {
  margin-top: 2px;
  color: #647086;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
}

.faculty-picker-card > svg {
  width: 18px;
  height: 18px;
  padding: 3px;
  color: transparent;
  background: #f3f6fb;
  border-radius: 999px;
}

.faculty-picker-card:has(input:checked) {
  border-color: #315bf7;
  background: linear-gradient(135deg, #ffffff, #f2f6ff);
  box-shadow: 0 14px 28px rgba(49, 91, 247, .14);
}

.faculty-picker-card:has(input:checked) > svg {
  color: #ffffff;
  background: #315bf7;
}

.faculty-picker-card:has(input:focus-visible) {
  outline: 3px solid rgba(49, 91, 247, .18);
  outline-offset: 2px;
}

.batch-access-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px;
  background: #f8fbff;
  border: 1px solid #dce7f7;
  border-radius: 14px;
}

.batch-access-summary span {
  display: inline-grid;
  grid-template-columns: auto auto;
  align-items: baseline;
  gap: 7px;
  min-height: 32px;
  padding: 5px 10px;
  color: #102040;
  background: #ffffff;
  border: 1px solid #dce7f7;
  border-radius: 999px;
}

.batch-access-summary strong {
  font-size: 16px;
  line-height: 1;
}

.batch-access-summary small {
  color: #52637f;
  font-size: 12px;
  font-weight: 750;
}

.batch-settings-faculty-field {
  gap: 10px;
  padding: 14px;
  background: #f8fbff;
  border: 1px solid #dce7f7;
  border-radius: 14px;
}

.batch-settings-faculty-field legend {
  color: #102040;
  font-size: 14px;
  font-weight: 800;
}

.batch-settings-faculty-field > .muted {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
}

.batch-settings-faculty-summary {
  padding: 0;
  background: transparent;
  border: 0;
}

.batch-settings-faculty-field .faculty-picker-grid {
  max-height: 230px;
  padding: 2px;
  scrollbar-gutter: stable;
}

.batch-student-add-form {
  gap: 14px;
}

.student-picker-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.student-picker-search {
  position: relative;
  min-width: 0;
}

.student-picker-search svg {
  position: absolute;
  left: 13px;
  top: 50%;
  width: 18px;
  height: 18px;
  color: #6d7890;
  transform: translateY(-50%);
  pointer-events: none;
}

.student-picker-search input {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  min-width: 0;
  padding-left: 42px;
  padding-right: 42px;
}

.student-picker-search input::-webkit-search-cancel-button,
.student-picker-search input::-webkit-search-decoration {
  display: none;
  -webkit-appearance: none;
}

.student-picker-search-clear {
  position: absolute;
  right: 9px;
  top: 50%;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  min-height: 28px;
  padding: 0;
  color: #4e6286;
  background: transparent;
  border: 0;
  border-radius: 8px;
  transform: translateY(-50%);
  cursor: pointer;
}

.student-picker-search-clear:hover,
.student-picker-search-clear:focus-visible {
  color: #163f9f;
  background: #eef4ff;
}

.student-picker-search-clear svg {
  position: static;
  width: 16px;
  height: 16px;
  transform: none;
}

.student-picker-search-clear[hidden] {
  display: none;
}

.student-picker-list {
  display: grid;
  gap: 9px;
  max-height: 282px;
  overflow: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  padding: 4px 8px 4px 0;
  scrollbar-gutter: stable;
}

.student-picker-card {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 12px;
  min-height: 66px;
  min-width: 0;
  padding: 11px 12px;
  color: #13223f;
  background: #ffffff;
  border: 1px solid #dce7f7;
  border-radius: 14px;
  cursor: pointer;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.student-picker-card[hidden] {
  display: none;
}

@supports (content-visibility: auto) {
  .student-picker-list .student-picker-card {
    content-visibility: auto;
    contain-intrinsic-size: 76px;
  }
}

.student-picker-card:hover {
  border-color: #b8cafa;
  box-shadow: 0 12px 26px rgba(49, 91, 247, .08);
  transform: translateY(-1px);
}

.student-picker-card.is-student-inactive {
  grid-template-columns: 40px minmax(0, 1fr);
  color: #5d6c83;
  background: #f8fafc;
  cursor: default;
}

.student-picker-card.is-student-inactive:hover {
  border-color: #dce7f7;
  box-shadow: none;
  transform: none;
}

.student-picker-card.is-course-access-locked {
  background: linear-gradient(135deg, #fff 0%, #fff7f7 100%);
  border-color: #fecaca;
}

.student-picker-card.is-course-access-locked:hover {
  border-color: #fca5a5;
  box-shadow: 0 12px 26px rgba(220, 38, 38, .08);
}

.student-picker-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.student-picker-avatar {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 40px;
  height: 40px;
  color: #ffffff;
  background: var(--student-color, #f59e0b);
  border-radius: 13px;
  font-size: 12px;
  font-weight: 800;
}

.student-picker-card strong,
.student-picker-card small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.student-picker-card strong {
  font-size: 14px;
}

.student-picker-card small {
  margin-top: 2px;
  color: #647086;
  font-size: 12px;
  font-weight: 650;
}

.student-picker-status {
  display: inline-flex;
  width: max-content;
  margin-top: 7px;
  padding: 4px 9px;
  font-size: 11px;
}

.student-picker-detail-card {
  grid-template-columns: 40px minmax(0, 1fr) minmax(150px, 220px) auto;
  align-items: center;
  min-height: 70px;
  padding-block: 10px;
  overflow: visible;
}

.student-picker-info,
.student-picker-person {
  display: grid;
  gap: 3px;
  min-width: 0;
  width: 100%;
}

.student-picker-meta {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
  margin-top: 6px;
}

.student-picker-meta .badge {
  flex: 0 0 auto;
}

.student-picker-progress {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.student-picker-progress {
  justify-items: stretch;
}

.student-picker-progress strong,
.student-picker-progress-label strong {
  color: #233455;
  font-size: 13px;
}

.student-picker-progress-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}

.student-picker-progress-label small {
  overflow: hidden;
  color: #697894;
  font-size: 10px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.student-picker-progress .progress-line {
  width: 100%;
  height: 5px;
  background: #e4eaf4;
}

.student-picker-progress .progress-line span {
  background: #315bf7;
}

.student-picker-access strong,
.student-picker-access small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.student-picker-access strong {
  color: #21375f;
  font-size: 12px;
}

.student-picker-access small {
  color: #697894;
  font-size: 10px;
  font-weight: 650;
}

.student-picker-actions {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.student-picker-active-icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: #15803d;
  background: #dcfce7;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
}

.student-picker-active-icon svg {
  width: 15px;
  height: 15px;
}

.student-picker-row-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid #cfe0ff;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.student-picker-row-action svg {
  width: 14px;
  height: 14px;
}

.student-picker-row-action.select {
  color: #2455b7;
  background: #eef4ff;
}

.student-picker-row-action.danger {
  color: #b42318;
  background: #fff5f5;
  border-color: #ffd1d1;
  cursor: pointer;
}

.student-picker-row-action.danger:hover,
.student-picker-row-action.danger:focus-visible {
  color: #ffffff;
  background: #dc2626;
  border-color: #dc2626;
}

.student-picker-card:has(input:checked) .student-picker-row-action.select {
  color: #ffffff;
  background: #315bf7;
  border-color: #315bf7;
}

.student-picker-emi-open {
  flex: 0 0 auto;
}

.student-picker-emi-popup {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 32px);
  background: rgba(15, 23, 42, .38);
  backdrop-filter: blur(16px) saturate(1.06);
}

.student-picker-emi-dialog {
  width: min(620px, calc(100vw - 32px));
  max-height: min(640px, calc(100dvh - 48px));
  padding: 0;
  overflow: auto;
}

.student-picker-emi-options {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  max-height: none;
  overflow: visible;
}

.student-picker-emi-summary {
  margin: 14px 20px 0;
  padding: 12px 14px;
  font-size: 12px;
}

@media (max-width: 760px) {
  .student-picker-detail-card {
    grid-template-columns: 40px minmax(0, 1fr) auto;
  }

  .student-picker-progress {
    grid-column: 2 / -1;
    justify-items: stretch;
  }

  .student-picker-actions {
    grid-column: 2 / -1;
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .student-picker-detail-card {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .student-picker-actions {
    grid-column: 1 / -1;
  }

  .student-picker-emi-dialog {
    width: calc(100vw - 24px);
    max-height: calc(100dvh - 24px);
    padding: 0;
  }

  .student-picker-emi-options {
    grid-template-columns: 1fr;
  }
}

.student-picker-emi-stage {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  color: #16418f;
  background: #eef4ff;
  border: 1px solid #cfe0ff;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.student-picker-emi-stage:hover,
.student-picker-emi-stage:focus-visible {
  color: #0f2e74;
  background: #e0ecff;
  border-color: #9dbbff;
}

.student-picker-emi-stage.is-current,
.student-picker-emi-stage:disabled {
  color: #166534;
  background: #dcfce7;
  border-color: #bbf7d0;
  cursor: default;
}

.student-picker-card > svg,
.student-picker-card-check {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  padding: 3px;
  color: transparent;
  background: #ffffff;
  border: 1px solid #c7d4e8;
  border-radius: 6px;
}

.student-picker-card-check::after {
  content: "";
  width: 8px;
  height: 12px;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  opacity: 0;
  transform: rotate(45deg) translate(-1px, -1px);
}

.student-picker-card:has(input:checked) {
  border-color: #315bf7;
  background:
    linear-gradient(135deg, #ffffff, #f1f6ff);
  box-shadow: 0 14px 28px rgba(49, 91, 247, .12);
}

.student-picker-card:has(input:checked) > svg,
.student-picker-card:has(input:checked) .student-picker-card-check {
  color: #ffffff;
  background: #315bf7;
  border-color: #315bf7;
}

.student-picker-card:has(input:checked) .student-picker-card-check::after {
  opacity: 1;
}

.student-picker-card.is-course-active {
  cursor: default;
  background: #f8fbff;
}

.student-picker-card.is-course-active:hover {
  border-color: #dce7f7;
  box-shadow: none;
  transform: none;
}

.student-picker-card.is-course-active > svg,
.student-picker-card.is-course-active .student-picker-card-check {
  color: #15803d;
  background: #e1f8eb;
  border-color: #bbf7d0;
}

.student-picker-card:has(input:focus-visible) {
  outline: 3px solid rgba(49, 91, 247, .18);
  outline-offset: 2px;
}

.student-picker-empty {
  display: grid;
  gap: 4px;
  margin: 6px 0;
  padding: 16px;
  color: #5f6f8a;
  text-align: center;
  background: #f8fbff;
  border: 1px dashed #cbd9ef;
  border-radius: 12px;
  font-size: 13px;
}

.student-picker-empty strong {
  color: #13223f;
  font-size: 13px;
}

.student-picker-empty small {
  color: #647086;
  font-size: 12px;
  font-weight: 650;
}

.student-picker-empty[hidden] {
  display: none;
}

.student-picker-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 4px;
}

.student-picker-footer > span {
  color: #40506e;
  font-size: 12px;
  font-weight: 750;
}

.student-picker-footer .button {
  min-height: 42px;
}

.batch-hub-head {
  gap: 18px;
  align-items: end;
}

.batch-head-actions {
  display: grid;
  justify-items: end;
  gap: 12px;
  min-width: 0;
}

.batch-create-trigger {
  min-height: 42px;
  padding: 0 16px;
  white-space: nowrap;
}

.batch-hub-layout {
  grid-template-columns: minmax(260px, 300px) minmax(0, 1fr);
}

.batch-hub-list-panel {
  border-color: #dce7f7;
  box-shadow: none;
}

.batch-room-list a {
  min-height: 72px;
}

.batch-hub-side {
  position: static;
  grid-column: 2;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr);
}

.batch-info-panel {
  display: none;
}

.batch-overview-panel {
  position: relative;
  order: 1;
  justify-self: start;
  width: min(100%, 1064px);
  overflow: hidden;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--classroom-accent, #16a34a) 12%, #ffffff), #ffffff 54%),
    #ffffff;
  border-color: color-mix(in srgb, var(--classroom-accent, #16a34a) 24%, var(--line));
  box-shadow: none;
}

.batch-overview-panel::before {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 8px;
  background: var(--classroom-accent, #16a34a);
  content: "";
}

.batch-overview-head {
  padding-top: 8px;
}

.batch-overview-head h2 {
  font-size: clamp(28px, 3vw, 42px);
  letter-spacing: 0;
}

.batch-overview-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.batch-overview-grid article {
  min-height: 92px;
  background: rgba(255, 255, 255, .78);
  border-color: #dce7f7;
}

.classroom-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.classroom-tabs a,
.classroom-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 13px;
  color: #18315f;
  background: #ffffff;
  border: 1px solid #dce7f7;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
}

.classroom-tabs button {
  font-family: inherit;
}

.classroom-tabs a:hover,
.classroom-tabs button:hover {
  color: #0f63ff;
  border-color: #bcd1f4;
  box-shadow: 0 10px 22px rgba(15, 99, 255, .08);
}

.classroom-tabs svg {
  width: 16px;
  height: 16px;
}

.batch-chat-panel,
.batch-management-grid > article,
.batch-create-dialog {
  border-color: #dce7f7;
  box-shadow: none;
}

.batch-chat-panel {
  order: 2;
  justify-self: start;
  display: flex;
  flex-direction: column;
  width: min(100%, 1064px);
  aspect-ratio: 4 / 3;
  min-height: 560px;
  max-height: min(920px, calc(100vh - 112px));
  padding: 0;
  overflow: hidden;
}

.batch-chat-head {
  align-items: start;
  padding: 20px 22px;
  background:
    linear-gradient(135deg, rgba(49, 91, 247, .08), rgba(255, 255, 255, 0) 54%),
    #ffffff;
  border-bottom: 1px solid var(--line);
}

.batch-chat-head .batch-avatar {
  width: 46px;
  height: 46px;
}

.batch-stream-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.batch-stream-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 10px;
  color: #40506e;
  background: #f5f8ff;
  border: 1px solid #dde8fb;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.batch-stream-meta svg {
  width: 14px;
  height: 14px;
  color: #315bf7;
}

.batch-stream-actions {
  display: flex;
  justify-content: flex-end;
}

.batch-stream-actions .button {
  min-height: 38px;
  white-space: nowrap;
}

.batch-stream-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 22px 0;
}

.batch-stream-shortcuts button {
  min-height: 34px;
  padding: 0 12px;
  color: #18315f;
  background: #ffffff;
  border: 1px solid #dce7f7;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}

.batch-stream-shortcuts button:hover {
  color: #315bf7;
  border-color: #bcd1f4;
  box-shadow: 0 8px 18px rgba(49, 91, 247, .08);
}

.batch-resource-list article,
.batch-lesson-list a,
.batch-members-mini-list article {
  justify-items: start;
  text-align: left;
}

.batch-resource-list article {
  grid-template-columns: auto minmax(0, 1fr) auto auto;
}

.batch-resource-list strong,
.batch-resource-list p,
.batch-resource-list small {
  max-width: 100%;
}

.batch-management-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr);
}

.batch-danger-panel {
  grid-column: auto;
  padding: 22px;
  background: #fffafb;
  border-color: #f1d4d7;
}

.batch-student-management-panel {
  padding: 22px;
}

.batch-student-management-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.batch-student-management-head > div {
  min-width: 0;
}

.batch-student-available {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 9px;
  color: #315887;
  background: #f2f6ff;
  border: 1px solid #dce7f7;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

.batch-student-available svg {
  width: 15px;
  height: 15px;
  color: #315bf7;
}

.batch-enroll-trigger {
  min-height: 36px;
  padding: 0 13px;
  white-space: nowrap;
}

.batch-membership-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px;
  background: #f8fbff;
  border: 1px solid #dce7f7;
  border-radius: var(--radius);
}

.batch-membership-summary span {
  display: grid;
  min-width: 120px;
  gap: 2px;
  padding: 10px 12px;
  background: #ffffff;
  border: 1px solid #e0e8f5;
  border-radius: var(--radius);
}

.batch-membership-summary strong {
  color: #071735;
  font-size: 20px;
  line-height: 1;
}

.batch-membership-summary small {
  color: #52637f;
  font-size: 12px;
  font-weight: 700;
}

.batch-student-add-form .student-picker-toolbar {
  gap: 8px;
}

.batch-student-add-form .student-picker-toolbar .button {
  min-height: 44px;
  padding: 0 13px;
}

.batch-student-add-form .student-picker-toolbar .button svg {
  width: 16px;
  height: 16px;
}

.batch-student-add-form .student-picker-card {
  min-height: 68px;
  border-radius: 10px;
}

.batch-student-add-form .student-picker-footer {
  margin-top: 2px;
  padding-top: 14px;
  border-top: 1px solid #e4ebf6;
}

.batch-student-add-form .student-picker-footer > span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  color: #40506e;
  background: #f5f8fd;
  border: 1px solid #e0e8f5;
  border-radius: 999px;
}

.batch-student-empty {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  min-height: 104px;
  padding: 18px;
  background: #f8fbff;
  border: 1px dashed #cbdcf5;
  border-radius: 10px;
}

.batch-student-empty > span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: #315bf7;
  background: #eaf1ff;
  border-radius: 10px;
}

.batch-student-empty svg {
  width: 19px;
  height: 19px;
}

.batch-student-empty strong,
.batch-student-empty p {
  display: block;
}

.batch-student-empty strong {
  color: #13223f;
  font-size: 14px;
}

.batch-student-empty p {
  margin: 4px 0 0;
  font-size: 13px;
}

.batch-enrolled-list {
  max-height: 320px;
  overflow-y: auto;
  padding-right: 4px;
}

.batch-enrollment-dialog {
  position: relative;
  width: min(980px, 100%);
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.team-edit-dialog.batch-enrollment-dialog {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: min(760px, calc(100vw - 44px));
  max-height: min(760px, calc(100dvh - 44px));
  padding: 0;
  overflow: hidden;
}

.batch-enrollment-head {
  flex: 0 0 auto;
  padding: 18px 20px;
}

.batch-enrollment-head .team-selected-head h2 {
  margin: 2px 0 4px;
  font-size: 24px;
  letter-spacing: 0;
}

.batch-enrollment-head .team-selected-head p {
  margin: 0;
  color: #52637f;
}

.batch-enrollment-stats {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 20px;
  background: #f8fbff;
  border-bottom: 1px solid #e2ebf7;
}

.batch-enrollment-stats span {
  display: inline-grid;
  grid-template-columns: auto auto;
  align-items: baseline;
  gap: 7px;
  min-height: 34px;
  padding: 6px 11px;
  background: #ffffff;
  border: 1px solid #dce7f7;
  border-radius: var(--radius);
}

.batch-enrollment-stats strong {
  color: #071735;
  font-size: 18px;
  line-height: 1;
}

.batch-enrollment-stats small {
  color: #52637f;
  font-size: 12px;
  font-weight: 750;
}

.batch-enrollment-viewbar {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 20px;
  background: #ffffff;
  border-bottom: 1px solid #e2ebf7;
}

.batch-enrollment-viewbar > span {
  color: #52637f;
  font-size: 12px;
  font-weight: 800;
}

.batch-enrollment-viewbar button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 11px;
  color: #102040;
  background: #f8fbff;
  border: 1px solid #dce7f7;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.batch-enrollment-viewbar button svg {
  width: 15px;
  height: 15px;
}

.batch-enrollment-viewbar button strong {
  color: inherit;
  font-size: 13px;
}

.batch-enrollment-viewbar button.active,
.batch-enrollment-viewbar button:hover,
.batch-enrollment-viewbar button:focus-visible {
  color: #ffffff;
  background: #0f63ff;
  border-color: #0f63ff;
  outline: 0;
}

.batch-enrollment-search-wrap {
  padding: 14px 20px 0;
  background: #ffffff;
}

.batch-enrollment-search {
  position: relative;
  display: block;
  min-width: 0;
}

.batch-enrollment-pane-search {
  width: 100%;
}

.batch-enrollment-search svg {
  position: absolute;
  left: 15px;
  top: 50%;
  width: 18px;
  height: 18px;
  color: #64748b;
  transform: translateY(-50%);
  pointer-events: none;
}

.batch-enrollment-search input {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 0 42px 0 46px;
  color: #102040;
  background: #f8fbff;
  border: 1px solid #dce7f7;
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .78);
}

.batch-enrollment-search input:focus {
  border-color: #315bf7;
  box-shadow: 0 0 0 4px rgba(49, 91, 247, .12);
  outline: 0;
}

.batch-enrollment-search-clear {
  position: absolute;
  right: 8px;
  top: 50%;
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  color: #315bf7;
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transform: translateY(-50%);
}

.batch-enrollment-search-clear[hidden] {
  display: none;
}

.batch-enrollment-search-clear svg {
  position: static;
  width: 14px;
  height: 14px;
  transform: none;
}

.batch-enrollment-search-clear:hover,
.batch-enrollment-search-clear:focus-visible {
  background: #eef4ff;
  outline: 0;
}

.batch-enrollment-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr);
  flex: 1 1 auto;
  gap: 16px;
  min-height: 0;
  overflow: hidden;
  padding: 18px 20px 20px;
}

.batch-enrollment-grid-single {
  grid-template-columns: minmax(0, 1fr);
}

.batch-enrollment-pane {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  align-content: stretch;
  gap: 12px;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  padding: 14px;
  background: #ffffff;
  border: 1px solid #dce7f7;
  border-radius: var(--radius);
}

.batch-enrollment-pane-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.batch-enrollment-pane-head h3 {
  margin: 2px 0 0;
  color: #071735;
  font-size: 18px;
  letter-spacing: 0;
}

.batch-enrollment-pane-head p {
  margin: 4px 0 0;
  color: #52637f;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
}

.batch-enrollment-picker {
  max-height: 330px;
  overflow-y: auto;
}

.batch-access-list {
  display: grid;
  gap: 10px;
  align-content: start;
  grid-auto-rows: max-content;
  min-height: 0;
  max-height: clamp(220px, calc(100dvh - 390px), 440px);
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  padding: 2px 10px 2px 0;
  scrollbar-gutter: stable;
}

.batch-access-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) minmax(170px, auto);
  align-items: start;
  gap: 12px;
  min-width: 0;
  min-height: 0;
  padding: 12px;
  background: #ffffff;
  border: 1px solid #dce7f7;
  border-radius: 12px;
  overflow: visible;
}

.batch-access-row > .student-picker-avatar {
  align-self: center;
}

@supports (content-visibility: auto) {
  .batch-member-contact-row {
    content-visibility: auto;
    contain-intrinsic-size: 76px;
  }
}

.batch-access-row[hidden] {
  display: none;
}

.batch-access-row.is-saving {
  opacity: .66;
  pointer-events: none;
}

.batch-access-row.is-saving .button {
  cursor: wait;
}

.batch-access-row.is-enrolled {
  background: #f7fef9;
  border-color: #bfe8cc;
}

.batch-access-contact {
  display: grid;
  gap: 4px;
  min-width: 0;
  align-self: center;
}

.batch-access-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.batch-access-contact strong,
.batch-access-contact small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.batch-access-contact strong {
  color: #102040;
  font-size: 14px;
  font-weight: 800;
}

.batch-access-contact small {
  color: #52637f;
  font-size: 12px;
  font-weight: 650;
}

.batch-access-stage-summary {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  width: fit-content;
  max-width: 100%;
  margin-top: 2px;
  padding: 5px 8px;
  color: #155e38 !important;
  background: #ecfdf3;
  border: 1px solid #b8eccc;
  border-radius: 999px;
  line-height: 1.25;
  white-space: normal !important;
}

.batch-access-stage-summary svg {
  width: 13px;
  height: 13px;
}

.batch-access-stage-summary span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.batch-access-stage-summary em {
  display: inline-flex;
  align-items: center;
  min-height: 17px;
  padding: 0 6px;
  color: #047857;
  background: #ffffff;
  border: 1px solid rgba(4, 120, 87, .18);
  border-radius: 999px;
  font-size: 10px;
  font-style: normal;
  font-weight: 850;
}

.batch-access-stage-summary.is-not_started {
  color: #854d0e !important;
  background: #fffbeb;
  border-color: #fde68a;
}

.batch-access-stage-summary.is-not_started em {
  color: #92400e;
  border-color: rgba(146, 64, 14, .18);
}

.batch-access-stage-summary.is-expired {
  color: #b42318 !important;
  background: #fff1f2;
  border-color: #fecdd3;
}

.batch-access-stage-summary.is-expired em {
  color: #b42318;
  border-color: rgba(180, 35, 24, .18);
}

.batch-access-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 24px;
  padding: 0 8px;
  color: #51627d;
  background: #f3f6fb;
  border: 1px solid #dfe7f4;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.batch-access-status svg {
  width: 14px;
  height: 14px;
}

.batch-access-status.is-enrolled {
  color: #047857;
  background: #dcfce7;
  border-color: #bbf7d0;
}

.batch-access-actions,
.batch-access-action-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  min-width: 0;
}

.batch-access-actions {
  align-self: center;
  max-width: 100%;
}

.batch-access-action-form {
  margin: 0;
}

.batch-access-action-form .course-enrollment-emi-advance {
  min-width: 128px;
  max-width: 160px;
}

.batch-access-action-form .course-enrollment-emi-advance small {
  overflow: hidden;
  text-overflow: ellipsis;
}

.batch-access-actions .course-enrollment-remove {
  flex: 0 0 auto;
}

.batch-access-emi-select {
  width: 132px;
  min-height: 34px;
  padding: 0 9px;
  color: #102040;
  background: #f8fbff;
  border: 1px solid #dce7f7;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 750;
}

.batch-access-installment-form {
  position: static;
}

.batch-access-installment-popup {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 34px);
  background: rgba(12, 20, 36, .48);
  backdrop-filter: blur(16px) saturate(1.08);
}

.batch-access-installment-popup[hidden] {
  display: none;
}

.batch-access-installment-card {
  width: min(680px, calc(100vw - 28px));
  max-height: min(720px, calc(100dvh - 36px));
  overflow: auto;
  border-radius: 18px;
  box-shadow: 0 34px 90px rgba(10, 20, 40, .3);
}

.batch-access-installment-card header {
  padding: 20px 22px;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, .09), rgba(16, 185, 129, .08)),
    #ffffff;
}

.batch-access-installment-card h3 {
  font-size: 22px;
}

.batch-access-installment-icon {
  color: #1d4ed8;
  background: linear-gradient(135deg, #dbeafe, #ecfdf3);
  border-color: #bfdbfe;
}

.batch-access-stage-student {
  margin: 16px 22px 0;
  border-radius: 14px;
}

.batch-access-installment-options {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 18px 22px 0;
}

.batch-access-mode-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 16px 22px 0;
}

.batch-access-mode-option {
  position: relative;
  min-width: 0;
}

.batch-access-mode-option input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.batch-access-mode-option > span {
  display: grid;
  gap: 4px;
  min-height: 76px;
  padding: 14px 16px 14px 46px;
  border: 1px solid #d9e5f8;
  border-radius: 12px;
  background: #ffffff;
  color: #17233b;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .05);
  transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.batch-access-mode-option > span::after {
  content: "";
  position: absolute;
  top: 16px;
  left: 16px;
  width: 18px;
  height: 18px;
  border: 2px solid #b8c9e6;
  border-radius: 999px;
  background: #ffffff;
  transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.batch-access-mode-option strong,
.batch-access-mode-option small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.batch-access-mode-option strong {
  font-size: 13px;
  font-weight: 850;
  line-height: 1.25;
}

.batch-access-mode-option small {
  color: #596a86;
  font-size: 12px;
  line-height: 1.4;
}

.batch-access-mode-option input:checked + span {
  border-color: #315bf7;
  background: linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
  box-shadow: 0 14px 30px rgba(49, 91, 247, .12);
}

.batch-access-mode-option input:checked + span::after {
  border-color: #315bf7;
  background: #315bf7;
  box-shadow: inset 0 0 0 5px #ffffff, 0 0 0 4px rgba(49, 91, 247, .12);
}

.batch-access-mode-option input:focus-visible + span {
  outline: 3px solid rgba(49, 91, 247, .18);
  outline-offset: 2px;
}

.batch-access-installment-option > span {
  min-height: 108px;
  border-radius: 14px;
}

.batch-access-custom-date {
  display: grid;
  gap: 8px;
  margin: 16px 22px 0;
  padding: 14px 16px;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  background: #f8fbff;
}

.batch-access-custom-date[hidden] {
  display: none;
}

.batch-access-custom-date span {
  color: #17233b;
  font-size: 13px;
  font-weight: 850;
}

.batch-access-custom-date input {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid #c8d8ef;
  border-radius: 10px;
  background: #ffffff;
  color: #14213d;
  font: inherit;
  font-weight: 700;
}

.batch-access-custom-date input:focus {
  outline: 3px solid rgba(49, 91, 247, .18);
  border-color: #315bf7;
}

.batch-access-custom-date small {
  color: #53647f;
  font-size: 12px;
  line-height: 1.4;
}

.batch-access-installment-option > span::before {
  background: linear-gradient(180deg, #2563eb, #10b981);
}

.batch-access-installment-summary {
  margin: 16px 22px 0;
  border-radius: 14px;
}

.batch-access-installment-validation {
  margin: 10px 22px 0;
  padding: 10px 12px;
  color: #991b1b;
  background: #fff1f2;
  border: 1px solid #fecdd3;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 800;
}

.batch-access-installment-validation[hidden] {
  display: none;
}

.batch-access-installment-card footer {
  gap: 10px;
  padding: 18px 22px 20px;
}

.batch-access-add-open {
  min-width: 54px;
}

.batch-enrollment-actions {
  display: flex;
  justify-content: flex-end;
}

.batch-enrollment-results {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding: 10px 12px;
  color: #435675;
  background: #f8fbff;
  border: 1px solid #dce7f7;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 750;
}

.batch-enrollment-results[hidden] {
  display: none;
}

.batch-enrollment-results .button {
  min-height: 32px;
  padding-inline: 12px;
}

.batch-enrollment-no-results {
  display: grid;
  gap: 4px;
  padding: 14px;
  color: #52637f;
  background: #f8fbff;
  border: 1px dashed #cbdaf0;
  border-radius: var(--radius);
}

.batch-enrollment-no-results[hidden] {
  display: none;
}

.batch-enrollment-no-results strong {
  color: #13223f;
  font-size: 13px;
}

.batch-enrollment-no-results small {
  font-size: 12px;
  font-weight: 650;
}

.batch-danger-panel .eyebrow {
  color: #b42318;
}

.batch-danger-panel .section-heading {
  margin-bottom: 18px;
}

.batch-danger-action {
  display: flex;
  margin: 0;
}

.batch-danger-button {
  min-height: 40px;
  padding: 0 15px;
}

.batch-chat-panel .batch-chat-stream {
  flex: 1 1 auto;
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 0;
  overflow-y: auto;
  padding: 20px 22px;
  background:
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.batch-chat-panel.is-chat-locked .batch-chat-stream {
  align-content: center;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(245, 158, 11, .08), rgba(49, 91, 247, .06)),
    #f8fbff;
}

.batch-chat-lock-screen {
  align-self: stretch;
  justify-self: center;
  display: grid;
  place-items: center;
  width: min(620px, 100%);
  min-height: 100%;
}

.batch-chat-lock-dialog {
  display: grid;
  justify-items: center;
  gap: 12px;
  width: 100%;
  padding: 30px;
  color: #12213a;
  background:
    linear-gradient(180deg, #ffffff 0%, #fffaf0 100%);
  border: 1px solid #f3d29b;
  border-radius: 18px;
  box-shadow: 0 22px 55px rgba(122, 74, 13, .12);
  text-align: center;
}

.batch-chat-lock-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  color: #b45309;
  background: #ffedd5;
  border: 1px solid #fed7aa;
  border-radius: 18px;
}

.batch-chat-lock-icon svg {
  width: 26px;
  height: 26px;
}

.batch-chat-lock-eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  color: #7c2d12;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.batch-chat-lock-dialog h3 {
  margin: 0;
  color: #10203d;
  font-size: 24px;
  line-height: 1.2;
}

.batch-chat-lock-dialog p {
  max-width: 500px;
  margin: 0;
  color: #40506e;
  font-size: 14px;
  line-height: 1.58;
}

.batch-chat-lock-detail {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  min-height: 36px;
  padding: 0 12px;
  color: #28466f;
  background: #f5f8ff;
  border: 1px solid #dce7f7;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 750;
}

.batch-chat-lock-detail svg {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  color: #315bf7;
}

.batch-chat-lock-detail span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.batch-chat-lock-actions {
  display: flex;
  justify-content: center;
  margin-top: 4px;
}

.batch-chat-payment-button {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  box-shadow: 0 14px 26px rgba(37, 99, 235, .2);
}

.batch-chat-lock-dialog > small {
  color: #66758f;
  font-size: 12px;
  font-weight: 650;
}

.batch-chat-panel .chat-bubble-row {
  grid-template-columns: 40px minmax(0, 540px);
  align-items: start;
}

.batch-chat-panel .chat-bubble-row.mine {
  grid-template-columns: minmax(0, 540px) 40px;
}

.batch-chat-panel .chat-bubble-row.is-new {
  animation: batchChatMessageIn .34s ease both;
}

.batch-chat-panel .anonymous-avatar {
  margin-top: 4px;
}

.batch-chat-panel .chat-bubble {
  padding: 12px 14px;
  background: #ffffff;
  border-color: #dfe7f4;
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(25, 55, 105, .06);
}

.batch-chat-panel .chat-bubble-row.mine .chat-bubble {
  background: #edf4ff;
  border-color: #d7e6ff;
}

.batch-chat-panel .chat-bubble-row.is-deleted-audit .chat-bubble,
.batch-chat-panel .chat-bubble-row.mine.is-deleted-audit .chat-bubble {
  background: #fff7ed;
  border-color: #fed7aa;
}

.batch-chat-panel .chat-bubble-row.is-system-update,
.batch-chat-panel .chat-bubble-row.mine.is-system-update {
  grid-template-columns: 40px minmax(0, 560px);
  justify-content: start;
}

.batch-chat-panel .chat-bubble-row.is-system-update .anonymous-avatar,
.batch-chat-panel .chat-bubble-row.mine.is-system-update .anonymous-avatar {
  grid-column: 1;
  grid-row: 1;
  color: #1d4ed8;
  background: #dbeafe;
}

.batch-chat-panel .chat-bubble-row.is-system-update .chat-bubble,
.batch-chat-panel .chat-bubble-row.mine.is-system-update .chat-bubble {
  grid-column: 2;
  grid-row: 1;
  background: #eff6ff;
  border-color: #bfdbfe;
}

.batch-chat-panel .chat-bubble header {
  margin-bottom: 7px;
}

.batch-chat-panel .chat-bubble header strong {
  color: #263956;
  font-size: 12px;
}

.batch-chat-panel .chat-bubble time {
  color: #66758f;
  font-size: 11px;
}

.batch-chat-panel .chat-bubble p {
  color: #14223f;
  font-size: 14px;
  line-height: 1.48;
  white-space: normal;
  overflow-wrap: anywhere;
}

.batch-chat-panel .chat-bubble-content {
  display: grid;
  gap: 10px;
}

.batch-chat-panel .chat-bubble-content > p {
  margin: 0;
}

.batch-chat-panel .chat-bubble a {
  color: #0f63ff;
  font-weight: 750;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.batch-message-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  color: #14223f;
  background: #f8fbff;
  border: 1px solid #dce7f7;
  border-radius: 8px;
}

.batch-message-card-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 9px;
}

.batch-message-card-head > span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: #315bf7;
  background: #eaf1ff;
  border-radius: 8px;
}

.batch-message-card-head strong,
.batch-message-card-head small {
  display: block;
  min-width: 0;
}

.batch-message-card-head strong {
  color: #10203d;
  font-size: 13px;
}

.batch-message-card-head small {
  color: #66758f;
  font-size: 12px;
  font-weight: 650;
}

.batch-message-card-head svg {
  width: 17px;
  height: 17px;
}

.batch-message-card h4 {
  margin: 0;
  color: #10203d;
  font-size: 15px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.batch-poll-options {
  display: grid;
  gap: 8px;
}

.batch-poll-option {
  margin: 0;
}

.batch-poll-option button {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 42px;
  padding: 9px 10px;
  color: #17345f;
  background: #ffffff;
  border: 1px solid #d5e1f3;
  border-radius: 8px;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
}

.batch-poll-option button:hover,
.batch-poll-option.is-selected button {
  border-color: #93b4ff;
  box-shadow: 0 8px 18px rgba(49, 91, 247, .08);
}

.batch-poll-option.is-selected button {
  color: #0f3ebd;
  background: #f7faff;
}

.batch-poll-option-label,
.batch-poll-option-count {
  position: relative;
  z-index: 1;
}

.batch-poll-option-label {
  min-width: 0;
  overflow-wrap: anywhere;
}

.batch-poll-option-count {
  color: #526580;
  font-size: 12px;
}

.batch-poll-option-meter {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--poll-percent, 0%);
  background: linear-gradient(90deg, rgba(49, 91, 247, .16), rgba(22, 163, 74, .12));
  pointer-events: none;
}

.batch-event-card dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.batch-event-card dl > div {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
}

.batch-event-card dt,
.batch-event-card dd {
  margin: 0;
}

.batch-event-card dt {
  color: #315bf7;
}

.batch-event-card dt svg {
  width: 16px;
  height: 16px;
}

.batch-event-card dd,
.batch-event-description {
  color: #40506e;
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.batch-event-description {
  margin: 0;
}

.batch-image-card {
  width: min(260px, 100%);
  padding: 6px;
  background: #ffffff;
}

.batch-image-preview {
  display: block;
  width: 100%;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: zoom-in;
  overflow: hidden;
}

.batch-image-preview:focus-visible {
  outline: 3px solid rgba(49, 91, 247, .28);
  outline-offset: 3px;
}

.batch-image-card img {
  display: block;
  width: 100%;
  max-height: 220px;
  object-fit: contain;
  background: #eef4ff;
  border-radius: 6px;
}

body.is-batch-image-lightbox-open {
  overflow: hidden;
}

.batch-image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(10, 19, 35, .72);
  backdrop-filter: blur(6px);
}

.batch-image-lightbox[hidden] {
  display: none;
}

.batch-image-lightbox-dialog {
  position: relative;
  display: grid;
  width: min(960px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
}

.batch-image-lightbox-frame {
  display: grid;
  place-items: center;
  min-height: min(70vh, 720px);
  padding: 10px;
  background: #081223;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 12px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .35);
}

.batch-image-lightbox-frame img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 120px);
  object-fit: contain;
  border-radius: 8px;
}

.batch-image-lightbox-close {
  position: absolute;
  top: -14px;
  right: -14px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  color: #14223f;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 50%;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .24);
  cursor: pointer;
}

.batch-image-lightbox-close svg {
  width: 18px;
  height: 18px;
}

@media (max-width: 640px) {
  .batch-image-lightbox {
    padding: 14px;
  }

  .batch-image-lightbox-dialog {
    width: min(100%, calc(100vw - 20px));
  }

  .batch-image-lightbox-frame {
    min-height: 54vh;
    padding: 8px;
  }

  .batch-image-lightbox-close {
    top: 8px;
    right: 8px;
  }
}

.classroom-empty-stream {
  align-self: center;
  justify-self: center;
  display: grid;
  justify-items: center;
  gap: 10px;
  width: min(560px, 100%);
  min-height: 260px;
  padding: 30px;
  color: #40506e;
  background:
    linear-gradient(135deg, rgba(49, 91, 247, .07), rgba(22, 163, 74, .06)),
    #ffffff;
  border: 1px dashed #cbdaf1;
  border-radius: 18px;
  text-align: center;
}

.classroom-empty-stream > span {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  color: #315bf7;
  background: #edf4ff;
  border-radius: 16px;
}

.classroom-empty-stream h3 {
  margin: 4px 0 0;
  color: #10203d;
  font-size: 20px;
}

.classroom-empty-stream p {
  max-width: 430px;
  margin: 0;
  line-height: 1.55;
}

.classroom-empty-stream div {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
}

.classroom-empty-stream em {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  color: #244064;
  background: #f4f7fb;
  border: 1px solid #dfe7f4;
  border-radius: 999px;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

.batch-chat-compose {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px;
  width: min(780px, calc(100% - 44px));
  margin: 0 auto 22px;
  padding: 12px 12px 12px 18px;
  border-color: #d5e1f3;
  border-radius: 22px;
  box-shadow: 0 14px 30px rgba(25, 55, 105, .08);
}

.batch-chat-compose.has-chat-actions {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.batch-chat-compose.is-rich-compose {
  width: min(820px, calc(100% - 44px));
  border-radius: 18px;
}

.batch-chat-compose.is-poll-compose {
  border-color: #c8d8f4;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.batch-compose-actions {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 46px;
}

.batch-compose-plus {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #315bf7;
  background: #f4f7ff;
  border: 1px solid #d9e5fb;
  border-radius: 50%;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.batch-compose-plus:hover,
.batch-compose-plus[aria-expanded="true"] {
  background: #eaf1ff;
  border-color: #bcd1f4;
  transform: translateY(-1px);
}

.batch-compose-plus svg {
  width: 19px;
  height: 19px;
}

.batch-compose-action-menu {
  position: absolute;
  left: 0;
  bottom: calc(100% + 10px);
  z-index: 30;
  display: grid;
  gap: 6px;
  width: 220px;
  padding: 8px;
  background: #ffffff;
  border: 1px solid #dce7f7;
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(15, 36, 70, .16);
}

.batch-compose-action-menu[hidden] {
  display: none;
}

.batch-compose-action-menu button {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 9px;
  color: #17345f;
  background: transparent;
  border: 0;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 750;
  text-align: left;
  cursor: pointer;
}

.batch-compose-action-menu button:hover {
  color: #315bf7;
  background: #f4f7ff;
}

.batch-compose-action-menu svg {
  width: 17px;
  height: 17px;
}

.batch-compose-main {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.batch-chat-compose textarea {
  width: 100%;
  min-height: 44px;
  max-height: 132px;
  padding: 10px 0;
  color: #10203d;
  background: transparent;
  border: 0;
  outline: 0;
  resize: none;
  line-height: 1.45;
}

.batch-chat-compose textarea[hidden] {
  display: none;
}

.batch-chat-compose textarea::placeholder {
  color: #6d7890;
}

.batch-compose-panel {
  display: grid;
  gap: 12px;
  padding: 12px;
  background: #f8fbff;
  border: 1px solid #dce7f7;
  border-radius: 8px;
}

.batch-poll-composer {
  gap: 0;
  padding: 0;
  overflow: hidden;
  background: #ffffff;
  border-color: #cfddf2;
  box-shadow: 0 10px 26px rgba(24, 58, 110, .07);
}

.batch-compose-panel[hidden] {
  display: none;
}

.batch-compose-panel-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
}

.batch-compose-panel-head > span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: #315bf7;
  background: #eaf1ff;
  border-radius: 8px;
}

.batch-compose-panel-head strong {
  color: #14223f;
  font-size: 13px;
}

.batch-compose-panel-head button {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: #526580;
  background: #ffffff;
  border: 1px solid #dce7f7;
  border-radius: 50%;
  cursor: pointer;
}

.batch-poll-composer-head {
  padding: 12px 14px;
  background:
    linear-gradient(135deg, rgba(49, 91, 247, .08), rgba(22, 163, 74, .05)),
    #fbfdff;
  border-bottom: 1px solid #e1eaf8;
}

.batch-poll-composer-head > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.batch-poll-composer-head small {
  color: #66758f;
  font-size: 11px;
  font-weight: 750;
}

.batch-poll-composer-head button:hover {
  color: #315bf7;
  border-color: #bcd1f4;
  background: #f4f7ff;
}

.batch-compose-panel-head svg {
  width: 16px;
  height: 16px;
}

.batch-compose-panel label {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: #40506e;
  font-size: 12px;
  font-weight: 750;
}

.batch-compose-panel input,
.batch-compose-panel textarea {
  width: 100%;
  min-height: 38px;
  padding: 9px 10px;
  color: #10203d;
  background: #ffffff;
  border: 1px solid #d5e1f3;
  border-radius: 8px;
  font: inherit;
  font-size: 13px;
  outline: 0;
}

.batch-compose-panel textarea {
  min-height: 72px;
  resize: vertical;
}

.batch-compose-panel input:focus,
.batch-compose-panel textarea:focus {
  border-color: #93b4ff;
  box-shadow: 0 0 0 3px rgba(49, 91, 247, .12);
}

.batch-compose-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.batch-compose-wide {
  grid-column: 1 / -1;
}

.batch-poll-composer-body {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.batch-poll-question-field {
  padding: 10px;
  background: #f8fbff;
  border: 1px solid #e1eaf8;
  border-radius: 8px;
}

.batch-poll-question-field input {
  min-height: 42px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: 14px;
  font-weight: 750;
}

.batch-poll-question-field input:focus {
  box-shadow: none;
}

.batch-poll-options-head,
.batch-poll-composer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.batch-poll-options-head span {
  color: #14223f;
  font-size: 12px;
  font-weight: 850;
}

.batch-poll-options-head small,
.batch-poll-composer-footer small {
  color: #66758f;
  font-size: 11px;
  font-weight: 750;
}

.batch-poll-option-list {
  display: grid;
  gap: 8px;
}

.batch-poll-option-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 7px;
  background: #ffffff;
  border: 1px solid #dce7f7;
  border-radius: 8px;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.batch-poll-option-row:focus-within {
  border-color: #93b4ff;
  box-shadow: 0 0 0 3px rgba(49, 91, 247, .11);
  transform: translateY(-1px);
}

.batch-poll-option-index {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: #315bf7;
  background: #eef4ff;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 900;
}

.batch-poll-option-row label {
  min-width: 0;
}

.batch-poll-option-row input {
  min-height: 34px;
  padding: 0 2px;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.batch-poll-option-row input:focus {
  box-shadow: none;
}

.batch-poll-remove-option {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: #66758f;
  background: #f7faff;
  border: 1px solid #dce7f7;
  border-radius: 50%;
  cursor: pointer;
}

.batch-poll-remove-option:hover {
  color: #b4232d;
  border-color: #fecdd3;
  background: #fff1f2;
}

.batch-poll-remove-option[hidden] {
  display: none;
}

.batch-poll-remove-option svg {
  width: 15px;
  height: 15px;
}

.batch-poll-add-option {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 12px;
  color: #315bf7;
  background: #f4f7ff;
  border: 1px solid #cdddf7;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

.batch-poll-add-option:hover:not(:disabled) {
  background: #eaf1ff;
  border-color: #abc4f7;
}

.batch-poll-add-option:disabled {
  cursor: not-allowed;
  opacity: .58;
}

.batch-poll-add-option svg {
  width: 15px;
  height: 15px;
}

.batch-image-picker input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}

.batch-image-picker > span {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px 10px;
  min-height: 64px;
  padding: 10px;
  color: #244064;
  background: #ffffff;
  border: 1px dashed #bcd1f4;
  border-radius: 8px;
  cursor: pointer;
}

.batch-image-picker svg {
  grid-row: span 2;
  width: 22px;
  height: 22px;
  color: #315bf7;
}

.batch-image-picker strong,
.batch-image-picker small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.batch-image-picker small {
  color: #66758f;
  font-size: 12px;
  font-weight: 650;
}

.batch-chat-compose .send-button {
  width: 46px;
  height: 46px;
  background: #315bf7;
  box-shadow: 0 12px 24px rgba(49, 91, 247, .22);
}

.batch-chat-compose.is-ajax-saving .send-button {
  transform: scale(.96);
}

@keyframes batchChatMessageIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

#batch-chat,
#batch-manage {
  scroll-margin-top: 24px;
}

.batch-create-dialog {
  width: min(680px, 100%);
}

.batch-settings-dialog {
  width: min(760px, 100%);
}

.batch-create-modal-form textarea,
.batch-settings-modal-form textarea {
  min-height: 110px;
  resize: vertical;
}

.batch-settings-schedule-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(252px, 280px);
  gap: 14px;
  align-items: end;
}

.batch-type-field {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 14px;
  background: #f8fbff;
  border: 1px solid #dce7f7;
  border-radius: 14px;
}

.batch-type-field legend {
  padding: 0 6px;
  color: #10213f;
  font-weight: 800;
}

.batch-type-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.batch-type-choice {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 76px;
  padding: 12px;
  color: #152748;
  background: #ffffff;
  border: 1px solid #dce7f7;
  border-radius: 14px;
  cursor: pointer;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.batch-type-choice:hover {
  border-color: #b8cafa;
  box-shadow: 0 12px 26px rgba(49, 91, 247, .09);
  transform: translateY(-1px);
}

.batch-type-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.batch-type-choice-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: #0f766e;
  background: #e7f8f1;
  border-radius: 12px;
}

.batch-type-choice.is-type-internship .batch-type-choice-icon {
  color: #7c3aed;
  background: #f3eaff;
}

.batch-type-choice strong,
.batch-type-choice small {
  display: block;
}

.batch-type-choice strong {
  font-size: 14px;
  line-height: 1.25;
}

.batch-type-choice small {
  margin-top: 4px;
  color: #5d6a86;
  font-size: 12px;
  line-height: 1.35;
}

.batch-type-choice:has(input:checked) {
  border-color: #315bf7;
  box-shadow: 0 0 0 3px rgba(49, 91, 247, .12);
}

.batch-type-choice:has(input:focus-visible) {
  outline: 3px solid rgba(49, 91, 247, .2);
  outline-offset: 2px;
}

.batch-duration-field {
  display: grid;
  gap: 12px;
  padding: 14px;
  background: #f8fbff;
  border: 1px solid #dce7f7;
  border-radius: 14px;
}

.batch-duration-field legend {
  padding: 0 6px;
  color: #10213f;
  font-weight: 800;
}

.batch-duration-head {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.batch-duration-head > span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: #2563eb;
  background: #eaf2ff;
  border-radius: 12px;
}

.batch-duration-head svg {
  width: 18px;
  height: 18px;
}

.batch-duration-head p {
  margin: 0;
  color: #5a6882;
  font-size: 13px;
  line-height: 1.45;
}

.batch-duration-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.batch-duration-months-label input {
  max-width: 220px;
}

.batch-duration-preview {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  margin: 0;
  padding: 0 12px;
  color: #16437c;
  background: #eef5ff;
  border: 1px solid #cfe0ff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.batch-duration-preview.is-invalid {
  color: #991b1b;
  background: #fff1f2;
  border-color: #fecdd3;
}

.batch-permission-field {
  padding: 0;
  border: 0;
}

.batch-permission-field legend {
  margin-bottom: 10px;
  color: var(--text);
  font-weight: 750;
}

.batch-permission-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.batch-permission-grid label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  min-height: 78px;
  padding: 13px;
  background: #f8fbff;
  border: 1px solid #dce7f7;
  border-radius: 14px;
  cursor: pointer;
}

.batch-permission-grid label:has(input:checked) {
  background: #eef5ff;
  border-color: #315bf7;
  box-shadow: 0 10px 22px rgba(49, 91, 247, .08);
}

.batch-permission-grid input {
  margin-top: 4px;
  accent-color: #315bf7;
}

.batch-permission-grid strong,
.batch-permission-grid small {
  display: block;
}

.batch-permission-grid strong {
  color: #10213f;
  font-size: 13px;
}

.batch-permission-grid small {
  margin-top: 4px;
  color: #5e6d86;
  font-size: 12px;
  line-height: 1.35;
}

.batch-compose-policy,
.batch-compose-readonly {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 18px 18px;
  color: #31507c;
  font-size: 12px;
  font-weight: 700;
}

.batch-compose-policy svg,
.batch-compose-readonly svg {
  width: 15px;
  height: 15px;
  color: #0b8f55;
}

.batch-compose-readonly {
  display: flex;
  min-height: 56px;
  padding: 0 18px;
  background: #f8fbff;
  border: 1px solid #dce7f7;
  border-radius: 999px;
}

.batch-chat-lock-readonly {
  margin: 0 22px 22px;
  color: #7c2d12;
  background: #fff7ed;
  border-color: #fed7aa;
  border-radius: 18px;
}

.batch-chat-lock-readonly svg {
  color: #ea580c;
}

.batch-trash-panel {
  margin-top: 18px;
  border-color: #f2c9c5;
}

.batch-trash-panel .panel-title-row {
  align-items: flex-start;
}

.batch-trash-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.batch-trash-list article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  background: #fffafa;
  border: 1px solid #f3d4d0;
  border-radius: 14px;
}

.batch-trash-list strong,
.batch-trash-list small {
  display: block;
}

.batch-trash-list strong {
  color: #10213f;
  font-size: 15px;
}

.batch-trash-list small {
  margin-top: 3px;
  color: #68758c;
  font-size: 12px;
}

.batch-trash-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.batch-trash-actions form {
  margin: 0;
}

.team-page-head p {
  max-width: 760px;
}

.team-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.team-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  min-width: 0;
}

.team-main,
.team-side {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.team-directory-panel,
.team-table-wrap {
  min-width: 0;
  max-width: 100%;
}

.team-side {
  position: sticky;
  top: 28px;
}

.team-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.team-toolbar h2,
.team-toolbar p {
  margin: 0;
}

.team-toolbar p {
  color: var(--muted);
}

.team-filter-reset {
  flex: 0 0 auto;
}

.team-filter-form {
  display: grid;
  grid-template-columns: minmax(280px, 1.45fr) minmax(150px, .7fr) minmax(170px, .8fr) minmax(145px, .65fr) auto;
  align-items: end;
  gap: 12px;
  margin-bottom: 16px;
  padding: 12px;
  background: #f8fbff;
  border: 1px solid #dce7f7;
  border-radius: 8px;
}

.team-filter-form label {
  display: grid;
  gap: 6px;
  min-width: 0;
  margin: 0;
}

.team-filter-form label > span:first-child {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.team-filter-search {
  min-width: 0;
}

.team-filter-control {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 12px;
  background: #ffffff;
  border: 1px solid #d7e3f5;
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(49, 91, 247, .04);
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.team-filter-control:focus-within {
  background: #ffffff;
  border-color: rgba(49, 91, 247, .72);
  box-shadow: 0 0 0 4px rgba(49, 91, 247, .10);
}

.team-filter-control svg {
  width: 18px;
  height: 18px;
  color: #315bf7;
}

.team-filter-control input,
.team-filter-control select {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 0;
  color: #10203d;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font-size: 14px;
  font-weight: 700;
}

.team-filter-control input:focus,
.team-filter-control select:focus {
  outline: 0;
  box-shadow: none;
}

.team-filter-actions {
  display: grid;
  grid-template-columns: auto auto;
  gap: 8px;
}

.team-filter-actions .button {
  justify-content: center;
  min-height: 44px;
  white-space: nowrap;
}

.team-role-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 30px;
  padding: 6px 11px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
}

.team-bulk-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding: 10px;
  background: #f8fbff;
  border: 1px solid #dce7f7;
  border-radius: var(--radius);
}

.team-bulk-bar > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.team-bulk-action-form {
  margin: 0;
}

.team-bulk-bar .button {
  min-height: 36px;
  padding: 0 12px;
  font-size: 12px;
}

.team-bulk-bar .team-delete-box {
  width: 38px;
  min-width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0;
  border-radius: 11px;
  box-shadow: 0 12px 22px rgba(220, 38, 38, .14);
}

.team-bulk-bar .team-delete-box svg {
  width: 16px;
  height: 16px;
}

.team-bulk-bar .team-delete-box:disabled {
  color: #b8c1d1;
  background: #eef3fa;
  border-color: #dfe8f6;
  box-shadow: none;
}

.team-bulk-bar > span {
  color: #40506e;
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

.team-select-col {
  width: 64px;
  text-align: center;
}

.team-row-select {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  cursor: pointer;
}

.team-row-select input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.team-row-select:has(input:disabled) {
  cursor: not-allowed;
}

.team-row-select span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: transparent;
  background: #ffffff;
  border: 1px solid #d4e0f1;
  border-radius: 9px;
  transition: background .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.team-row-select svg {
  width: 16px;
  height: 16px;
}

.team-row-select:hover span {
  border-color: #adc2f4;
  box-shadow: 0 8px 18px rgba(49, 91, 247, .08);
}

.team-row-select input:checked + span {
  color: #ffffff;
  background: #315bf7;
  border-color: #315bf7;
}

.team-row-select input:disabled + span {
  background: #eef3fa;
  border-color: #dfe8f6;
  opacity: .65;
}

.team-row-select input:focus-visible + span {
  outline: 3px solid rgba(49, 91, 247, .18);
  outline-offset: 2px;
}

.team-role-pill.role-admin {
  color: #991b1b;
  background: #fee2e2;
  border-color: #fecaca;
}

.team-role-pill.role-super-admin {
  color: #991b1b;
  background: #fee2e2;
  border-color: #fecaca;
}

.team-role-pill.role-support {
  color: #0b55bd;
  background: #eaf3ff;
  border-color: #bfd8ff;
}

.team-role-pill.role-instructor {
  color: #6d28d9;
  background: #f3e8ff;
  border-color: #ddd6fe;
}

.team-role-pill.role-student {
  color: #92400e;
  background: #fef3c7;
  border-color: #fde68a;
}

.team-department-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text);
}

.team-department-label svg {
  width: 15px;
  height: 15px;
  color: #315bf7;
}

.team-table tr.selected {
  background: #f3f8f5;
}

.team-table tr.bulk-selected {
  background: #f4f7ff;
  box-shadow: inset 3px 0 0 #315bf7;
}

.team-table tr.selected.bulk-selected {
  background: linear-gradient(90deg, #f4f7ff, #f3f8f5);
}

.team-table td strong,
.team-table td small {
  display: block;
}

.team-table td small {
  color: var(--muted);
}

.team-selected-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin-bottom: 20px;
}

.team-selected-head h2,
.team-selected-head p {
  margin: 0;
}

.team-selected-head p {
  color: var(--muted);
}

.team-department-field {
  display: grid;
  gap: 8px;
}

.team-support-permission-note {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  color: #0c4a6e;
  background: #eff8ff;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
}

.team-support-permission-note[hidden] {
  display: none;
}

.team-support-permission-note strong {
  font-size: 13px;
}

.team-support-permission-note small {
  color: #315f86;
  line-height: 1.45;
}

.team-account-tabs {
  display: flex;
  gap: 6px;
  padding: 4px;
  background: #f6f9ff;
  border: 1px solid #dfe8f6;
  border-radius: 10px;
}

.team-account-tabs button {
  flex: 1;
  min-height: 38px;
  color: #42526e;
  background: transparent;
  border: 0;
  border-radius: 8px;
  font-weight: 750;
  cursor: pointer;
}

.team-account-tabs button.active {
  color: #0f3ecf;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(15, 63, 207, .12);
}

.team-account-pane {
  display: grid;
  gap: 14px;
}

.team-account-pane[hidden] {
  display: none;
}

.team-permission-panel {
  display: grid;
  gap: 12px;
}

.team-permission-panel-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  background: linear-gradient(135deg, #f8fbff 0%, #ffffff 100%);
  border: 1px solid #dfe8f6;
  border-radius: 8px;
}

.team-permission-head-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #0f63ff;
  background: #eaf2ff;
  border: 1px solid #d7e6ff;
  border-radius: 8px;
}

.team-permission-head-icon svg {
  width: 18px;
  height: 18px;
}

.team-permission-panel-head > span:last-child {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.team-permission-panel-head strong {
  color: #172036;
  font-size: 16px;
}

.team-permission-panel-head small {
  color: var(--muted);
  line-height: 1.45;
}

.team-permission-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.team-permission-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: stretch;
  min-width: 0;
  min-height: 126px;
  padding: 12px 12px 12px 16px;
  background: linear-gradient(135deg, #fbfdff 0%, #f7faff 100%);
  border: 1px solid #dfe8f6;
  border-radius: 8px;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.team-permission-card::before {
  content: "";
  position: absolute;
  inset: 12px auto 12px 0;
  width: 3px;
  background: #d8e6f8;
  border-radius: 999px;
  transition: background .16s ease, box-shadow .16s ease;
}

.team-permission-card.is-read-enabled {
  background: linear-gradient(135deg, #f5f9ff 0%, #ffffff 100%);
  border-color: #acd0ff;
  box-shadow: 0 10px 28px rgba(15, 99, 255, .08);
}

.team-permission-card.is-read-enabled::before {
  background: #0f63ff;
  box-shadow: 0 0 0 3px rgba(15, 99, 255, .12);
}

.team-permission-card.is-manage-enabled {
  background: linear-gradient(135deg, #f0fdf7 0%, #ffffff 100%);
  border-color: #8edfb1;
  box-shadow: 0 10px 28px rgba(20, 184, 119, .1);
}

.team-permission-card.is-manage-enabled::before {
  background: #14b873;
  box-shadow: 0 0 0 3px rgba(20, 184, 119, .14);
}

.team-permission-card:has(input:disabled) {
  cursor: not-allowed;
}

.team-permission-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding-left: 2px;
}

.team-permission-copy strong {
  color: #152036;
  font-size: 13.5px;
}

.team-permission-copy small {
  color: #53627c;
  font-size: 12px;
  line-height: 1.35;
}

.team-permission-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  justify-content: stretch;
  width: 100%;
  min-width: 0;
  padding: 5px;
  background: #eef4fb;
  border: 1px solid #dce8f7;
  border-radius: 8px;
}

.team-permission-toggle {
  position: relative;
  display: block;
  min-width: 0;
}

.team-permission-toggle input {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.team-permission-toggle-shell {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  min-height: 52px;
  padding: 8px;
  background: #ffffff;
  border: 1px solid transparent;
  border-radius: 8px;
  box-shadow: 0 6px 16px rgba(40, 79, 142, .06);
  transition: transform .16s ease, background .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease;
}

.team-permission-toggle-icon,
.team-permission-toggle-check {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
}

.team-permission-toggle-icon {
  color: #64748b;
  background: #f1f5f9;
}

.team-permission-toggle-icon svg,
.team-permission-toggle-check svg {
  width: 15px;
  height: 15px;
}

.team-permission-toggle-copy {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.team-permission-toggle-copy strong,
.team-permission-toggle-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-permission-toggle-copy strong {
  color: #263653;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.1;
}

.team-permission-toggle-copy small {
  color: #71819a;
  font-size: 10.5px;
  font-weight: 700;
}

.team-permission-toggle-check {
  color: #ffffff;
  background: #cbd5e1;
  opacity: 0;
  transform: scale(.86);
  transition: opacity .16s ease, transform .16s ease, background .16s ease;
}

.team-permission-toggle:hover .team-permission-toggle-shell {
  transform: translateY(-1px);
  border-color: #cfe0ff;
}

.team-permission-toggle.is-read:has(input:checked) .team-permission-toggle-shell {
  border-color: #8fc2ff;
  background: #ffffff;
  color: #0b55bd;
  box-shadow: 0 0 0 3px rgba(15, 99, 255, .1), 0 10px 22px rgba(15, 99, 255, .16);
}

.team-permission-toggle.is-read:has(input:checked) .team-permission-toggle-icon,
.team-permission-toggle.is-read:has(input:checked) .team-permission-toggle-check {
  color: #ffffff;
  background: #0f63ff;
}

.team-permission-toggle.is-read:has(input:checked) .team-permission-toggle-copy strong,
.team-permission-toggle.is-read:has(input:checked) .team-permission-toggle-copy small {
  color: #0b55bd;
}

.team-permission-toggle.is-manage:has(input:checked) .team-permission-toggle-shell {
  border-color: #75d59c;
  background: #ffffff;
  color: #087443;
  box-shadow: 0 0 0 3px rgba(20, 184, 119, .1), 0 10px 22px rgba(20, 184, 119, .16);
}

.team-permission-toggle.is-manage:has(input:checked) .team-permission-toggle-icon,
.team-permission-toggle.is-manage:has(input:checked) .team-permission-toggle-check {
  color: #ffffff;
  background: #14b873;
}

.team-permission-toggle.is-manage:has(input:checked) .team-permission-toggle-copy strong,
.team-permission-toggle.is-manage:has(input:checked) .team-permission-toggle-copy small {
  color: #087443;
}

.team-permission-toggle:has(input:checked) .team-permission-toggle-check {
  opacity: 1;
  transform: scale(1);
}

.team-permission-toggle:has(input:disabled) {
  cursor: not-allowed;
}

.team-permission-toggle:has(input:disabled) .team-permission-toggle-shell {
  color: #8896aa;
  background: #f5f8fc;
  box-shadow: none;
  opacity: .72;
}

.team-permission-toggle input:disabled,
.team-permission-toggle:has(input:disabled) .team-permission-toggle-shell {
  cursor: not-allowed;
}

.team-permission-toggle input:focus-visible + .team-permission-toggle-shell {
  outline: 3px solid rgba(15, 99, 255, .18);
  outline-offset: 2px;
}

.team-department-field > span {
  color: #4d554d;
  font-size: 13px;
  font-weight: 700;
}

.department-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.department-choice {
  position: relative;
  min-width: 0;
}

.department-choice input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.department-choice span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 12px;
  color: #31405a;
  background: #f8fbff;
  border: 1px solid #dfe8f6;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 750;
  text-align: center;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease, color .16s ease, transform .16s ease;
}

.department-choice svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.department-choice:hover span {
  border-color: #cfe0ff;
  transform: translateY(-1px);
}

.department-choice input:checked + span {
  color: #0f3ecf;
  background: linear-gradient(135deg, #eef4ff 0%, #ffffff 100%);
  border-color: #3b5bfd;
  box-shadow: 0 10px 26px rgba(59, 91, 253, .14);
}

.department-choice input:focus-visible + span {
  outline: 3px solid rgba(59, 91, 253, .18);
  outline-offset: 2px;
}

.team-avatar-color-field {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.team-edit-modal-form select[name="role"] {
  border-color: color-mix(in srgb, var(--role-theme-color, #0f63ff) 42%, #dce7f7);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--role-theme-color, #0f63ff) 10%, transparent);
}

.team-avatar-color-field > span {
  color: #4d554d;
  font-size: 13px;
  font-weight: 700;
}

.team-avatar-color-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}

.team-avatar-color-choice {
  position: relative;
  min-width: 0;
}

.team-avatar-color-choice input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.team-avatar-color-choice span {
  display: grid;
  place-items: center;
  min-height: 42px;
  background: #f8fbff;
  border: 1px solid #dfe8f6;
  border-radius: 8px;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.team-avatar-color-choice span::before {
  content: "";
  width: 22px;
  height: 22px;
  background: var(--avatar-option-color);
  border: 3px solid #ffffff;
  border-radius: 999px;
  box-shadow: 0 8px 18px color-mix(in srgb, var(--avatar-option-color) 28%, transparent);
}

.team-avatar-color-choice small {
  display: block;
  margin-top: 5px;
  color: #53627c;
  font-size: 11px;
  font-weight: 750;
  text-align: center;
  white-space: nowrap;
}

.team-avatar-color-choice:hover span {
  border-color: #cfe0ff;
  transform: translateY(-1px);
}

.team-avatar-color-choice input:checked + span {
  background: #ffffff;
  border-color: var(--avatar-option-color);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--avatar-option-color) 14%, transparent), 0 10px 24px color-mix(in srgb, var(--avatar-option-color) 18%, transparent);
}

.team-avatar-color-choice.is-role-theme small {
  color: var(--avatar-option-color);
}

.team-avatar-color-choice input:focus-visible + span {
  outline: 3px solid rgba(59, 91, 253, .18);
  outline-offset: 2px;
}

@media (max-width: 620px) {
  .team-avatar-color-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.team-password-form {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.team-password-form label {
  display: grid;
  gap: 7px;
}

.team-password-form label span {
  color: #4d554d;
  font-size: 13px;
  font-weight: 700;
}

.team-user-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.team-user-stats span {
  display: grid;
  gap: 2px;
  padding: 12px;
  color: var(--muted);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 700;
}

.team-user-stats strong {
  color: var(--text);
  font-size: 18px;
}

.team-activity-list {
  display: grid;
  gap: 10px;
}

.team-activity-list article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 12px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.team-activity-list article > span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: #2563eb;
  background: #eaf2ff;
  border-radius: var(--radius);
}

.team-activity-list strong,
.team-activity-list small {
  display: block;
}

.career-page-head p {
  max-width: 760px;
}

.career-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.career-kpi-grid .metric-card {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  grid-template-areas:
    "icon label"
    "icon value"
    "icon meta";
  align-items: center;
  column-gap: 13px;
  min-height: 112px;
  padding: 18px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 42px rgba(37, 99, 235, .06);
}

.career-kpi-grid .metric-icon {
  grid-area: icon;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
}

.career-kpi-grid .metric-icon svg {
  width: 22px;
  height: 22px;
}

.career-kpi-grid .metric-icon.blue {
  color: #2563eb;
  background: #e7efff;
}

.career-kpi-grid .metric-icon.green {
  color: #15803d;
  background: #e1f8eb;
}

.career-kpi-grid .metric-icon.purple {
  color: #6d3bd1;
  background: #f0e8ff;
}

.career-kpi-grid .metric-icon.yellow {
  color: #b45309;
  background: #fff4cc;
}

.career-kpi-grid .metric-card small {
  grid-area: label;
  color: #56647b;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}

.career-kpi-grid .metric-card strong {
  grid-area: value;
  color: #071534;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.05;
}

.career-kpi-grid .metric-card em {
  grid-area: meta;
  color: #0b7a46;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.25;
}

.career-layout {
  grid-template-columns: minmax(0, 1fr) minmax(380px, 460px);
  align-items: start;
}

.career-layout-full {
  grid-template-columns: minmax(0, 1fr);
}

.career-list-panel,
.career-side-panel {
  min-width: 0;
}

.career-side-panel {
  position: sticky;
  top: 28px;
}

.career-list-head {
  align-items: flex-start;
}

.career-list-head p,
.career-student-panel p {
  margin: 4px 0 0;
  color: var(--muted);
}

.career-filter-form {
  display: grid;
  grid-template-columns: minmax(190px, 1.2fr) repeat(4, minmax(120px, .8fr)) minmax(88px, .45fr) auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 18px;
}

.career-filter-form label,
.career-editor-form label {
  display: grid;
  gap: 7px;
}

.career-filter-form label span,
.career-editor-form label span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.career-post-list {
  display: grid;
  gap: 12px;
}

.career-post-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 14px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .16s ease, box-shadow .16s ease;
}

.career-post-card.selected,
.career-post-card:hover {
  border-color: #cfe3ff;
  box-shadow: 0 12px 30px rgba(40, 79, 142, .08);
}

.career-company-logo {
  display: grid;
  place-items: center;
  overflow: hidden;
  width: 58px;
  height: 58px;
  color: #ffffff;
  background: linear-gradient(135deg, #0f63ff, #16b981);
  border-radius: var(--radius);
  font-weight: 750;
}

.career-company-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.career-post-body {
  min-width: 0;
}

.career-post-meta,
.career-card-actions,
.pagination-bar,
.pagination-bar > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.career-post-meta,
.career-card-actions {
  flex-wrap: wrap;
}

.career-post-meta {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.career-post-card h3 {
  margin: 7px 0 3px;
  font-size: 18px;
  letter-spacing: 0;
}

.career-post-card p {
  margin: 0;
  color: #526178;
}

.career-mini-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.career-mini-grid span {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: #53647c;
  font-size: 12px;
  font-weight: 650;
}

.career-mini-grid svg {
  width: 15px;
  height: 15px;
  color: #0f63ff;
  flex: 0 0 auto;
}

.career-skill-line {
  display: block;
  margin-top: 10px;
  color: var(--muted);
}

.career-card-actions {
  justify-content: flex-end;
  min-width: 150px;
}

.career-card-actions form {
  margin: 0;
}

.pagination-bar {
  justify-content: space-between;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.pagination-bar .disabled {
  pointer-events: none;
  opacity: .42;
}

.career-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.career-editor-form .career-form-grid {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.career-mapping-grid {
  display: grid;
  gap: 12px;
}

.career-mapping-grid select {
  min-height: 118px;
}

.inline-check {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center;
  gap: 10px !important;
}

.inline-check input {
  width: 18px;
  min-height: 18px;
}

.career-student-panel {
  display: grid;
  gap: 12px;
}

.career-side-panel .metric-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: #2563eb;
  background: #e7efff;
  border-radius: var(--radius);
}

.career-side-panel .metric-icon svg {
  width: 22px;
  height: 22px;
}

.career-student-panel h2 {
  margin: 0;
}

.career-company-list {
  display: grid;
  gap: 10px;
}

.career-company-list h3,
.career-company-list p {
  margin: 0;
}

.career-company-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid #edf2fa;
}

.career-company-list > .career-company-row:first-of-type {
  border-top: 0;
}

.career-company-logo.small {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  font-size: 12px;
}

.career-company-row strong,
.career-company-row small {
  display: block;
  min-width: 0;
}

.career-company-row strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.career-company-row small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.career-profile-meter {
  overflow: hidden;
  height: 9px;
  background: #e8edf6;
  border-radius: 99px;
}

.career-profile-meter span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #0f63ff, #16b981);
}

.career-page-head {
  align-items: flex-start;
  padding: 30px;
  background:
    linear-gradient(135deg, rgba(15, 99, 255, .1), rgba(22, 185, 129, .1) 48%, rgba(245, 158, 11, .08)),
    #ffffff;
  border: 1px solid #dbe8fb;
  border-radius: var(--radius-lg);
  box-shadow: 0 22px 58px rgba(37, 99, 235, .08);
}

.career-hero-chips,
.career-kind-tabs,
.career-card-facts,
.career-skill-cloud {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.career-hero-chips {
  margin-top: 16px;
}

.career-hero-chips span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 7px 11px;
  color: #27415f;
  background: rgba(255, 255, 255, .78);
  border: 1px solid #dbe8fb;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.career-hero-chips svg,
.career-card-facts svg {
  width: 15px;
  height: 15px;
}

.career-requirements-panel {
  margin-bottom: 18px;
}

.career-requirement-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.career-requirement-grid article {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 14px;
  background: #f8fbff;
  border: 1px solid #e4edf9;
  border-radius: var(--radius);
}

.career-requirement-grid article > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #0f63ff;
  background: #e9f1ff;
  border-radius: 10px;
}

.career-requirement-grid strong,
.career-requirement-grid p {
  margin: 0;
}

.career-requirement-grid strong {
  color: #0f1f3d;
  font-size: 14px;
}

.career-requirement-grid p {
  color: #53647c;
  font-size: 12px;
  line-height: 1.45;
}

.career-kind-tabs {
  margin: 16px 0;
}

.career-kind-tabs a {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 132px;
  min-height: 42px;
  padding: 9px 12px;
  color: #32445f;
  background: #f8fbff;
  border: 1px solid #e1eaf7;
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color .16s ease, background .16s ease, color .16s ease, box-shadow .16s ease;
}

.career-kind-tabs a.active,
.career-kind-tabs a:hover {
  color: #0f4ccf;
  background: #eef5ff;
  border-color: #bdd4ff;
  box-shadow: 0 10px 24px rgba(37, 99, 235, .08);
}

.career-kind-tabs span {
  font-size: 13px;
  font-weight: 800;
}

.career-kind-tabs strong {
  display: grid;
  place-items: center;
  min-width: 26px;
  height: 24px;
  padding: 0 8px;
  color: #0f4ccf;
  background: #ffffff;
  border-radius: 999px;
  font-size: 12px;
}

.career-post-card {
  position: relative;
  grid-template-columns: 1fr;
  gap: 14px;
  padding: 18px;
  border-color: #e0eaf8;
  border-radius: 14px;
  box-shadow: 0 16px 42px rgba(15, 35, 71, .06);
}

.career-post-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: #2563eb;
  border-radius: 14px 0 0 14px;
}

.career-post-card.is-kind-internship::before {
  background: #16a34a;
}

.career-post-card.is-kind-management::before {
  background: #7c3aed;
}

.career-card-top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(180px, auto);
  gap: 14px;
  align-items: start;
}

.career-company-block {
  min-width: 0;
}

.career-company-block h3 {
  margin: 8px 0 6px;
  color: #071534;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: 0;
}

.career-company-block p {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  color: #526178;
}

.career-company-block p strong {
  color: #14233d;
}

.career-company-block p span::before {
  content: "/";
  margin-right: 8px;
  color: #95a3b8;
}

.career-pay-block {
  display: grid;
  justify-items: end;
  gap: 4px;
  min-width: 0;
  padding: 10px 12px;
  background: #fbfcff;
  border: 1px solid #e4edf9;
  border-radius: var(--radius);
}

.career-pay-block small,
.career-detail-grid small,
.career-requirement-strip small {
  color: #6a7890;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.career-pay-block strong {
  max-width: 220px;
  color: #0b7a46;
  font-size: 14px;
  line-height: 1.25;
  text-align: right;
}

.career-company-info {
  margin: 0;
  color: #45556f;
  line-height: 1.55;
}

.career-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.career-detail-grid span {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 11px 12px;
  background: #f8fbff;
  border: 1px solid #e5edf8;
  border-radius: var(--radius);
}

.career-detail-grid strong {
  overflow-wrap: anywhere;
  color: #16253d;
  font-size: 13px;
  line-height: 1.35;
}

.career-requirement-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.career-requirement-strip div {
  min-width: 0;
  padding: 12px;
  background: #fffdf7;
  border: 1px solid #f1dfab;
  border-radius: var(--radius);
}

.career-requirement-strip p {
  margin: 4px 0 0;
  color: #4d5c73;
  font-size: 13px;
  line-height: 1.45;
}

.career-skill-cloud span {
  padding: 6px 9px;
  color: #234467;
  background: #eef6ff;
  border: 1px solid #dbe9fb;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.career-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 13px;
  border-top: 1px solid #edf2fa;
}

.career-card-facts {
  color: #53647c;
  font-size: 12px;
  font-weight: 800;
}

.career-card-facts span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.career-card-facts svg {
  color: #0f63ff;
}

.career-card-actions {
  min-width: 0;
}

.career-form-note {
  display: block;
  margin-top: -4px;
  color: #6a7890;
  font-size: 12px;
  font-weight: 700;
}

.career-opportunity-dialog {
  width: min(940px, 100%);
  max-height: min(840px, calc(100vh - 38px));
  gap: 16px;
  padding: 0;
  overflow: hidden;
  border-color: #d8e6f7;
  box-shadow: 0 34px 90px rgba(15, 35, 71, .26);
}

.career-opportunity-dialog > * {
  min-width: 0;
}

.career-opportunity-head {
  position: sticky;
  top: 0;
  z-index: 3;
  padding: 22px 24px 18px;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, .08), rgba(22, 185, 129, .08)),
    rgba(255, 255, 255, .98);
  backdrop-filter: blur(14px);
}

.career-opportunity-head h2,
.career-opportunity-head p {
  margin: 0;
}

.career-opportunity-head h2 {
  margin-top: 5px;
  color: #071534;
  font-size: 28px;
  line-height: 1.08;
  letter-spacing: 0;
}

.career-opportunity-head p {
  margin-top: 7px;
  max-width: 720px;
  color: #53647c;
  line-height: 1.5;
}

.career-modal-head-actions,
.career-modal-steps {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.career-modal-head-actions {
  justify-content: flex-end;
}

.career-modal-steps {
  padding: 0 24px 16px;
  background: #ffffff;
  border-bottom: 1px solid #e3edf9;
}

.career-modal-steps span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 7px 10px;
  color: #314967;
  background: #f6f9fe;
  border: 1px solid #dfebf8;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.career-modal-steps svg,
.career-modal-section-head svg {
  width: 15px;
  height: 15px;
}

.career-opportunity-form {
  gap: 14px;
  max-height: calc(100vh - 210px);
  overflow: auto;
  padding: 18px 24px 0;
  background: #f8fbff;
}

.career-opportunity-form.is-previewing {
  background: #f6faff;
}

.career-modal-section {
  display: grid;
  gap: 13px;
  padding: 16px;
  background: #ffffff;
  border: 1px solid #e0eaf7;
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(15, 35, 71, .045);
}

.career-modal-section-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.career-modal-section-head > span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #0f63ff;
  background: #eaf2ff;
  border-radius: 12px;
}

.career-modal-section-head h3,
.career-modal-section-head p {
  margin: 0;
}

.career-modal-section-head h3 {
  color: #0f1f3d;
  font-size: 16px;
  line-height: 1.25;
}

.career-modal-section-head p {
  margin-top: 3px;
  color: #66758e;
  font-size: 12px;
  line-height: 1.45;
}

.career-field-label,
.career-opportunity-form label > span,
.career-location-field > label > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.career-field-label em,
.career-opportunity-form label > span em,
.career-location-field > label > span em {
  flex: 0 0 auto;
  padding: 3px 7px;
  color: #0f4ccf;
  background: #edf5ff;
  border: 1px solid #d4e5ff;
  border-radius: 999px;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  text-transform: uppercase;
}

.career-toggle-field,
.career-course-selector {
  display: grid;
  gap: 10px;
}

.career-toggle-grid {
  display: grid;
  gap: 10px;
}

.career-toggle-grid-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.career-toggle-grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.career-toggle-grid-four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.career-choice-card,
.career-course-card {
  position: relative;
  cursor: pointer;
}

.career-choice-card input,
.career-course-card input {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.career-choice-card > span {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "icon title"
    "icon desc";
  align-items: center;
  column-gap: 10px;
  min-height: 76px;
  padding: 12px;
  color: #263a56;
  background: #f8fbff;
  border: 1px solid #dfeafa;
  border-radius: 14px;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease, transform .16s ease;
}

.career-choice-card.compact > span {
  min-height: 68px;
}

.career-choice-card svg {
  grid-area: icon;
  width: 20px;
  height: 20px;
  color: #0f63ff;
}

.career-choice-card strong {
  grid-area: title;
  color: #14233d;
  font-size: 13px;
  line-height: 1.2;
}

.career-choice-card small {
  grid-area: desc;
  margin-top: 3px;
  color: #68778f;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
}

.career-choice-card:hover > span,
.career-choice-card input:focus-visible + span {
  border-color: #bcd3ff;
  box-shadow: 0 10px 24px rgba(37, 99, 235, .08);
}

.career-choice-card input:checked + span {
  background: linear-gradient(135deg, #eef5ff, #f5fffb);
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .1);
}

.career-logo-grid {
  align-items: stretch;
}

.career-logo-drop {
  min-height: 100%;
  padding: 12px;
  background: #f8fbff;
  border: 1px dashed #c9daf2;
  border-radius: 14px;
}

.career-logo-drop input[type="file"] {
  min-height: 42px;
  padding: 8px;
  background: #ffffff;
}

.career-logo-drop strong {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #0f4ccf;
  font-size: 13px;
}

.career-logo-drop strong svg {
  width: 17px;
  height: 17px;
}

.career-logo-drop small,
.career-date-hint small {
  color: #66758e;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

.career-location-field {
  position: relative;
  display: grid;
  gap: 7px;
  min-width: 0;
}

.career-location-field > label {
  margin: 0;
}

.career-location-combobox {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 48px;
  padding: 6px 10px;
  background: #ffffff;
  border: 1px solid #dfeafa;
  border-radius: 13px;
  transition: border-color .16s ease, box-shadow .16s ease;
}

.career-location-combobox:focus-within {
  border-color: #315bf7;
  box-shadow: 0 0 0 3px rgba(49, 91, 247, .12);
}

.career-location-field.has-error .career-location-combobox {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, .1);
}

.career-location-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.career-location-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 6px 0 10px;
  color: #0f4ccf;
  background: #eef5ff;
  border: 1px solid #d4e5ff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.career-location-chip button {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  color: #315887;
  background: #ffffff;
  border: 1px solid #cfdef5;
  border-radius: 999px;
  cursor: pointer;
}

.career-location-chip button:hover,
.career-location-chip button:focus-visible {
  color: #b91c1c;
  border-color: #fecdd3;
  outline: none;
}

.career-location-chip svg {
  width: 13px;
  height: 13px;
}

.career-location-combobox input {
  flex: 1 1 170px;
  min-width: 130px;
  min-height: 34px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.career-location-combobox input:focus {
  outline: none;
  box-shadow: none;
}

.career-location-suggestions {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 40;
  display: grid;
  gap: 5px;
  max-height: 240px;
  overflow: auto;
  padding: 8px;
  background: #ffffff;
  border: 1px solid #dce7f7;
  border-radius: 14px;
  box-shadow: 0 18px 42px rgba(15, 35, 71, .16);
}

.career-location-suggestions button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 38px;
  padding: 0 10px;
  color: #203756;
  background: #ffffff;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.career-location-suggestions button:hover,
.career-location-suggestions button:focus-visible,
.career-location-suggestions button.is-active {
  color: #0f52d9;
  background: #eef5ff;
  border-color: #cfe0ff;
  outline: none;
}

.career-location-suggestions small {
  color: #71809a;
  font-size: 11px;
  font-weight: 800;
}

.career-location-field > small {
  color: #66758e;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

.career-paid-fields {
  display: grid;
}

.career-paid-fields.is-hidden {
  display: none;
}

.career-date-hint {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "icon title"
    "icon copy";
  gap: 4px 10px;
  align-content: center;
  min-height: 78px;
  padding: 12px;
  background: #fffdf7;
  border: 1px solid #f3dfaa;
  border-radius: 14px;
}

.career-date-hint svg {
  grid-area: icon;
  width: 21px;
  height: 21px;
  color: #b45309;
}

.career-date-hint strong {
  grid-area: title;
  color: #17243d;
  font-size: 13px;
}

.career-date-hint small {
  grid-area: copy;
}

.career-course-selector {
  padding: 13px;
  background: #f8fbff;
  border: 1px solid #e0eaf8;
  border-radius: 14px;
}

.career-course-selector-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.career-course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 10px;
  max-height: 270px;
  overflow: auto;
  padding: 2px;
}

.career-course-card {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 68px;
  padding: 12px;
  background: #ffffff;
  border: 1px solid #dfeafa;
  border-radius: 14px;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.career-course-card > span {
  display: grid !important;
  gap: 3px;
  min-width: 0;
}

.career-course-card strong,
.career-course-card small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.career-course-card strong {
  color: #14233d;
  font-size: 13px;
}

.career-course-card small {
  color: #66758e;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.career-course-card svg {
  width: 18px;
  height: 18px;
  color: #ffffff;
  background: #2563eb;
  border-radius: 999px;
  opacity: 0;
}

.career-course-card:hover,
.career-course-card:has(input:focus-visible) {
  border-color: #bcd3ff;
  box-shadow: 0 10px 22px rgba(37, 99, 235, .08);
}

.career-course-card:has(input:checked) {
  background: linear-gradient(135deg, #eef5ff, #f3fff8);
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .09);
}

.career-course-card:has(input:checked) svg {
  opacity: 1;
}

.career-course-grid.has-error,
.career-course-selector:has(.career-course-grid.has-error) {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, .1);
}

.career-course-empty {
  margin: 0;
  padding: 12px;
  color: #7f1d1d;
  background: #fff1f2;
  border: 1px solid #fecdd3;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 800;
}

.career-preview-panel {
  display: grid;
}

.career-preview-card {
  display: grid;
  gap: 16px;
  padding: 18px;
  background: #ffffff;
  border: 1px solid #dbe8fb;
  border-radius: 18px;
  box-shadow: 0 18px 48px rgba(15, 35, 71, .08);
}

.career-preview-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 16px;
  background: linear-gradient(135deg, #eef5ff, #f4fffa);
  border: 1px solid #d7e8fb;
  border-radius: 16px;
}

.career-preview-logo {
  display: grid;
  place-items: center;
  overflow: hidden;
  width: 64px;
  height: 64px;
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #16a34a);
  border-radius: 16px;
  font-size: 20px;
  font-weight: 850;
}

.career-preview-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.career-preview-hero h3,
.career-preview-hero p,
.career-preview-section p {
  margin: 0;
}

.career-preview-hero h3 {
  margin-top: 5px;
  color: #071534;
  font-size: 24px;
  line-height: 1.18;
}

.career-preview-hero p {
  margin-top: 5px;
  color: #526178;
  font-weight: 750;
}

.career-preview-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.career-preview-meta span {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 11px 12px;
  background: #f8fbff;
  border: 1px solid #e2ebf8;
  border-radius: 13px;
}

.career-preview-meta svg {
  width: 17px;
  height: 17px;
  color: #0f63ff;
  flex: 0 0 auto;
}

.career-preview-meta strong {
  overflow-wrap: anywhere;
  color: #17243d;
  font-size: 13px;
}

.career-preview-section {
  display: grid;
  gap: 8px;
  padding: 14px;
  background: #fbfdff;
  border: 1px solid #e4edf9;
  border-radius: 14px;
}

.career-preview-section p {
  color: #45556f;
  line-height: 1.55;
  white-space: pre-line;
}

.career-preview-course-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.career-preview-course-list span {
  padding: 7px 10px;
  color: #0f4ccf;
  background: #eef5ff;
  border: 1px solid #d5e5ff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.career-opportunity-form input,
.career-opportunity-form select,
.career-opportunity-form textarea {
  scroll-margin-top: 120px;
}

.career-opportunity-form.was-validated input:invalid,
.career-opportunity-form.was-validated select:invalid,
.career-opportunity-form.was-validated textarea:invalid {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, .1);
}

.career-opportunity-form .career-mapping-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.career-opportunity-form .career-mapping-grid select {
  min-height: 128px;
}

.career-logo-upload {
  min-height: 100%;
}

.career-feature-check {
  justify-content: flex-start;
  padding: 10px 12px;
  background: #f8fbff;
  border: 1px solid #e2ebf8;
  border-radius: var(--radius);
}

.career-validation-message {
  margin: 0;
  padding: 11px 13px;
  color: #991b1b;
  background: #fff1f2;
  border: 1px solid #fecdd3;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 800;
}

.career-modal-actions {
  position: sticky;
  bottom: 0;
  z-index: 2;
  margin: 0 -24px;
  padding: 14px 24px 18px;
  background: rgba(255, 255, 255, .96);
  border-top: 1px solid #e0eaf7;
  backdrop-filter: blur(14px);
}

@media (max-width: 980px) {
  .career-requirement-grid,
  .career-detail-grid,
  .career-preview-meta,
  .career-toggle-grid-four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .career-opportunity-form .career-mapping-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 700px) {
  .career-page-head {
    padding: 22px;
  }

  .career-card-top,
  .career-requirement-strip,
  .career-requirement-grid,
  .career-detail-grid,
  .career-preview-meta,
  .career-toggle-grid-two,
  .career-toggle-grid-three,
  .career-toggle-grid-four {
    grid-template-columns: 1fr;
  }

  .career-pay-block {
    justify-items: start;
  }

  .career-pay-block strong {
    max-width: none;
    text-align: left;
  }

  .career-company-block p span::before {
    content: "";
    margin-right: 0;
  }

  .career-kind-tabs a {
    flex: 1 1 140px;
  }

  .career-opportunity-modal {
    padding: 10px;
  }

  .career-opportunity-dialog {
    max-height: calc(100vh - 20px);
    border-radius: 16px;
  }

  .career-opportunity-head {
    padding: 18px 16px 14px;
  }

  .career-opportunity-head h2 {
    font-size: 24px;
  }

  .career-modal-steps {
    padding: 0 16px 12px;
  }

  .career-opportunity-form {
    max-height: calc(100vh - 166px);
    padding: 14px 16px 0;
  }

  .career-modal-section {
    padding: 14px;
  }

  .career-modal-actions {
    display: grid;
    grid-template-columns: 1fr;
    margin: 0 -16px;
    padding: 12px 16px 14px;
  }
}

.student-directory-head {
  align-items: flex-start;
}

.student-page-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
  max-width: 100%;
}

.student-enroll-quick {
  min-height: 36px;
  padding-inline: 13px;
  font-size: 13px;
}

.student-enroll-quick svg {
  width: 16px;
  height: 16px;
}

.student-enroll-quick:disabled {
  opacity: .54;
  cursor: not-allowed;
  box-shadow: none;
}

.student-management-layout {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  min-width: 0;
  height: auto;
  min-height: 0;
  overflow: visible;
}

.student-management-layout > *,
.student-directory-panel,
.student-table-wrap {
  min-width: 0;
  max-width: 100%;
}

.student-directory-panel,
.student-table-wrap {
  height: auto;
  max-height: none;
}

.student-directory-panel {
  overflow: visible;
}

.student-management-layout.is-ajax-loading {
  opacity: .62;
  pointer-events: none;
  transition: opacity .16s ease;
}

.student-export-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.student-export-actions .button {
  white-space: nowrap;
}

.student-filter-form {
  display: grid;
  grid-template-columns: minmax(220px, 1.25fr) repeat(6, minmax(118px, .75fr)) auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 16px;
}

.student-filter-form label {
  display: grid;
  gap: 6px;
}

.student-filter-form label span {
  color: #4d554d;
  font-size: 12px;
  font-weight: 700;
}

.student-filter-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(82px, auto));
  gap: 8px;
  align-items: center;
  justify-content: end;
}

.student-bulk-bar {
  margin-bottom: 16px;
}

.student-bulk-bar.is-attention {
  border-color: #315bf7;
  box-shadow: 0 0 0 3px rgba(49, 91, 247, .12);
}

.student-table-wrap {
  position: relative;
  overflow: visible;
}

@media (max-width: 1500px) {
  .student-table-wrap {
    overflow-x: auto;
    overflow-y: hidden;
  }
}

.student-table tr.bulk-selected {
  background: #f4f7ff;
  box-shadow: inset 3px 0 0 #315bf7;
}

.student-table tr.selected.bulk-selected {
  background: linear-gradient(90deg, #f4f7ff, #f3f8f5);
}

.student-mobile-link {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: var(--text);
  font-weight: 700;
  white-space: nowrap;
}

.student-mobile-link:hover,
.student-mobile-link:focus-visible {
  color: #0f6bff;
}

.student-mobile-empty {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.student-course-popover {
  position: relative;
  display: inline-flex;
}

.student-course-count {
  display: grid;
  gap: 2px;
  min-width: 74px;
  padding: 7px 10px;
  color: var(--text);
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: help;
}

.student-course-count strong {
  font-size: 15px;
  line-height: 1;
}

.student-course-count small {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.student-course-count:hover,
.student-course-count:focus-visible {
  background: #f6f9ff;
  border-color: #dbe7ff;
  outline: none;
}

.student-course-tooltip {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 35;
  display: grid;
  gap: 10px;
  width: min(340px, calc(100vw - 48px));
  padding: 12px;
  color: var(--text);
  background: #ffffff;
  border: 1px solid #dce7f7;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(20, 35, 62, .18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
  pointer-events: none;
}

.student-course-tooltip::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 22px;
  width: 12px;
  height: 12px;
  background: #ffffff;
  border-top: 1px solid #dce7f7;
  border-left: 1px solid #dce7f7;
  transform: rotate(45deg);
}

.student-course-popover:hover .student-course-tooltip,
.student-course-popover:focus-within .student-course-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.student-course-tooltip-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #edf2fb;
}

.student-course-tooltip-head span {
  color: #52627d;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.student-course-tooltip-head strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 24px;
  padding: 0 8px;
  color: #0f63ff;
  background: #edf4ff;
  border-radius: 999px;
  font-size: 12px;
}

.student-course-tooltip-list {
  display: grid;
  gap: 8px;
}

.student-course-tooltip-list article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px 10px;
  padding: 9px;
  background: #f8fbff;
  border: 1px solid #e3ecf8;
  border-radius: var(--radius);
}

.student-course-tooltip-list article > div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.student-course-tooltip-list article strong,
.student-course-tooltip-list article small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.student-course-tooltip-list article strong {
  font-size: 12px;
}

.student-course-tooltip-list article small {
  color: #52627d;
  font-size: 11px;
  font-weight: 700;
}

.student-course-tooltip-list article > small {
  grid-column: 1 / -1;
}

.student-course-tooltip-more,
.student-course-tooltip-empty {
  margin: 0;
  color: #52627d;
  font-size: 12px;
  font-weight: 700;
}

.student-profile-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.student-profile-summary span {
  display: grid;
  gap: 2px;
  padding: 12px;
  color: var(--muted);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 700;
}

.student-profile-summary strong {
  color: var(--text);
  font-size: 18px;
}

.student-status-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0 0;
}

.student-status-actions form {
  margin: 0;
}

.student-access-command {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
  padding: 0 0 14px;
  border-bottom: 1px solid var(--line);
}

.student-access-command > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.student-access-command strong {
  color: var(--text);
  font-size: 14px;
}

.student-access-command small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.student-access-command .button {
  flex: 0 0 auto;
  min-height: 36px;
  padding-inline: 11px;
  font-size: 12px;
}

.student-access-list {
  display: grid;
  gap: 10px;
}

.student-access-list article {
  display: grid;
  gap: 8px;
  padding: 12px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.student-access-list strong,
.student-access-list small {
  display: block;
}

.student-access-list small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.student-access-emi-summary {
  width: fit-content;
  padding: 5px 8px;
  color: #155e3b !important;
  background: #ecfdf3;
  border: 1px solid #bbf7d0;
  border-radius: 999px;
}

.student-access-update {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  align-items: center;
}

.student-access-update input,
.student-access-update select {
  min-height: 36px;
  padding: 0 8px;
  font-size: 12px;
}

.student-access-emi-field {
  display: grid;
  gap: 4px;
  grid-column: span 2;
  padding: 8px;
  background: #ffffff;
  border: 1px solid #dbe7f7;
  border-radius: var(--radius);
}

.student-access-emi-field span {
  color: #536072;
  font-size: 11px;
}

.student-access-emi-field select {
  width: 100%;
  background: #f8fbff;
}

.student-access-update .icon-button {
  position: relative;
  width: 100%;
  height: 36px;
}

.student-action-tip::after {
  content: attr(data-action-tooltip);
  position: absolute;
  right: 50%;
  bottom: calc(100% + 8px);
  z-index: 30;
  width: max-content;
  max-width: 220px;
  padding: 8px 10px;
  color: #ffffff;
  background: #101828;
  border-radius: 8px;
  box-shadow: 0 16px 34px rgba(16, 24, 40, .22);
  font-size: 11px;
  font-weight: 750;
  line-height: 1.35;
  text-align: center;
  white-space: normal;
  opacity: 0;
  visibility: hidden;
  transform: translate(50%, 4px);
  transition: opacity .14s ease, transform .14s ease, visibility .14s ease;
  pointer-events: none;
}

.student-action-tip::before {
  content: "";
  position: absolute;
  right: 50%;
  bottom: calc(100% + 3px);
  z-index: 31;
  width: 10px;
  height: 10px;
  background: #101828;
  opacity: 0;
  visibility: hidden;
  transform: translateX(50%) rotate(45deg);
  transition: opacity .14s ease, visibility .14s ease;
  pointer-events: none;
}

.student-action-tip:hover::after,
.student-action-tip:hover::before,
.student-action-tip:focus-visible::after,
.student-action-tip:focus-visible::before {
  opacity: 1;
  visibility: visible;
}

.student-action-tip:hover::after,
.student-action-tip:focus-visible::after {
  transform: translate(50%, 0);
}

.student-action-tip.danger::after,
.student-action-tip.danger::before {
  background: #991b1b;
}

.student-create-dialog {
  width: min(680px, 100%);
}

.student-enrollment-dialog {
  width: min(680px, calc(100vw - 32px));
}

.student-enrollment-avatar {
  color: #315bf7;
  background: #eaf0ff;
}

.student-enrollment-form {
  gap: 16px;
}

.student-enrollment-student {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #f8fbff;
  border: 1px solid #dfe8f6;
  border-radius: var(--radius);
}

.student-enrollment-student > span:last-child {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.student-enrollment-student strong,
.student-enrollment-student small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.student-enrollment-student strong {
  color: var(--text);
  font-size: 13px;
}

.student-enrollment-student small,
.student-enrollment-form label > small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.student-enrollment-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.student-enrollment-access-summary {
  min-height: 48px;
  margin: -4px 0 0;
  padding: 12px 14px;
  color: #314a73;
  background: #f6f9ff;
  border: 1px solid #dce7f7;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.45;
}

.student-bulk-enrollment-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: #f8fbff;
  border: 1px solid #dfe8f6;
  border-radius: var(--radius);
}

.student-bulk-enrollment-summary div {
  display: grid;
  gap: 3px;
}

.student-bulk-enrollment-summary span,
.student-bulk-enrollment-summary small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.student-bulk-enrollment-summary strong {
  color: var(--text);
  font-size: 16px;
}

.student-bulk-enrollment-modal .student-enrollment-dialog {
  width: min(780px, calc(100vw - 32px));
}

.student-bulk-course-switcher {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, auto);
  align-items: end;
  gap: 12px;
  margin-bottom: 14px;
  padding: 12px;
  background: #f8fbff;
  border: 1px solid #dfe8f6;
  border-radius: var(--radius);
}

.student-bulk-course-switcher label {
  display: grid;
  gap: 7px;
}

.student-bulk-course-switcher label > span,
.student-bulk-course-status span,
.student-bulk-course-status small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.student-bulk-course-switcher select {
  width: 100%;
  min-height: 46px;
}

.student-bulk-course-status {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  background: #ffffff;
  border: 1px solid #dce7f7;
  border-radius: var(--radius);
}

.student-bulk-course-status strong {
  color: var(--text);
  font-size: 16px;
}

.student-bulk-course-status small {
  max-width: 210px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.student-bulk-course-placeholder {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 220px;
  padding: 24px;
  color: #53637f;
  text-align: center;
  background: #fbfdff;
  border: 1px dashed #cddbf0;
  border-radius: var(--radius);
}

.student-bulk-course-placeholder[hidden],
.student-bulk-course-panel[hidden] {
  display: none;
}

.student-bulk-course-placeholder svg {
  width: 34px;
  height: 34px;
  color: #315bf7;
}

.student-bulk-course-placeholder strong {
  color: var(--text);
  font-size: 17px;
}

.student-bulk-course-panel {
  display: grid;
  gap: 18px;
}

.student-bulk-current-access {
  display: grid;
  gap: 12px;
}

.student-bulk-picker-block {
  display: grid;
  gap: 10px;
  padding: 12px;
  background: #fbfdff;
  border: 1px solid #dfe8f6;
  border-radius: var(--radius);
}

.student-bulk-picker-list {
  max-height: 244px;
}

.student-picker-count-inline {
  margin-right: auto;
  color: #40506e;
  font-size: 12px;
  font-weight: 800;
}

.student-create-modal .team-selected-head .avatar svg {
  width: 24px;
  height: 24px;
}

.student-edit-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 4px;
}

.student-edit-quick-actions .button {
  min-height: 38px;
}

.student-edit-quick-actions .button.active {
  color: #ffffff;
  background: #173154;
  border-color: #173154;
  box-shadow: 0 12px 24px rgba(23, 49, 84, .16);
}

.student-edit-enrollment-form,
.student-edit-password-form {
  padding-top: 2px;
}

.student-edit-password-form label > small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.compact-table table {
  min-width: 560px;
}

.student-report-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 14px;
}

.student-report-split section {
  min-width: 0;
}

.student-report-split h3 {
  margin: 0 0 10px;
  font-size: 16px;
}

.certificate-page-head p {
  max-width: 780px;
}

.certificate-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.certificate-kpi-grid .metric-card {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  grid-template-areas:
    "icon label"
    "icon value"
    "icon meta";
  align-items: center;
  column-gap: 13px;
  min-height: 112px;
  padding: 18px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 42px rgba(37, 99, 235, .06);
}

.certificate-kpi-grid .metric-icon {
  grid-area: icon;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
}

.certificate-kpi-grid .metric-icon.blue {
  color: #2563eb;
  background: #e7efff;
}

.certificate-kpi-grid .metric-icon.green {
  color: #15803d;
  background: #e1f8eb;
}

.certificate-kpi-grid .metric-icon.purple {
  color: #6d3bd1;
  background: #f0e8ff;
}

.certificate-kpi-grid .metric-icon.yellow {
  color: #b45309;
  background: #fff4cc;
}

.certificate-kpi-grid .metric-card small {
  grid-area: label;
  color: #56647b;
  font-size: 12px;
  font-weight: 700;
}

.certificate-kpi-grid .metric-card strong {
  grid-area: value;
  color: #071534;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.05;
}

.certificate-kpi-grid .metric-card em {
  grid-area: meta;
  color: #0b7a46;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

.certificate-directory-panel {
  min-width: 0;
}

.certificate-directory-head {
  align-items: flex-start;
}

.certificate-filter-form {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(150px, .85fr)) auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 18px;
}

.certificate-filter-form label {
  display: grid;
  gap: 7px;
}

.certificate-filter-form label span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.certificate-table td small,
.certificate-student-card small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.certificate-table th {
  position: relative;
  overflow: visible;
}

.table-sort-heading {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}

.table-sort-heading:hover,
.table-sort-heading:focus-visible,
.table-sort-heading.is-active {
  color: #0f63ff;
}

.table-sort-indicator {
  display: inline-flex;
  align-items: center;
  min-width: 12px;
  color: currentColor;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
}

.certificate-progress {
  display: grid;
  min-width: 150px;
  gap: 6px;
}

.certificate-progress > span {
  display: block;
  height: 8px;
  overflow: hidden;
  background: #e6ebe5;
  border-radius: 999px;
}

.certificate-progress > span i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #3bbf73, #9edc54);
  border-radius: inherit;
}

.certificate-status-form {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) 42px;
  gap: 8px;
  align-items: center;
}

.certificate-status-form select {
  min-height: 38px;
  padding: 8px 10px;
}

.certificate-card-list {
  display: grid;
  gap: 12px;
}

.certificate-student-card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) minmax(180px, auto);
  gap: 14px;
  align-items: center;
  padding: 16px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.certificate-card-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: #2563eb;
  background: #e7efff;
  border-radius: var(--radius);
}

.certificate-student-card strong {
  display: block;
  margin-bottom: 2px;
  font-size: 18px;
}

.certificate-student-status {
  display: grid;
  justify-items: end;
  gap: 6px;
}

.certificate-empty {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 44px 16px;
  text-align: center;
}

.certificate-pagination {
  margin-top: 18px;
}

.team-edit-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 22px;
}

.team-edit-modal[hidden] {
  display: none;
}

.team-edit-backdrop {
  position: absolute;
  inset: 0;
  padding: 0;
  background: rgba(17, 24, 17, .44);
  border: 0;
  backdrop-filter: blur(10px);
  cursor: default;
}

.team-edit-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 18px;
  width: min(760px, 100%);
  max-height: min(760px, calc(100vh - 44px));
  overflow: auto;
  padding: 22px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 28px 80px rgba(13, 22, 13, .22);
}

.team-edit-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.team-edit-head .team-selected-head {
  margin-bottom: 0;
}

.team-edit-modal-form {
  gap: 14px;
}

.team-edit-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 4px;
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 1360px) {
  .calendar-shell,
  .calendar-board-grid {
    grid-template-columns: 1fr;
  }

  .calendar-lower-grid {
    grid-template-columns: minmax(0, 1fr) minmax(260px, .62fr);
  }

  .calendar-lower-grid .agenda-panel {
    grid-column: 1 / -1;
  }

  .calendar-planning-panel {
    position: static;
  }

  .team-filter-form {
    grid-template-columns: minmax(260px, 1fr) repeat(3, minmax(150px, .55fr));
  }

  .team-filter-actions {
    grid-column: 1 / -1;
    grid-template-columns: minmax(180px, 240px) minmax(120px, 160px);
    justify-content: end;
  }
}

@media (max-width: 1120px) {
  .dashboard-grid,
  .content-grid.two-col,
  .content-grid.three-col,
  .course-hero,
  .analytics-summary,
  .erp-top-grid,
  .erp-hero-grid,
  .erp-hero-card,
  .course-player-layout,
  .watch-strip-grid,
  .dashboard-command-grid,
  .dashboard-lower-grid,
  .builder-summary-card,
  .course-basics-layout,
  .builder-layout,
  .pricing-settings-grid,
  .review-layout,
  .calendar-shell,
  .calendar-board-grid,
  .calendar-lower-grid,
  .attendance-shell,
  .attendance-analytics-grid,
  .attendance-lower-grid,
  .attendance-manager-grid,
  .batch-hub-layout,
  .batch-management-grid,
  .category-create-form,
  .coupon-create-form,
  .category-edit-form,
  .coupon-edit-form,
  .category-management-list article,
  .coupon-management-list article,
  .checkout-coupon-form,
  .team-layout,
  .career-layout,
  .career-filter-form,
  .student-management-layout,
  .student-filter-form,
  .support-data-form,
  .student-access-update,
  .learning-room-shell,
  .learning-overview-grid,
  .learning-progress-summary {
    grid-template-columns: 1fr;
  }

  .batch-hub-side {
    grid-column: auto;
    grid-template-columns: 1fr;
  }

  .business-kpi-grid,
  .attendance-kpi-grid,
  .attendance-manager-kpis,
  .batch-overview-grid,
  .career-kpi-grid,
  .team-kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .builder-summary-card dl,
  .review-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .coupon-row-summary {
    grid-column: auto;
    justify-content: flex-start;
  }

  .coupon-create-form > label,
  .coupon-create-form > .button,
  .coupon-edit-form input[name="coupon_code"],
  .coupon-edit-form select[name="coupon_course_id"],
  .coupon-edit-form select[name="coupon_discount_type"],
  .coupon-edit-form .coupon-discount-input,
  .coupon-edit-form input[name="coupon_expires_at"],
  .coupon-edit-form input[name="coupon_usage_limit"],
  .coupon-edit-form select[name="coupon_status"],
  .coupon-edit-form > .icon-button {
    grid-column: auto;
    grid-row: auto;
  }

  .review-drawer,
  .calendar-planning-panel,
  .attendance-planning-panel,
  .batch-hub-list-panel,
  .batch-hub-side,
  .career-side-panel,
  .team-side,
  .erp-dashboard-rail,
  .curriculum-panel,
  .learning-room-sidebar,
  .learning-context-panel {
    position: static;
    max-height: none;
    overflow: visible;
  }

  .learning-room-sidebar {
    order: 1;
  }

  .learning-room-main {
    order: 2;
  }

  .learning-context-panel {
    order: 3;
  }

  .learning-lesson-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .learning-progress-summary > div,
  .learning-progress-summary > a {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .learning-progress-summary > :last-child {
    border-bottom: 0;
  }

  .page-course .lesson-edit-row,
  .page-course .lesson-edit-form,
  .page-course .lesson-add-form {
    grid-template-columns: 1fr;
  }

  .page-course .lesson-edit-row > form:last-child,
  .page-course .lesson-edit-row > form:last-child .icon-button,
  .page-course .lesson-add-form .button {
    width: 100%;
  }

  .student-dashboard-shell,
  .student-summary-grid,
  .student-content-grid,
  .student-quick-actions,
  .student-course-list,
  .attendance-actions {
    grid-template-columns: 1fr;
  }

  .student-planning-panel {
    position: static;
  }

  .chart-panel {
    grid-row: auto;
  }

  .course-performance-panel {
    grid-row: auto;
  }
}

@media (max-width: 860px) {
  .pricing-form-grid {
    grid-template-columns: 1fr;
  }

  .pricing-save-button {
    width: 100%;
  }

  .app-shell.sidebar-collapsed {
    grid-template-columns: 1fr;
  }

  .app-shell.sidebar-collapsed .sidebar {
    align-items: stretch;
    padding: 18px;
  }

  .app-shell.sidebar-collapsed .sidebar-head {
    grid-template-columns: minmax(0, 1fr) 36px;
    justify-items: stretch;
  }

  .app-shell.sidebar-collapsed .brand-copy {
    display: grid;
  }

  .app-shell.sidebar-collapsed .sidebar-toggle {
    width: 36px;
    min-width: 36px;
    height: 36px;
    padding: 0;
  }

  .app-shell.sidebar-collapsed .sidebar-toggle span,
  .app-shell.sidebar-collapsed .nav-label {
    display: inline;
  }

  .app-shell.sidebar-collapsed .nav-group {
    justify-items: stretch;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 18px;
  }

  .app-shell.sidebar-collapsed .nav-group a {
    justify-content: flex-start;
    gap: 10px;
    width: auto;
    min-height: 42px;
    padding: 10px 12px;
    font-size: 14px;
  }

  .app-shell.sidebar-collapsed .nav-group a.active::before {
    left: -18px;
    height: 26px;
  }

  .app-shell.sidebar-collapsed .nav-count {
    position: static;
    width: 22px;
    height: 22px;
    font-size: 10px;
  }

  .app-shell.sidebar-collapsed .student-profile-mini {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    width: auto;
    min-height: auto;
    margin: 18px 0;
    padding: 14px 8px 16px;
    border-bottom: 1px solid var(--line);
  }

  .app-shell.sidebar-collapsed .student-profile-mini span:not(.avatar),
  .app-shell.sidebar-collapsed .student-profile-mini > svg {
    display: block;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    padding: 18px;
  }

  .nav-group {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 18px;
  }

  .nav-label {
    grid-column: 1 / -1;
  }

  .topbar,
  .page-intro,
  .studio-page-head,
  .studio-toolbar,
  .calendar-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar-actions {
    justify-content: flex-end;
  }

  .content-grid.with-aside,
  .auth-shell,
  .course-builder-form,
  .studio-attention-grid,
  .studio-search-controls,
  .lesson-add-inline,
  .add-module-card,
  .resource-add-form,
  .resource-manager-form,
  .calendar-event-form {
    grid-template-columns: 1fr;
  }

  .calendar-datetime-picker {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .calendar-date-input {
    grid-column: 1 / -1;
  }

  .studio-head-actions {
    justify-content: flex-start;
  }

  .business-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .attendance-kpi-grid,
  .attendance-manager-kpis,
  .batch-overview-grid,
  .career-kpi-grid,
  .team-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .attendance-session-feed article,
  .recorded-watch-list article,
  .attendance-roster-row,
  .attendance-risk-list article,
  .batch-resource-list article,
  .batch-overview-head,
  .career-post-card,
  .team-toolbar,
  .team-filter-form,
  .career-filter-form,
  .student-directory-head {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .team-toolbar,
  .career-filter-form,
  .student-directory-head {
    display: grid;
  }

  .student-export-actions {
    justify-content: flex-start;
  }

  .student-filter-actions {
    justify-content: stretch;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .support-data-actions {
    justify-content: stretch;
  }

  .support-data-actions .button {
    flex: 1 1 160px;
  }

  .student-welcome {
    align-items: stretch;
    flex-direction: column;
  }

  .erp-ai-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .erp-hero-visual {
    min-height: 156px;
  }

  .learning-heading-row,
  .learning-task-list article {
    grid-template-columns: 1fr;
  }

  .learning-heading-actions {
    justify-content: flex-start;
  }

  .learning-command-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .course-builder-form > label,
  .course-builder-form > .course-title-url-stack,
  .course-builder-form > .course-url-editor,
  .course-builder-form > .course-tag-editor,
  .course-builder-form > .thumbnail-picker,
  .course-builder-form > .form-row,
  .course-builder-form > button {
    grid-column: 1 / -1;
  }

  .course-url-line {
    align-items: stretch;
    flex-direction: column;
  }

  .course-url-prefix {
    width: 100%;
    padding: 10px 12px 0;
  }

  .course-url-line input {
    width: 100%;
    min-width: 0;
    padding: 2px 12px 10px;
  }

  .course-basics-advanced-grid {
    grid-template-columns: 1fr;
  }

  .auth-brand {
    min-height: auto;
  }
}

@media (max-width: 560px) {
  .pricing-model-options,
  .pricing-price-grid,
  .pricing-emi-grid {
    grid-template-columns: 1fr;
  }

  .team-filter-actions {
    grid-template-columns: 1fr;
  }

  .student-access-command {
    align-items: stretch;
    flex-direction: column;
  }

  .student-access-command .button {
    width: 100%;
  }

  .student-enrollment-form-grid {
    grid-template-columns: 1fr;
  }

  .batch-student-management-head {
    flex-direction: column;
    gap: 10px;
  }

  .batch-enrollment-grid {
    grid-template-columns: 1fr;
  }

  .batch-access-row {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .batch-access-actions {
    grid-column: 1 / -1;
    justify-content: stretch;
  }

  .batch-access-action-form,
  .batch-access-action-form .course-enrollment-emi-advance,
  .batch-access-action-form .button,
  .batch-access-emi-select {
    width: 100%;
    max-width: none;
  }

  .batch-access-installment-popup {
    padding: 12px;
  }

  .batch-access-installment-card {
    width: calc(100vw - 24px);
    max-height: calc(100dvh - 24px);
  }

  .batch-access-mode-options,
  .batch-access-installment-options {
    grid-template-columns: 1fr;
    padding-inline: 14px;
  }

  .batch-access-stage-student,
  .batch-access-custom-date,
  .batch-access-installment-summary,
  .batch-access-installment-validation {
    margin-right: 14px;
    margin-left: 14px;
  }

  .batch-access-installment-card header,
  .batch-access-installment-card footer {
    padding-right: 14px;
    padding-left: 14px;
  }

  .main-area,
  .auth-body {
    padding: 16px;
  }

  .panel,
  .course-card,
  .post-item,
  .auth-brand,
  .auth-card {
    padding: 18px;
  }

  .student-auth-copy h1 {
    margin-top: 18px;
  }

  .student-login-board {
    margin-top: 24px;
  }

  .student-login-mini-grid {
    grid-template-columns: 1fr;
  }

  .student-login-mini-grid article {
    min-height: 0;
  }

  .nav-group {
    grid-template-columns: 1fr;
  }

  .sidebar-ai-card {
    display: none;
  }

  .topbar-profile-trigger > span:not(.avatar),
  .topbar-profile-trigger > svg,
  .topbar-shortcut {
    display: none;
  }

  .topbar-profile-trigger {
    grid-template-columns: auto;
    padding: 4px;
  }

  .team-edit-modal {
    padding: 12px;
  }

  .team-edit-dialog {
    max-height: calc(100vh - 24px);
    padding: 18px;
  }

  .team-edit-dialog.batch-enrollment-dialog {
    width: min(100%, calc(100vw - 24px));
    max-height: calc(100dvh - 24px);
    padding: 0;
  }

  .team-edit-dialog.batch-enrollment-dialog .batch-enrollment-head,
  .team-edit-dialog.batch-enrollment-dialog .batch-enrollment-stats,
  .team-edit-dialog.batch-enrollment-dialog .batch-enrollment-viewbar {
    padding-right: 14px;
    padding-left: 14px;
  }

  .team-edit-dialog.batch-enrollment-dialog .batch-enrollment-grid {
    padding: 12px 14px 14px;
  }

  .team-edit-head,
  .team-edit-modal-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .team-permission-grid {
    grid-template-columns: 1fr;
  }

  .team-permission-card {
    grid-template-columns: 1fr;
  }

  .team-permission-actions {
    justify-content: start;
    width: 100%;
  }

  .erp-ai-stack,
  .erp-quick-link-grid {
    grid-template-columns: 1fr;
  }

  .erp-hero-visual {
    min-height: 120px;
  }

  .erp-portrait {
    right: 50%;
    bottom: 0;
    width: 118px;
    height: 118px;
    transform: translateX(50%);
  }

  .erp-floating-card {
    display: none;
  }

  .stat-row,
  .analytics-panel .stat-row,
  .form-row,
  .course-hero-stats,
  .auth-preview,
  .demo-logins,
  .catalog-toolbar,
  .catalog-search,
  .watch-card,
  .lesson-edit-row,
  .lesson-edit-form,
  .lesson-add-form,
  .business-kpi-grid,
  .course-performance-row,
  .student-class-list a,
  .student-announcement-list article,
  .student-course-list a,
  .studio-attention-grid article,
  .studio-card-actions,
  .builder-summary-card dl,
  .module-row,
  .lesson-row-pro,
  .builder-switch-grid,
  .review-stats-grid,
  .review-drawer-head,
  .review-actions,
  .calendar-list article,
  .deadline-list article,
  .reminder-list article,
  .agenda-list article,
  .chat-room-head,
  .batch-lesson-list a,
  .batch-info-list article,
  .batch-members-mini-list article,
  .team-kpi-grid,
  .career-kpi-grid,
  .team-selected-head,
  .team-user-stats,
  .team-activity-list article,
  .batch-settings-schedule-grid,
  .batch-duration-grid,
  .batch-permission-grid,
  .batch-trash-list article,
  .career-form-grid,
  .career-mini-grid,
  .student-profile-summary,
  .student-status-actions,
  .student-access-update,
  .certificate-kpi-grid,
  .certificate-filter-form,
  .certificate-student-card,
  .certificate-status-form,
  .learning-course-card,
  .learning-lesson-meta,
  .learning-command-strip,
  .learning-note-list article,
  .learning-resource-list a,
  .learning-question-list article,
  .learning-plan-list article,
  .thumbnail-upload-box,
  .thumbnail-current-preview,
  .learning-mini-section a {
    grid-template-columns: 1fr;
  }

  .thumbnail-file-name,
  .thumbnail-upload-action {
    grid-column: auto;
    grid-row: auto;
    justify-self: start;
  }

  .thumbnail-upload-action {
    width: 100%;
  }

  .calendar-grid {
    width: 100%;
    min-width: 0;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    overflow: hidden;
  }

  .calendar-month-panel {
    min-width: 0;
    overflow: hidden;
  }

  .calendar-weekday {
    min-height: 30px;
    padding: 8px 2px;
    font-size: 10px;
  }

  .calendar-day {
    min-width: 0;
    min-height: 84px;
    padding: 7px 4px;
  }

  .calendar-day-add {
    top: 5px;
    right: 4px;
    width: 20px;
    height: 20px;
  }

  .calendar-chip {
    min-height: 30px;
    padding: 5px 4px;
  }

  .calendar-chip span,
  .calendar-chip small {
    display: none;
  }

  .calendar-sync-link {
    margin-left: 0;
  }

  .chat-head-actions {
    justify-content: flex-start;
  }

  .chat-bubble-row,
  .chat-bubble-row.mine {
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  .chat-bubble-row.mine .anonymous-avatar,
  .chat-bubble-row.mine .chat-bubble {
    grid-column: auto;
    grid-row: auto;
  }

  .chat-compose {
    grid-template-columns: auto minmax(0, 1fr) auto;
    border-radius: var(--radius);
  }

  .chat-compose .send-button {
    grid-column: 1 / -1;
    width: 100%;
    border-radius: var(--radius);
  }

  .page-batches .batch-chat-head {
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: center;
    padding: 10px;
  }

  .page-batches .batch-chat-head .batch-avatar {
    width: 34px;
    height: 34px;
  }

  .page-batches .batch-chat-head h2 {
    font-size: 16px;
  }

  .page-batches .batch-chat-head p {
    -webkit-line-clamp: 1;
  }

  .batch-stream-actions {
    justify-content: flex-start;
  }

  .batch-chat-compose {
    grid-template-columns: minmax(0, 1fr) auto;
    margin: 0 10px 10px;
    border-radius: 14px;
  }

  .batch-chat-compose .send-button {
    grid-column: auto;
    width: 40px;
    border-radius: 50%;
  }

  .batch-compose-policy,
  .batch-compose-readonly {
    margin: -2px 10px 10px;
    padding: 8px 10px;
    font-size: 11px;
    line-height: 1.35;
    border-radius: 12px;
  }

  .student-picker-toolbar,
  .student-picker-footer {
    display: grid;
    grid-template-columns: 1fr;
  }

  .batch-enrollment-pane-head,
  .batch-enrollment-head {
    align-items: stretch;
    flex-direction: column;
  }

  .student-picker-footer .button {
    width: 100%;
  }

  .team-bulk-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .team-bulk-bar > div {
    display: grid;
    grid-template-columns: 1fr;
  }

  .team-bulk-action-form {
    display: grid;
  }

  .team-bulk-bar .button {
    width: 100%;
  }

  .team-bulk-bar .team-delete-box {
    width: 42px;
    min-width: 42px;
    justify-self: start;
  }

  .studio-attention-grid img,
  .builder-summary-card > img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .builder-summary-card dl > div {
    padding: 12px 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .studio-pagination,
  .curriculum-summary,
  .editor-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .editor-toolbar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
  }

  .editor-toolbar select {
    width: 100%;
    grid-column: 1 / -1;
  }

  .inline-form,
  .enroll-form,
  .table-form,
  .player-info-row {
    align-items: stretch;
    flex-direction: column;
  }

  .inline-form input[type="number"],
  .table-form input[type="number"] {
    width: 100%;
  }

  .page-intro h1 {
    font-size: 34px;
  }

  .hero-metric strong,
  .auth-brand h1 {
    font-size: 44px;
  }

  .video-frame {
    min-height: 0;
  }

  .learning-video-stage {
    min-height: 0;
  }

  .video-placeholder {
    align-items: flex-start;
    flex-direction: column;
  }

  .learning-video-placeholder {
    align-items: flex-start;
    flex-direction: column;
  }

  .learning-heading-row h1 {
    font-size: 34px;
  }

  .learning-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .learning-tabs a {
    justify-content: center;
  }

  .watch-card > small {
    position: static;
  }

  .revenue-bars {
    display: none;
  }

  .student-class-list em,
  .student-announcement-list em {
    text-align: left;
  }

  .student-stat-card {
    min-height: 190px;
  }

  .student-hero-art {
    min-height: 150px;
  }
}

@media (max-width: 760px) {
  .curriculum-panel-pro {
    max-height: none;
    overflow: visible;
  }

  .curriculum-builder-head {
    align-items: stretch;
    flex-direction: column;
  }

  .curriculum-add-jump {
    width: 100%;
  }

  .curriculum-panel-pro .module-list {
    max-height: none;
    overflow: visible;
  }

  .curriculum-panel-pro .module-row,
  .curriculum-panel-pro .lesson-row-pro {
    grid-template-columns: 22px 30px minmax(0, 1fr);
  }

  .curriculum-panel-pro .module-meta-group,
  .curriculum-panel-pro .lesson-meta-group {
    grid-column: 3;
    justify-content: flex-start;
  }

  .curriculum-panel-pro .curriculum-row-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
    padding-left: 60px;
  }

  .lesson-add-inline,
  .add-module-form {
    grid-template-columns: 1fr;
  }

  .lesson-add-inline .button {
    width: 100%;
    margin-top: 0;
  }

  .add-module-form .button {
    width: 100%;
  }
}

@media (max-width: 1280px) {
  .builder-commercial-workspace {
    grid-template-columns: minmax(0, 1fr);
  }

  .builder-commercial-workspace .curriculum-panel-pro,
  .builder-commercial-workspace .pricing-settings-grid {
    width: min(920px, 100%);
    justify-self: center;
  }
}

.gradebook-page-head {
  margin-bottom: 22px;
}

.gradebook-toolbar-panel {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  padding: 18px;
  margin-bottom: 18px;
}

.gradebook-filter-form,
.gradebook-add-assignment-form {
  display: grid;
  grid-template-columns: minmax(260px, 520px) auto;
  align-items: end;
  gap: 12px;
  width: 100%;
}

.gradebook-add-assignment-form {
  grid-template-columns: minmax(240px, 1.4fr) minmax(180px, .8fr) 120px auto;
}

.gradebook-filter-form label,
.gradebook-add-assignment-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.gradebook-filter-form select,
.gradebook-add-assignment-form input {
  min-height: 42px;
}

.gradebook-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.gradebook-assignment-panel,
.gradebook-table-panel {
  margin-bottom: 18px;
}

.gradebook-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.gradebook-table {
  min-width: 1120px;
  border-collapse: collapse;
}

.gradebook-table th {
  vertical-align: top;
  white-space: nowrap;
}

.gradebook-table td {
  vertical-align: top;
}

.gradebook-assignment-heading {
  display: grid;
  gap: 3px;
  min-width: 220px;
}

.gradebook-assignment-heading strong {
  color: var(--ink);
  font-size: 13px;
}

.gradebook-assignment-heading small {
  color: var(--muted);
  font-size: 11px;
}

.gradebook-progress {
  display: grid;
  gap: 7px;
  min-width: 130px;
}

.gradebook-progress > span {
  width: 100%;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--soft-line);
}

.gradebook-progress > span i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #22c55e, #2563eb);
}

.gradebook-progress small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.gradebook-grade-form {
  display: grid;
  gap: 8px;
  min-width: 240px;
}

.gradebook-grade-row {
  display: grid;
  grid-template-columns: minmax(112px, 1fr) 78px 38px;
  gap: 7px;
  align-items: center;
}

.gradebook-grade-form select,
.gradebook-grade-form input {
  min-height: 36px;
  font-size: 13px;
}

.gradebook-grade-form .icon-button {
  width: 36px;
  height: 36px;
}

.gradebook-feedback-input {
  width: 100%;
}

.gradebook-readonly-cell {
  display: grid;
  gap: 7px;
  min-width: 180px;
}

.gradebook-readonly-cell .badge {
  justify-self: start;
}

.gradebook-readonly-cell strong {
  color: var(--ink);
  font-size: 13px;
}

.gradebook-readonly-cell small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
}

.gradebook-empty-inline {
  margin: 0;
  padding: 38px 20px;
  border: 1px dashed var(--line);
  background: var(--surface-soft);
}

.gradebook-student-list {
  display: grid;
  gap: 12px;
}

.gradebook-student-result {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.gradebook-result-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: #2563eb;
  background: #eef4ff;
}

.gradebook-result-icon svg {
  width: 20px;
  height: 20px;
}

.gradebook-student-result p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.gradebook-student-score {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.gradebook-student-score strong {
  font-size: 22px;
}

@media (max-width: 1080px) {
  .gradebook-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gradebook-toolbar-panel,
  .gradebook-add-assignment-form {
    align-items: stretch;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .gradebook-kpi-grid {
    grid-template-columns: 1fr;
  }

  .gradebook-filter-form {
    grid-template-columns: 1fr;
  }

  .gradebook-student-result {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .gradebook-student-score {
    grid-column: 1 / -1;
    justify-items: start;
  }
}

.certificate-verify-body {
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, .11), transparent 34%),
    linear-gradient(135deg, #f8fbff 0%, #eef4ff 48%, #f9fafb 100%);
}

.certificate-verify-shell {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 32px 18px;
}

.certificate-verify-card {
  width: min(760px, 100%);
  padding: 28px;
  border: 1px solid rgba(148, 163, 184, .35);
  border-radius: 18px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 28px 80px rgba(15, 23, 42, .14);
}

.certificate-verify-head {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.certificate-verify-head h1 {
  margin: 4px 0 6px;
  font-size: 30px;
}

.certificate-verify-head p {
  margin: 0;
  color: var(--muted);
}

.certificate-verify-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px;
  margin: 22px 0;
}

.certificate-verify-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.certificate-verify-form input {
  min-height: 46px;
  font-family: inherit;
  text-transform: uppercase;
}

.certificate-verify-result {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-soft);
}

.certificate-verify-result.is-valid {
  border-color: rgba(34, 197, 94, .28);
  background: #f0fdf4;
}

.certificate-verify-result.is-invalid {
  border-color: rgba(239, 68, 68, .28);
  background: #fff7f7;
}

.certificate-verify-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  color: #2563eb;
  background: #eef4ff;
}

.certificate-verify-result.is-valid .certificate-verify-icon {
  color: #15803d;
  background: #dcfce7;
}

.certificate-verify-result.is-invalid .certificate-verify-icon {
  color: #dc2626;
  background: #fee2e2;
}

.certificate-verify-result h2 {
  margin: 8px 0 4px;
  font-size: 24px;
}

.certificate-verify-result p {
  margin: 0;
  color: var(--muted);
}

.certificate-verify-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 0;
}

.certificate-verify-details div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.certificate-verify-details dt {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.certificate-verify-details dd {
  margin: 0;
  font-weight: 900;
}

.settings-notification-panel {
  grid-column: 1 / -1;
}

.settings-moderation-panel {
  grid-column: 1 / -1;
}

.settings-preference-list {
  display: grid;
  gap: 10px;
}

.settings-toggle-row {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
  cursor: pointer;
}

.settings-toggle-row input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: #2563eb;
}

.settings-toggle-row span {
  display: grid;
  gap: 4px;
}

.settings-toggle-row strong {
  color: var(--ink);
  font-size: 14px;
}

.settings-toggle-row small {
  color: var(--muted);
  line-height: 1.45;
}

.settings-moderation-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.settings-moderation-summary span {
  display: grid;
  gap: 4px;
  padding: 13px;
  background: #f8fbff;
  border: 1px solid #dce7f7;
  border-radius: 14px;
}

.settings-moderation-summary strong {
  color: #0f2547;
  font-size: 24px;
  line-height: 1;
}

.settings-moderation-summary small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.settings-moderation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.settings-moderation-grid label {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: #24324a;
  font-weight: 750;
}

.settings-moderation-grid textarea {
  min-height: 138px;
  resize: vertical;
}

.settings-moderation-grid small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.settings-moderation-review {
  display: grid;
  gap: 12px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.settings-moderation-review h3 {
  margin: 0;
  font-size: 18px;
}

.moderation-violation-list {
  display: grid;
  gap: 12px;
}

.moderation-violation-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  background: #ffffff;
  border: 1px solid #dce7f7;
  border-radius: 14px;
}

.moderation-violation-card.is-open {
  background: #fffafb;
  border-color: #fecdd3;
}

.moderation-violation-card header,
.moderation-violation-card footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.moderation-violation-card header div {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.moderation-violation-card header strong,
.moderation-violation-card header small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.moderation-violation-card header small,
.moderation-violation-card footer small {
  color: var(--muted);
  font-size: 12px;
}

.moderation-violation-card dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.moderation-violation-card dl div {
  min-width: 0;
  padding: 10px;
  background: #f8fbff;
  border: 1px solid #e2ebf8;
  border-radius: 12px;
}

.moderation-violation-card dt,
.moderation-violation-card dd {
  margin: 0;
}

.moderation-violation-card dt {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.moderation-violation-card dd {
  overflow: hidden;
  margin-top: 4px;
  color: #12213f;
  font-size: 12px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.moderation-violation-card blockquote {
  margin: 0;
  padding: 12px;
  color: #17233c;
  background: #ffffff;
  border: 1px solid #edf1f7;
  border-left: 4px solid #ef4444;
  border-radius: 12px;
  line-height: 1.5;
}

.moderation-violation-card form {
  margin: 0;
}

.moderation-violation-card .button {
  min-height: 36px;
  padding: 0 12px;
  font-size: 12px;
}

.moderation-empty {
  padding: 22px;
  text-align: center;
}

.settings-page-intro p {
  max-width: 560px;
  margin: 8px 0 0;
  line-height: 1.45;
}

.settings-page-frame {
  min-width: 0;
}

.settings-page-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.settings-portal {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.settings-portal-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  min-width: 0;
  padding: 0 2px;
}

.settings-portal-head h2 {
  margin: 4px 0 6px;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.12;
  letter-spacing: 0;
}

.settings-portal-head p {
  max-width: 620px;
  margin: 0;
  line-height: 1.45;
}

.settings-menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 14px;
}

.settings-menu-card {
  display: grid;
  grid-template-areas:
    "icon body arrow"
    "icon meta arrow";
  grid-template-columns: 52px minmax(0, 1fr) 24px;
  align-items: start;
  gap: 14px;
  min-height: 152px;
  min-width: 0;
  padding: 18px;
  color: #0f2547;
  text-decoration: none;
  background:
    linear-gradient(135deg, rgba(15, 99, 255, .07), rgba(255, 255, 255, 0) 46%),
    #ffffff;
  border: 1px solid #dce8f7;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.settings-menu-card:hover,
.settings-menu-card:focus-visible {
  border-color: #9fc1ff;
  box-shadow: 0 20px 44px rgba(15, 99, 255, .14);
  transform: translateY(-2px);
  outline: 0;
}

.settings-menu-icon,
.settings-detail-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  color: #0f63ff;
  background: #edf5ff;
  border: 1px solid #d6e6ff;
}

.settings-menu-icon {
  grid-area: icon;
  width: 52px;
  height: 52px;
  border-radius: 16px;
}

.settings-menu-icon svg,
.settings-detail-icon svg,
.settings-menu-arrow svg,
.settings-permission-side > .panel-title-row > svg {
  width: 20px;
  height: 20px;
}

.settings-menu-body {
  display: grid;
  grid-area: body;
  gap: 5px;
  min-width: 0;
}

.settings-menu-body small,
.settings-detail-copy small {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .03em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.settings-menu-body strong {
  color: var(--ink);
  font-size: 19px;
  line-height: 1.15;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.settings-menu-body em {
  display: -webkit-box;
  overflow: hidden;
  color: #5a6a83;
  font-size: 13px;
  font-style: normal;
  font-weight: 650;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.settings-menu-card b {
  grid-area: meta;
  justify-self: start;
  max-width: 100%;
  overflow: hidden;
  padding: 7px 10px;
  color: #1f5edb;
  font-size: 12px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: #f2f7ff;
  border: 1px solid #d8e7ff;
  border-radius: 999px;
}

.settings-menu-arrow {
  display: inline-grid;
  grid-area: arrow;
  place-items: center;
  align-self: center;
  color: #69809f;
}

.settings-access-summary-card {
  display: grid;
  gap: 16px;
}

.settings-access-summary-card .profile-card {
  margin-bottom: 0;
}

.settings-access-summary-card .profile-card p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.settings-detail-shell {
  display: grid;
  grid-template-columns: minmax(220px, 270px) minmax(0, 1fr);
  align-items: start;
  gap: 18px;
  margin-top: 18px;
}

.settings-detail-nav {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 14px;
  padding: 14px;
}

.settings-detail-nav-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 4px 0;
}

.settings-detail-nav-head strong {
  color: #4d5f79;
  font-size: 12px;
  font-weight: 850;
}

.settings-detail-nav nav {
  display: grid;
  gap: 8px;
}

.settings-detail-nav a {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 10px;
  color: #2d3f5c;
  text-decoration: none;
  background: #ffffff;
  border: 1px solid transparent;
  border-radius: 14px;
  transition: background .16s ease, border-color .16s ease, color .16s ease, transform .16s ease;
}

.settings-detail-nav a:hover,
.settings-detail-nav a:focus-visible {
  color: #0f63ff;
  background: #f5f9ff;
  border-color: #d9e8ff;
  outline: 0;
  transform: translateX(2px);
}

.settings-detail-nav a.active {
  color: #ffffff;
  background: linear-gradient(135deg, #0f63ff, #1d9bf0);
  border-color: transparent;
  box-shadow: 0 14px 32px rgba(15, 99, 255, .22);
}

.settings-detail-nav a.active .settings-detail-icon {
  color: #ffffff;
  background: rgba(255, 255, 255, .16);
  border-color: rgba(255, 255, 255, .24);
}

.settings-detail-nav a.active small,
.settings-detail-nav a.active strong {
  color: #ffffff;
}

.settings-detail-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
}

.settings-detail-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.settings-detail-copy strong {
  overflow: hidden;
  color: inherit;
  font-size: 13px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.settings-detail-main {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.settings-permission-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
  gap: 18px;
}

.settings-permission-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.settings-permission-grid article {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  min-width: 0;
  padding: 13px;
  background: #f8fbff;
  border: 1px solid #dce7f7;
  border-radius: calc(var(--radius) - 4px);
}

.settings-permission-grid article > span {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #0f8a5f;
  background: #e8f8ef;
  border-radius: 12px;
}

.settings-permission-grid svg {
  width: 18px;
  height: 18px;
}

.settings-permission-grid strong {
  display: block;
  color: var(--ink);
  line-height: 1.25;
}

.settings-permission-grid small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.settings-permission-side {
  display: grid;
  align-content: start;
  gap: 16px;
}

.settings-permission-side > .panel-title-row > svg {
  color: #0f63ff;
}

.settings-permission-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.settings-permission-stats span {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 12px;
  text-align: center;
  background: #f8fbff;
  border: 1px solid #dce7f7;
  border-radius: 12px;
}

.settings-permission-stats strong {
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
}

.settings-permission-stats small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.settings-hub {
  display: grid;
  gap: 24px;
  margin-top: 18px;
}

.settings-category-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(172px, 1fr));
  gap: 10px;
  padding: 10px;
  background: rgba(255, 255, 255, .72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.settings-category-tabs a {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 12px 14px;
  color: #34415a;
  text-decoration: none;
  background: #ffffff;
  border: 1px solid transparent;
  border-radius: calc(var(--radius) - 4px);
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.settings-category-tabs a:hover,
.settings-category-tabs a:focus-visible {
  border-color: #c8d9f4;
  box-shadow: 0 12px 26px rgba(15, 99, 255, .12);
  transform: translateY(-1px);
  outline: 0;
}

.settings-category-tabs strong {
  overflow: hidden;
  color: #071b3c;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.settings-category-tabs small {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.settings-category-section {
  display: grid;
  gap: 14px;
  scroll-margin-top: 96px;
}

.settings-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 0 2px;
}

.settings-section-head h2 {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.12;
  letter-spacing: 0;
}

.settings-section-head p {
  max-width: 460px;
  margin: 0;
  text-align: right;
  line-height: 1.45;
}

.settings-section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(280px, .84fr);
  gap: 18px;
}

.settings-card {
  min-width: 0;
}

.settings-card .section-heading h3,
.settings-card .panel-title-row h3 {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: 0;
}

.settings-access-card .profile-card {
  margin-bottom: 0;
}

.settings-access-card .profile-card p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.settings-team-plan-card {
  display: grid;
  gap: 18px;
}

.settings-plan-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.settings-plan-strip div {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 14px;
  background: #f8fbff;
  border: 1px solid #dce7f7;
  border-radius: calc(var(--radius) - 4px);
}

.settings-plan-strip span,
.settings-system-card span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.settings-plan-strip strong {
  overflow: hidden;
  color: #071b3c;
  font-size: 22px;
  line-height: 1.08;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.settings-plan-strip small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.settings-blacklist-form {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.settings-smtp-grid {
  align-items: start;
}

.settings-gateway-grid {
  align-items: start;
}

.settings-alert-grid {
  align-items: start;
}

.settings-alert-form,
.settings-alert-summary-card {
  gap: 16px;
}

.settings-alert-summary-card {
  display: grid;
  align-content: start;
}

.settings-alert-toggle-list {
  display: grid;
  gap: 10px;
}

.settings-alert-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.settings-alert-stat-grid div {
  display: grid;
  gap: 6px;
  padding: 14px;
  background: #f8fbff;
  border: 1px solid #dce7f7;
  border-radius: var(--radius);
}

.settings-alert-stat-grid small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.settings-alert-stat-grid strong {
  color: #071b3c;
  font-size: 26px;
  line-height: 1;
}

.settings-smtp-toggle {
  margin-bottom: 2px;
}

.settings-gateway-alert {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 9px;
  padding: 11px 12px;
  color: #991b1b;
  background: #fff5f5;
  border: 1px solid #fecaca;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
}

.settings-gateway-alert svg {
  width: 17px;
  height: 17px;
}

.settings-smtp-side,
.settings-gateway-side {
  display: grid;
  gap: 18px;
}

.settings-smtp-status {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
}

.settings-smtp-status h3,
.settings-email-usage h3 {
  margin: 2px 0 6px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: 0;
}

.settings-smtp-status p {
  margin: 0;
  line-height: 1.45;
}

.settings-smtp-status-icon {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
}

.settings-smtp-status-icon.is-good {
  color: #0f8a5f;
  background: #e8f8ef;
}

.settings-smtp-status-icon.is-warn {
  color: #b45309;
  background: #fff4d7;
}

.settings-smtp-status-icon svg {
  width: 24px;
  height: 24px;
}

.settings-smtp-meta {
  display: grid;
  gap: 10px;
  margin: 0;
}

.settings-smtp-meta div {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 12px 14px;
  background: #f8fbff;
  border: 1px solid #dce7f7;
  border-radius: 12px;
}

.settings-smtp-meta dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.settings-smtp-meta dd {
  min-width: 0;
  margin: 0;
  color: #0f2547;
  font-weight: 800;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.settings-smtp-meta .is-danger {
  background: #fff5f5;
  border-color: #fecaca;
}

.settings-smtp-meta .is-danger dd {
  color: #b42318;
}

.settings-email-usage {
  display: grid;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.settings-email-usage-list {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.settings-email-usage-list li {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 10px;
  color: #243a5f;
  background: #ffffff;
  border: 1px solid #dce7f7;
  border-radius: 12px;
}

.settings-email-usage-list svg {
  width: 17px;
  height: 17px;
  color: #0f63ff;
}

.settings-email-usage-list li i {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  background: #eef6ff;
  border-radius: 10px;
}

.settings-email-usage-list span {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
}

.settings-smtp-test-form {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.settings-system-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.settings-system-card {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
  padding: 18px;
  background: #ffffff;
}

.settings-system-card svg {
  width: 22px;
  height: 22px;
  color: #0f63ff;
}

.settings-system-card strong {
  overflow-wrap: anywhere;
  color: #071b3c;
  line-height: 1.35;
}

.settings-payment-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.settings-payment-card {
  display: grid;
  gap: 16px;
}

.payment-invoice-list {
  display: grid;
  gap: 12px;
}

.payment-invoice-card {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(15, 99, 255, .055), rgba(255, 255, 255, 0) 55%),
    #ffffff;
  border: 1px solid #dce8f7;
  border-radius: var(--radius);
}

.payment-invoice-card header {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.payment-invoice-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: #0f63ff;
  background: #edf5ff;
  border: 1px solid #d6e6ff;
  border-radius: 14px;
}

.payment-invoice-icon svg {
  width: 19px;
  height: 19px;
}

.payment-invoice-card header div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.payment-invoice-card header strong,
.payment-invoice-card header small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.payment-invoice-card header strong {
  color: #071b3c;
  font-size: 15px;
}

.payment-invoice-card header small {
  color: #53657f;
  font-size: 13px;
  font-weight: 700;
}

.payment-invoice-card dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.payment-invoice-card dl div {
  min-width: 0;
  padding: 11px;
  background: #f8fbff;
  border: 1px solid #e3ecf9;
  border-radius: 12px;
}

.payment-invoice-card dt,
.payment-invoice-card dd {
  margin: 0;
}

.payment-invoice-card dt {
  color: #6a7d98;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.payment-invoice-card dd {
  overflow: hidden;
  margin-top: 5px;
  color: #10213d;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.payment-invoice-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
  padding-top: 2px;
}

.payment-invoice-actions .button {
  min-height: 38px;
}

.payment-invoice-actions .button.is-loading {
  cursor: wait;
  opacity: .72;
}

.payment-gateway-unavailable {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 12px;
  color: #9a5b00;
  background: #fff8e8;
  border: 1px solid #f7dfab;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.2;
}

.payment-gateway-unavailable svg {
  width: 15px;
  height: 15px;
}

.settings-payment-empty {
  padding: 28px;
}

.payment-management-page {
  display: grid;
  gap: 18px;
}

.payment-hero-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px 30px;
  background:
    linear-gradient(135deg, rgba(15, 99, 255, .09), rgba(16, 185, 129, .08) 58%, rgba(245, 158, 11, .08)),
    #ffffff;
  border-color: #d9e8fb;
  border-radius: 8px;
}

.payment-hero-panel h1 {
  margin: 4px 0 8px;
  color: #071b3c;
  font-size: 34px;
  line-height: 1.08;
  letter-spacing: 0;
}

.payment-hero-panel p {
  max-width: 720px;
  margin: 0;
  color: #52657f;
  font-size: 15px;
  line-height: 1.55;
}

.payment-hero-badge {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-width: 230px;
  padding: 14px;
  background: rgba(255, 255, 255, .86);
  border: 1px solid #dbe8f8;
  border-radius: 8px;
  box-shadow: 0 14px 28px rgba(15, 39, 78, .08);
}

.payment-hero-badge > i {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #0f63ff;
  background: #eef5ff;
  border-radius: 8px;
}

.payment-hero-badge svg {
  width: 20px;
  height: 20px;
}

.payment-hero-badge span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.payment-hero-badge strong {
  color: #071b3c;
  font-size: 15px;
}

.payment-hero-badge small {
  color: #61738d;
  font-size: 12px;
  font-weight: 800;
}

.payment-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.payment-metric-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 18px;
  background: #ffffff;
  border: 1px solid #dbe7f6;
  border-left: 4px solid #0f63ff;
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(15, 39, 78, .07);
}

.payment-metric-card span {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: #0f63ff;
  background: #eef5ff;
  border-radius: 8px;
}

.payment-metric-card svg {
  width: 19px;
  height: 19px;
}

.payment-metric-card small {
  color: #657890;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.payment-metric-card strong {
  overflow: hidden;
  color: #061936;
  font-size: 28px;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.payment-metric-card em {
  color: #64758d;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.payment-metric-card.is-revenue {
  border-left-color: #059669;
}

.payment-metric-card.is-revenue span {
  color: #047857;
  background: #e9fbf2;
}

.payment-metric-card.is-pending {
  border-left-color: #f59e0b;
}

.payment-metric-card.is-pending span {
  color: #b45309;
  background: #fff4d7;
}

.payment-metric-card.is-tax {
  border-left-color: #7c3aed;
}

.payment-metric-card.is-tax span {
  color: #6d28d9;
  background: #f3edff;
}

.payment-workgrid {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(330px, .78fr);
  gap: 18px;
  align-items: start;
}

.payment-bill-card,
.payment-live-preview,
.payment-invoice-manager {
  border-radius: 8px;
}

.payment-bill-card {
  display: grid;
  gap: 18px;
}

.payment-bill-form {
  gap: 16px;
}

.payment-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}

.payment-form-grid.is-service-grid {
  grid-template-columns: minmax(180px, 1.05fr) minmax(210px, 1.15fr) minmax(150px, .75fr) minmax(150px, .75fr);
}

.payment-bill-form textarea {
  min-height: 86px;
}

.payment-bill-form label {
  min-width: 0;
}

.payment-student-entry-grid {
  align-items: end;
}

.payment-student-suggestions {
  display: grid;
  gap: 8px;
  max-height: 270px;
  overflow-y: auto;
  padding: 8px;
  margin-top: -4px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  border: 1px solid #dbe7f6;
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(15, 35, 70, .12);
}

.payment-student-suggestions[hidden] {
  display: none;
}

.payment-student-suggestion,
.payment-student-suggestion-empty {
  min-width: 0;
  border-radius: 8px;
}

.payment-student-suggestion {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  color: #10223f;
  text-align: left;
  background: #ffffff;
  border: 1px solid #e1eaf7;
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.payment-student-suggestion:hover,
.payment-student-suggestion:focus-visible {
  border-color: #8bbcff;
  box-shadow: 0 12px 28px rgba(37, 99, 235, .12);
  transform: translateY(-1px);
  outline: none;
}

.payment-student-suggestion-avatar {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #ffffff;
  background: var(--student-color, #f59e0b);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.payment-student-suggestion strong,
.payment-student-suggestion small {
  display: block;
  min-width: 0;
}

.payment-student-suggestion strong {
  overflow: hidden;
  color: #10223f;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.payment-student-suggestion small {
  margin-top: 3px;
  overflow: hidden;
  color: #65758f;
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.payment-student-suggestion em {
  padding: 5px 9px;
  color: #0f63ff;
  background: #eef5ff;
  border-radius: 999px;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.payment-student-suggestion-empty {
  padding: 12px;
  color: #64758d;
  background: #f8fbff;
  border: 1px dashed #d6e4f5;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.payment-address-autocomplete {
  min-width: 0;
}

.payment-address-suggestions {
  display: grid;
  gap: 8px;
  max-height: 250px;
  overflow-y: auto;
  padding: 8px;
  margin-top: 8px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  border: 1px solid #dbe7f6;
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(15, 35, 70, .12);
}

.payment-address-suggestions[hidden] {
  display: none;
}

.payment-address-suggestion,
.payment-address-suggestion-empty {
  min-width: 0;
  border-radius: 8px;
}

.payment-address-suggestion {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  color: #10223f;
  text-align: left;
  background: #ffffff;
  border: 1px solid #e1eaf7;
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.payment-address-suggestion:hover,
.payment-address-suggestion:focus-visible {
  border-color: #8bbcff;
  box-shadow: 0 12px 28px rgba(37, 99, 235, .12);
  transform: translateY(-1px);
  outline: none;
}

.payment-address-suggestion i {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #0f63ff;
  background: #eef5ff;
  border-radius: 8px;
}

.payment-address-suggestion svg {
  width: 16px;
  height: 16px;
}

.payment-address-suggestion strong,
.payment-address-suggestion small {
  display: block;
  min-width: 0;
}

.payment-address-suggestion strong {
  overflow: hidden;
  color: #10223f;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.payment-address-suggestion small {
  margin-top: 3px;
  overflow: hidden;
  color: #65758f;
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.payment-address-suggestion em {
  padding: 5px 9px;
  color: #0f63ff;
  background: #eef5ff;
  border-radius: 999px;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.payment-address-suggestion-empty {
  padding: 12px;
  color: #64758d;
  background: #f8fbff;
  border: 1px dashed #d6e4f5;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.payment-bill-form input,
.payment-bill-form select,
.payment-bill-form textarea,
.payment-invoice-filter input,
.payment-invoice-filter select {
  border-radius: 8px;
}

.payment-bill-form [data-gst-bill-due-amount] {
  background: #fffaf0;
  border-color: #f4c36f;
}

.payment-bill-form [data-gst-bill-due-amount]:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, .15);
}

.payment-preview-stack {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.payment-live-preview {
  display: grid;
  gap: 16px;
}

.payment-live-preview .panel-title-row > i {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #0f63ff;
  background: #eef5ff;
  border-radius: 8px;
}

.payment-preview-paper {
  display: grid;
  gap: 12px;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(248, 251, 255, .92), rgba(255, 255, 255, .98)),
    #ffffff;
  border: 1px solid #dce8f7;
  border-radius: 8px;
}

.payment-preview-paper > div {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding-bottom: 10px;
  border-bottom: 1px solid #edf2f8;
}

.payment-preview-paper small,
.payment-preview-paper dt {
  color: #6a7d98;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.payment-preview-paper strong {
  overflow: hidden;
  color: #0d203d;
  font-size: 15px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.payment-preview-paper dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.payment-preview-paper dl div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  background: #f8fbff;
  border: 1px solid #e3ecf9;
  border-radius: 8px;
}

.payment-preview-paper dt,
.payment-preview-paper dd {
  margin: 0;
}

.payment-preview-paper dd {
  color: #071b3c;
  font-weight: 900;
}

.payment-preview-paper .is-total {
  color: #ffffff;
  background: #111827;
  border-color: #111827;
}

.payment-preview-paper .is-total dt,
.payment-preview-paper .is-total dd {
  color: #ffffff;
}

.payment-preview-paper .is-due {
  color: #8a4b08;
  background: linear-gradient(135deg, #fff7e6, #fffaf0);
  border-color: #f4c36f;
  box-shadow: inset 3px 0 0 #f59e0b;
}

.payment-preview-paper .is-due dt,
.payment-preview-paper .is-due dd {
  color: #8a4b08;
}

.payment-preview-paper .is-due.has-due {
  background: linear-gradient(135deg, #fff4d6, #fff8e8);
  border-color: #f59e0b;
}

.payment-invoice-manager {
  display: grid;
  gap: 18px;
}

.payment-invoice-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.payment-invoice-head h2 {
  margin: 4px 0 6px;
  color: #071b3c;
  font-size: 24px;
  line-height: 1.12;
}

.payment-invoice-head p {
  max-width: 560px;
  margin: 0;
}

.payment-invoice-filter {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 10px;
  min-width: min(100%, 420px);
}

.payment-invoice-filter label {
  margin: 0;
}

.payment-access-filter-row {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  width: max-content;
  max-width: 100%;
  padding: 4px;
  margin-top: -4px;
  background: #f3f7fe;
  border: 1px solid #dbe7f6;
  border-radius: 999px;
}

.payment-access-filter-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  color: #40536f;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  transition: color .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.payment-access-filter-chip:hover {
  color: #0f63ff;
  background: #ffffff;
  border-color: #d9e7f8;
}

.payment-access-filter-chip:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(15, 99, 255, .16);
}

.payment-access-filter-chip.active {
  color: #ffffff;
  background: #0f63ff;
  border-color: #0f63ff;
  box-shadow: 0 9px 20px rgba(15, 99, 255, .18);
}

.payment-invoice-count {
  color: #5c6f88;
  font-size: 13px;
  font-weight: 800;
}

.payment-invoice-count {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.payment-invoice-count span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  color: #0f63ff;
  background: #eef5ff;
  border: 1px solid #d8e7ff;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
}

.payment-table-wrap {
  overflow-x: auto;
  border: 1px solid #dbe7f6;
  border-radius: 8px;
}

.payment-invoice-table {
  width: 100%;
  min-width: 1320px;
  border-collapse: collapse;
}

.payment-invoice-table th,
.payment-invoice-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid #e4edf8;
  vertical-align: middle;
}

.payment-invoice-table th {
  color: #64758d;
  background: #f8fbff;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.payment-access-filter-heading {
  min-width: 250px;
}

.payment-sort-header {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: inherit;
  font: inherit;
  line-height: 1.2;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.payment-sort-header span {
  color: #7b8ca4;
  font-size: 12px;
  line-height: 1;
}

.payment-sort-header:hover,
.payment-sort-header:focus-visible,
.payment-sort-header.active {
  color: #0f63ff;
}

.payment-sort-header:focus-visible {
  outline: 2px solid rgba(15, 99, 255, .24);
  outline-offset: 3px;
  border-radius: 4px;
}

.payment-sort-header.active span {
  color: #0f63ff;
}

.payment-provider-filter-heading {
  min-width: 200px;
}

.payment-generated-filter-heading {
  min-width: 190px;
}

.payment-invoice-table tbody tr:hover {
  background: #fbfdff;
}

.payment-invoice-table tbody tr:last-child td {
  border-bottom: 0;
}

.payment-invoice-table td strong,
.payment-invoice-table td small {
  display: block;
  min-width: 0;
}

.payment-invoice-table td strong {
  color: #0b1f3c;
  font-size: 14px;
  line-height: 1.3;
}

.payment-invoice-table td small {
  margin-top: 3px;
  color: #65758f;
  font-size: 12px;
  font-weight: 700;
}

.payment-invoice-number-cell strong {
  font-weight: 950;
  letter-spacing: .01em;
}

.payment-mobile-cell strong {
  color: #27415f;
  font-size: 13px;
  font-weight: 850;
}

.payment-access-cell strong,
.payment-paid-cell small {
  white-space: normal;
}

.payment-access-cell {
  max-width: 260px;
}

.payment-provider-cell {
  min-width: 180px;
}

.payment-provider-cell small {
  color: #71819a;
}

.payment-access-type-pill {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  margin-top: 3px;
  padding: 4px 8px;
  color: #50627a;
  background: #f3f6fb;
  border: 1px solid #dbe7f6;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.payment-access-type-pill.is-course_purchase {
  color: #075985;
  background: #eaf7ff;
  border-color: #bae6fd;
}

.payment-access-type-pill.is-emi_access {
  color: #7c3aed;
  background: #f2ecff;
  border-color: #ddd0ff;
}

.payment-access-type-pill.is-manual_bill {
  color: #8a4b08;
  background: #fff7e6;
  border-color: #f4c36f;
}

.payment-paid-cell {
  min-width: 165px;
}

.payment-paid-cell strong {
  color: #061936;
  font-size: 15px;
}

.payment-paid-cell small {
  max-width: 210px;
  color: #52657f;
  line-height: 1.35;
}

.payment-paid-cell em {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  margin-top: 7px;
  padding: 4px 8px;
  color: #92400e;
  background: #fff7e6;
  border: 1px solid #f4c36f;
  border-radius: 999px;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  line-height: 1.1;
}

.payment-generated-cell strong {
  max-width: 180px;
  margin-top: 4px;
}

.payment-generated-cell small {
  max-width: 180px;
}

.payment-field-label {
  display: block;
  color: #64758d;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}

.payment-actions-cell {
  width: 280px;
}

.payment-due-amount {
  color: #047857 !important;
}

.payment-due-amount.is-pending {
  color: #b45309 !important;
}

.payment-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.payment-row-actions form {
  margin: 0;
}

.payment-row-actions .button {
  min-height: 34px;
}

.payment-invoice-pagination nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.payment-invoice-pagination > div {
  flex-wrap: wrap;
}

.payment-rows-form {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.payment-rows-form label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}

.payment-rows-form select {
  min-width: 78px;
  min-height: 38px;
  border-radius: 8px;
}

.payment-rows-form .button {
  min-height: 38px;
}

.payment-empty-state {
  padding: 38px;
  border: 1px dashed #cbdcf2;
  border-radius: 8px;
}

body.payment-bill-modal-open {
  overflow: hidden;
}

.payment-generate-bill-button {
  justify-self: end;
  min-height: 48px;
  padding: 0 18px;
  white-space: nowrap;
  box-shadow: 0 16px 34px rgba(15, 99, 255, .2);
}

.payment-bill-modal[hidden] {
  display: none;
}

.payment-bill-modal {
  position: fixed;
  inset: 0;
  z-index: 1210;
  display: grid;
  place-items: center;
  padding: 24px;
}

.payment-bill-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 24% 18%, rgba(15, 99, 255, .22), transparent 34%),
    rgba(8, 17, 34, .64);
  border: 0;
  cursor: pointer;
}

.payment-bill-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 18px;
  width: min(100%, 1180px);
  max-height: min(92vh, 860px);
  overflow-y: auto;
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(248, 251, 255, .98), #ffffff 42%),
    #ffffff;
  border: 1px solid #d9e7f8;
  border-radius: 8px;
  box-shadow: 0 34px 90px rgba(8, 17, 34, .34);
}

.payment-bill-dialog::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, #0f63ff, #12b981 58%, #f59e0b);
  border-radius: 8px 8px 0 0;
}

.payment-bill-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 8px 2px 18px;
  border-bottom: 1px solid #e3edf9;
}

.payment-bill-dialog-title {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
  min-width: 0;
}

.payment-bill-dialog-title > span {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: #0f63ff;
  background: linear-gradient(135deg, #eef5ff, #e7f8ef);
  border: 1px solid #dbe8f8;
  border-radius: 8px;
}

.payment-bill-dialog-title svg {
  width: 22px;
  height: 22px;
}

.payment-bill-dialog h2,
.payment-bill-dialog h3 {
  margin: 4px 0 0;
  color: #071b3c;
  line-height: 1.16;
}

.payment-bill-dialog h2 {
  font-size: 24px;
}

.payment-bill-dialog h3 {
  font-size: 18px;
}

.payment-bill-dialog p {
  max-width: 620px;
  margin: 6px 0 0;
}

.payment-bill-dialog-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.payment-bill-dialog-body {
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
  gap: 16px;
}

.payment-bill-modal-card,
.payment-bill-modal-preview {
  min-width: 0;
  padding: 18px;
  background: rgba(255, 255, 255, .96);
  border: 1px solid #dce8f7;
  border-radius: 8px;
  box-shadow: 0 18px 38px rgba(15, 39, 78, .07);
}

.payment-bill-modal-preview {
  position: sticky;
  top: 0;
  align-self: start;
}

.payment-due-modal[hidden] {
  display: none;
}

.payment-due-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 22px;
}

.payment-due-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .52);
  border: 0;
  cursor: pointer;
}

.payment-due-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 18px;
  width: min(100%, 560px);
  max-height: min(92vh, 720px);
  overflow-y: auto;
  padding: 22px;
  background: #ffffff;
  border: 1px solid #dbe7f6;
  border-radius: 8px;
  box-shadow: 0 28px 80px rgba(15, 23, 42, .22);
}

.payment-due-dialog header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e4edf8;
}

.payment-due-dialog h2 {
  margin: 4px 0 6px;
  color: #071b3c;
  font-size: 24px;
  line-height: 1.15;
}

.payment-due-dialog p {
  max-width: 430px;
  margin: 0;
}

.payment-due-form {
  display: grid;
  gap: 16px;
}

.payment-due-context {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.payment-due-context div {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 12px;
  background: #f8fbff;
  border: 1px solid #e1ebf8;
  border-radius: 8px;
}

.payment-due-context small,
.payment-due-form label small {
  color: #64758d;
  font-size: 11px;
  font-weight: 850;
}

.payment-due-context small {
  text-transform: uppercase;
}

.payment-due-context strong {
  overflow: hidden;
  color: #0b1f3c;
  font-size: 14px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.payment-due-form input {
  border-radius: 8px;
}

.payment-due-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.offer-letter-page {
  display: grid;
  gap: 18px;
}

.offer-letter-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px 30px;
  background:
    linear-gradient(135deg, rgba(15, 99, 255, .08), rgba(245, 158, 11, .08) 54%, rgba(16, 185, 129, .08)),
    #ffffff;
  border-color: #d9e8fb;
  border-radius: 8px;
}

.offer-letter-hero h1 {
  margin: 4px 0 8px;
  color: #071b3c;
  font-size: 34px;
  line-height: 1.08;
  letter-spacing: 0;
}

.offer-letter-hero p {
  max-width: 760px;
  margin: 0;
  color: #52657f;
  font-size: 15px;
  line-height: 1.55;
}

.offer-letter-hero-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-width: 230px;
  padding: 14px;
  background: rgba(255, 255, 255, .9);
  border: 1px solid #dbe8f8;
  border-radius: 8px;
  box-shadow: 0 14px 28px rgba(15, 39, 78, .08);
}

.offer-letter-hero-card > i,
.offer-letter-metrics article span,
.offer-letter-history-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #0f63ff;
  background: #eef5ff;
  border-radius: 8px;
}

.offer-letter-hero-card strong,
.offer-letter-hero-card small {
  display: block;
}

.offer-letter-hero-card strong {
  color: #071b3c;
  font-size: 15px;
}

.offer-letter-hero-card small {
  color: #61738d;
  font-size: 12px;
  font-weight: 800;
}

.offer-letter-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.offer-letter-metrics article {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 18px;
  background: #ffffff;
  border: 1px solid #dbe7f6;
  border-left: 4px solid #0f63ff;
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(15, 39, 78, .07);
}

.offer-letter-metrics article:nth-child(2) {
  border-left-color: #059669;
}

.offer-letter-metrics article:nth-child(2) span {
  color: #047857;
  background: #e9fbf2;
}

.offer-letter-metrics article:nth-child(3) {
  border-left-color: #d97706;
}

.offer-letter-metrics article:nth-child(3) span {
  color: #b45309;
  background: #fff4d7;
}

.offer-letter-metrics small,
.offer-letter-history-row small,
.offer-letter-template-list small {
  color: #657890;
  font-size: 12px;
  font-weight: 800;
}

.offer-letter-metrics > article > small {
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.offer-letter-metrics strong {
  color: #061936;
  font-size: 28px;
  line-height: 1.05;
}

.offer-letter-metrics em {
  color: #64758d;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.offer-letter-workgrid,
.offer-letter-template-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(340px, .84fr);
  gap: 18px;
  align-items: start;
}

.offer-letter-builder-card,
.offer-letter-preview-card,
.offer-letter-template-card,
.offer-letter-template-list-card,
.hr-document-company-card,
.offer-letter-history-card {
  border-radius: 8px;
}

.offer-letter-builder-card,
.offer-letter-template-card,
.hr-document-company-card {
  display: grid;
  gap: 18px;
}

.offer-letter-form {
  gap: 16px;
}

.offer-letter-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}

.offer-letter-form-grid-wide {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hr-document-company-grid {
  grid-template-columns: minmax(220px, .8fr) repeat(3, minmax(180px, 1fr));
}

.hr-document-company-address {
  grid-column: span 2;
}

.offer-letter-form textarea,
.offer-letter-template-card textarea {
  min-height: 110px;
}

.offer-letter-form-grid-wide textarea {
  min-height: 94px;
}

.hr-document-policy-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  background: #f8fbff;
  border: 1px solid #dbe7f6;
  border-radius: 8px;
}

.hr-document-policy-panel h3 {
  margin: 3px 0 0;
  color: #071b3c;
  font-size: 16px;
  line-height: 1.25;
  letter-spacing: 0;
}

.hr-document-policy-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.hr-document-policy-grid fieldset {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 10px;
  border: 1px solid #dbe7f6;
  border-radius: 8px;
  background: #ffffff;
}

.hr-document-policy-grid legend {
  padding: 0 6px;
  color: #52657f;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.hr-document-policy-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 8px 9px;
  color: #24334d;
  background: #f4f8fd;
  border: 1px solid #dce8f7;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.25;
}

.hr-document-policy-chip input {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  accent-color: #0f63ff;
}

.offer-letter-template-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 12px;
  color: #24334d;
  background: #f8fbff;
  border: 1px solid #dbe7f6;
  border-radius: 8px;
  font-weight: 800;
}

.offer-letter-template-toggle input {
  width: 18px;
  height: 18px;
  accent-color: #0f63ff;
}

.offer-letter-preview-card {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 14px;
  align-self: start;
}

.offer-letter-preview-toolbar {
  align-items: flex-start;
  gap: 14px;
}

.offer-letter-page-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.offer-letter-page-button {
  min-height: 34px;
  padding: 0 10px;
  font-size: 12px;
}

.offer-letter-page-button:disabled {
  cursor: not-allowed;
  opacity: .48;
}

.offer-letter-page-count {
  min-height: 34px;
}

.offer-letter-page-count b {
  color: #0f63ff;
}

.offer-letter-preview-stage {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 10px;
  background: #f2f6fb;
  border: 1px solid #dce7f4;
  border-radius: 8px;
}

.offer-letter-paper {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow: hidden;
  width: min(100%, 620px);
  min-height: 876px;
  aspect-ratio: 210 / 297;
  padding: 34px 34px 28px;
  color: #13233b;
  background: #ffffff;
  border: 1px solid #dbe5f0;
  border-radius: 6px;
  box-shadow: 0 24px 52px rgba(15, 39, 78, .12);
}

.offer-letter-paper[hidden] {
  display: none !important;
}

.offer-letter-paper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 7px;
  background: #111d33;
}

.offer-letter-paper::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  width: 172px;
  height: 7px;
  background: #315f9c;
  pointer-events: none;
}

.offer-letter-paper > * {
  position: relative;
  z-index: 1;
}

.offer-letter-corporate-head {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, .78fr);
  gap: 22px;
  align-items: center;
  min-height: 118px;
  padding: 8px 0 20px;
  background: #ffffff;
  border-bottom: 1px solid #dbe5f0;
}

.offer-letter-brand-rail {
  position: absolute;
  top: -30px;
  left: 172px;
  width: 42px;
  height: 7px;
  background: #c9a76a;
}

.offer-letter-brand-lockup {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-width: 0;
}

.offer-letter-logo-mark {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  color: #ffffff;
  background: #111d33;
  border: 1px solid #203150;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 950;
  line-height: 1;
}

.offer-letter-logo-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 6px;
}

.offer-letter-logo-mark.compact {
  width: 42px;
  height: 42px;
  font-size: 14px;
}

.offer-letter-brand-lockup b,
.offer-letter-brand-lockup small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.offer-letter-brand-lockup b {
  color: #111d33;
  font-size: 15px;
  font-weight: 950;
  line-height: 1.25;
}

.offer-letter-brand-lockup small {
  margin-top: 5px;
  color: #687994;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.offer-letter-contact-suite {
  display: grid;
  gap: 7px;
  padding-left: 16px;
  border-left: 1px solid #dbe5f0;
}

.offer-letter-contact-suite span {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 9px;
  align-items: baseline;
  min-width: 0;
}

.offer-letter-contact-suite b {
  color: #667892;
  font-size: 8px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.offer-letter-contact-suite em {
  min-width: 0;
  color: #10213b;
  font-size: 10px;
  font-style: normal;
  font-weight: 850;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.offer-letter-document-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(178px, .44fr);
  gap: 18px;
  align-items: end;
  padding-top: 2px;
}

.offer-letter-document-intro span,
.offer-letter-page-title span {
  display: block;
  margin-bottom: 7px;
  color: #6b7d95;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.offer-letter-document-intro h3,
.offer-letter-page-title h3 {
  margin: 0;
  color: #111d33;
  font-size: 31px;
  font-weight: 950;
  line-height: 1.1;
  letter-spacing: 0;
}

.offer-letter-document-intro p {
  margin: 8px 0 0;
  color: #53647c;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.45;
}

.offer-letter-issue-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
}

.offer-letter-issue-meta div {
  display: grid;
  gap: 3px;
  padding: 0 0 8px;
  border-bottom: 1px solid #d7e1ee;
}

.offer-letter-recipient-line {
  display: grid;
  gap: 5px;
  padding: 0 0 0 16px;
  border-left: 3px solid #315f9c;
}

.offer-letter-recipient-line > span {
  color: #6b7d95;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.offer-letter-recipient-line strong {
  color: #111d33;
  font-size: 18px;
  font-weight: 950;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.offer-letter-recipient-line small {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #43536b;
  font-size: 10px;
  font-weight: 800;
}

.offer-letter-letter-section {
  display: grid;
  gap: 10px;
}

.offer-letter-preview-body,
.offer-letter-preview-copy {
  margin: 0;
  color: #27364d;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.75;
  white-space: pre-line;
}

.offer-letter-summary-table {
  display: grid;
  gap: 9px;
  padding-top: 13px;
  border-top: 1px solid #dbe5f0;
}

.offer-letter-summary-table h4 {
  margin: 0;
  color: #111d33;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.offer-letter-summary-table dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 22px;
  margin: 0;
}

.offer-letter-summary-table dl div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  min-width: 0;
  padding: 8px 0;
  border-bottom: 1px solid #e4ebf4;
}

.offer-letter-summary-table-secondary dl {
  grid-template-columns: 1fr;
}

.offer-letter-summary-table-secondary dl div {
  grid-template-columns: 118px minmax(0, 1fr);
}

.offer-letter-paper dt {
  color: #6b7d95;
  font-size: 8.5px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.offer-letter-paper dd {
  margin: 0;
  color: #10213b;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.offer-letter-page-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 12px;
  color: #728198;
  border-top: 1px solid #dbe5f0;
  font-size: 8.5px;
  font-weight: 850;
  text-transform: uppercase;
}

.offer-letter-continuation-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
  padding-bottom: 17px;
  border-bottom: 1px solid #dbe5f0;
}

.offer-letter-continuation-head > div {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.offer-letter-continuation-head b,
.offer-letter-continuation-head small {
  display: block;
  overflow-wrap: anywhere;
}

.offer-letter-continuation-head b {
  color: #111d33;
  font-size: 13px;
  font-weight: 950;
}

.offer-letter-continuation-head small,
.offer-letter-continuation-head p {
  margin: 0;
  color: #6b7d95;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.offer-letter-page-title {
  display: grid;
  gap: 4px;
}

.offer-letter-acceptance-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(160px, .46fr);
  gap: 20px;
  align-items: end;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid #dbe5f0;
}

.offer-letter-acceptance-block p {
  margin: 0;
  color: #38475e;
  font-size: 10px;
  font-weight: 650;
  line-height: 1.6;
}

.offer-letter-acceptance-block div {
  display: grid;
  gap: 8px;
  justify-items: end;
  text-align: right;
}

.offer-letter-acceptance-block span {
  color: #6b7d95;
  font-size: 8px;
  font-weight: 850;
}

.offer-letter-acceptance-block strong {
  min-width: 126px;
  padding-top: 8px;
  color: #111d33;
  border-top: 1px solid #b9c7d9;
  font-size: 9px;
  font-weight: 950;
}

.offer-letter-signature-footer {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(150px, .74fr) auto;
  gap: 14px;
  align-items: end;
  padding: 17px 0 0;
  color: #13233b;
  border-top: 1px solid #cfd9e6;
  font-size: 10px;
  font-weight: 800;
}

.offer-letter-signature-footer::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  width: 128px;
  height: 3px;
  background: #315f9c;
}

.offer-letter-footer-company {
  display: grid;
  min-width: 0;
}

.offer-letter-footer-company b,
.offer-letter-footer-company small,
.offer-letter-footer-meta span {
  overflow-wrap: anywhere;
}

.offer-letter-footer-company b {
  display: block;
  color: #111d33;
  font-size: 10px;
  font-weight: 950;
  line-height: 1.25;
}

.offer-letter-footer-company small {
  display: block;
  margin-top: 4px;
  color: #6b7d95;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.35;
}

.offer-letter-footer-meta {
  display: grid;
  gap: 4px;
  padding-left: 12px;
  border-left: 1px solid #dce7f5;
}

.offer-letter-footer-meta span {
  color: #10213b;
  font-size: 9px;
  font-weight: 850;
  line-height: 1.35;
}

.offer-letter-footer-page {
  color: #6b7d95;
  font-size: 8.5px;
  font-weight: 900;
  text-align: right;
  text-transform: uppercase;
}

.offer-letter-template-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.offer-letter-template-list a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  align-items: center;
  gap: 10px;
  padding: 12px;
  color: inherit;
  background: #f8fbff;
  border: 1px solid #e4edf8;
  border-radius: 8px;
  text-decoration: none;
}

.offer-letter-template-list a:hover,
.offer-letter-template-list a.active {
  border-color: #a9c8ff;
  background: #ffffff;
}

.offer-letter-template-list strong {
  display: block;
  overflow: hidden;
  color: #071b3c;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.offer-letter-template-list i {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #0f63ff;
  background: #eef5ff;
  border-radius: 8px;
}

.offer-letter-history-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.offer-letter-history-row {
  display: grid;
  grid-template-columns: 42px minmax(180px, .8fr) minmax(220px, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 13px;
  background: #f8fbff;
  border: 1px solid #e4edf8;
  border-radius: 8px;
}

.offer-letter-history-row strong,
.offer-letter-history-row b {
  display: block;
  overflow: hidden;
  color: #071b3c;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.offer-letter-history-row b {
  font-size: 13px;
}

.offer-letter-history-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.offer-letter-empty {
  padding: 30px;
}

.settings-moderation-review {
  margin-top: 0;
  padding-top: 24px;
  border-top: 0;
}

@media (max-width: 1120px) {
  .settings-detail-shell,
  .settings-permission-layout,
  .settings-section-grid,
  .settings-system-grid,
  .settings-payment-summary,
  .offer-letter-workgrid,
  .offer-letter-template-grid,
  .offer-letter-metrics,
  .hr-document-policy-grid,
  .hr-document-company-grid,
  .payment-workgrid,
  .payment-metric-grid,
  .payment-form-grid,
  .payment-form-grid.is-service-grid {
    grid-template-columns: 1fr;
  }

  .payment-hero-panel,
  .offer-letter-hero,
  .payment-invoice-head {
    display: grid;
  }

  .payment-hero-badge,
  .payment-invoice-filter {
    min-width: 0;
    width: 100%;
  }

  .payment-bill-dialog-head {
    display: grid;
  }

  .payment-bill-dialog-actions {
    justify-content: space-between;
    width: 100%;
  }

  .payment-bill-modal-preview {
    position: static;
  }

  .settings-detail-nav {
    position: static;
  }

  .offer-letter-preview-card {
    position: static;
  }

  .settings-detail-nav nav {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  }

  .settings-detail-nav a:hover,
  .settings-detail-nav a:focus-visible {
    transform: translateY(-1px);
  }

  .settings-section-head {
    align-items: flex-start;
  }
}

@media (max-width: 680px) {
  .certificate-verify-card {
    padding: 20px;
  }

  .certificate-verify-head,
  .certificate-verify-form,
  .certificate-verify-result,
  .certificate-verify-details {
    grid-template-columns: 1fr;
  }

  .settings-moderation-summary,
  .settings-moderation-grid,
  .settings-alert-stat-grid,
  .offer-letter-form-grid,
  .hr-document-policy-grid,
  .hr-document-company-grid,
  .offer-letter-paper dl,
  .moderation-violation-card dl,
  .payment-invoice-filter,
  .payment-invoice-card dl {
    grid-template-columns: 1fr;
  }

  .payment-hero-panel,
  .offer-letter-hero {
    padding: 22px;
  }

  .payment-hero-panel h1,
  .offer-letter-hero h1 {
    font-size: 28px;
  }

  .hr-document-company-address {
    grid-column: auto;
  }

  .payment-bill-modal {
    padding: 10px;
  }

  .payment-bill-dialog {
    max-height: 96vh;
    padding: 16px;
  }

  .payment-bill-dialog-title {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .payment-bill-dialog-title > span {
    width: 40px;
    height: 40px;
  }

  .payment-bill-dialog-actions {
    display: grid;
    align-items: stretch;
  }

  .payment-access-filter-row {
    width: 100%;
  }

  .payment-access-filter-chip {
    justify-content: center;
    flex: 1 1 auto;
  }

  .payment-generate-bill-button {
    justify-self: stretch;
    width: 100%;
  }

  .payment-preview-paper strong,
  .payment-metric-card strong {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .offer-letter-history-row {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .offer-letter-history-row > span:nth-child(3),
  .offer-letter-history-actions {
    grid-column: 1 / -1;
  }

  .offer-letter-history-actions {
    justify-content: flex-start;
  }

  .offer-letter-paper {
    padding: 24px 18px 22px;
  }

  .offer-letter-preview-toolbar,
  .offer-letter-corporate-head,
  .offer-letter-continuation-head,
  .offer-letter-document-intro,
  .offer-letter-acceptance-block,
  .offer-letter-signature-footer {
    grid-template-columns: 1fr;
    gap: 12px;
    min-height: auto;
  }

  .offer-letter-page-controls {
    justify-content: flex-start;
  }

  .offer-letter-brand-rail {
    left: 154px;
  }

  .offer-letter-contact-suite {
    padding-left: 0;
    padding-top: 12px;
    border-top: 1px solid #dbe5f0;
    border-left: 0;
  }

  .offer-letter-contact-suite span {
    grid-template-columns: 70px minmax(0, 1fr);
  }

  .offer-letter-issue-meta {
    width: 100%;
  }

  .offer-letter-summary-table dl div,
  .offer-letter-summary-table-secondary dl div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .offer-letter-preview-body,
  .offer-letter-preview-copy {
    font-size: 10px;
  }

  .offer-letter-footer-meta {
    padding-left: 0;
    padding-top: 10px;
    border-top: 1px solid #dce7f5;
    border-left: 0;
  }

  .offer-letter-acceptance-block div,
  .offer-letter-footer-page {
    justify-items: start;
    text-align: left;
  }

  .payment-due-dialog {
    padding: 18px;
  }

  .payment-due-context {
    grid-template-columns: 1fr;
  }

  .payment-due-actions {
    display: grid;
  }

  .moderation-violation-card header,
  .moderation-violation-card footer,
  .payment-invoice-card header {
    display: grid;
    grid-template-columns: 1fr;
  }

  .payment-invoice-card header .badge {
    justify-self: start;
  }

  .payment-invoice-actions {
    justify-content: flex-start;
  }

  .settings-page-intro {
    display: grid;
  }

  .settings-page-actions {
    justify-content: flex-start;
  }

  .settings-portal-head {
    display: grid;
    gap: 10px;
  }

  .settings-menu-grid {
    grid-template-columns: 1fr;
  }

  .settings-menu-card {
    grid-template-areas: "icon body arrow";
    grid-template-columns: 44px minmax(0, 1fr) 18px;
    min-height: 112px;
    padding: 14px;
  }

  .settings-menu-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }

  .settings-menu-card b {
    display: none;
  }

  .settings-menu-body strong {
    font-size: 17px;
  }

  .settings-detail-nav {
    padding: 12px;
  }

  .settings-detail-nav nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .settings-detail-nav a {
    min-width: 178px;
  }

  .settings-category-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 8px;
  }

  .settings-category-tabs a {
    min-width: 154px;
    padding: 10px 12px;
  }

  .settings-section-head {
    display: grid;
    gap: 8px;
  }

  .settings-section-head h2 {
    font-size: 21px;
  }

  .settings-section-head p {
    max-width: none;
    text-align: left;
  }

  .settings-plan-strip {
    grid-template-columns: 1fr;
  }

  .settings-permission-grid,
  .settings-permission-stats {
    grid-template-columns: 1fr;
  }

  .settings-system-card {
    padding: 14px;
  }
}

/* Premium public LMS homepage */
.premium-home {
  --premium-navy: #050914;
  --premium-navy-2: #070d1d;
  --premium-navy-3: #0a1226;
  --premium-navy-4: #13204a;
  --premium-text: #0a1226;
  --premium-muted: #64748b;
  --premium-line: #e2e8f0;
  --premium-soft: #f8fafc;
  --premium-blue: #3b82f6;
  --premium-cyan: #22d3ee;
  --premium-emerald: #34d399;
  --premium-gold: #d4af37;
  --premium-shadow: 0 30px 60px -20px rgba(10, 18, 38, .35), 0 10px 20px -10px rgba(10, 18, 38, .25);
  margin: 0;
  overflow-x: hidden;
  background: #ffffff;
  color: var(--premium-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.premium-home *,
.premium-home *::before,
.premium-home *::after {
  letter-spacing: 0;
}

.premium-home h1,
.premium-home h2,
.premium-home h3,
.premium-home h4,
.premium-brand-copy strong,
.premium-stats-grid strong {
  font-family: Sora, Inter, ui-sans-serif, system-ui, sans-serif;
}

.premium-skip {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 9px 12px;
  color: #ffffff;
  background: var(--premium-blue);
  border-radius: 8px;
  transform: translateY(-140%);
  transition: transform .18s ease;
}

.premium-skip:focus {
  transform: translateY(0);
}

.premium-container {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
}

.premium-bg-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(148, 197, 253, .07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 197, 253, .07) 1px, transparent 1px);
  background-size: 44px 44px;
  animation: premiumGridDrift 24s linear infinite;
}

@keyframes premiumGridDrift {
  from {
    background-position: 0 0, 0 0;
  }

  to {
    background-position: 44px 44px, 44px 44px;
  }
}

@keyframes premiumFadeUp {
  from {
    opacity: 0;
    transform: translate3d(0, 22px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes premiumFloatSlow {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }

  50% {
    transform: translate3d(0, -16px, 0) rotate(1deg);
  }
}

@keyframes premiumFloatSlower {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(0, -10px, 0);
  }
}

@keyframes premiumPulseRing {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 211, 238, .42);
  }

  100% {
    box-shadow: 0 0 0 14px rgba(34, 211, 238, 0);
  }
}

@keyframes premiumGlowMove {
  0%,
  100% {
    opacity: .62;
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    opacity: .9;
    transform: translate3d(26px, -18px, 0) scale(1.08);
  }
}

@keyframes premiumBeamSweep {
  from {
    transform: translateX(-120%) skewX(-18deg);
  }

  to {
    transform: translateX(160%) skewX(-18deg);
  }
}

@keyframes premiumMetricFill {
  from {
    width: 0;
  }

  to {
    width: var(--metric, 70%);
  }
}

@keyframes premiumGraphRise {
  from {
    height: 18%;
    opacity: .45;
  }

  to {
    height: var(--bar, 70%);
    opacity: 1;
  }
}

@keyframes premiumStatusSweep {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(120%);
  }
}

.premium-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  padding-top: 16px;
  transition: padding .3s ease;
}

.premium-header.is-scrolled {
  padding-top: 10px;
}

.premium-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 16px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, .86);
  border: 1px solid rgba(226, 232, 240, .82);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(10, 18, 38, .10);
  backdrop-filter: blur(18px);
}

.premium-brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 11px;
  color: var(--premium-text);
}

.premium-brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  overflow: hidden;
  background: #020617;
  border: 1px solid rgba(2, 6, 23, .12);
  border-radius: 8px;
  box-shadow: 0 12px 26px rgba(2, 6, 23, .16);
}

.premium-brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.72);
  transform-origin: center;
}

.premium-brand-copy {
  min-width: 0;
}

.premium-brand-copy strong,
.premium-brand-copy small {
  display: block;
}

.premium-brand-copy strong {
  overflow: hidden;
  color: var(--premium-text);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.06;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.premium-brand-copy small {
  margin-top: 3px;
  color: #718096;
  font-size: 11px;
  font-weight: 800;
}

.premium-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

.premium-menu a {
  position: relative;
  padding: 10px 13px;
  color: rgba(10, 18, 38, .78);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 800;
  transition: color .18s ease;
}

.premium-menu a::after {
  content: "";
  position: absolute;
  right: 13px;
  bottom: 5px;
  left: 13px;
  height: 2px;
  background: linear-gradient(90deg, var(--premium-blue), var(--premium-cyan));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}

.premium-menu a:hover,
.premium-menu a:focus-visible {
  color: var(--premium-text);
}

.premium-menu a:hover::after,
.premium-menu a:focus-visible::after {
  transform: scaleX(1);
}

.premium-actions {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 9px;
}

.premium-icon-btn {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  color: var(--premium-text);
  background: #ffffff;
  border: 1px solid var(--premium-line);
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(10, 18, 38, .06);
}

.premium-icon-btn svg {
  width: 18px;
  height: 18px;
}

.premium-login {
  padding: 10px 6px;
  color: var(--premium-text);
  font-size: 14px;
  font-weight: 800;
}

.premium-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  gap: 8px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}

.premium-cta:hover,
.premium-cta:focus-visible {
  transform: translateY(-1px);
}

.premium-cta svg {
  width: 17px;
  height: 17px;
}

.premium-cta-dark {
  color: #ffffff;
  background: var(--premium-navy);
  box-shadow: 0 12px 24px rgba(10, 18, 38, .24);
}

.premium-cta-dark:hover,
.premium-cta-dark:focus-visible,
.premium-course-button:hover,
.premium-course-button:focus-visible {
  color: var(--premium-navy);
  background: linear-gradient(90deg, var(--premium-blue), var(--premium-cyan));
}

.premium-cta-light {
  color: var(--premium-navy);
  background: #ffffff;
  box-shadow: 0 16px 38px rgba(255, 255, 255, .12);
}

.premium-cta-ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .16);
}

.premium-gradient {
  color: var(--premium-navy);
  background: linear-gradient(90deg, var(--premium-blue), var(--premium-cyan));
}

.premium-menu-btn {
  display: none;
}

.premium-search-panel {
  margin-top: 10px;
}

.premium-search-box {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, .96);
  border: 1px solid var(--premium-line);
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(10, 18, 38, .18);
  backdrop-filter: blur(18px);
}

.premium-search-box input {
  width: 100%;
  min-width: 0;
  height: 42px;
  color: var(--premium-text);
  background: transparent;
  border: 0;
  outline: 0;
}

.premium-search-box > i,
.premium-search-box > svg {
  width: 22px;
  min-width: 22px;
  pointer-events: none;
}

.premium-search-box button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--premium-navy);
  background: linear-gradient(90deg, var(--premium-blue), var(--premium-cyan));
  border: 0;
  border-radius: 8px;
}

.premium-mobile-menu {
  width: min(420px, calc(100% - 32px));
  margin: 10px auto 0;
  padding: 10px;
  background: rgba(255, 255, 255, .96);
  border: 1px solid var(--premium-line);
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(10, 18, 38, .18);
  backdrop-filter: blur(18px);
}

.premium-mobile-menu a {
  display: block;
  padding: 12px 14px;
  color: var(--premium-text);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 800;
}

.premium-mobile-menu a:hover,
.premium-mobile-menu a:focus-visible {
  background: var(--premium-soft);
}

.premium-hero {
  position: relative;
  min-height: 830px;
  overflow: hidden;
  padding: 148px 0 92px;
  color: #ffffff;
  background:
    radial-gradient(circle at 14% 22%, rgba(34, 211, 238, .18), transparent 28%),
    radial-gradient(circle at 84% 30%, rgba(52, 211, 153, .13), transparent 26%),
    radial-gradient(circle at 58% 86%, rgba(212, 175, 55, .11), transparent 28%),
    linear-gradient(135deg, #050914 0%, #07101f 48%, #030712 100%);
}

.premium-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, .045) 44%, transparent 62%),
    radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, .08), transparent 42%);
  mix-blend-mode: screen;
}

.premium-hero::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 180px;
  pointer-events: none;
  background: linear-gradient(to top, var(--premium-navy), transparent);
}

.premium-hero-glow {
  position: absolute;
  width: 360px;
  height: 360px;
  pointer-events: none;
  border-radius: 999px;
  filter: blur(80px);
  opacity: .74;
  animation: premiumGlowMove 11s ease-in-out infinite;
}

.premium-hero-glow-left {
  top: 230px;
  left: -120px;
  background: rgba(34, 211, 238, .24);
}

.premium-hero-glow-right {
  right: -90px;
  bottom: 120px;
  background: rgba(52, 211, 153, .18);
  animation-delay: -4s;
}

.premium-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 48px;
}

.premium-hero-copy {
  min-width: 0;
}

.premium-pill,
.premium-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--premium-cyan);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.premium-pill {
  padding: 8px 12px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
}

.premium-pill span {
  width: 8px;
  height: 8px;
  background: var(--premium-cyan);
  border-radius: 999px;
  box-shadow: 0 0 0 6px rgba(34, 211, 238, .15);
  animation: premiumPulseRing 2.4s cubic-bezier(.4, 0, .6, 1) infinite;
}

.premium-hero h1,
.premium-section h2,
.premium-final-card h2 {
  margin: 0;
  font-weight: 800;
  line-height: 1.08;
}

.premium-hero h1 {
  max-width: 720px;
  margin-top: 24px;
  color: #ffffff;
  font-size: clamp(44px, 6vw, 72px);
}

.premium-hero h1 span {
  color: transparent;
  background: linear-gradient(92deg, #60a5fa, #22d3ee 45%, var(--premium-gold));
  -webkit-background-clip: text;
  background-clip: text;
}

.premium-hero p {
  max-width: 640px;
  margin: 24px 0 0;
  color: rgba(226, 232, 240, .90);
  font-size: 18px;
  line-height: 1.7;
}

.premium-hero-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  width: min(640px, 100%);
  margin-top: 32px;
  padding: 9px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  backdrop-filter: blur(18px);
}

.premium-hero-search div {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 0 12px;
}

.premium-hero-search input {
  min-width: 0;
  height: 46px;
  color: #ffffff;
  background: transparent;
  border: 0;
  outline: 0;
}

.premium-hero-search input::placeholder {
  color: #94a3b8;
}

.premium-hero-search button {
  min-height: 46px;
  padding: 0 18px;
  color: var(--premium-navy);
  background: linear-gradient(90deg, var(--premium-blue), var(--premium-cyan));
  border: 0;
  border-radius: 8px;
  font-weight: 900;
}

.premium-hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.premium-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 560px;
  margin-top: 48px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, .12);
}

.premium-hero-stats div {
  display: grid;
  gap: 5px;
}

.premium-hero-stats svg {
  width: 18px;
  height: 18px;
  color: var(--premium-cyan);
}

.premium-hero-stats strong {
  color: #ffffff;
  font-size: 28px;
  line-height: 1;
}

.premium-hero-stats span {
  color: #94a3b8;
  font-size: 13px;
  font-weight: 800;
}

.premium-hero-visual {
  min-width: 0;
  perspective: 1800px;
}

.premium-hero-copy > .premium-pill,
.premium-hero-copy > h1,
.premium-hero-copy > p,
.premium-hero-search,
.premium-hero-actions,
.premium-hero-stats,
.premium-hero-visual {
  opacity: 0;
  animation: premiumFadeUp .7s cubic-bezier(.16, 1, .3, 1) forwards;
}

.premium-hero-copy > h1 {
  animation-delay: 80ms;
}

.premium-hero-copy > p {
  animation-delay: 160ms;
}

.premium-hero-search {
  animation-delay: 240ms;
}

.premium-hero-actions {
  animation-delay: 320ms;
}

.premium-hero-stats {
  animation-delay: 400ms;
}

.premium-hero-visual {
  animation-delay: 220ms;
}

.premium-tilt-card {
  position: relative;
  padding: 12px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .03)),
    rgba(7, 13, 29, .72);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 8px;
  box-shadow: var(--premium-shadow);
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform .55s cubic-bezier(.16, 1, .3, 1);
}

.premium-tilt-card > img {
  display: block;
  width: 100%;
  border-radius: 8px;
}

.premium-hero-product {
  min-height: 470px;
  padding: 0;
  background:
    radial-gradient(circle at 22% 16%, rgba(34, 211, 238, .18), transparent 34%),
    radial-gradient(circle at 78% 78%, rgba(212, 175, 55, .12), transparent 30%),
    linear-gradient(145deg, rgba(9, 18, 38, .96), rgba(4, 8, 20, .98));
}

.premium-hero-product::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(148, 197, 253, .055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 197, 253, .055) 1px, transparent 1px);
  background-size: 36px 36px;
}

.premium-product-shine {
  position: absolute;
  inset: -35% auto -35% -38%;
  width: 46%;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .18), transparent);
  animation: premiumBeamSweep 5.8s ease-in-out infinite;
}

.premium-product-topbar,
.premium-product-layout {
  position: relative;
  z-index: 1;
}

.premium-product-topbar {
  display: grid;
  grid-template-columns: 10px 10px 10px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 16px;
  color: #cbd5e1;
  background: rgba(255, 255, 255, .045);
  border-bottom: 1px solid rgba(255, 255, 255, .10);
}

.premium-product-topbar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.premium-product-topbar span:nth-child(1) {
  background: #f87171;
}

.premium-product-topbar span:nth-child(2) {
  background: #fbbf24;
}

.premium-product-topbar span:nth-child(3) {
  background: var(--premium-emerald);
}

.premium-product-topbar strong {
  min-width: 0;
  margin-left: 8px;
  overflow: hidden;
  font-size: 12px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.premium-product-topbar em {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  color: #052e26;
  background: var(--premium-emerald);
  border-radius: 999px;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.premium-product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 178px;
  gap: 14px;
  padding: 16px;
}

.premium-product-main,
.premium-product-side,
.premium-product-status,
.premium-product-lesson,
.premium-product-user,
.premium-product-list span {
  border: 1px solid rgba(255, 255, 255, .10);
  background: rgba(255, 255, 255, .055);
  backdrop-filter: blur(14px);
  border-radius: 8px;
}

.premium-product-main {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.premium-product-status {
  position: relative;
  overflow: hidden;
  padding: 15px;
}

.premium-product-status::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 38%;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, .16), transparent);
  animation: premiumStatusSweep 4.4s ease-in-out infinite;
}

.premium-product-status span,
.premium-product-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: max-content;
  max-width: 100%;
  min-height: 26px;
  padding: 0 9px;
  color: #06131f;
  background: linear-gradient(90deg, var(--premium-cyan), var(--premium-emerald));
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
}

.premium-product-status svg,
.premium-product-badge svg {
  width: 13px;
  height: 13px;
}

.premium-product-status strong,
.premium-product-status small {
  position: relative;
  z-index: 1;
  display: block;
}

.premium-product-status strong {
  margin-top: 13px;
  color: #ffffff;
  font-size: 20px;
  line-height: 1.18;
}

.premium-product-status small {
  margin-top: 5px;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 700;
}

.premium-product-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.premium-product-metrics div {
  display: grid;
  gap: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 8px;
}

.premium-product-metrics small {
  color: #94a3b8;
  font-size: 11px;
  font-weight: 800;
}

.premium-product-metrics strong {
  color: #ffffff;
  font-size: 20px;
  line-height: 1;
}

.premium-product-metrics span {
  display: block;
  width: 100%;
  height: 5px;
  overflow: hidden;
  background: rgba(255, 255, 255, .10);
  border-radius: 999px;
}

.premium-product-metrics span::before {
  content: "";
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--premium-blue), var(--premium-cyan), var(--premium-emerald));
  border-radius: inherit;
  animation: premiumMetricFill 1.4s cubic-bezier(.16, 1, .3, 1) .45s forwards;
}

.premium-product-graph {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 9px;
  height: 128px;
  padding: 16px;
  background:
    linear-gradient(to top, rgba(255, 255, 255, .08) 1px, transparent 1px),
    rgba(255, 255, 255, .035);
  background-size: 100% 32px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 8px;
}

.premium-product-graph span {
  width: 100%;
  max-width: 34px;
  height: 18%;
  background: linear-gradient(180deg, var(--premium-cyan), var(--premium-blue));
  border-radius: 999px 999px 4px 4px;
  box-shadow: 0 0 22px rgba(34, 211, 238, .22);
  animation: premiumGraphRise .9s cubic-bezier(.16, 1, .3, 1) var(--delay, 0ms) forwards;
}

.premium-product-lesson {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
}

.premium-product-lesson > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #06131f;
  background: var(--premium-cyan);
  border-radius: 8px;
}

.premium-product-lesson svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.premium-product-lesson strong,
.premium-product-user strong {
  display: block;
  color: #ffffff;
  font-size: 13px;
  line-height: 1.28;
}

.premium-product-lesson small,
.premium-product-user small {
  display: block;
  margin-top: 3px;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 700;
}

.premium-product-lesson b {
  color: var(--premium-emerald);
  font-size: 13px;
}

.premium-product-side {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 12px;
}

.premium-product-badge {
  color: #082f49;
  background: #bae6fd;
}

.premium-product-user {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 11px;
}

.premium-product-user > span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #ffffff;
  background: linear-gradient(135deg, #dc2626, #f97316);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
}

.premium-product-list {
  display: grid;
  gap: 8px;
}

.premium-product-list span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 10px;
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 800;
}

.premium-product-list svg {
  width: 14px;
  height: 14px;
  color: var(--premium-emerald);
}

.premium-float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: rgba(7, 13, 29, .86);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  box-shadow: 0 0 0 1px rgba(59, 130, 246, .15), 0 20px 60px -15px rgba(59, 130, 246, .42);
  backdrop-filter: blur(18px);
}

.premium-rating-card {
  top: 28px;
  left: -26px;
  animation: premiumFloatSlow 7s ease-in-out infinite;
}

.premium-live-card {
  right: -28px;
  bottom: -22px;
  animation: premiumFloatSlower 9s ease-in-out infinite;
}

.premium-score-ring {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: #ffffff;
  background:
    linear-gradient(var(--premium-navy), var(--premium-navy)) padding-box,
    conic-gradient(var(--premium-gold), var(--premium-cyan), var(--premium-emerald), var(--premium-gold)) border-box;
  border: 2px solid transparent;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.premium-avatars {
  display: flex;
}

.premium-avatars img {
  width: 30px;
  height: 30px;
  object-fit: cover;
  border: 2px solid var(--premium-navy-2);
  border-radius: 999px;
}

.premium-avatars img + img {
  margin-left: -10px;
}

.premium-stars {
  display: inline-flex;
  gap: 1px;
  color: #f59e0b;
}

.premium-stars svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.premium-float-card small {
  display: block;
  color: #cbd5e1;
  font-size: 11px;
}

.premium-float-card strong {
  display: block;
  color: #ffffff;
  font-size: 13px;
}

.premium-live-dot {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: rgba(34, 211, 238, .15);
  border-radius: 999px;
}

.premium-live-dot::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--premium-cyan);
  border-radius: 999px;
  box-shadow: 0 0 0 10px rgba(34, 211, 238, .12);
  animation: premiumPulseRing 2.4s cubic-bezier(.4, 0, .6, 1) infinite;
}

.premium-section {
  position: relative;
  overflow: hidden;
  padding: 96px 0;
}

.premium-muted-section {
  background: var(--premium-soft);
}

.premium-section-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 52px;
}

.premium-section-row > div,
.premium-section-center {
  max-width: 720px;
}

.premium-section-center {
  margin: 0 auto 56px;
  text-align: center;
}

.premium-section h2,
.premium-section-center h2 {
  margin-top: 12px;
  color: var(--premium-text);
  font-size: clamp(30px, 4vw, 44px);
}

.premium-section p,
.premium-section-center p {
  margin: 14px 0 0;
  color: var(--premium-muted);
  font-size: 16px;
  line-height: 1.7;
}

.premium-reveal {
  opacity: 0;
  transform: translate3d(0, 26px, 0);
  transition:
    opacity .65s ease var(--premium-delay, 0ms),
    transform .65s cubic-bezier(.16, 1, .3, 1) var(--premium-delay, 0ms);
  will-change: opacity, transform;
}

.premium-reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.premium-outline-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 8px;
  padding: 0 16px;
  color: var(--premium-text);
  background: #ffffff;
  border: 1px solid var(--premium-line);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 12px 26px rgba(10, 18, 38, .06);
}

.premium-outline-link svg {
  width: 16px;
  height: 16px;
}

.premium-category-grid,
.premium-feature-grid,
.premium-course-grid,
.premium-testimonial-grid,
.premium-mentor-grid {
  display: grid;
  gap: 20px;
}

.premium-category-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.premium-category-card,
.premium-feature-grid article,
.premium-course-card,
.premium-testimonial-grid article,
.premium-mentor-grid article,
.premium-job-cards article {
  background: #ffffff;
  border: 1px solid var(--premium-line);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(10, 18, 38, .04);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease, background .3s ease;
}

.premium-category-card.premium-reveal,
.premium-feature-grid article.premium-reveal,
.premium-course-card.premium-reveal,
.premium-testimonial-grid article.premium-reveal,
.premium-mentor-grid article.premium-reveal,
.premium-job-cards article.premium-reveal {
  transition:
    opacity .65s ease var(--premium-delay, 0ms),
    transform .65s cubic-bezier(.16, 1, .3, 1) var(--premium-delay, 0ms),
    box-shadow .3s ease,
    border-color .3s ease,
    background .3s ease;
}

.premium-category-card:hover,
.premium-feature-grid article:hover,
.premium-course-card:hover,
.premium-testimonial-grid article:hover,
.premium-mentor-grid article:hover,
.premium-job-cards article:hover {
  transform: translateY(-6px);
  box-shadow: var(--premium-shadow);
}

.premium-category-card {
  position: relative;
  display: grid;
  min-height: 248px;
  gap: 14px;
  overflow: hidden;
  padding: 24px;
}

.premium-category-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(135deg, var(--premium-navy), var(--premium-navy-4));
  opacity: 0;
  transition: opacity .3s ease;
}

.premium-category-card > * {
  position: relative;
  z-index: 1;
}

.premium-category-card:hover::before {
  opacity: 1;
}

.premium-category-card > span,
.premium-feature-grid article > span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: var(--premium-cyan);
  background: var(--premium-navy);
  border-radius: 8px;
}

.premium-category-card svg,
.premium-feature-grid article > span svg {
  width: 24px;
  height: 24px;
}

.premium-category-card h3,
.premium-feature-grid h3,
.premium-course-card h3,
.premium-testimonial-grid strong,
.premium-mentor-grid h3,
.premium-job-cards h3 {
  margin: 0;
  color: var(--premium-text);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
}

.premium-category-card p,
.premium-feature-grid p,
.premium-course-card p,
.premium-job-cards p {
  margin: 0;
  color: var(--premium-muted);
  font-size: 14px;
  line-height: 1.62;
}

.premium-category-card div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--premium-line);
}

.premium-category-card small {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 900;
}

.premium-category-card div svg {
  width: 17px;
  height: 17px;
  color: #cbd5e1;
}

.premium-category-card:hover h3,
.premium-category-card:hover p,
.premium-category-card:hover small {
  color: #ffffff;
}

.premium-category-card:hover > span {
  background: rgba(255, 255, 255, .10);
}

.premium-filter-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  margin: -18px 0 34px;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.premium-filter-row::-webkit-scrollbar {
  display: none;
}

.premium-filter-row a {
  flex: 0 0 auto;
  padding: 9px 15px;
  color: #475569;
  background: #ffffff;
  border: 1px solid var(--premium-line);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
}

.premium-filter-row a.active,
.premium-filter-row a:hover {
  color: #ffffff;
  background: var(--premium-navy);
  border-color: var(--premium-navy);
}

.premium-course-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.premium-course-card {
  overflow: hidden;
}

.premium-course-media {
  position: relative;
  display: block;
  height: 210px;
  overflow: hidden;
}

.premium-course-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center var(--course-thumbnail-y, 50%);
  transition: transform .6s ease;
}

.premium-course-card:hover .premium-course-media img {
  transform: scale(1.06);
}

.premium-course-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5, 9, 20, .72), transparent 62%);
}

.premium-course-media span,
.premium-course-media b {
  position: absolute;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
}

.premium-course-media span {
  top: 14px;
  left: 14px;
  color: var(--premium-text);
  background: rgba(255, 255, 255, .92);
}

.premium-course-media b {
  bottom: 14px;
  left: 14px;
  color: #ffffff;
  background: rgba(5, 9, 20, .74);
}

.premium-course-body {
  display: grid;
  gap: 14px;
  padding: 22px;
}

.premium-course-body h3 {
  font-size: 19px;
}

.premium-course-teacher {
  color: #334155;
  font-size: 14px;
  font-weight: 800;
}

.premium-course-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  padding: 14px 0;
  border-top: 1px solid #eef2f7;
  border-bottom: 1px solid #eef2f7;
}

.premium-course-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.premium-course-meta svg {
  width: 15px;
  height: 15px;
}

.premium-course-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.premium-rating {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #f59e0b;
}

.premium-rating svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.premium-rating strong,
.premium-price strong {
  color: var(--premium-text);
  font-weight: 900;
}

.premium-rating small,
.premium-price small {
  color: #94a3b8;
  font-size: 12px;
}

.premium-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.premium-price small {
  text-decoration: line-through;
}

.premium-course-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  gap: 8px;
  color: #ffffff;
  background: var(--premium-navy);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 900;
}

.premium-course-button svg {
  width: 17px;
  height: 17px;
}

.premium-feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.premium-feature-grid article {
  padding: 26px;
}

.premium-feature-grid article:hover {
  color: #ffffff;
  background: var(--premium-navy);
}

.premium-feature-grid article:hover h3,
.premium-feature-grid article:hover p {
  color: #ffffff;
}

.premium-feature-grid h3 {
  margin-top: 18px;
}

.premium-feature-grid p {
  margin-top: 8px;
}

.premium-dark-section,
.premium-stats-band,
.premium-footer {
  position: relative;
  color: #ffffff;
  background: var(--premium-navy);
}

.premium-dark-section .premium-container,
.premium-stats-band .premium-container,
.premium-footer .premium-container {
  position: relative;
  z-index: 1;
}

.premium-dark-section h2,
.premium-dark-section h3,
.premium-dark-section .premium-section-center p {
  color: #ffffff;
}

.premium-dark-section .premium-section-center p {
  color: #94a3b8;
}

.premium-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 22px;
}

.premium-steps::before {
  content: "";
  position: absolute;
  top: 26px;
  right: 7%;
  left: 7%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .18), transparent);
}

.premium-steps article {
  position: relative;
  text-align: center;
}

.premium-steps article > span {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin: 0 auto 18px;
  color: var(--premium-cyan);
  background: var(--premium-navy-2);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(59, 130, 246, .15), 0 20px 60px -20px rgba(59, 130, 246, .50);
}

.premium-steps article > span svg {
  width: 22px;
  height: 22px;
}

.premium-steps b {
  position: absolute;
  top: -8px;
  right: -8px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  color: var(--premium-navy);
  background: linear-gradient(135deg, var(--premium-blue), var(--premium-cyan));
  border-radius: 999px;
  font-size: 11px;
}

.premium-steps h3 {
  margin: 0;
  color: #ffffff;
  font-size: 16px;
}

.premium-steps p {
  margin: 8px 0 0;
  color: #94a3b8;
  font-size: 13px;
  line-height: 1.55;
}

.premium-split {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: 56px;
}

.premium-split > div {
  min-width: 0;
}

.premium-check-list {
  display: grid;
  gap: 14px;
  margin: 30px 0;
}

.premium-check-list span {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #1f2f46;
  font-size: 14px;
  font-weight: 800;
}

.premium-check-list svg {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  padding: 10px;
  color: var(--premium-cyan);
  background: var(--premium-navy);
  border-radius: 8px;
}

.premium-player {
  overflow: hidden;
  background: var(--premium-navy);
  border: 1px solid rgba(15, 23, 42, .16);
  border-radius: 8px;
  box-shadow: var(--premium-shadow);
}

.premium-browser {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 16px;
  background: var(--premium-navy-2);
  border-bottom: 1px solid rgba(255, 255, 255, .10);
}

.premium-browser span {
  width: 10px;
  height: 10px;
  background: #f87171;
  border-radius: 999px;
}

.premium-browser span:nth-child(2) {
  background: #fbbf24;
}

.premium-browser span:nth-child(3) {
  background: #34d399;
}

.premium-browser small {
  flex: 1;
  min-width: 0;
  margin-left: 8px;
  padding: 5px 10px;
  overflow: hidden;
  color: #94a3b8;
  background: rgba(255, 255, 255, .05);
  border-radius: 8px;
  font-size: 11px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.premium-player-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
}

.premium-video {
  position: relative;
  min-height: 310px;
  overflow: hidden;
  border-right: 1px solid rgba(255, 255, 255, .10);
}

.premium-video img {
  width: 100%;
  height: 100%;
  min-height: 310px;
  object-fit: cover;
  opacity: .78;
}

.premium-video button {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  color: var(--premium-navy);
  background: #ffffff;
  border: 0;
  border-radius: 999px;
  transform: translate(-50%, -50%);
}

.premium-video button svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.premium-video b {
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  color: #ffffff;
  background: rgba(239, 68, 68, .90);
  border-radius: 999px;
  font-size: 11px;
}

.premium-video em {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--premium-blue) 62%, rgba(255, 255, 255, .18) 62%);
}

.premium-modules {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 18px 14px;
  background: var(--premium-navy-2);
}

.premium-modules strong {
  color: #64748b;
  font-size: 11px;
  text-transform: uppercase;
}

.premium-modules span {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 8px;
  padding: 8px;
  color: #94a3b8;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
}

.premium-modules span.active {
  color: #ffffff;
  background: rgba(255, 255, 255, .08);
}

.premium-modules svg {
  width: 15px;
  height: 15px;
  color: var(--premium-cyan);
}

.premium-modules small {
  grid-column: 2;
  color: #475569;
  font-size: 11px;
}

.premium-player-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, .10);
}

.premium-player-notes div {
  padding: 16px;
  background: var(--premium-navy-2);
}

.premium-player-notes strong {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #cbd5e1;
  font-size: 12px;
}

.premium-player-notes p {
  margin: 8px 0 0;
  color: #64748b;
  font-size: 12px;
}

.premium-jobs-grid {
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
}

.premium-career-panel {
  position: relative;
  overflow: hidden;
  padding: 30px;
  color: #ffffff;
  background: var(--premium-navy);
  border-radius: 8px;
  box-shadow: var(--premium-shadow);
}

.premium-career-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(148, 197, 253, .07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 197, 253, .07) 1px, transparent 1px);
  background-size: 44px 44px;
}

.premium-career-panel > * {
  position: relative;
}

.premium-career-panel > span {
  display: inline-flex;
  padding: 7px 12px;
  color: var(--premium-cyan);
  background: rgba(255, 255, 255, .08);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.premium-profile-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
}

.premium-profile-row img {
  width: 62px;
  height: 62px;
  object-fit: cover;
  border-radius: 8px;
}

.premium-profile-row strong,
.premium-profile-row small {
  display: block;
}

.premium-profile-row small,
.premium-profile-stats small,
.premium-app-list small {
  color: #94a3b8;
}

.premium-profile-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.premium-profile-stats div {
  padding: 16px;
  text-align: center;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 8px;
}

.premium-profile-stats strong {
  display: block;
  color: #ffffff;
  font-size: 24px;
}

.premium-app-list {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.premium-app-list span {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 20px;
  gap: 4px 12px;
  padding: 15px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 8px;
}

.premium-app-list strong,
.premium-app-list small {
  display: block;
}

.premium-app-list svg {
  grid-row: span 2;
  align-self: center;
  color: var(--premium-cyan);
}

.premium-job-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 30px;
}

.premium-job-cards article {
  padding: 20px;
}

.premium-job-cards svg {
  width: 24px;
  height: 24px;
  color: var(--premium-blue);
}

.premium-job-cards h3 {
  margin-top: 14px;
  font-size: 15px;
}

.premium-job-cards p {
  margin-top: 7px;
  font-size: 13px;
}

.premium-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  margin-top: 34px;
}

.premium-logos span {
  flex-basis: 100%;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.premium-logos strong {
  color: #94a3b8;
  font-size: 14px;
}

.premium-testimonial-grid,
.premium-mentor-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.premium-testimonial-grid article {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 24px;
}

.premium-quote {
  width: 27px;
  height: 27px;
  color: rgba(59, 130, 246, .30);
}

.premium-testimonial-grid article > p {
  margin: 0;
  color: #475569;
  font-size: 14px;
  line-height: 1.68;
}

.premium-testimonial-person {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid #eef2f7;
}

.premium-testimonial-person img {
  width: 46px;
  height: 46px;
  object-fit: cover;
  border-radius: 999px;
}

.premium-testimonial-person strong,
.premium-testimonial-person small {
  display: block;
}

.premium-testimonial-person small {
  margin-top: 3px;
  color: var(--premium-muted);
  font-size: 12px;
}

.premium-outcome {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding: 9px 11px;
  color: #047857;
  background: #ecfdf5;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
}

.premium-outcome svg {
  width: 15px;
  height: 15px;
}

.premium-mentor-grid article {
  overflow: hidden;
}

.premium-mentor-media {
  position: relative;
  height: 230px;
  overflow: hidden;
}

.premium-mentor-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}

.premium-mentor-grid article:hover .premium-mentor-media img {
  transform: scale(1.05);
}

.premium-mentor-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5, 9, 20, .84), transparent 70%);
}

.premium-mentor-media span {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: #ffffff;
  background: var(--mentor-color, #173b78);
  border: 2px solid rgba(255, 255, 255, .76);
  border-radius: 8px;
  font-weight: 900;
}

.premium-mentor-body {
  padding: 20px;
}

.premium-mentor-body p {
  margin: 5px 0 0;
  color: var(--premium-blue);
  font-size: 13px;
  font-weight: 900;
}

.premium-mentor-body small {
  display: block;
  margin-top: 8px;
  color: var(--premium-muted);
  font-weight: 700;
}

.premium-mentor-body div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #eef2f7;
}

.premium-mentor-body div span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--premium-muted);
  font-size: 12px;
  font-weight: 800;
}

.premium-mentor-body svg {
  width: 15px;
  height: 15px;
}

.premium-stats-band {
  overflow: hidden;
  padding: 74px 0;
}

.premium-stats-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.premium-stats-grid div {
  display: grid;
  justify-items: center;
  gap: 10px;
  min-height: 132px;
  padding: 18px;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, .10);
}

.premium-stats-grid div:last-child {
  border-right: 0;
}

.premium-stats-grid svg {
  width: 22px;
  height: 22px;
  color: var(--premium-cyan);
}

.premium-stats-grid strong {
  color: #ffffff;
  font-size: 34px;
  line-height: 1;
}

.premium-stats-grid span {
  color: #94a3b8;
  font-size: 13px;
  font-weight: 800;
}

.premium-final-section {
  background: #ffffff;
}

.premium-final-card {
  position: relative;
  overflow: hidden;
  padding: 78px 32px;
  color: #ffffff;
  text-align: center;
  background: var(--premium-navy);
  border-radius: 8px;
  box-shadow: var(--premium-shadow);
}

.premium-final-card > *:not(.premium-bg-grid) {
  position: relative;
  z-index: 1;
}

.premium-final-card h2 {
  max-width: 760px;
  margin: 24px auto 0;
  color: #ffffff;
  font-size: clamp(34px, 5vw, 58px);
}

.premium-final-card p {
  max-width: 640px;
  margin: 18px auto 0;
  color: #94a3b8;
  font-size: 16px;
  line-height: 1.7;
}

.premium-final-card .premium-hero-actions {
  justify-content: center;
}

.premium-footer {
  overflow: hidden;
  padding-top: 76px;
}

.premium-footer-grid {
  display: grid;
  grid-template-columns: 1.15fr 1.85fr;
  gap: 56px;
  padding-bottom: 52px;
  border-bottom: 1px solid rgba(255, 255, 255, .10);
}

.premium-brand-footer .premium-brand-copy strong,
.premium-brand-footer .premium-brand-copy small {
  color: #ffffff;
}

.premium-footer p {
  max-width: 360px;
  margin: 22px 0 0;
  color: #94a3b8;
  line-height: 1.7;
}

.premium-footer-contact {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.premium-footer-contact a,
.premium-footer-contact span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #94a3b8;
  font-size: 14px;
  font-weight: 800;
}

.premium-footer-contact .premium-footer-address {
  align-items: flex-start;
  max-width: 420px;
}

.premium-footer-address > span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.premium-footer-address strong {
  color: #e2e8f0;
  font-size: 13px;
  line-height: 1.25;
}

.premium-footer-address small {
  color: #94a3b8;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.premium-footer-contact svg {
  flex: 0 0 auto;
  margin-top: 2px;
  width: 17px;
  height: 17px;
  color: var(--premium-cyan);
}

.premium-footer-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}

.premium-footer nav {
  display: grid;
  align-content: start;
  gap: 11px;
}

.premium-footer h4 {
  margin: 0 0 8px;
  color: #e2e8f0;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.premium-footer nav a {
  color: #94a3b8;
  font-size: 14px;
  font-weight: 800;
}

.premium-footer nav a:hover,
.premium-footer nav a:focus-visible {
  color: var(--premium-cyan);
}

.premium-footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0;
}

.premium-footer-bottom p {
  max-width: none;
  margin: 0;
  color: #64748b;
  font-size: 12px;
}

@media (max-width: 1100px) {
  .premium-menu,
  .premium-login {
    display: none;
  }

  .premium-menu-btn {
    display: inline-grid;
  }

  .premium-hero-grid,
  .premium-split,
  .premium-jobs-grid,
  .premium-footer-grid {
    grid-template-columns: 1fr;
  }

  .premium-hero-visual {
    max-width: 720px;
  }

  .premium-hero-product {
    min-height: 440px;
  }

  .premium-category-grid,
  .premium-course-grid,
  .premium-feature-grid,
  .premium-testimonial-grid,
  .premium-mentor-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .premium-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .premium-steps::before {
    display: none;
  }

  .premium-player-grid {
    grid-template-columns: 1fr;
  }

  .premium-video {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .10);
  }
}

@media (max-width: 760px) {
  .premium-container {
    width: calc(100vw - 28px);
  }

  .premium-header {
    right: 12px;
    left: 12px;
    padding-top: 10px;
  }

  .premium-nav {
    position: relative;
    width: 100%;
    min-height: 58px;
    padding: 8px 98px 8px 10px;
  }

  .premium-actions {
    position: fixed;
    top: 20px;
    right: auto;
    left: clamp(210px, 72vw, 285px);
    z-index: 70;
    display: flex !important;
    transform: none;
  }

  .premium-actions .premium-icon-btn {
    display: inline-grid !important;
  }

  .premium-brand {
    flex: 1 1 auto;
  }

  .premium-brand-copy small,
  .premium-actions .premium-cta {
    display: none;
  }

  .premium-brand-copy strong {
    max-width: 176px;
    font-size: 17px;
    white-space: normal;
  }

  .premium-icon-btn {
    width: 38px;
    height: 38px;
  }

  .premium-hero {
    min-height: auto;
    padding: 120px 0 72px;
  }

  .premium-hero h1 {
    max-width: 360px;
    font-size: clamp(34px, 10vw, 44px);
  }

  .premium-hero p {
    max-width: 360px;
    font-size: 16px;
  }

  .premium-hero-search {
    grid-template-columns: 1fr;
  }

  .premium-hero-search button {
    width: 100%;
  }

  .premium-hero-product {
    min-height: auto;
  }

  .premium-product-layout {
    grid-template-columns: 1fr;
  }

  .premium-product-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .premium-product-side {
    grid-template-columns: 1fr;
  }

  .premium-hero-stats,
  .premium-category-grid,
  .premium-course-grid,
  .premium-feature-grid,
  .premium-steps,
  .premium-job-cards,
  .premium-testimonial-grid,
  .premium-mentor-grid,
  .premium-stats-grid,
  .premium-footer-columns,
  .premium-profile-stats,
  .premium-player-notes {
    grid-template-columns: 1fr;
  }

  .premium-section-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .premium-rating-card {
    display: none;
  }

  .premium-live-card {
    right: 10px;
    bottom: 10px;
  }

  .premium-section {
    padding: 72px 0;
  }

  .premium-stats-grid div {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .10);
  }

  .premium-stats-grid div:last-child {
    border-bottom: 0;
  }

  .premium-footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 460px) {
  .premium-container {
    width: calc(100vw - 24px);
  }

  .premium-brand-copy strong {
    max-width: 130px;
    font-size: 16px;
  }

  .premium-hero h1 {
    max-width: 340px;
    font-size: 34px;
  }

  .premium-pill {
    font-size: 11px;
  }

  .premium-hero-actions .premium-cta {
    width: 100%;
  }

  .premium-final-card {
    padding: 54px 18px;
  }

  .premium-product-layout,
  .premium-product-main {
    padding: 12px;
  }

  .premium-product-metrics,
  .premium-product-lesson {
    grid-template-columns: 1fr;
  }

  .premium-product-graph {
    height: 96px;
  }

  .premium-live-card {
    position: static;
    margin: 0 12px 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .premium-bg-grid,
  .premium-hero-glow,
  .premium-pill span,
  .premium-product-shine,
  .premium-product-status::after,
  .premium-product-metrics span::before,
  .premium-product-graph span,
  .premium-rating-card,
  .premium-live-card,
  .premium-live-dot::before,
  .premium-hero-copy > .premium-pill,
  .premium-hero-copy > h1,
  .premium-hero-copy > p,
  .premium-hero-search,
  .premium-hero-actions,
  .premium-hero-stats,
  .premium-hero-visual {
    animation: none;
  }

  .premium-reveal,
  .premium-reveal.is-visible,
  .premium-hero-copy > .premium-pill,
  .premium-hero-copy > h1,
  .premium-hero-copy > p,
  .premium-hero-search,
  .premium-hero-actions,
  .premium-hero-stats,
  .premium-hero-visual,
  .premium-tilt-card {
    opacity: 1;
    transform: none !important;
    transition: none;
  }

  .premium-product-metrics span::before {
    width: var(--metric, 70%);
  }

  .premium-product-graph span {
    height: var(--bar, 70%);
  }
}

.premium-menu a.active {
  color: var(--premium-text);
}

.premium-menu a.active::after {
  opacity: 1;
}

.premium-catalog-hero,
.public-course-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background:
    radial-gradient(circle at 18% 28%, rgba(34, 211, 238, .18), transparent 34%),
    radial-gradient(circle at 72% 42%, rgba(59, 130, 246, .16), transparent 30%),
    linear-gradient(135deg, #07111f 0%, #050914 52%, #070b18 100%);
}

.premium-catalog-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(34, 211, 238, .08), transparent 35%, rgba(255, 255, 255, .04) 64%, transparent),
    radial-gradient(ellipse at 50% 100%, rgba(255, 255, 255, .08), transparent 48%);
}

.premium-catalog-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 120px;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent, var(--premium-soft));
}

.premium-catalog-hero {
  padding: 150px 0 104px;
}

.premium-catalog-hero-grid,
.public-course-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  align-items: center;
  gap: 42px;
}

.premium-catalog-hero-grid {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  min-height: 640px;
}

.premium-catalog-hero-grid > div:first-child {
  max-width: 760px;
}

.premium-catalog-hero h1,
.public-course-hero h1 {
  max-width: 760px;
  margin: 18px 0;
  color: #ffffff;
  font: 900 clamp(42px, 6vw, 76px)/.98 "Sora", sans-serif;
}

.premium-catalog-hero p,
.public-course-hero p {
  max-width: 680px;
  color: rgba(255, 255, 255, .72);
  font-size: 18px;
  line-height: 1.75;
}

.premium-catalog-search {
  margin-top: 30px;
  max-width: 640px;
  border-color: rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .10);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .24);
  backdrop-filter: blur(18px);
}

.premium-catalog-stats,
.public-course-hero-stats {
  display: grid;
  gap: 14px;
}

.premium-catalog-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 560px;
  margin-top: 26px;
}

.premium-catalog-stats div,
.public-course-hero-stats div {
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .08);
  backdrop-filter: blur(16px);
}

.premium-catalog-stats div {
  padding: 18px;
  border-radius: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}

.premium-catalog-stats strong,
.public-course-hero-stats strong {
  display: block;
  color: #ffffff;
  font: 900 24px/1 "Sora", sans-serif;
}

.premium-catalog-stats span,
.public-course-hero-stats span {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, .68);
  font-size: 13px;
  font-weight: 800;
}

.premium-catalog-highlight,
.public-course-enroll-card {
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 24px;
  background: rgba(255, 255, 255, .10);
  box-shadow: var(--premium-shadow);
  backdrop-filter: blur(18px);
}

.premium-catalog-highlight {
  position: relative;
  align-self: end;
  margin-bottom: 18px;
  padding: 18px;
  transform: translateY(34px);
  background: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .08));
  box-shadow: 0 34px 90px -28px rgba(0, 0, 0, .72);
}

.premium-catalog-highlight::before {
  content: "";
  position: absolute;
  inset: -24px;
  z-index: -1;
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(34, 211, 238, .16), rgba(59, 130, 246, .10), transparent 68%);
  filter: blur(2px);
}

.premium-catalog-highlight img,
.public-course-enroll-card > img {
  width: 100%;
  object-fit: cover;
  object-position: center var(--course-thumbnail-y, 50%);
  border-radius: 18px;
}

.premium-catalog-highlight img {
  aspect-ratio: 16 / 9.4;
  box-shadow: 0 20px 48px rgba(0, 0, 0, .26);
}

.premium-catalog-highlight span {
  display: inline-flex;
  margin-top: 18px;
  padding: 7px 11px;
  color: var(--premium-navy);
  background: #ffffff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.premium-catalog-highlight h2 {
  margin: 14px 0 8px;
  color: #ffffff;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.18;
}

.premium-catalog-highlight p {
  font-size: 14px;
  line-height: 1.65;
}

.premium-catalog-highlight .premium-cta {
  margin-top: 18px;
}

.premium-filter-row a small {
  margin-left: 6px;
  color: inherit;
  opacity: .66;
  font-size: 11px;
}

.premium-catalog-grid {
  margin-top: 30px;
}

.premium-courses-page .premium-muted-section {
  position: relative;
  margin-top: -36px;
  border-radius: 34px 34px 0 0;
  background:
    radial-gradient(circle at 12% 0%, rgba(34, 211, 238, .10), transparent 30%),
    linear-gradient(180deg, #f8fafc 0%, #ffffff 46%, #f8fafc 100%);
}

.premium-courses-page .premium-course-card {
  border-radius: 18px;
  box-shadow: 0 18px 44px -30px rgba(10, 18, 38, .55);
}

.premium-courses-page .premium-course-media {
  border-radius: 18px 18px 0 0;
}

.premium-courses-page .premium-filter-row a {
  border-radius: 999px;
  background: rgba(255, 255, 255, .76);
  backdrop-filter: blur(10px);
}

.premium-public-empty,
.premium-public-status {
  text-align: center;
}

.premium-public-empty {
  padding: 56px 24px;
  border: 1px dashed var(--premium-line);
  border-radius: 8px;
  background: #ffffff;
}

.premium-public-empty.compact {
  padding: 28px;
}

.premium-public-empty > .lucide,
.premium-public-status .lucide {
  width: 42px;
  height: 42px;
  color: var(--premium-blue);
}

.premium-public-empty h2,
.premium-public-empty h3,
.premium-public-status h1 {
  margin: 12px 0 8px;
}

.premium-public-status {
  padding: 170px 0 110px;
  background: var(--premium-soft);
}

.premium-public-status .premium-hero-actions {
  justify-content: center;
  margin-top: 26px;
}

.public-course-hero {
  padding: 148px 0 86px;
  background:
    linear-gradient(180deg, rgba(6, 14, 26, .96), rgba(7, 13, 25, .98)),
    linear-gradient(135deg, #071521 0%, #050914 58%, #081120 100%);
}

.public-course-hero-grid {
  grid-template-columns: minmax(0, 1fr) minmax(330px, 410px);
  gap: 44px;
}

.public-course-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, .72);
  font-weight: 800;
}

.public-course-back svg {
  width: 17px;
  height: 17px;
}

.public-course-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.public-course-tags span {
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  color: rgba(255, 255, 255, .82);
  background: rgba(255, 255, 255, .08);
  font-size: 12px;
  font-weight: 900;
}

.public-course-hero-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 28px;
}

.public-course-hero-stats div {
  min-height: 108px;
  padding: 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .065);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .08),
    0 18px 36px -30px rgba(0, 0, 0, .72);
}

.public-course-hero-stats svg {
  width: 19px;
  height: 19px;
  margin-bottom: 10px;
  color: var(--premium-cyan);
}

.public-course-enroll-card {
  padding: 16px;
  border-color: rgba(226, 232, 240, .18);
  background:
    linear-gradient(180deg, rgba(33, 43, 62, .96), rgba(20, 29, 45, .98));
  box-shadow: 0 30px 70px -38px rgba(0, 0, 0, .82);
}

.public-course-enroll-card > img {
  aspect-ratio: 16 / 9;
  object-fit: contain;
  border: 1px solid rgba(255, 255, 255, .12);
  background: #07111f;
  box-shadow: 0 18px 34px -26px rgba(0, 0, 0, .8);
}

.public-course-price-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin: 18px 0;
}

.public-course-price-row span,
.public-course-price-row small {
  color: rgba(255, 255, 255, .64);
  font-size: 12px;
  font-weight: 800;
}

.public-course-price-row strong {
  display: block;
  margin-top: 4px;
  color: #ffffff;
  font: 900 28px/1 "Sora", sans-serif;
}

.public-course-price-row small {
  text-decoration: line-through;
}

.public-course-price-row .public-course-emi-price {
  margin-top: 7px;
  color: rgba(255, 255, 255, .82);
  text-decoration: none;
}

.public-course-price-row .premium-rating {
  padding: 9px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .10);
}

.public-course-price-row .premium-rating strong {
  margin: 0;
  font-size: 15px;
}

.public-course-enroll-card form,
.public-course-enroll-card .premium-course-button,
.public-course-enroll-card .premium-outline-link.wide {
  width: 100%;
}

.public-course-enroll-card .premium-course-button {
  border: 0;
  cursor: pointer;
}

.public-course-enroll-card .public-buy-button {
  min-height: 50px;
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb 0%, #145cff 52%, #06b6d4 100%);
  box-shadow:
    0 18px 34px -20px rgba(37, 99, 235, .9),
    inset 0 1px 0 rgba(255, 255, 255, .22);
}

.public-course-enroll-card .public-buy-button svg {
  color: #ffffff;
}

.public-course-enroll-card .public-buy-button:hover,
.public-course-enroll-card .public-buy-button:focus-visible {
  color: #ffffff;
  background: linear-gradient(135deg, #1d4ed8 0%, #0f55ff 48%, #0891b2 100%);
  box-shadow:
    0 20px 38px -20px rgba(37, 99, 235, 1),
    inset 0 1px 0 rgba(255, 255, 255, .24);
}

.public-course-enroll-card .public-buy-button:hover svg,
.public-course-enroll-card .public-buy-button:focus-visible svg {
  color: #ffffff;
}

.public-course-enroll-card .premium-outline-link.wide {
  justify-content: center;
  margin-top: 10px;
  color: #07111f;
  background: #ffffff;
  border-color: rgba(255, 255, 255, .92);
  box-shadow: 0 14px 28px rgba(2, 6, 23, .18);
}

.public-course-enroll-card .premium-outline-link.wide svg {
  color: #07111f;
}

.public-course-enroll-card .premium-outline-link.wide:hover,
.public-course-enroll-card .premium-outline-link.wide:focus-visible {
  color: #ffffff;
  background: #145cff;
  border-color: #145cff;
}

.public-course-enroll-card .premium-outline-link.wide:hover svg,
.public-course-enroll-card .premium-outline-link.wide:focus-visible svg {
  color: #ffffff;
}

.public-course-includes {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid rgba(255, 255, 255, .14);
  list-style: none;
}

.public-course-includes li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, .76);
  font-size: 13px;
  font-weight: 800;
}

.public-course-includes svg {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  color: var(--premium-cyan);
}

.public-course-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  align-items: start;
  gap: 34px;
}

.public-course-main,
.public-course-side {
  display: grid;
  gap: 28px;
}

.public-course-block,
.public-course-side section {
  padding: 0;
}

.public-course-block h2,
.public-course-side h2 {
  margin: 8px 0 16px;
  color: var(--premium-text);
  font: 900 30px/1.14 "Sora", sans-serif;
}

.public-course-description {
  color: var(--premium-muted);
  font-size: 16px;
  line-height: 1.8;
}

.public-course-description h2,
.public-course-description h3,
.public-course-description h4 {
  color: var(--premium-text);
}

.public-course-description img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.public-course-check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.public-course-check-grid.compact {
  grid-template-columns: 1fr;
}

.public-course-check-grid div {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--premium-line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--premium-text);
  font-weight: 800;
  line-height: 1.5;
}

.public-course-check-grid svg {
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
  color: var(--premium-blue);
}

.public-curriculum-list {
  display: grid;
  gap: 14px;
}

.public-curriculum-list details {
  border: 1px solid var(--premium-line);
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
}

.public-curriculum-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  cursor: pointer;
  list-style: none;
}

.public-curriculum-list summary::-webkit-details-marker {
  display: none;
}

.public-curriculum-list summary strong {
  display: block;
  color: var(--premium-text);
  font-size: 16px;
}

.public-curriculum-list summary small,
.public-curriculum-list summary em {
  color: var(--premium-muted);
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
}

.public-curriculum-list summary small {
  display: block;
  margin-top: 5px;
  font-weight: 600;
}

.public-curriculum-list ol {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0 18px 18px;
  list-style: none;
}

.public-curriculum-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-top: 1px solid var(--premium-line);
  color: var(--premium-text);
  font-weight: 800;
}

.public-curriculum-list li span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.public-curriculum-list li svg {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  color: var(--premium-blue);
}

.public-curriculum-list li small {
  color: var(--premium-muted);
  white-space: nowrap;
}

.public-course-side {
  position: sticky;
  top: 118px;
  gap: 34px;
}

.public-course-side section {
  padding-bottom: 26px;
  border-bottom: 1px solid var(--premium-line);
}

.public-course-side section:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.public-instructor-card {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 0;
}

.public-instructor-card h2 {
  margin: 0 0 6px;
  color: var(--premium-text);
  font: 900 22px/1.16 "Sora", sans-serif;
}

.public-instructor-card p {
  max-width: 260px;
  margin: 0;
  color: var(--premium-muted);
  font-size: 15px;
  line-height: 1.55;
}

.public-publisher-mark {
  overflow: hidden;
  width: 56px;
  height: 56px;
  background: #060913;
  border: 1px solid #dbe3ef;
  box-shadow: 0 14px 30px rgba(20, 35, 62, .12);
}

.public-publisher-mark img {
  width: 74%;
  height: 74%;
  object-fit: contain;
}

.public-course-facts {
  display: grid;
  gap: 0;
}

.public-course-facts div {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 2px 12px;
  padding: 14px 0;
  color: var(--premium-text);
  border-bottom: 1px solid var(--premium-line);
}

.public-course-facts div:last-child {
  border-bottom: 0;
}

.public-course-facts svg {
  grid-row: span 2;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: var(--premium-blue);
}

.public-course-facts span {
  color: var(--premium-text);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.2;
}

.public-course-facts small {
  color: var(--premium-muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

/* Calm public-site typography: keep hierarchy, avoid heavy bold everywhere. */
.premium-home h1,
.premium-home h2,
.premium-home h3,
.premium-home h4,
.auth-brand h1,
.auth-card h2 {
  font-weight: 700;
}

.premium-brand-copy strong,
.premium-catalog-stats strong,
.public-course-hero-stats strong,
.public-course-price-row strong,
.premium-rating strong,
.premium-price strong,
.premium-course-card h3,
.public-course-block h2,
.public-course-side h2,
.public-instructor-card h2,
.public-course-facts span,
.auth-preview strong {
  font-weight: 700;
}

.premium-home :is(a, button),
.premium-home :is(strong, b),
.premium-menu a,
.premium-login,
.premium-cta,
.premium-course-button,
.premium-outline-link,
.premium-eyebrow,
.premium-pill,
.premium-course-media span,
.premium-course-media b,
.premium-course-teacher,
.premium-course-meta span,
.public-course-back,
.public-course-tags span,
.public-course-price-row span,
.public-course-price-row small,
.public-course-includes li,
.public-course-check-grid div,
.public-curriculum-list summary small,
.public-curriculum-list summary em,
.public-curriculum-list li,
.public-course-facts small,
.auth-home-link,
.auth-card label > span,
.auth-card .button {
  font-weight: 600;
}

.premium-home :is(p, li, small),
.public-course-description,
.public-instructor-card p,
.premium-course-card p,
.auth-brand p {
  font-weight: 400;
}

@media (max-width: 980px) {
  .premium-catalog-hero-grid,
  .public-course-hero-grid,
  .public-course-layout {
    grid-template-columns: 1fr;
  }

  .premium-catalog-hero-grid {
    min-height: 0;
  }

  .premium-catalog-highlight {
    align-self: stretch;
    max-width: 560px;
    margin: 10px auto 0;
    transform: none;
  }

  .public-course-side {
    position: static;
  }

  .premium-catalog-hero h1,
  .public-course-hero h1 {
    font-size: 46px;
  }
}

@media (max-width: 640px) {
  .premium-catalog-hero,
  .public-course-hero {
    padding: 126px 0 76px;
  }

  .premium-catalog-hero h1,
  .public-course-hero h1 {
    font-size: 36px;
  }

  .premium-catalog-stats,
  .public-course-hero-stats,
  .public-course-check-grid {
    grid-template-columns: 1fr;
  }

  .premium-catalog-stats {
    max-width: none;
  }

  .premium-catalog-highlight {
    padding: 12px;
    border-radius: 22px;
  }

  .premium-courses-page .premium-muted-section {
    margin-top: -24px;
    border-radius: 24px 24px 0 0;
  }

  .public-curriculum-list summary,
  .public-curriculum-list li,
  .public-course-price-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .public-course-hero-stats div {
    min-height: auto;
  }

}

/* Export-wide typography policy: keep the UI premium without heavy bold everywhere. */
body :where(*) {
  font-weight: 400 !important;
}

body :where(
  a,
  a *,
  label > span,
  legend,
  .eyebrow,
  .badge,
  .pill,
  .tag,
  .chip,
  .status,
  .status-pill,
  .meta,
  .nav-link,
  .sidebar-link,
  .premium-pill,
  .premium-menu a,
  .premium-login,
  .public-course-tags span,
  .student-directory-table th,
  .data-table th
) {
  font-weight: 500 !important;
}

body :where(
  h1,
  h1 *,
  h2,
  h2 *,
  h3,
  h3 *,
  h4,
  h4 *,
  h5,
  h5 *,
  h6,
  h6 *,
  strong,
  strong *,
  b,
  b *,
  th,
  th *,
  button,
  button *,
  .button,
  .button *,
  [role="button"],
  [role="button"] *,
  .premium-cta,
  .premium-cta *,
  .premium-course-button,
  .premium-course-button *,
  .auth-card .button,
  .auth-card .button *,
  .pricing-save-button,
  .pricing-save-button *
) {
  font-weight: 600 !important;
}

/* Android/mobile app shell */
@media (max-width: 760px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .app-shell,
  .app-shell.sidebar-collapsed {
    display: block;
    min-height: 100dvh;
  }

  .main-area {
    width: 100%;
    min-width: 0;
    padding: 12px 10px calc(86px + env(safe-area-inset-bottom));
  }

  .sidebar,
  .app-shell.sidebar-collapsed .sidebar {
    position: fixed;
    inset: auto 10px calc(10px + env(safe-area-inset-bottom));
    z-index: 80;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 6px;
    width: auto;
    height: 60px;
    min-height: 0;
    max-width: calc(100vw - 20px);
    padding: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
    background: rgba(255, 255, 255, .97);
    border: 1px solid rgba(203, 216, 239, .92);
    border-radius: 18px;
    box-shadow: 0 18px 46px rgba(15, 23, 42, .18);
    backdrop-filter: blur(18px);
    contain: layout paint;
  }

  .sidebar::-webkit-scrollbar {
    display: none;
  }

  .sidebar-head,
  .app-shell.sidebar-collapsed .sidebar-head,
  .student-profile-mini,
  .app-shell.sidebar-collapsed .student-profile-mini,
  .sidebar-ai-card {
    display: none;
  }

  .nav-group,
  .app-shell.sidebar-collapsed .nav-group {
    display: flex;
    flex: 0 0 auto;
    grid-template-columns: none;
    align-items: stretch;
    justify-items: stretch;
    gap: 6px;
    margin: 0;
  }

  .nav-label,
  .app-shell.sidebar-collapsed .nav-label {
    display: none;
  }

  .nav-group a,
  .app-shell.sidebar-collapsed .nav-group a {
    position: relative;
    flex: 0 0 clamp(68px, 18vw, 76px);
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: clamp(68px, 18vw, 76px);
    height: 48px;
    min-height: 48px;
    padding: 5px 6px;
    overflow: hidden;
    border-radius: 13px;
    font-size: 10.5px;
    line-height: 1.08;
    text-align: center;
    white-space: normal;
    scroll-snap-align: center;
  }

  .nav-text-desktop {
    display: none;
  }

  .nav-text-mobile {
    display: block;
  }

  .sidebar-logout-link {
    display: none !important;
  }

  .nav-group a.active::before,
  .app-shell.sidebar-collapsed .nav-group a.active::before {
    display: none;
  }

  .nav-group a.active,
  .nav-group a:hover {
    box-shadow: none;
  }

  .nav-group svg,
  .app-shell.sidebar-collapsed .nav-group a svg {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
  }

  .nav-count,
  .app-shell.sidebar-collapsed .nav-count {
    position: absolute;
    top: 3px;
    right: 5px;
    width: 18px;
    height: 18px;
    margin: 0;
    font-size: 9px;
  }

  .topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    margin: -12px -10px 16px;
    padding: 8px 10px;
    background: rgba(244, 248, 255, .96);
    border-bottom: 1px solid rgba(203, 216, 239, .8);
    backdrop-filter: blur(18px);
  }

  .search-box {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 0 12px;
    border-radius: 14px;
    box-shadow: none;
  }

  .search-box input {
    min-width: 0;
  }

  .topbar-actions {
    justify-content: flex-end;
    gap: 7px;
  }

  .topbar-shortcut,
  .topbar-profile-trigger > span:not(.avatar),
  .topbar-profile-trigger > svg {
    display: none;
  }

  .icon-button,
  .topbar-profile-trigger {
    width: 40px;
    min-width: 40px;
    height: 40px;
    min-height: 40px;
    padding: 3px;
    border-radius: 14px;
    box-shadow: none;
  }

  .topbar .avatar,
  .topbar-profile-trigger .avatar {
    width: 34px;
    height: 34px;
  }

  .topbar-notification-panel,
  .topbar-profile-menu {
    position: fixed;
    top: 64px;
    right: 10px;
    left: 10px;
    width: auto;
    max-height: calc(100dvh - 150px);
    overflow: auto;
    border-radius: 16px;
  }

  .floating-help {
    right: max(16px, env(safe-area-inset-right));
    bottom: calc(82px + env(safe-area-inset-bottom));
  }

  .floating-help-trigger {
    width: 50px;
    height: 50px;
    border-radius: 15px;
  }

  .floating-help-panel {
    width: min(316px, calc(100vw - 32px));
    max-height: calc(100dvh - 120px);
    overflow: auto;
  }

  .app-shell.student-class-mode,
  .app-shell.student-class-mode.sidebar-collapsed {
    display: block;
    min-height: 100dvh;
    background: #f7f9fd;
  }

  .app-shell.student-class-mode .sidebar,
  .app-shell.student-class-mode.sidebar-collapsed .sidebar,
  .app-shell.student-class-mode .topbar,
  .app-shell.student-class-mode .floating-help {
    display: none !important;
  }

  .app-shell.student-class-mode .main-area {
    padding: calc(52px + env(safe-area-inset-top)) 8px calc(18px + env(safe-area-inset-bottom));
  }

  .app-shell.student-class-mode .student-class-exit-button {
    top: calc(8px + env(safe-area-inset-top));
    left: max(8px, env(safe-area-inset-left));
    min-height: 36px;
    padding: 0 11px;
    border-radius: 11px;
    font-size: 12px;
  }

  .app-shell.student-class-mode .student-class-exit-button svg {
    width: 16px;
    height: 16px;
  }

  .app-shell.student-class-mode .learning-room-shell {
    gap: 10px;
    margin: 0;
  }

  .app-shell.student-class-mode .learning-room-main {
    gap: 10px;
  }

  .app-shell.student-class-mode .learning-video-card,
  .app-shell.student-class-mode .learning-room-sidebar,
  .app-shell.student-class-mode .learning-context-panel,
  .app-shell.student-class-mode .learning-record-card {
    border-radius: 12px;
  }

  .app-shell.student-class-mode .learning-command-strip {
    display: none !important;
  }

  .page-courses .page-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    margin-bottom: 16px;
  }

  .page-courses .page-intro h1 {
    font-size: clamp(28px, 8vw, 34px);
    line-height: 1.08;
  }

  .page-courses .summary-pill {
    width: 100%;
    justify-content: flex-start;
  }

  .page-courses .course-catalog-panel {
    overflow: hidden;
  }

  .page-courses .catalog-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    gap: 16px;
    width: 100%;
    margin-bottom: 18px;
  }

  .page-courses .catalog-toolbar h2 {
    margin-bottom: 12px;
  }

  .page-courses .course-tabs {
    flex-wrap: nowrap;
    max-width: 100%;
    overflow-x: auto;
    padding-bottom: 3px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .page-courses .course-tabs::-webkit-scrollbar {
    display: none;
  }

  .page-courses .course-tabs a {
    flex: 0 0 auto;
  }

  .page-courses .catalog-search {
    width: 100%;
    grid-template-columns: 22px minmax(0, 1fr) 40px 40px;
    gap: 8px;
  }

  .page-courses .catalog-search input {
    width: 100%;
    min-width: 0;
  }

  .page-courses .learning-card-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .page-courses .learning-card {
    min-height: 0;
  }

  .page-courses .course-thumb {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .page-courses .learning-card-actions {
    flex-wrap: wrap;
  }

  .studio-page-head {
    gap: 12px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-bottom: 16px;
  }

  .calendar-shell,
  .calendar-main,
  .calendar-board-grid,
  .calendar-lower-grid,
  .calendar-page-head,
  .team-layout,
  .team-main,
  .team-directory-panel,
  .student-management-layout,
  .student-directory-panel {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .studio-page-head h1 {
    font-size: clamp(28px, 8.5vw, 34px);
    line-height: 1.08;
  }

  .studio-page-head p {
    max-width: none;
    font-size: 14px;
    line-height: 1.5;
  }

  .studio-head-actions,
  .batch-head-actions {
    justify-content: stretch;
    justify-items: stretch;
    width: 100%;
  }

  .studio-head-actions .button,
  .batch-head-actions .button,
  .batch-create-trigger {
    width: 100%;
    min-height: 44px;
    justify-content: center;
  }

  .page-calendar .calendar-page-head .studio-head-actions {
    display: grid;
    grid-template-columns: 44px minmax(96px, 1fr) 44px;
    gap: 8px;
    width: 100%;
    align-items: center;
  }

  .page-calendar .calendar-page-head .studio-head-actions .button {
    width: auto;
    min-width: 0;
    min-height: 44px;
    padding: 0 12px;
    border-radius: 14px;
    white-space: nowrap;
  }

  .page-calendar .calendar-page-head .studio-head-actions .button:first-child,
  .page-calendar .calendar-page-head .studio-head-actions .button:last-child {
    padding: 0;
  }

  .page-calendar .calendar-page-head .studio-head-actions .button svg {
    width: 18px;
    height: 18px;
  }

  .page-attendance .attendance-shell,
  .page-attendance .attendance-main,
  .page-attendance .attendance-analytics-grid,
  .page-attendance .attendance-lower-grid {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    max-width: 100%;
    min-width: 0;
    gap: 12px;
    overflow: visible;
  }

  .page-attendance .attendance-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden;
    overflow-x: clip;
  }

  .page-attendance .attendance-head h1 {
    width: 100%;
    max-width: 100%;
    margin: 2px 0 4px;
    font-size: clamp(26px, 8.2vw, 34px);
    line-height: 1.1;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
    text-wrap: balance;
  }

  .page-attendance .attendance-head p {
    width: 100%;
    max-width: 100%;
    font-size: 13.5px;
    line-height: 1.42;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .page-attendance .student-top-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .page-attendance .attendance-kpi-grid,
  .page-attendance .attendance-manager-kpis,
  .page-attendance .attendance-actions {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-auto-flow: row;
    gap: 12px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: clip;
  }

  .page-attendance .attendance-kpi-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: auto;
    overflow: hidden;
    padding: 16px;
    border-radius: 14px;
  }

  .page-attendance .attendance-kpi-card > * {
    min-width: 0;
  }

  .page-attendance .attendance-kpi-card .student-stat-icon {
    top: 14px;
    right: 14px;
    width: 44px;
    height: 44px;
  }

  .page-attendance .attendance-kpi-card > small {
    max-width: 100%;
    padding-right: 58px;
  }

  .page-attendance .attendance-kpi-card p,
  .page-attendance .attendance-kpi-card a {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .page-attendance .attendance-ring {
    width: 86px;
    height: 86px;
  }

  .page-attendance .grade-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-attendance .attendance-table-wrap,
  .page-attendance .attendance-session-feed,
  .page-attendance .recorded-watch-list {
    max-width: 100%;
    min-width: 0;
  }

  .page-batches .batch-hub-shell,
  .page-batches .batch-hub-main {
    gap: 10px;
  }

  .page-batches .studio-page-head .eyebrow {
    font-size: 11px;
  }

  .page-batches .studio-page-head h1 {
    font-size: clamp(25px, 7.4vw, 30px);
  }

  .page-batches .studio-page-head p {
    display: -webkit-box;
    overflow: hidden;
    font-size: 12.5px;
    line-height: 1.38;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .page-batches .floating-help {
    display: none;
  }

  .page-batches .batch-hub-head {
    align-items: stretch;
    gap: 7px;
    margin-bottom: 6px;
  }

  .page-batches .batch-hub-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 9px;
  }

  .page-batches .batch-hub-list-panel,
  .page-batches .batch-hub-side {
    position: static;
    grid-column: auto;
    max-height: none;
  }

  .page-batches .batch-hub-list-panel {
    gap: 8px;
    padding: 10px;
    border-radius: 14px;
  }

  .page-batches .messages-search {
    min-height: 40px;
    padding: 0 10px;
    border-radius: 12px;
  }

  .page-batches .batch-room-search {
    grid-template-columns: 18px minmax(0, 1fr) auto auto;
  }

  .page-batches .messages-search input {
    font-size: 13px;
  }

  .page-batches .batch-type-filter summary span {
    display: none;
  }

  .page-batches .batch-type-filter summary {
    width: 34px;
    padding: 0;
  }

  .page-batches .batch-type-filter-menu {
    right: -42px;
    width: min(252px, calc(100vw - 48px));
  }

  .page-batches .batch-room-list {
    display: flex;
    gap: 7px;
    overflow-x: auto;
    padding-bottom: 1px;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
  }

  .page-batches .batch-room-list::-webkit-scrollbar {
    display: none;
  }

  .page-batches .batch-room-list a {
    flex: 0 0 min(246px, 76vw);
    min-height: 54px;
    gap: 8px;
    padding: 7px 8px;
    border-radius: 12px;
    scroll-snap-align: start;
  }

  .page-batches .batch-room-list a .batch-avatar,
  .page-batches .batch-overview-head .batch-avatar,
  .page-batches .batch-chat-head .batch-avatar {
    width: 36px;
    height: 36px;
    border-radius: 12px;
  }

  .page-batches .batch-room-list a strong {
    font-size: 13px;
  }

  .page-batches .batch-room-list a small {
    font-size: 11px;
  }

  .page-batches .batch-room-list a em {
    width: 24px;
    height: 24px;
    font-size: 11px;
  }

  .page-batches .batch-room-list a em.is-locked {
    width: auto;
    min-width: 54px;
    padding: 0 8px;
    font-size: 10px;
  }

  .page-batches .batch-hub-center,
  .page-batches .batch-hub-side,
  .page-batches .batch-management-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 9px;
  }

  .page-batches .batch-type-choice-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-batches .batch-overview-panel,
  .page-batches .batch-student-management-panel,
  .page-batches .batch-danger-panel {
    padding: 12px;
    border-radius: 14px;
  }

  .page-batches .batch-overview-panel::before {
    height: 5px;
  }

  .page-batches .batch-overview-head {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 9px;
    padding-top: 3px;
  }

  .role-student.page-batches .batch-overview-head {
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: center;
  }

  .page-batches .batch-overview-head h2 {
    margin: 0 0 3px;
    font-size: clamp(19px, 5.6vw, 24px);
    line-height: 1.08;
  }

  .page-batches .batch-overview-head p {
    display: -webkit-box;
    overflow: hidden;
    font-size: 12px;
    line-height: 1.35;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
  }

  .role-student.page-batches .batch-overview-head p {
    -webkit-line-clamp: 2;
  }

  .page-batches .batch-launch-field {
    width: 100%;
    margin-top: 8px;
    padding: 8px 10px;
  }

  .page-batches .batch-launch-field strong,
  .page-batches .batch-launch-field em {
    white-space: normal;
  }

  .page-batches .batch-overview-head .eyebrow {
    font-size: 10.5px;
  }

  .page-batches .batch-overview-actions {
    grid-column: 1 / -1;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .role-student.page-batches .batch-overview-actions {
    grid-column: auto;
    justify-content: flex-end;
  }

  .page-batches .batch-overview-actions .button {
    flex: 1 1 140px;
    justify-content: center;
  }

  .page-batches .batch-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 10px;
  }

  .role-student.page-batches .batch-overview-grid {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 8px;
  }

  .page-batches .batch-overview-grid article {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    min-height: 58px;
    gap: 7px;
    padding: 8px;
    border-radius: 12px;
  }

  .page-batches .batch-overview-grid article > span {
    grid-row: 1 / span 2;
  }

  .page-batches .batch-overview-grid article > span {
    width: 32px;
    height: 32px;
    border-radius: 10px;
  }

  .page-batches .batch-overview-grid strong,
  .page-batches .batch-overview-grid small {
    grid-column: 2;
    min-width: 0;
  }

  .page-batches .batch-overview-grid strong {
    overflow: visible;
    font-size: 13px;
    line-height: 1.3;
    text-overflow: clip;
    white-space: normal;
  }

  .page-batches .batch-overview-grid small {
    font-size: 11px;
    line-height: 1.3;
    white-space: normal;
  }

  .page-batches .batch-mentor-card {
    min-height: 52px;
    padding: 7px 8px;
  }

  .page-batches .batch-mentor-card strong {
    font-size: 12px;
    line-height: 1.18;
  }

  .page-batches .batch-mentor-card small {
    font-size: 10px;
    line-height: 1.15;
  }

  .page-batches .batch-overview-grid .schedule-days {
    display: block;
    overflow: visible;
    white-space: normal;
    text-overflow: clip;
    -webkit-line-clamp: initial;
  }

  .page-batches .batch-schedule-card {
    align-items: start;
  }

  .page-batches .batch-schedule-card .schedule-next {
    color: #64748b;
  }

  .page-batches .batch-link-warning-alert {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 8px;
    margin-top: 10px;
    padding: 10px;
    border-radius: 12px;
  }

  .page-batches .batch-link-warning-alert > i,
  .page-batches .batch-link-warning-alert > svg {
    width: 32px;
    height: 32px;
    border-radius: 10px;
  }

  .page-batches .batch-link-warning-alert .button {
    grid-column: 1 / -1;
    justify-content: center;
    width: 100%;
  }

  .page-batches .batch-schedule-strip {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .page-batches .batch-schedule-strip span,
  .page-batches .batch-stream-shortcuts button {
    flex: 0 0 auto;
  }

  .page-batches .batch-chat-panel {
    height: clamp(460px, 58vh, 560px);
    height: clamp(460px, 58dvh, 560px);
    min-height: 460px;
    max-height: none;
    margin-bottom: 82px;
    aspect-ratio: auto;
    border-radius: 14px;
  }

  .page-batches .batch-chat-head {
    align-items: center;
    gap: 9px;
    padding: 12px;
  }

  .page-batches .batch-chat-head h2 {
    font-size: 17px;
    line-height: 1.1;
  }

  .page-batches .batch-chat-head p {
    display: -webkit-box;
    overflow: hidden;
    margin-top: 2px;
    font-size: 12px;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .page-batches .batch-stream-shortcuts {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 12px 14px 0;
  }

  .page-batches .batch-chat-panel .batch-chat-stream {
    flex: 1 1 auto;
    min-height: 0;
    padding: 10px;
  }

  .page-batches .batch-chat-lock-dialog {
    gap: 9px;
    padding: 20px 14px;
    border-radius: 14px;
  }

  .page-batches .batch-chat-lock-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
  }

  .page-batches .batch-chat-lock-icon svg {
    width: 22px;
    height: 22px;
  }

  .page-batches .batch-chat-lock-dialog h3 {
    font-size: 20px;
  }

  .page-batches .batch-chat-lock-dialog p {
    font-size: 13px;
    line-height: 1.45;
  }

  .page-batches .batch-chat-lock-detail {
    align-items: flex-start;
    min-height: 0;
    padding: 9px 10px;
    border-radius: 12px;
    text-align: left;
  }

  .page-batches .batch-chat-panel .chat-bubble-row,
  .page-batches .batch-chat-panel .chat-bubble-row.mine {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    justify-content: stretch;
    width: 100%;
  }

  .page-batches .batch-chat-panel .chat-bubble-row .anonymous-avatar,
  .page-batches .batch-chat-panel .chat-bubble-row.mine .anonymous-avatar,
  .page-batches .batch-chat-panel .chat-bubble-row .chat-bubble,
  .page-batches .batch-chat-panel .chat-bubble-row.mine .chat-bubble {
    grid-column: 1;
    grid-row: auto;
  }

  .page-batches .batch-chat-panel .anonymous-avatar {
    width: 28px;
    height: 28px;
  }

  .page-batches .batch-chat-panel .chat-bubble {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding: 10px 11px;
    border-radius: 12px;
    overflow-wrap: anywhere;
  }

  .page-batches .batch-chat-panel .chat-bubble p {
    font-size: 14px;
    line-height: 1.48;
  }

  .page-batches .batch-chat-panel .chat-bubble header,
  .page-batches .batch-chat-panel .message-moderate-form {
    text-align: left;
  }

  .page-batches .batch-chat-compose {
    width: calc(100% - 20px);
    margin: 0 10px 10px;
    padding: 8px 8px 8px 12px;
    border-radius: 14px;
    box-shadow: 0 10px 22px rgba(25, 55, 105, .08);
  }

  .page-batches .batch-chat-lock-readonly {
    align-items: flex-start;
    min-height: 0;
    margin: 0 10px 10px;
    padding: 10px 12px;
    border-radius: 14px;
    line-height: 1.35;
  }

  .page-batches .batch-compose-actions {
    min-height: 38px;
  }

  .page-batches .batch-compose-plus,
  .page-batches .batch-chat-compose .send-button {
    width: 38px;
    height: 38px;
  }

  .page-batches .batch-compose-action-menu {
    left: -4px;
    width: min(220px, calc(100vw - 32px));
  }

  .page-batches .batch-compose-grid {
    grid-template-columns: 1fr;
  }

  .page-batches .batch-duration-grid {
    grid-template-columns: 1fr;
  }

  .page-batches .batch-compose-panel {
    padding: 10px;
  }

  .page-batches .batch-poll-composer {
    padding: 0;
  }

  .page-batches .batch-poll-composer-head {
    padding: 10px;
  }

  .page-batches .batch-poll-composer-body {
    padding: 10px;
  }

  .page-batches .batch-poll-option-row {
    grid-template-columns: 28px minmax(0, 1fr) auto;
    padding: 6px;
  }

  .page-batches .batch-poll-option-index,
  .page-batches .batch-poll-remove-option {
    width: 28px;
    height: 28px;
  }

  .page-batches .batch-chat-compose textarea {
    min-height: 34px;
    padding: 7px 0;
    font-size: 14px;
  }

  .page-batches .batch-compose-panel input,
  .page-batches .batch-compose-panel textarea {
    padding: 9px 10px;
  }

  .page-batches .batch-compose-panel textarea {
    min-height: 72px;
  }

  .page-batches .batch-poll-question-field input,
  .page-batches .batch-poll-option-row input {
    padding: 0 2px;
  }

  .page-batches .batch-compose-policy {
    display: none;
  }

  .page-batches .batch-create-modal {
    align-items: flex-start;
    padding: 10px;
  }

  .page-batches .batch-create-dialog {
    width: min(100%, calc(100vw - 20px));
    max-height: calc(100dvh - 24px);
    padding: 18px;
  }

  .page-batches .batch-settings-schedule-grid,
  .page-batches .batch-permission-grid {
    grid-template-columns: 1fr;
  }

  .page-batches .weekday-picker {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .page-batches .batch-time-picker {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-batches .batch-period-toggle {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  .page-course .course-player-layout,
  .page-course .content-grid.two-col {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-course .course-player-card,
  .page-course .curriculum-panel,
  .page-course .course-editor-panel {
    width: 100%;
  }

  .page-course .learning-room-shell {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    width: 100%;
    max-width: 100%;
    overflow: visible;
  }

  .page-course .learning-room-sidebar,
  .page-course .learning-room-main,
  .page-course .learning-context-panel {
    grid-column: 1;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .page-course .learning-room-main {
    order: 1;
  }

  .page-course .learning-room-sidebar {
    order: 2;
  }

  .page-course .learning-context-panel {
    order: 3;
  }
}

@media (max-width: 760px) {
  .page-course .main-area {
    padding-right: 8px;
    padding-left: 8px;
  }

  .page-course .topbar {
    margin-right: -8px;
    margin-left: -8px;
    padding-right: 8px;
    padding-left: 8px;
  }

  .page-course .learning-room-shell {
    gap: 12px;
  }

  .page-course .course-player-layout {
    gap: 12px;
  }

  .page-course .course-player-card,
  .page-course .curriculum-panel,
  .page-course .course-editor-panel,
  .page-course .content-grid > .panel {
    border-radius: 14px;
  }

  .page-course .video-frame {
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 0;
  }

  .page-course .video-placeholder,
  .page-course .learning-video-placeholder {
    min-height: 100%;
    padding: 18px;
  }

  .page-course .video-placeholder h2,
  .page-course .learning-video-placeholder h2 {
    max-width: 100%;
    font-size: clamp(22px, 7vw, 30px);
    line-height: 1.14;
  }

  .page-course .video-play {
    width: 54px;
    height: 54px;
  }

  .page-course .learning-room-sidebar,
  .page-course .learning-context-panel {
    padding: 12px;
    border-radius: 14px;
  }

  .page-course .learning-room-main {
    gap: 12px;
  }

  .page-course .learning-video-card {
    border-radius: 14px;
  }

  .page-course .learning-video-stage {
    aspect-ratio: 16 / 9;
    width: 100%;
  }

  .page-course .learning-record-card {
    padding: 14px;
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(15, 35, 70, .07);
  }

  .page-course .learning-heading-row {
    gap: 10px;
  }

  .page-course .learning-heading-row h1,
  .app-shell.student-class-mode .learning-heading-row h1 {
    max-width: 100%;
    font-size: 26px;
    line-height: 1.14;
  }

  .page-course .learning-heading-note,
  .app-shell.student-class-mode .learning-heading-note {
    max-width: 100%;
    font-size: 14px;
    line-height: 1.58;
  }

  .page-course .learning-description-block {
    gap: 8px;
  }

  .page-course .learning-show-more {
    min-height: 32px;
    padding: 0 11px;
    font-size: 12px;
  }

  .page-course .learning-heading-actions {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: stretch;
    gap: 8px;
  }

  .page-course .learning-heading-actions form,
  .page-course .learning-heading-actions .button,
  .page-course .learning-heading-actions .learning-emi-actions,
  .page-course .learning-checkout-box {
    width: 100%;
    max-width: 100%;
  }

  .page-course .learning-heading-actions .button {
    justify-content: center;
  }

  .page-course .learning-command-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 8px;
  }

  .page-course .learning-command-strip span {
    min-width: 0;
    padding: 8px 10px;
  }

  .page-course .learning-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .page-course .learning-tabs a {
    justify-content: center;
    min-width: 0;
    padding-right: 8px;
    padding-left: 8px;
    white-space: nowrap;
  }

  .page-course .learning-lesson-meta {
    grid-template-columns: 1fr;
  }

  .page-course .learning-lesson-meta > a,
  .page-course .learning-lesson-meta > div {
    min-height: 64px;
    padding: 12px;
  }

  .page-course .learning-module-list,
  .page-course .learning-resource-list,
  .page-course .learning-note-list {
    min-width: 0;
  }

  .page-course .learning-note-list article,
  .page-course .learning-resource-list a,
  .page-course .learning-task-list article,
  .page-course .learning-plan-list article {
    grid-template-columns: 40px minmax(0, 1fr);
    align-items: start;
  }

  .page-course .learning-note-list article > form,
  .page-course .learning-task-list article > .button {
    grid-column: 1 / -1;
  }

  .page-course .learning-note-list article > form {
    justify-self: end;
  }

  .page-course .learning-task-list article > .button {
    justify-self: stretch;
  }

  .page-course .learning-note-list article > form .icon-button {
    width: 40px;
    min-width: 40px;
  }

  .page-course .learning-task-list article > .button {
    width: 100%;
  }

  .page-course .floating-help {
    right: max(10px, env(safe-area-inset-right));
    bottom: calc(94px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 420px) {
  .page-courses .panel {
    padding: 16px;
    border-radius: 14px;
  }

  .page-courses .catalog-search {
    grid-template-columns: minmax(0, 1fr) 40px 40px;
  }

  .page-courses .catalog-search > i,
  .page-courses .catalog-search > svg {
    display: none;
  }

  .page-courses .learning-card-body {
    padding: 12px 12px 0;
  }

  .page-courses .learning-card-actions {
    padding: 12px;
  }

  .page-courses .learning-card-actions .button {
    flex: 1 1 100%;
    width: 100%;
  }

  .page-course .learning-heading-row h1,
  .app-shell.student-class-mode .learning-heading-row h1 {
    font-size: 24px;
  }

  .page-course .learning-command-strip {
    grid-template-columns: 1fr;
  }

  .page-course .learning-tabs {
    grid-template-columns: 1fr;
  }

  .page-course .learning-private-controls {
    padding: 28px 10px 10px;
  }
}

@media (max-width: 760px) {
  .app-shell.student-class-mode,
  .app-shell.student-class-mode.sidebar-collapsed {
    background: #f3f7fd;
  }

  .app-shell.student-class-mode .main-area {
    padding: calc(50px + env(safe-area-inset-top)) 10px calc(18px + env(safe-area-inset-bottom));
  }

  .app-shell.student-class-mode .learning-room-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    width: 100%;
    margin: 0;
  }

  .app-shell.student-class-mode .learning-room-main {
    display: grid;
    gap: 10px;
    min-width: 0;
    order: 1;
  }

  .app-shell.student-class-mode .learning-video-card {
    order: 1;
    overflow: hidden;
    border: 1px solid #dfe9f7;
    border-radius: 16px;
    background: #000000;
    box-shadow: 0 14px 32px rgba(15, 35, 70, .12);
  }

  .app-shell.student-class-mode .learning-video-stage {
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 0;
  }

  .app-shell.student-class-mode .learning-mobile-focus {
    order: 2;
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid #dfe9f7;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 35, 70, .07);
  }

  .learning-mobile-focus-meta,
  .learning-mobile-nav,
  .learning-mobile-tools {
    display: grid;
    gap: 8px;
    min-width: 0;
  }

  .learning-mobile-focus-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .learning-mobile-focus-meta span,
  .learning-mobile-tools span,
  .learning-mobile-tools a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 0;
    min-height: 34px;
    padding: 7px 9px;
    color: #4e5d73;
    background: #f5f8fd;
    border: 1px solid #e1eaf6;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.15;
    text-align: center;
  }

  .learning-mobile-focus h1 {
    margin: 0;
    color: #081a3f;
    font-size: clamp(20px, 6vw, 25px);
    line-height: 1.16;
    letter-spacing: 0;
  }

  .learning-mobile-focus p {
    margin: -4px 0 0;
    color: #64728a;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
  }

  .learning-mobile-progress {
    height: 7px;
    overflow: hidden;
    background: #e8eef7;
    border-radius: 999px;
  }

  .learning-mobile-progress span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #0f63ff, #20b7ff);
    border-radius: inherit;
  }

  .learning-mobile-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .learning-mobile-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-width: 0;
    min-height: 42px;
    padding: 8px 9px;
    color: #0c326f;
    background: #eef5ff;
    border: 1px solid #cfe0ff;
    border-radius: 13px;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.1;
    text-align: center;
  }

  .learning-mobile-nav a:nth-child(2) {
    color: #ffffff;
    background: #0f63ff;
    border-color: #0f63ff;
  }

  .learning-mobile-nav a.disabled {
    pointer-events: none;
    color: #8a96a8;
    background: #f2f5fa;
    border-color: #e1e8f1;
  }

  .learning-mobile-nav svg,
  .learning-mobile-tools svg {
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
  }

  .learning-mobile-tools {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .learning-mobile-tools a.active {
    color: #0f63ff;
    background: #eaf3ff;
    border-color: #bdd5ff;
  }

  .app-shell.student-class-mode .learning-heading-row {
    order: 3;
    display: block;
    min-width: 0;
  }

  .app-shell.student-class-mode .learning-record-card {
    display: none;
  }

  .app-shell.student-class-mode .learning-heading-actions {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 8px;
    align-items: stretch;
    width: 100%;
  }

  .app-shell.student-class-mode .learning-heading-actions form,
  .app-shell.student-class-mode .learning-heading-actions .button {
    width: 100%;
    max-width: 100%;
  }

  .app-shell.student-class-mode .learning-heading-actions .icon-button,
  .app-shell.student-class-mode .learning-heading-actions .button {
    min-height: 44px;
    border-radius: 14px;
  }

  .app-shell.student-class-mode .learning-heading-actions .button {
    justify-content: center;
    font-size: 14px;
    font-weight: 900;
  }

  .app-shell.student-class-mode .learning-tabs,
  .app-shell.student-class-mode .learning-lesson-meta,
  .app-shell.student-class-mode .learning-command-strip,
  .app-shell.student-class-mode .learning-breadcrumbs {
    display: none !important;
  }

  .app-shell.student-class-mode .learning-context-panel,
  .app-shell.student-class-mode .learning-room-sidebar {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    border: 1px solid #dfe9f7;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 35, 70, .06);
  }

  .app-shell.student-class-mode .learning-context-panel {
    order: 2;
    padding: 14px;
    overflow: hidden;
  }

  .app-shell.student-class-mode .learning-context-panel .panel-title-row {
    margin-bottom: 12px;
  }

  .app-shell.student-class-mode .learning-mobile-context-title {
    display: flex;
  }

  .app-shell.student-class-mode .learning-context-panel .panel-title-row h2 {
    font-size: 18px;
  }

  .app-shell.student-class-mode .learning-note-form {
    gap: 9px;
    margin-bottom: 12px;
  }

  .app-shell.student-class-mode .learning-note-form textarea {
    min-height: 96px;
    border-radius: 14px;
  }

  .app-shell.student-class-mode .learning-note-list,
  .app-shell.student-class-mode .learning-resource-list {
    gap: 9px;
  }

  .app-shell.student-class-mode .learning-note-list article,
  .app-shell.student-class-mode .learning-resource-list a,
  .app-shell.student-class-mode .learning-task-list article,
  .app-shell.student-class-mode .learning-plan-list article {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    min-height: 58px;
    padding: 11px;
    background: #f8fbff;
    border: 1px solid #e3ebf6;
    border-radius: 14px;
  }

  .app-shell.student-class-mode .learning-note-list article > form {
    grid-column: 1 / -1;
    justify-self: end;
  }

  .app-shell.student-class-mode .learning-view-all {
    min-height: 38px;
    margin-top: 10px;
    padding: 0 12px;
    border-radius: 12px;
    background: #eef5ff;
  }

  .app-shell.student-class-mode .learning-room-sidebar {
    order: 3;
    position: static;
    display: grid;
    gap: 0;
    max-height: none;
    padding: 0;
    overflow: hidden;
  }

  .app-shell.student-class-mode .learning-room-sidebar .learning-back-link,
  .app-shell.student-class-mode .learning-room-sidebar .learning-course-card,
  .app-shell.student-class-mode .learning-room-sidebar .learning-sidebar-tabs,
  .app-shell.student-class-mode .learning-room-sidebar .learning-lesson-search,
  .app-shell.student-class-mode .learning-room-sidebar .learning-course-details,
  .app-shell.student-class-mode .learning-room-sidebar > .button {
    display: none;
  }

  .app-shell.student-class-mode .learning-class-content-head {
    position: static;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 12px;
    padding: 14px;
    color: #081a3f;
    background: #ffffff;
    border-bottom: 1px solid #e4edf8;
  }

  .app-shell.student-class-mode .learning-class-content-head strong {
    font-size: 17px;
    line-height: 1.2;
  }

  .app-shell.student-class-mode .learning-class-content-head small {
    color: #65758f;
    font-size: 12px;
    font-weight: 800;
  }

  .app-shell.student-class-mode .learning-class-content-head > span {
    color: #0f63ff;
    font-size: 15px;
    font-weight: 900;
  }

  .app-shell.student-class-mode .learning-class-content-head .progress-line {
    grid-column: 1 / -1;
    height: 7px;
    background: #e8eef7;
  }

  .app-shell.student-class-mode .learning-class-content-head .progress-line span {
    background: linear-gradient(90deg, #0f63ff, #20b7ff);
  }

  .app-shell.student-class-mode .learning-module-list {
    gap: 0;
    background: #ffffff;
  }

  .app-shell.student-class-mode .learning-module {
    border: 0;
    border-top: 1px solid #eef2f8;
    border-radius: 0;
  }

  .app-shell.student-class-mode .learning-module:first-child {
    border-top: 0;
  }

  .app-shell.student-class-mode .learning-module summary {
    min-height: 54px;
    padding: 13px 14px;
    background: #ffffff;
  }

  .app-shell.student-class-mode .learning-module[open] summary {
    background: #f4f8ff;
  }

  .app-shell.student-class-mode .learning-module summary small {
    display: block;
    color: #0f63ff;
    font-size: 11px;
    font-weight: 900;
  }

  .app-shell.student-class-mode .learning-module summary strong {
    color: #182642;
    font-size: 14px;
    line-height: 1.25;
  }

  .app-shell.student-class-mode .learning-module summary em {
    color: #52647f;
    font-size: 12px;
    font-weight: 900;
  }

  .app-shell.student-class-mode .learning-lesson-list {
    gap: 8px;
    padding: 8px 12px 14px;
  }

  .app-shell.student-class-mode .learning-lesson-list a,
  .app-shell.student-class-mode .learning-lesson-locked {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 10px;
    min-height: 54px;
    padding: 10px;
    background: #ffffff;
    border: 1px solid #e4ebf6;
    border-radius: 13px;
  }

  .app-shell.student-class-mode .learning-lesson-list a.active {
    color: #0f63ff;
    background: #eef5ff;
    border-color: #bfd5ff;
    box-shadow: inset 3px 0 0 #0f63ff;
  }

  .app-shell.student-class-mode .learning-lesson-list .lesson-state {
    width: 26px;
    height: 26px;
  }

  .app-shell.student-class-mode .learning-lesson-list strong {
    display: -webkit-box;
    overflow: hidden;
    color: #17233a;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.25;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .app-shell.student-class-mode .learning-lesson-list small {
    margin-top: 3px;
    color: #6b7890;
    font-size: 11px;
  }
}

@media (max-width: 900px) {
  body.role-student.page-attendance .main-area,
  body.role-student.page-attendance .student-attendance-shell,
  body.role-student.page-attendance .attendance-main,
  body.role-student.page-attendance .attendance-analytics-grid,
  body.role-student.page-attendance .attendance-lower-grid,
  body.role-student.page-attendance .attendance-kpi-grid {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: clip;
  }

  body.role-student.page-attendance .student-attendance-shell,
  body.role-student.page-attendance .attendance-analytics-grid,
  body.role-student.page-attendance .attendance-lower-grid,
  body.role-student.page-attendance .attendance-kpi-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body.role-student.page-attendance .attendance-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  body.role-student.page-attendance .attendance-head h1 {
    max-width: 100%;
    font-size: clamp(26px, 8vw, 34px);
    line-height: 1.1;
    white-space: normal;
    overflow-wrap: anywhere;
    text-wrap: balance;
  }

  body.role-student.page-attendance .attendance-head p,
  body.role-student.page-attendance .attendance-kpi-card p,
  body.role-student.page-attendance .attendance-kpi-card a {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  body.role-student.page-attendance .attendance-kpi-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
  }
}
