.hero.lms-hero {
  text-align: left;
  max-width: 1180px;
  padding: 2.4rem 2rem 0.4rem;
  background:
    radial-gradient(circle at 0% 0%, rgba(4, 129, 253, 0.16), transparent 42%),
    radial-gradient(circle at 90% 20%, rgba(0, 21, 72, 0.08), transparent 36%);
}
.hero.lms-hero h1,
.hero.lms-hero .hero-desc {
  margin-left: 0;
  margin-right: 0;
}
.hero.lms-hero h1 {
  max-width: 28ch;
  font-size: clamp(1.7rem, 2.6vw, 2.2rem);
}
.plat-bar-wrap.is-flush {
  padding-top: 1.25rem;
}
.hero.lms-hero .hero-desc {
  max-width: 62ch;
}

.lms-page {
  max-width: 1180px;
}
.lms-kicker {
  margin: 0 0 0.35rem;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-deep, #225ab8);
}

.lms-admin-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.lms-admin-head .repo-back-link {
  margin: 0;
}
.lms-stats {
  display: flex;
  gap: 0.6rem;
}
.lms-stats div {
  min-width: 92px;
  background: #fff;
  border: 1px solid rgba(0, 21, 72, 0.08);
  border-radius: 16px;
  padding: 0.7rem 0.9rem;
  box-shadow: 0 10px 24px rgba(0, 21, 72, 0.04);
}
.lms-stats strong {
  display: block;
  font-size: 1.35rem;
  line-height: 1;
  color: var(--navy, #001548);
}
.lms-stats span {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted, #5b6478);
}
.lms-admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.85fr);
  gap: 1.25rem;
  align-items: start;
}
.lms-side {
  position: sticky;
  top: 1rem;
}

.lms-curriculum,
.lms-studio {
  display: grid;
  gap: 0.9rem;
}
.lms-module {
  background: #fff;
  border: 1px solid rgba(0, 21, 72, 0.08);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 21, 72, 0.05);
}
.lms-module > summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.95rem;
  padding: 1.05rem 1.15rem;
  cursor: pointer;
  background:
    linear-gradient(90deg, rgba(4, 129, 253, 0.08), transparent 28%),
    #fff;
}
.lms-module > summary::-webkit-details-marker {
  display: none;
}
.lms-module[open] > summary {
  border-bottom: 1px solid rgba(0, 21, 72, 0.06);
}
.lms-mod-index {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, #001548, #225ab8);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 8px 16px rgba(0, 21, 72, 0.18);
}
.lms-mod-copy {
  display: grid;
  gap: 0.15rem;
  flex: 1;
  min-width: 0;
}
.lms-mod-copy strong {
  color: var(--navy, #001548);
  font-size: 1.02rem;
  letter-spacing: -0.01em;
}
.lms-mod-copy span {
  font-size: 13px;
  color: var(--muted, #5b6478);
}
.lms-chip {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 100px;
  padding: 0.32rem 0.7rem;
  white-space: nowrap;
}
.lms-chip.is-open {
  background: rgba(4, 129, 253, 0.12);
  color: #225ab8;
}
.lms-chip.is-done {
  background: #e7f7ee;
  color: #0f7b4c;
}
.lms-chip.is-lock,
.lms-chip.is-empty {
  background: #f3f5f8;
  color: #5b6b80;
}
.lms-resources {
  list-style: none;
  margin: 0;
  padding: 0.85rem;
  display: grid;
  gap: 0.55rem;
}
.lms-resources a,
.lms-admin-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(0, 21, 72, 0.07);
  border-radius: 16px;
  text-decoration: none;
  color: var(--navy, #001548);
  background: linear-gradient(180deg, #f8fbff, #fff);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.lms-resources a:hover {
  border-color: rgba(4, 129, 253, 0.45);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(4, 129, 253, 0.1);
}
.lms-resource-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid rgba(4, 129, 253, 0.16);
  flex: none;
}
.lms-resource-copy {
  flex: 1;
  min-width: 0;
}
.lms-resources strong,
.lms-admin-row strong {
  display: block;
}
.lms-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex: none;
}
.lms-edit {
  border: 1px solid rgba(34, 90, 184, 0.35);
  background: #f4f8ff;
  color: #225ab8;
  border-radius: 999px;
  padding: 0.42rem 0.85rem;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.lms-edit:hover { background: #e7f1ff; }
.lms-edit-form { margin: 0 0.85rem 0.35rem; }
.lms-field-hint {
  margin: -0.35rem 0 0.85rem;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted, #5b6478);
}
.lms-download {
  background: #fff;
  border: 1px solid rgba(0, 21, 72, 0.08);
  border-radius: 22px;
  padding: 1.4rem 1.5rem;
  box-shadow: 0 16px 40px rgba(0, 21, 72, 0.05);
}
.lms-download p {
  margin: 0 0 1rem;
  color: var(--muted, #5b6478);
  font-size: 14px;
}
.lms-delete {
  flex: none;
  display: grid;
  justify-items: end;
  gap: 0.25rem;
}
.lms-delete button {
  border: 1px solid rgba(180, 35, 24, 0.35);
  background: #fff5f5;
  color: #b42318;
  border-radius: 999px;
  padding: 0.42rem 0.85rem;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.lms-delete button:hover {
  background: #fdecec;
}
.lms-delete button:disabled {
  opacity: 0.6;
  cursor: progress;
}
.lms-delete .err {
  font-size: 12px;
  color: #b42318;
}
.lms-resources em,
.lms-admin-row em {
  display: block;
  font-style: normal;
  font-size: 12px;
  color: var(--muted, #5b6478);
}
.lms-resources .done {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0f7b4c;
}
.lms-resources a > span:last-child:not(.done) {
  margin-left: auto;
  font-size: 12px;
  font-weight: 700;
  color: #0481fd;
}
.lms-locked {
  margin: 0 1.15rem 1.1rem;
  color: var(--muted, #5b6478);
  font-size: 14px;
}
.lms-card,
.lms-admin .plat-form,
.lms-reader .plat-form,
.lms-roster-card {
  margin: 0.85rem 1rem 1rem;
  border: 0;
  background: #f6f9fd;
  border-radius: 18px;
  box-shadow: none;
}
.lms-admin .plat-form,
.lms-side .plat-form,
.lms-roster-card {
  margin: 0 0 1rem;
  background: #fff;
  border: 1px solid rgba(0, 21, 72, 0.08);
  box-shadow: 0 16px 40px rgba(0, 21, 72, 0.05);
}
.lms-card h3,
.plat-form h3,
.lms-roster-card h3 {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--navy, #001548);
}
.lms-new-module {
  display: grid;
  gap: 0.75rem;
}
.lms-composer {
  background:
    linear-gradient(180deg, rgba(4, 129, 253, 0.05), transparent 90px),
    #f6f9fd;
}
.lms-unlock {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.lms-types {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 0.5rem;
  border: 0;
  padding: 0;
  margin: 0;
}
.lms-types legend {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 0.35rem;
  padding: 0;
}
.lms-type {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid rgba(0, 21, 72, 0.1);
  border-radius: 14px;
  padding: 0.55rem 0.65rem;
  font-size: 13px;
  background: #fff;
  cursor: pointer;
}
.lms-type:has(input:checked) {
  border-color: #0481fd;
  background: #eef6ff;
  box-shadow: 0 0 0 3px rgba(4, 129, 253, 0.12);
}
.lms-type input {
  accent-color: #0481fd;
}
.lms-check {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 13px;
}
.lms-drop {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-height: 92px;
  padding: 1rem 1.05rem;
  border-radius: 18px;
  border: 1.5px dashed rgba(4, 129, 253, 0.45);
  background:
    radial-gradient(circle at 0 0, rgba(4, 129, 253, 0.12), transparent 46%),
    linear-gradient(180deg, #f4f9ff, #fff);
  cursor: pointer;
  overflow: hidden;
}
.lms-drop.is-over,
.lms-drop:hover {
  border-color: #0481fd;
  box-shadow: 0 12px 28px rgba(4, 129, 253, 0.12);
}
.lms-drop.has-file {
  border-style: solid;
  border-color: #0f7b4c;
  background: linear-gradient(180deg, #f3fbf6, #fff);
}
.lms-drop-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.lms-drop-mark {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  flex: none;
  color: #fff;
  background: linear-gradient(160deg, #0481fd, #001548);
  box-shadow: 0 8px 18px rgba(4, 129, 253, 0.28);
}
.lms-drop-copy {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
  flex: 1;
}
.lms-drop-copy strong {
  color: var(--navy, #001548);
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lms-drop-copy em {
  font-style: normal;
  font-size: 12px;
  color: var(--muted, #5b6478);
}
.lms-drop-action {
  flex: none;
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  background: #001548;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
.lms-item-type {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-deep, #225ab8);
  margin: 0 0 1rem;
  background: #fff;
  border: 1px solid rgba(4, 129, 253, 0.16);
  border-radius: 999px;
  padding: 0.35rem 0.75rem 0.35rem 0.45rem;
}

.lms-course {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 1.35rem;
  align-items: start;
}
.lms-rail {
  position: sticky;
  top: 1rem;
  display: grid;
  gap: 0.4rem;
  padding: 0.9rem;
  background: #fff;
  border: 1px solid rgba(0, 21, 72, 0.08);
  border-radius: 22px;
  box-shadow: 0 16px 40px rgba(0, 21, 72, 0.05);
}
.lms-rail-link {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 0.55rem;
  align-items: center;
  padding: 0.55rem 0.55rem;
  border-radius: 14px;
  text-decoration: none;
  color: var(--navy, #001548);
}
.lms-rail-link:hover,
.lms-rail-link.is-canvas {
  background: #f4f8ff;
}
.lms-rail-link span {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #001548;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}
.lms-rail-link strong {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}
.lms-cover {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 1rem;
  padding: 1.5rem 1.5rem 1.35rem;
  border-radius: 26px;
  color: #fff;
  background:
    radial-gradient(circle at 100% 0%, rgba(4, 129, 253, 0.55), transparent 36%),
    linear-gradient(145deg, #001548 0%, #0b2f78 58%, #0481fd 140%);
  box-shadow: 0 22px 50px rgba(0, 21, 72, 0.22);
}
.lms-cover .lms-kicker {
  color: #9cc4ff;
}
.lms-cover h2 {
  margin: 0 0 0.45rem;
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
  max-width: 22ch;
}
.lms-cover p {
  margin: 0 0 0.7rem;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  max-width: 62ch;
}
.lms-cover-client {
  font-weight: 600;
  color: #fff !important;
}
.lms-cover-meta {
  font-size: 13px !important;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82) !important;
}
.lms-route {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0;
  margin: 0 0 0.85rem;
  list-style: none;
}
.lms-route li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 0.28rem 0.7rem 0.28rem 0.3rem;
  font-size: 12px;
}
.lms-route span {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  color: #001548;
  font-size: 11px;
  font-weight: 700;
}
.lms-meter {
  --p: 0%;
  position: relative;
  width: 118px;
  height: 118px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(#7eb6ff var(--p), rgba(255, 255, 255, 0.16) 0);
  flex: none;
}
.lms-meter::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: #04163f;
}
.lms-meter strong,
.lms-meter span {
  position: relative;
  z-index: 1;
  text-align: center;
}
.lms-meter strong {
  font-size: 1.35rem;
  line-height: 1;
}
.lms-meter span {
  position: absolute;
  top: 62%;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.lms-catalog .course-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  padding: 1.25rem 1.3rem;
  border: 1px solid rgba(0, 21, 72, 0.08);
  box-shadow: 0 16px 36px rgba(0, 21, 72, 0.05);
  background: #fff;
}
.lms-catalog .course-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #0481fd, #001548);
}
.lms-progress .progress-card,
.lms-roster-card {
  border-radius: 22px;
}
.lms-roster {
  list-style: none;
  margin: 0.8rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}
.lms-person {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 0.65rem;
  align-items: center;
  margin-bottom: 0.4rem;
}
.lms-person strong,
.lms-person em {
  display: block;
}
.lms-person em {
  font-style: normal;
  font-size: 12px;
  color: var(--muted, #5b6478);
}
.lms-person b {
  color: #225ab8;
  font-size: 13px;
}
.lms-avatar {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #e8f2ff;
  color: #001548;
  font-size: 12px;
  font-weight: 700;
}
.lms-reader .media-frame,
.lms-reader .course-prose {
  border-radius: 22px;
  box-shadow: 0 16px 40px rgba(0, 21, 72, 0.05);
}

@media (max-width: 980px) {
  .lms-admin-grid,
  .lms-course,
  .lms-cover {
    grid-template-columns: 1fr;
  }
  .lms-side,
  .lms-rail {
    position: static;
  }
  .lms-admin-head,
  .lms-module > summary {
    flex-wrap: wrap;
  }
  .lms-meter {
    justify-self: start;
  }
}
@media (max-width: 720px) {
  .lms-unlock,
  .lms-stats {
    grid-template-columns: 1fr;
    flex-wrap: wrap;
  }
  .hero.lms-hero {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
  .lms-drop {
    flex-wrap: wrap;
  }
}
