/* Learn is an isolated static concept view. All page styling is scoped to the
   Learn route so existing Dashboard, Practice, Review, Test, and utility UI
   preserve their current layout and behavior. */

.ls-learn-tool[hidden] {
  display: none !important;
}

body.ls-learn-tool-active .ls-app-primary-nav ~ [data-slot="tabs-content"] {
  display: none !important;
}

body.ls-learn-tool-active .ls-app-primary-nav {
  top: 2.325rem !important;
}

body.ls-learn-tool-active .ls-app-primary-nav > button[data-state="active"],
body.ls-learn-tool-active .ls-app-primary-nav > button[aria-selected="true"] {
  border-color: transparent !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #263247 !important;
}

body.ls-learn-tool-active .ls-app-primary-nav > .ls-learn-nav[aria-current="page"] {
  border-color: rgba(30, 43, 68, 0.14) !important;
  background: #fbfdff !important;
  box-shadow: 0 4px 12px rgba(30, 43, 68, 0.1) !important;
  color: #101827 !important;
}

.ls-app-primary-nav > .ls-learn-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  white-space: nowrap;
}

.ls-app-primary-nav > .ls-learn-nav svg {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
}

.ls-learn-tool {
  width: 100%;
  color: #101827;
  font-family: Aptos, "Segoe UI Variable", "Segoe UI", sans-serif;
}

.ls-learn-page {
  width: min(100%, 74rem);
  margin: 0 auto;
  padding: 1.25rem 0 2.5rem;
}

.ls-learn-heading {
  margin-bottom: 1rem;
}

.ls-learn-heading h1 {
  margin: 0;
  color: #101827;
  font-size: 2.25rem;
  font-weight: 730;
  line-height: 1.12;
  letter-spacing: 0;
}

.ls-learn-heading p {
  margin: 0.4rem 0 0;
  color: #5d687c;
  font-size: 1rem;
  line-height: 1.5;
}

.ls-learn-topic-hero,
.ls-learn-utility-card,
.ls-learn-overview,
.ls-learn-ready {
  border: 1px solid #dfe7e9;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(23, 40, 54, 0.045);
}

.ls-learn-topic-hero {
  position: relative;
  min-height: 18.25rem;
  overflow: hidden;
  background: #f8fcfb;
}

.ls-learn-topic-hero::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.99) 0%,
    rgba(255, 255, 255, 0.97) 43%,
    rgba(243, 251, 249, 0.66) 62%,
    rgba(234, 249, 245, 0.54) 100%
  );
  content: "";
  pointer-events: none;
}

.ls-learn-topic-copy {
  position: relative;
  z-index: 3;
  width: 52%;
  padding: 1.75rem 2rem 1.65rem;
}

.ls-learn-eyebrow {
  margin: 0 0 0.75rem;
  color: #087f6d;
  font-size: 0.75rem;
  font-weight: 760;
  line-height: 1.2;
  text-transform: uppercase;
}

.ls-learn-topic-copy h2 {
  margin: 0;
  color: #0f1725;
  font-size: 2.35rem;
  font-weight: 750;
  line-height: 1.08;
  letter-spacing: 0;
}

.ls-learn-topic-description {
  max-width: 31rem;
  margin: 0.7rem 0 0;
  color: #536077;
  font-size: 0.95rem;
  line-height: 1.55;
}

.ls-learn-details {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.ls-learn-detail {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.35rem;
  border: 1px solid #dce4e8;
  border-radius: 6px;
  padding: 0.48rem 0.72rem;
  background: rgba(255, 255, 255, 0.92);
  color: #263247;
  font-size: 0.81rem;
  font-weight: 610;
  line-height: 1;
  white-space: nowrap;
}

.ls-learn-detail svg {
  width: 1rem;
  height: 1rem;
  color: #536077;
}

.ls-learn-topic-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.ls-learn-static-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 2.85rem;
  border-radius: 6px;
  padding: 0.68rem 1.15rem;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.ls-learn-static-action svg {
  width: 1.05rem;
  height: 1.05rem;
}

.ls-learn-primary-action {
  min-width: 11.5rem;
  border: 1px solid #07856f;
  background: #0a9279;
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(7, 133, 111, 0.16);
}

.ls-learn-outline-action {
  min-width: 10.9rem;
  border: 1px solid #139b84;
  background: rgba(255, 255, 255, 0.9);
  color: #087f6d;
}

.ls-learn-scene {
  position: absolute;
  z-index: 2;
  top: -0.5rem;
  right: -0.75rem;
  bottom: -0.8rem;
  width: 58%;
  pointer-events: none;
}

.ls-learn-scene img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: right center;
  user-select: none;
}

.ls-learn-utility-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1rem;
}

.ls-learn-utility-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 0.85rem;
  min-height: 7.1rem;
  padding: 1rem 1rem 0.9rem;
}

.ls-learn-utility-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
}

.ls-learn-utility-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.ls-learn-utility-icon-teal {
  background: #e4f6f1;
  color: #07937c;
}

.ls-learn-utility-icon-blue {
  background: #e8f1ff;
  color: #2674d9;
}

.ls-learn-utility-icon-orange {
  background: #fff0e6;
  color: #e97824;
}

.ls-learn-utility-icon-violet {
  background: #f2e9fb;
  color: #8c43c7;
}

.ls-learn-utility-card h3 {
  margin: 0.15rem 0 0;
  color: #111a2a;
  font-size: 0.91rem;
  font-weight: 730;
  line-height: 1.28;
  letter-spacing: 0;
}

.ls-learn-utility-card p {
  margin: 0.35rem 0 0;
  color: #667287;
  font-size: 0.76rem;
  line-height: 1.4;
}

.ls-learn-card-arrow {
  position: absolute;
  right: 0.85rem;
  bottom: 0.8rem;
  color: #4b586d;
}

.ls-learn-card-arrow svg {
  width: 1rem;
  height: 1rem;
}

.ls-learn-overview {
  margin-top: 1rem;
  padding: 1.1rem 1.25rem 1rem;
}

.ls-learn-overview > h2 {
  margin: 0 0 0.85rem;
  color: #111a2a;
  font-size: 0.95rem;
  font-weight: 730;
  line-height: 1.3;
  letter-spacing: 0;
}

.ls-learn-overview-layout {
  display: grid;
  grid-template-columns: 10.5rem minmax(0, 1fr);
  gap: 0.9rem;
}

.ls-learn-overview-rail {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding-top: 0.15rem;
}

.ls-learn-rail-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.85rem;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 0.55rem 0.6rem;
  color: #344158;
  font-size: 0.77rem;
  font-weight: 620;
  line-height: 1.2;
  user-select: none;
}

.ls-learn-rail-item > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: #f2f5f8;
  color: #516078;
}

.ls-learn-rail-item svg {
  width: 1rem;
  height: 1rem;
}

.ls-learn-rail-item-active {
  border-color: #d7e9e5;
  background: #f2faf8;
  color: #087f6d;
}

.ls-learn-rail-item-active > span {
  background: #def4ee;
  color: #07856f;
}

.ls-learn-lesson-canvas {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(17rem, 1.2fr);
  gap: 0.75rem;
  border: 1px solid #e2e8ec;
  border-radius: 7px;
  padding: 0.9rem;
  background: #fcfdfd;
}

.ls-learn-definition {
  min-width: 0;
  padding: 0.25rem 0.15rem 0;
  color: #516078;
  font-size: 0.78rem;
  line-height: 1.48;
}

.ls-learn-definition p {
  margin: 0;
}

.ls-learn-definition p:last-child {
  margin-top: 0.65rem;
}

.ls-learn-equation {
  display: inline-flex;
  align-items: center;
  min-height: 3.15rem;
  margin: 0.65rem 0 0.15rem 3.25rem;
  border: 1px solid #d7e9e5;
  border-radius: 6px;
  padding: 0.45rem 0.8rem;
  background: #f0f8f6;
  color: #1a2d3d;
  font-family: Cambria Math, STIX Two Math, Georgia, serif;
  font-size: 1.12rem;
  line-height: 1;
}

.ls-learn-sigma {
  font-size: 2rem;
  line-height: 1;
}

.ls-learn-limits {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  align-self: stretch;
  justify-content: space-between;
  margin: 0 0.18rem 0 -0.12rem;
  font-size: 0.58rem;
  line-height: 1;
}

.ls-learn-limits sup,
.ls-learn-limits sub {
  line-height: 1;
}

.ls-learn-example {
  min-width: 0;
  border: 1px solid #cfe1f4;
  border-radius: 6px;
  padding: 0.7rem 0.8rem;
  background: #f7fbff;
  color: #516078;
  font-size: 0.75rem;
  line-height: 1.42;
}

.ls-learn-example p {
  margin: 0;
}

.ls-learn-example > p:not(.ls-learn-example-label) {
  margin-top: 0.45rem;
}

.ls-learn-example-label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: #2674d9;
  font-weight: 720;
}

.ls-learn-example-label span {
  font-size: 1rem;
}

.ls-learn-example-equation {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.12rem;
  margin-top: 0.45rem;
  color: #1a2d3d;
  font-family: Cambria Math, STIX Two Math, Georgia, serif;
  font-size: 0.9rem;
  line-height: 1.25;
}

.ls-learn-example-equation .ls-learn-sigma {
  font-size: 1.55rem;
}

.ls-learn-example-equation .ls-learn-limits {
  height: 1.65rem;
}

.ls-learn-fraction {
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  text-align: center;
  line-height: 1.05;
}

.ls-learn-fraction span:first-child {
  border-bottom: 1px solid currentColor;
  padding: 0 0.3rem 0.1rem;
}

.ls-learn-fraction span:last-child {
  padding: 0.1rem 0.3rem 0;
}

.ls-learn-why {
  grid-column: 1 / -1;
  border: 1px solid #cfe8e1;
  border-radius: 6px;
  padding: 0.55rem 0.7rem;
  background: #f2faf8;
  color: #536077;
  font-size: 0.73rem;
  line-height: 1.42;
}

.ls-learn-why p {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 0.2rem;
  color: #087f6d;
}

.ls-learn-why p svg {
  width: 0.9rem;
  height: 0.9rem;
}

.ls-learn-question-field {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.55rem;
  border: 1px solid #dfe6ea;
  border-radius: 6px;
  padding: 0.45rem 0.45rem 0.45rem 0.7rem;
  background: #ffffff;
  color: #8a95a6;
  font-size: 0.79rem;
  pointer-events: none;
}

.ls-learn-question-field > svg {
  width: 1rem;
  height: 1rem;
  color: #536077;
}

.ls-learn-send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.9rem;
  height: 1.9rem;
  margin-left: auto;
  border-radius: 6px;
  background: #e7f6f2;
  color: #07937c;
}

.ls-learn-send svg {
  width: 1rem;
  height: 1rem;
}

.ls-learn-ready {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  min-height: 5rem;
  margin-top: 1rem;
  padding: 0.8rem 1.2rem;
  background: #f5fbf9;
}

.ls-learn-ready-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.45rem;
  height: 3.45rem;
  border: 0.5rem solid rgba(231, 247, 242, 0.78);
  border-radius: 50%;
  background: #ffffff;
  color: #07937c;
}

.ls-learn-ready-icon svg {
  width: 1.55rem;
  height: 1.55rem;
}

.ls-learn-ready h2 {
  margin: 0;
  color: #111a2a;
  font-size: 0.91rem;
  font-weight: 730;
  line-height: 1.3;
  letter-spacing: 0;
}

.ls-learn-ready p {
  margin: 0.26rem 0 0;
  color: #667287;
  font-size: 0.76rem;
  line-height: 1.4;
}

.ls-learn-ready-action {
  min-width: 11rem;
  border: 1px solid #139b84;
  background: #ffffff;
  color: #087f6d;
}

html.ls-dark-mode body.ls-learn-tool-active .ls-app-primary-nav > button[data-state="active"],
html.ls-dark-mode body.ls-learn-tool-active .ls-app-primary-nav > button[aria-selected="true"] {
  border-color: transparent !important;
  background: transparent !important;
  color: #c2cee0 !important;
}

html.ls-dark-mode body.ls-learn-tool-active .ls-app-primary-nav > .ls-learn-nav[aria-current="page"] {
  border-color: rgba(238, 244, 250, 0.82) !important;
  background: #edf4fb !important;
  color: #101827 !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24) !important;
}

html.ls-dark-mode .ls-learn-tool {
  color: #eef4fb;
}

html.ls-dark-mode .ls-learn-heading h1,
html.ls-dark-mode .ls-learn-topic-copy h2,
html.ls-dark-mode .ls-learn-utility-card h3,
html.ls-dark-mode .ls-learn-overview > h2,
html.ls-dark-mode .ls-learn-ready h2 {
  color: #f3f7fc;
}

html.ls-dark-mode .ls-learn-heading p,
html.ls-dark-mode .ls-learn-topic-description,
html.ls-dark-mode .ls-learn-utility-card p,
html.ls-dark-mode .ls-learn-ready p {
  color: #aebbd0;
}

html.ls-dark-mode .ls-learn-topic-hero,
html.ls-dark-mode .ls-learn-utility-card,
html.ls-dark-mode .ls-learn-overview,
html.ls-dark-mode .ls-learn-ready {
  border-color: rgba(143, 164, 192, 0.2);
  background: #111b2b;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18);
}

html.ls-dark-mode .ls-learn-topic-hero::before {
  background: linear-gradient(
    90deg,
    rgba(17, 27, 43, 0.99) 0%,
    rgba(17, 27, 43, 0.96) 45%,
    rgba(13, 39, 43, 0.76) 75%,
    rgba(10, 48, 48, 0.76) 100%
  );
}

html.ls-dark-mode .ls-learn-scene img {
  filter: brightness(0.72) saturate(0.72);
  opacity: 0.8;
}

html.ls-dark-mode .ls-learn-eyebrow {
  color: #55d0bb;
}

html.ls-dark-mode .ls-learn-detail {
  border-color: rgba(143, 164, 192, 0.28);
  background: rgba(18, 31, 50, 0.92);
  color: #d5dfec;
}

html.ls-dark-mode .ls-learn-detail svg {
  color: #aebbd0;
}

html.ls-dark-mode .ls-learn-outline-action,
html.ls-dark-mode .ls-learn-ready-action {
  border-color: rgba(85, 208, 187, 0.6);
  background: #111b2b;
  color: #77dbc9;
}

html.ls-dark-mode .ls-learn-card-arrow {
  color: #aebbd0;
}

html.ls-dark-mode .ls-learn-rail-item {
  color: #c2cee0;
}

html.ls-dark-mode .ls-learn-rail-item > span {
  background: #172438;
  color: #aebbd0;
}

html.ls-dark-mode .ls-learn-rail-item-active {
  border-color: rgba(85, 208, 187, 0.28);
  background: rgba(20, 74, 69, 0.28);
  color: #77dbc9;
}

html.ls-dark-mode .ls-learn-rail-item-active > span {
  background: rgba(37, 156, 137, 0.2);
  color: #77dbc9;
}

html.ls-dark-mode .ls-learn-lesson-canvas {
  border-color: rgba(143, 164, 192, 0.2);
  background: #0f1929;
}

html.ls-dark-mode .ls-learn-definition,
html.ls-dark-mode .ls-learn-example,
html.ls-dark-mode .ls-learn-why {
  color: #b9c5d6;
}

html.ls-dark-mode .ls-learn-equation {
  border-color: rgba(85, 208, 187, 0.25);
  background: rgba(20, 74, 69, 0.24);
  color: #edf4fb;
}

html.ls-dark-mode .ls-learn-example {
  border-color: rgba(89, 153, 220, 0.28);
  background: rgba(31, 69, 111, 0.22);
}

html.ls-dark-mode .ls-learn-example-equation {
  color: #edf4fb;
}

html.ls-dark-mode .ls-learn-why {
  border-color: rgba(85, 208, 187, 0.25);
  background: rgba(20, 74, 69, 0.2);
}

html.ls-dark-mode .ls-learn-why p {
  color: #77dbc9;
}

html.ls-dark-mode .ls-learn-question-field {
  border-color: rgba(143, 164, 192, 0.24);
  background: #111b2b;
  color: #7f8da2;
}

html.ls-dark-mode .ls-learn-ready {
  background: #101f2a;
}

@media (max-width: 960px) {
  .ls-learn-topic-copy {
    width: 60%;
  }

  .ls-learn-scene {
    width: 53%;
    opacity: 0.82;
  }

  .ls-learn-utility-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ls-learn-overview-layout {
    grid-template-columns: 1fr;
  }

  .ls-learn-overview-rail {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ls-learn-rail-item {
    justify-content: center;
  }
}

@media (max-width: 700px) {
  body.ls-learn-tool-active .ls-app-primary-nav {
    top: 1.75rem !important;
  }

  .ls-learn-page {
    padding: 1rem 0 2rem;
  }

  .ls-learn-heading {
    margin-bottom: 0.85rem;
  }

  .ls-learn-heading h1 {
    font-size: 1.75rem;
  }

  .ls-learn-heading p {
    font-size: 0.92rem;
  }

  .ls-learn-topic-hero {
    display: flex;
    flex-direction: column;
    min-height: 33rem;
  }

  .ls-learn-topic-hero::before {
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.99) 0%,
      rgba(255, 255, 255, 0.98) 54%,
      rgba(239, 250, 247, 0.66) 74%,
      rgba(234, 249, 245, 0.5) 100%
    );
  }

  .ls-learn-topic-copy {
    width: 100%;
    padding: 1.4rem 1.2rem 0.5rem;
  }

  .ls-learn-topic-copy h2 {
    font-size: 2rem;
  }

  .ls-learn-topic-description {
    max-width: none;
  }

  .ls-learn-scene {
    top: auto;
    right: -0.5rem;
    bottom: -0.5rem;
    width: 104%;
    height: 46%;
    opacity: 0.88;
  }

  .ls-learn-utility-grid {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }

  .ls-learn-utility-card {
    min-height: 6.4rem;
  }

  .ls-learn-overview {
    padding: 1rem;
  }

  .ls-learn-overview-rail {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .ls-learn-rail-item {
    justify-content: flex-start;
  }

  .ls-learn-lesson-canvas {
    grid-template-columns: 1fr;
  }

  .ls-learn-equation {
    margin-left: 0;
  }

  .ls-learn-example,
  .ls-learn-why,
  .ls-learn-question-field {
    grid-column: 1;
  }

  .ls-learn-ready {
    grid-template-columns: auto minmax(0, 1fr);
    padding: 0.9rem 1rem;
  }

  .ls-learn-ready-action {
    grid-column: 1 / -1;
    width: 100%;
  }

  html.ls-dark-mode .ls-learn-topic-hero::before {
    background: linear-gradient(
      180deg,
      rgba(17, 27, 43, 0.99) 0%,
      rgba(17, 27, 43, 0.97) 58%,
      rgba(10, 48, 48, 0.76) 100%
    );
  }
}

@media (max-width: 430px) {
  .ls-learn-topic-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .ls-learn-static-action {
    width: 100%;
  }

  .ls-learn-details {
    gap: 0.4rem;
  }

  .ls-learn-detail {
    padding-inline: 0.58rem;
    font-size: 0.75rem;
  }

  .ls-learn-topic-hero {
    min-height: 35.5rem;
  }

  .ls-learn-example-equation {
    font-size: 0.82rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ls-learn-tool *,
  .ls-learn-tool *::before,
  .ls-learn-tool *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


/* Learn lesson-builder flow. These rules remain scoped to the isolated Learn route. */
.ls-learn-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 2.85rem;
  border-radius: 6px;
  padding: 0.68rem 1.15rem;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.ls-learn-action svg {
  width: 1.05rem;
  height: 1.05rem;
}

.ls-learn-action:focus-visible,
.ls-learn-icon-button:focus-visible,
.ls-learn-level-option:focus-visible,
.ls-learn-path-option:focus-visible,
.ls-learn-test-option:focus-visible,
.ls-learn-selection-tools button:focus-visible,
.ls-learn-unit-card:focus-visible {
  outline: 3px solid rgba(22, 151, 130, 0.25);
  outline-offset: 3px;
}

.ls-learn-action:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.ls-learn-secondary-action {
  border: 1px solid #d5dee4;
  background: #ffffff;
  color: #263247;
}

.ls-learn-builder {
  margin-top: 1rem;
}

.ls-learn-builder-card {
  border: 1px solid #dfe7e9;
  border-radius: 8px;
  padding: 1.4rem;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(23, 40, 54, 0.055);
}

.ls-learn-builder-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
}

.ls-learn-builder-heading h2 {
  margin: 0.15rem 0 0;
  color: #101827;
  font-size: 1.35rem;
  font-weight: 730;
  line-height: 1.25;
  letter-spacing: 0;
}

.ls-learn-builder-heading > div > p:last-child {
  margin: 0.35rem 0 0;
  color: #667287;
  font-size: 0.9rem;
  line-height: 1.45;
}

.ls-learn-builder-kicker {
  margin: 0;
  color: #087f6d;
  font-size: 0.73rem;
  font-weight: 760;
  line-height: 1.2;
  text-transform: uppercase;
}

.ls-learn-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  flex: 0 0 auto;
  border: 1px solid #dce4e8;
  border-radius: 50%;
  background: #f7f9fb;
  color: #536077;
  cursor: pointer;
}

.ls-learn-icon-button svg {
  width: 1rem;
  height: 1rem;
}

.ls-learn-setup-form {
  display: grid;
  gap: 1.15rem;
  margin-top: 1.3rem;
}

.ls-learn-field {
  display: grid;
  gap: 0.45rem;
}

.ls-learn-field > span,
.ls-learn-level-fieldset legend {
  color: #263247;
  font-size: 0.83rem;
  font-weight: 700;
  line-height: 1.3;
}

.ls-learn-field input {
  width: 100%;
  min-height: 3rem;
  border: 1px solid #cfd9e0;
  border-radius: 6px;
  padding: 0.7rem 0.85rem;
  background: #ffffff;
  color: #101827;
  font: inherit;
  font-size: 0.94rem;
}

.ls-learn-field input::placeholder {
  color: #8792a2;
}

.ls-learn-field input:focus {
  border-color: #169782;
  outline: 3px solid rgba(22, 151, 130, 0.14);
}

.ls-learn-path-fieldset {
  min-width: 0;
  margin: 0;
  border: 0;
  padding: 0;
}

.ls-learn-path-fieldset legend {
  color: #263247;
  font-size: 0.83rem;
  font-weight: 700;
  line-height: 1.3;
}

.ls-learn-path-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 0.55rem;
}

.ls-learn-path-option {
  display: grid;
  align-content: center;
  gap: 0.3rem;
  min-height: 5.1rem;
  border: 1px solid #d5dee4;
  border-radius: 7px;
  padding: 0.95rem 1.05rem;
  background: #ffffff;
  color: #263247;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 180ms cubic-bezier(0.16, 1, 0.3, 1), border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.ls-learn-path-option strong {
  font-size: 0.95rem;
  font-weight: 740;
  line-height: 1.25;
}

.ls-learn-path-option span {
  color: #667287;
  font-size: 0.82rem;
  line-height: 1.4;
}

.ls-learn-path-option:hover {
  transform: translate3d(0, -2px, 0);
  border-color: #8fa1ad;
  box-shadow: 0 10px 24px rgba(23, 40, 54, 0.09);
}

.ls-learn-path-option[aria-pressed="true"] {
  border-color: #138f7a;
  background: #eef9f6;
  box-shadow: inset 0 0 0 1px rgba(19, 143, 122, 0.08);
}

.ls-learn-path-option[aria-pressed="true"] strong {
  color: #087f6d;
}

.ls-learn-test-picker {
  display: grid;
  gap: 0.85rem;
  border: 1px solid #dfe7e9;
  border-radius: 8px;
  padding: 1rem;
  background: #f8fafb;
}

.ls-learn-test-picker-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.ls-learn-test-picker-heading h3 {
  margin: 0;
  color: #182235;
  font-size: 1rem;
  font-weight: 740;
  line-height: 1.3;
}

.ls-learn-test-picker-heading p {
  margin: 0.25rem 0 0;
  max-width: 48rem;
  color: #667287;
  font-size: 0.82rem;
  line-height: 1.45;
}

.ls-learn-test-count {
  flex: 0 0 auto;
  border: 1px solid #d5dee4;
  border-radius: 999px;
  padding: 0.28rem 0.55rem;
  background: #ffffff;
  color: #59667a;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
}

.ls-learn-test-list {
  display: grid;
  gap: 0.4rem;
  max-height: 18rem;
  overflow-y: auto;
  padding-right: 0.2rem;
  scrollbar-color: #aebcc6 transparent;
  scrollbar-width: thin;
}

.ls-learn-test-option[hidden] {
  display: none;
}

.ls-learn-test-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  min-height: 3rem;
  border: 1px solid #dbe3e8;
  border-radius: 6px;
  padding: 0.7rem 0.8rem;
  background: #ffffff;
  color: #263247;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 620;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
  transition: transform 160ms cubic-bezier(0.16, 1, 0.3, 1), border-color 160ms ease, background-color 160ms ease;
}

.ls-learn-test-option:hover {
  transform: translate3d(2px, 0, 0);
  border-color: #8fa1ad;
  background: #fbfdfd;
}

.ls-learn-test-option[aria-pressed="true"] {
  border-color: #138f7a;
  background: #eef9f6;
  color: #087f6d;
}

.ls-learn-test-option-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #138f7a;
  color: #ffffff;
  opacity: 0;
}

.ls-learn-test-option[aria-pressed="true"] .ls-learn-test-option-mark {
  opacity: 1;
}

.ls-learn-test-option-mark svg {
  width: 0.85rem;
  height: 0.85rem;
}

.ls-learn-test-empty {
  margin: 0;
  border: 1px dashed #cfd9e0;
  border-radius: 6px;
  padding: 1rem;
  color: #667287;
  font-size: 0.84rem;
  text-align: center;
}
.ls-learn-level-fieldset {
  min-width: 0;
  margin: 0;
  border: 0;
  padding: 0;
}

.ls-learn-level-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
  margin-top: 0.55rem;
}

.ls-learn-level-option {
  min-height: 2.65rem;
  border: 1px solid #d5dee4;
  border-radius: 6px;
  padding: 0.55rem 0.7rem;
  background: #ffffff;
  color: #3b485d;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 650;
  cursor: pointer;
}

.ls-learn-level-option[aria-pressed="true"] {
  border-color: #138f7a;
  background: #ecf8f5;
  color: #087f6d;
  box-shadow: inset 0 0 0 1px rgba(19, 143, 122, 0.08);
}

.ls-learn-builder-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
  padding-top: 0.1rem;
}

.ls-learn-form-error {
  margin: 0;
  border-radius: 6px;
  padding: 0.65rem 0.75rem;
  background: #fff3f3;
  color: #a2343d;
  font-size: 0.82rem;
  line-height: 1.4;
}

.ls-learn-loading-card {
  min-height: 16rem;
}

.ls-learn-loading-copy {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.ls-learn-loading-copy h2 {
  margin: 0.2rem 0 0;
  color: #101827;
  font-size: 1.25rem;
  font-weight: 730;
  line-height: 1.3;
}

.ls-learn-loading-copy p:last-child {
  margin: 0.35rem 0 0;
  color: #667287;
  font-size: 0.88rem;
}

.ls-learn-spinner {
  width: 2.2rem;
  height: 2.2rem;
  flex: 0 0 auto;
  border: 3px solid #dce9e6;
  border-top-color: #169782;
  border-radius: 50%;
  animation: lsLearnSpin 0.8s linear infinite;
}

@keyframes lsLearnSpin {
  to {
    transform: rotate(360deg);
  }
}

.ls-learn-loading-units {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 1.35rem;
}

.ls-learn-loading-units span {
  display: block;
  height: 3.8rem;
  border: 1px solid #e2e8ec;
  border-radius: 6px;
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.72), transparent),
    #eef2f5;
  background-size: 180% 100%;
  animation: lsLearnShimmer 1.4s ease-in-out infinite;
}

@keyframes lsLearnShimmer {
  to {
    background-position: -180% 0;
  }
}

.ls-learn-unit-count {
  flex: 0 0 auto;
  border: 1px solid #d8e2e6;
  border-radius: 999px;
  padding: 0.38rem 0.65rem;
  background: #f8fafb;
  color: #536077;
  font-size: 0.77rem;
  font-weight: 700;
  white-space: nowrap;
}

.ls-learn-curriculum-disclaimer {
  margin: 0.85rem 0 0;
  border-left: 2px solid #2cbfae;
  padding-left: 0.7rem;
  color: #667287;
  font-size: 0.78rem;
  line-height: 1.45;
}

.ls-learn-selection-tools {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1rem;
}

.ls-learn-selection-tools button {
  min-height: 2.25rem;
  border: 1px solid #d5dee4;
  border-radius: 6px;
  padding: 0.42rem 0.7rem;
  background: #ffffff;
  color: #263247;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 680;
  cursor: pointer;
}

.ls-learn-unit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 0.75rem;
}

.ls-learn-unit-card {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: start;
  gap: 0.65rem;
  min-height: 5.35rem;
  border: 1px solid #d6e0e5;
  border-radius: 7px;
  padding: 0.8rem;
  background: #ffffff;
  color: #263247;
  text-align: left;
  cursor: pointer;
}

.ls-learn-unit-card:hover {
  border-color: #8eaaa4;
  background: #fbfdfc;
}

.ls-learn-unit-card[aria-pressed="true"] {
  border-color: #168f7b;
  background: #f3faf8;
  box-shadow: inset 0 0 0 1px rgba(22, 143, 123, 0.08);
}

.ls-learn-unit-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  border: 1px solid #aebbc4;
  border-radius: 5px;
  background: #ffffff;
  color: transparent;
}

.ls-learn-unit-check svg {
  width: 0.95rem;
  height: 0.95rem;
}

.ls-learn-unit-card[aria-pressed="true"] .ls-learn-unit-check {
  border-color: #168f7b;
  background: #168f7b;
  color: #ffffff;
}

.ls-learn-unit-number {
  padding-top: 0.25rem;
  color: #7a8798;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.72rem;
}

.ls-learn-unit-copy {
  display: grid;
  gap: 0.25rem;
  min-width: 0;
}

.ls-learn-unit-copy strong {
  color: #111a2a;
  font-size: 0.87rem;
  line-height: 1.3;
}

.ls-learn-unit-copy > span {
  color: #657187;
  font-size: 0.76rem;
  line-height: 1.4;
}

.ls-learn-canvas-label {
  margin: 0 0 0.35rem !important;
  color: #087f6d;
  font-size: 0.7rem;
  font-weight: 760;
  text-transform: uppercase;
}

.ls-learn-definition h3 {
  margin: 0 0 0.45rem;
  color: #111a2a;
  font-size: 1.05rem;
  font-weight: 730;
  line-height: 1.3;
}

html.ls-dark-mode .ls-learn-path-fieldset legend,
html.ls-dark-mode .ls-learn-test-picker-heading h3 {
  color: #f3f7fc;
}

html.ls-dark-mode .ls-learn-path-option,
html.ls-dark-mode .ls-learn-test-picker,
html.ls-dark-mode .ls-learn-test-option,
html.ls-dark-mode .ls-learn-test-count {
  border-color: rgba(143, 164, 192, 0.28);
  background: #0f1929;
  color: #d7e1ee;
}

html.ls-dark-mode .ls-learn-path-option span,
html.ls-dark-mode .ls-learn-test-picker-heading p,
html.ls-dark-mode .ls-learn-test-empty {
  color: #aebbd0;
}

html.ls-dark-mode .ls-learn-path-option:hover,
html.ls-dark-mode .ls-learn-test-option:hover {
  border-color: rgba(143, 164, 192, 0.52);
  background: #152238;
}

html.ls-dark-mode .ls-learn-path-option[aria-pressed="true"],
html.ls-dark-mode .ls-learn-test-option[aria-pressed="true"] {
  border-color: rgba(85, 208, 187, 0.56);
  background: rgba(20, 74, 69, 0.3);
  color: #77dbc9;
}

html.ls-dark-mode .ls-learn-path-option[aria-pressed="true"] strong {
  color: #77dbc9;
}

html.ls-dark-mode .ls-learn-test-empty {
  border-color: rgba(143, 164, 192, 0.28);
}
html.ls-dark-mode .ls-learn-builder-card {
  border-color: rgba(143, 164, 192, 0.2);
  background: #111b2b;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18);
}

html.ls-dark-mode .ls-learn-builder-heading h2,
html.ls-dark-mode .ls-learn-loading-copy h2,
html.ls-dark-mode .ls-learn-field > span,
html.ls-dark-mode .ls-learn-level-fieldset legend,
html.ls-dark-mode .ls-learn-unit-copy strong,
html.ls-dark-mode .ls-learn-definition h3 {
  color: #f3f7fc;
}

html.ls-dark-mode .ls-learn-builder-heading > div > p:last-child,
html.ls-dark-mode .ls-learn-loading-copy p:last-child,
html.ls-dark-mode .ls-learn-unit-copy > span {
  color: #aebbd0;
}

html.ls-dark-mode .ls-learn-secondary-action,
html.ls-dark-mode .ls-learn-level-option,
html.ls-dark-mode .ls-learn-selection-tools button,
html.ls-dark-mode .ls-learn-field input,
html.ls-dark-mode .ls-learn-unit-card {
  border-color: rgba(143, 164, 192, 0.28);
  background: #0f1929;
  color: #d7e1ee;
}

html.ls-dark-mode .ls-learn-level-option[aria-pressed="true"],
html.ls-dark-mode .ls-learn-unit-card[aria-pressed="true"] {
  border-color: rgba(85, 208, 187, 0.56);
  background: rgba(20, 74, 69, 0.3);
  color: #77dbc9;
}

html.ls-dark-mode .ls-learn-unit-check {
  border-color: #67788e;
  background: #111b2b;
}

html.ls-dark-mode .ls-learn-unit-card[aria-pressed="true"] .ls-learn-unit-check {
  border-color: #3fbda7;
  background: #238d7b;
  color: #ffffff;
}

html.ls-dark-mode .ls-learn-unit-count {
  border-color: rgba(143, 164, 192, 0.25);
  background: #0f1929;
  color: #b9c5d6;
}

html.ls-dark-mode .ls-learn-curriculum-disclaimer {
  color: #aebbd0;
}

html.ls-dark-mode .ls-learn-loading-units span {
  border-color: rgba(143, 164, 192, 0.18);
  background:
    linear-gradient(90deg, transparent, rgba(143, 164, 192, 0.1), transparent),
    #172438;
}

html.ls-dark-mode .ls-learn-form-error {
  background: rgba(130, 45, 55, 0.24);
  color: #ffbec4;
}

@media (max-width: 700px) {
  .ls-learn-builder-card {
    padding: 1.1rem;
  }

  .ls-learn-path-options,
  .ls-learn-level-options,
  .ls-learn-unit-grid,
  .ls-learn-loading-units {
    grid-template-columns: 1fr;
  }

  .ls-learn-builder-heading {
    gap: 0.75rem;
  }

  .ls-learn-unit-count {
    align-self: flex-start;
  }
}

@media (max-width: 430px) {
  .ls-learn-builder-heading {
    flex-wrap: wrap;
  }

  .ls-learn-builder-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .ls-learn-builder-actions .ls-learn-action {
    width: 100%;
  }
}

/* Adaptive Lesson Check ----------------------------------------------------
   This check adjusts local lesson scaffolding while preserving the learner's
   selected instructional depth. It intentionally never presents a score. */
.ls-learn-adaptive {
  margin-top: 1rem;
}

.ls-learn-adaptive-card {
  width: min(100%, 56rem);
  margin: 0 auto;
  border: 1px solid #dfe7e9;
  border-radius: 8px;
  padding: 1.5rem;
  background: #ffffff;
  box-shadow: 0 16px 38px rgba(23, 40, 54, 0.07);
}

.ls-learn-adaptive-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.ls-learn-adaptive-header h2,
.ls-learn-adaptive-loading h2,
.ls-learn-adaptive-error h2,
.ls-learn-adaptive-transition h2 {
  margin: 0.2rem 0 0;
  color: #101827;
  font-size: 1.45rem;
  font-weight: 740;
  line-height: 1.24;
  letter-spacing: 0;
}

.ls-learn-adaptive-header > div > p:last-child,
.ls-learn-adaptive-loading-row p:last-child,
.ls-learn-adaptive-error > p,
.ls-learn-adaptive-transition > p:last-child {
  max-width: 39rem;
  margin: 0.42rem 0 0;
  color: #667287;
  font-size: 0.88rem;
  line-height: 1.5;
}

.ls-learn-adaptive-progress {
  height: 0.32rem;
  margin-top: 1.1rem;
  overflow: hidden;
  border-radius: 999px;
  background: #e8eeef;
}

.ls-learn-adaptive-progress > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #169782;
  transition: width 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.ls-learn-adaptive-prompt {
  max-width: 46rem;
  margin: 1.4rem 0 1rem;
  color: #111a2a;
  font-size: 1.08rem;
  font-weight: 680;
  line-height: 1.48;
}

.ls-learn-adaptive-options {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.72rem;
}

.ls-learn-adaptive-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  min-height: 3.85rem;
  border: 1px solid #d4dee4;
  border-radius: 7px;
  padding: 0.78rem 0.9rem;
  background: #ffffff;
  color: #2c384c;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 590;
  line-height: 1.38;
  text-align: left;
  cursor: pointer;
}

.ls-learn-adaptive-option:hover {
  border-color: #8aa9a3;
  background: #fbfdfc;
}

.ls-learn-adaptive-option[aria-pressed="true"] {
  border-color: #168f7b;
  background: #edf8f5;
  color: #086e5f;
  box-shadow: inset 0 0 0 1px rgba(22, 143, 123, 0.08);
}

.ls-learn-adaptive-option-marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  border: 1px solid #d6e0e5;
  border-radius: 50%;
  background: #f7f9fa;
  color: #6b7789;
  font-size: 0.72rem;
  font-weight: 760;
}

.ls-learn-adaptive-option[aria-pressed="true"] .ls-learn-adaptive-option-marker {
  border-color: #168f7b;
  background: #168f7b;
  color: #ffffff;
}

.ls-learn-adaptive-reasons {
  margin-top: 1.25rem;
  border-top: 1px solid #e2e8ec;
  padding-top: 1.15rem;
}

.ls-learn-adaptive-reasons h3 {
  margin: 0 0 0.75rem;
  color: #263247;
  font-size: 0.88rem;
  font-weight: 720;
  line-height: 1.35;
}

.ls-learn-adaptive-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.35rem;
  border-top: 1px solid #e2e8ec;
  padding-top: 1rem;
}

.ls-learn-adaptive-footer p {
  margin: 0;
  color: #6b7789;
  font-size: 0.82rem;
  line-height: 1.45;
}

.ls-learn-adaptive-footer-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
  flex: 0 0 auto;
}

.ls-learn-adaptive-note {
  color: #087f6d !important;
  font-weight: 650;
}

.ls-learn-adaptive-footer .ls-learn-action,
.ls-learn-adaptive-error .ls-learn-action {
  min-height: 2.7rem;
}

.ls-learn-adaptive-loading {
  min-height: 15rem;
}

.ls-learn-adaptive-loading-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.ls-learn-adaptive-skeleton {
  display: grid;
  gap: 0.6rem;
  margin-top: 1.4rem;
}

.ls-learn-adaptive-skeleton span {
  display: block;
  height: 2.9rem;
  border: 1px solid #e2e8ec;
  border-radius: 7px;
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent),
    #eef2f5;
  background-size: 180% 100%;
  animation: lsLearnShimmer 1.4s ease-in-out infinite;
}

.ls-learn-adaptive-skeleton span:nth-child(2) {
  width: 92%;
}

.ls-learn-adaptive-skeleton span:nth-child(3) {
  width: 84%;
}

.ls-learn-adaptive-error {
  border-color: #ebc8cc;
}

.ls-learn-adaptive-error .ls-learn-action {
  margin-top: 1rem;
}

.ls-learn-adaptive-transition {
  min-height: 14rem;
  text-align: center;
}

.ls-learn-adaptive-transition > * {
  margin-inline: auto;
}

.ls-learn-adaptive-complete-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.8rem;
  height: 2.8rem;
  margin-bottom: 0.75rem;
  border-radius: 50%;
  background: #e8f7f3;
  color: #0a9279;
}

.ls-learn-adaptive-complete-icon svg {
  width: 1.35rem;
  height: 1.35rem;
}

.ls-learn-start-action {
  margin-top: 0.05rem;
}

html.ls-dark-mode .ls-learn-adaptive-card {
  border-color: rgba(143, 164, 192, 0.22);
  background: #111b2b;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

html.ls-dark-mode .ls-learn-adaptive-header h2,
html.ls-dark-mode .ls-learn-adaptive-loading h2,
html.ls-dark-mode .ls-learn-adaptive-error h2,
html.ls-dark-mode .ls-learn-adaptive-transition h2,
html.ls-dark-mode .ls-learn-adaptive-prompt,
html.ls-dark-mode .ls-learn-adaptive-reasons h3 {
  color: #f3f7fc;
}

html.ls-dark-mode .ls-learn-adaptive-header > div > p:last-child,
html.ls-dark-mode .ls-learn-adaptive-loading-row p:last-child,
html.ls-dark-mode .ls-learn-adaptive-error > p,
html.ls-dark-mode .ls-learn-adaptive-transition > p:last-child,
html.ls-dark-mode .ls-learn-adaptive-footer p {
  color: #aebbd0;
}

html.ls-dark-mode .ls-learn-adaptive-count {
  border-color: rgba(143, 164, 192, 0.25);
  background: #0f1929;
  color: #c2cee0;
}

html.ls-dark-mode .ls-learn-adaptive-progress {
  background: #223149;
}

html.ls-dark-mode .ls-learn-adaptive-option {
  border-color: rgba(143, 164, 192, 0.28);
  background: #0f1929;
  color: #d7e1ee;
}

html.ls-dark-mode .ls-learn-adaptive-option:hover {
  border-color: rgba(85, 208, 187, 0.48);
  background: #142238;
}

html.ls-dark-mode .ls-learn-adaptive-option[aria-pressed="true"] {
  border-color: rgba(85, 208, 187, 0.62);
  background: rgba(20, 74, 69, 0.34);
  color: #8be2d2;
}

html.ls-dark-mode .ls-learn-adaptive-option-marker {
  border-color: #56677e;
  background: #172438;
  color: #b9c5d6;
}

html.ls-dark-mode .ls-learn-adaptive-option[aria-pressed="true"] .ls-learn-adaptive-option-marker {
  border-color: #3fbda7;
  background: #238d7b;
  color: #ffffff;
}

html.ls-dark-mode .ls-learn-adaptive-reasons,
html.ls-dark-mode .ls-learn-adaptive-footer {
  border-color: rgba(143, 164, 192, 0.2);
}

html.ls-dark-mode .ls-learn-adaptive-note {
  color: #77dbc9 !important;
}

html.ls-dark-mode .ls-learn-adaptive-skeleton span {
  border-color: rgba(143, 164, 192, 0.18);
  background:
    linear-gradient(90deg, transparent, rgba(143, 164, 192, 0.11), transparent),
    #172438;
}

html.ls-dark-mode .ls-learn-adaptive-complete-icon {
  background: rgba(37, 156, 137, 0.2);
  color: #77dbc9;
}

@media (max-width: 700px) {
  .ls-learn-adaptive-card {
    padding: 1.1rem;
  }

  .ls-learn-adaptive-options {
    grid-template-columns: 1fr;
  }

  .ls-learn-adaptive-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .ls-learn-adaptive-footer-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .ls-learn-adaptive-footer .ls-learn-action {
    width: 100%;
  }
}

@media (max-width: 430px) {
  .ls-learn-adaptive-header {
    gap: 0.65rem;
  }

  .ls-learn-adaptive-header h2 {
    font-size: 1.24rem;
  }

  .ls-learn-adaptive-prompt {
    font-size: 1rem;
  }
}

/* Adaptive lesson class
   The center column is one continuous academic lesson. Side columns only
   orient the learner and provide notes, so the class never reads as a dashboard. */
.ls-learn-tool.is-class-active .ls-learn-page {
  width: min(100%, 96rem);
  padding-top: 0.5rem;
}

.ls-learn-tool.is-class-active .ls-learn-heading,
.ls-learn-tool.is-class-active .ls-learn-topic-hero,
.ls-learn-tool.is-class-active .ls-learn-builder,
.ls-learn-tool.is-class-active .ls-learn-adaptive {
  display: none !important;
}

.ls-learn-after-lesson {
  width: 100%;
}

.ls-learn-class-shell {
  --learn-border: #dce4ec;
  --learn-muted: #59667b;
  --learn-paper: #ffffff;
  --learn-teal: #138f7e;
  color: #101827;
}

.ls-learn-class-toolbar {
  position: sticky;
  z-index: 20;
  top: 5.7rem;
  display: grid;
  grid-template-columns: 12.5rem minmax(0, 1fr) 18rem;
  align-items: center;
  min-height: 4.2rem;
  border: 1px solid var(--learn-border);
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 24px rgba(19, 32, 51, 0.07);
  backdrop-filter: blur(12px);
}

.ls-learn-class-exit {
  justify-self: start;
  min-height: 2.55rem;
  border: 1px solid #d8e0e8;
  border-radius: 6px;
  padding: 0 0.9rem;
  background: #ffffff;
  color: #243147;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
}


.ls-learn-class-identity {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.6rem;
  min-width: 0;
  text-align: center;
}

.ls-learn-class-identity span {
  color: var(--learn-muted);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
}

.ls-learn-class-identity strong {
  overflow: hidden;
  color: #152036;
  font-size: 0.94rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ls-learn-class-progress {
  display: grid;
  grid-template-columns: auto minmax(5rem, 1fr) auto;
  align-items: center;
  gap: 0.6rem;
  color: var(--learn-muted);
  font-size: 0.74rem;
}

.ls-learn-class-progress strong {
  color: #263247;
  font-size: 0.78rem;
}

.ls-learn-progress-track {
  position: relative;
  display: block;
  height: 0.35rem;
  overflow: hidden;
  border-radius: 99px;
  background: #e7edf2;
}

.ls-learn-progress-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--learn-teal);
  transition: width 220ms ease-out;
}

.ls-learn-class-grid {
  display: grid;
  grid-template-columns: 14rem minmax(0, 1fr) 15rem;
  align-items: start;
  gap: 1rem;
  margin-top: 1rem;
}

.ls-learn-lesson-map,
.ls-learn-support-rail {
  position: sticky;
  top: 10.9rem;
  max-height: calc(100vh - 12rem);
  overflow-y: auto;
  scrollbar-width: thin;
}

.ls-learn-lesson-map {
  border-right: 1px solid var(--learn-border);
  padding: 0.7rem 0.75rem 1rem 0;
}

.ls-learn-map-header {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0 0.55rem 0.75rem;
}

.ls-learn-map-header svg {
  width: 1.1rem;
  color: var(--learn-teal);
}

.ls-learn-map-header h2,
.ls-learn-support-section h2 {
  margin: 0;
  color: #182338;
  font-size: 0.84rem;
  font-weight: 760;
  letter-spacing: 0;
}

.ls-learn-map-list {
  display: grid;
  gap: 0.2rem;
}

.ls-learn-map-item {
  display: grid;
  grid-template-columns: 1.45rem minmax(0, 1fr);
  gap: 0.5rem;
  width: 100%;
  border: 0;
  border-left: 2px solid transparent;
  border-radius: 0 6px 6px 0;
  padding: 0.58rem 0.55rem;
  background: transparent;
  color: #354157;
  text-align: left;
  cursor: pointer;
}

.ls-learn-map-item:hover,
.ls-learn-map-item:focus-visible {
  border-left-color: var(--learn-teal);
  background: #edf8f6;
  outline: none;
}

.ls-learn-map-number {
  display: grid;
  place-items: center;
  width: 1.35rem;
  height: 1.35rem;
  border: 1px solid #d8e2e8;
  border-radius: 50%;
  color: #5c687a;
  font-size: 0.68rem;
  font-weight: 720;
}

.ls-learn-map-item strong,
.ls-learn-map-item small {
  display: block;
}

.ls-learn-map-item strong {
  color: #1d293d;
  font-size: 0.77rem;
  line-height: 1.3;
}

.ls-learn-map-item small {
  margin-top: 0.16rem;
  color: #6b7689;
  font-size: 0.68rem;
  line-height: 1.35;
}

.ls-learn-map-help {
  margin-top: 1rem;
  border-top: 1px solid var(--learn-border);
  padding: 0.8rem 0.55rem 0;
}

.ls-learn-map-help strong {
  color: #253248;
  font-size: 0.75rem;
}

.ls-learn-map-help p {
  margin: 0.3rem 0 0;
  color: var(--learn-muted);
  font-size: 0.7rem;
  line-height: 1.5;
}

.ls-learn-class-article {
  min-width: 0;
  border: 1px solid var(--learn-border);
  border-radius: 8px;
  background: var(--learn-paper);
  box-shadow: 0 12px 34px rgba(19, 32, 51, 0.055);
}

.ls-learn-class-article .ls-math-inline {
  max-width: 100%;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.ls-learn-class-article .ls-math-inline > * {
  flex: 0 0 auto;
}

.ls-learn-class-article .ls-math-block,
.ls-learn-class-article .ls-learn-equation-block {
  display: flex;
  width: 100%;
  max-width: 100%;
  justify-content: center;
  margin: 0.8rem auto;
  padding: 0.28rem 0.55rem;
  overflow-x: auto;
  overflow-y: hidden;
  text-align: center;
  white-space: nowrap;
  scrollbar-width: thin;
}

.ls-learn-class-article .ls-learn-equation-line {
  display: block;
  max-width: 100%;
  margin: 0.8rem auto;
  overflow-x: auto;
  overflow-y: hidden;
  text-align: center;
  white-space: nowrap;
  scrollbar-width: thin;
}

.ls-learn-article-heading,
.ls-learn-story-section,
.ls-learn-written-check,
.ls-learn-lesson-complete {
  padding: clamp(1.25rem, 2.4vw, 2rem);
}

.ls-learn-article-heading {
  border-bottom: 1px solid var(--learn-border);
  background: #fbfcfd;
}

.ls-learn-article-heading h1 {
  margin: 0.35rem 0 0;
  color: #101827;
  font-size: clamp(1.8rem, 3vw, 2.55rem);
  font-weight: 750;
  line-height: 1.1;
  letter-spacing: 0;
}

.ls-learn-article-subtitle {
  margin: 0.65rem 0 0;
  color: #526077;
  font-size: 1rem;
  line-height: 1.55;
}

.ls-learn-thesis {
  margin: 1rem 0 0;
  border-left: 3px solid var(--learn-teal);
  padding-left: 0.85rem;
  color: #26354a;
  font-size: 0.93rem;
  font-weight: 620;
  line-height: 1.6;
}

.ls-learn-story-section,
.ls-learn-written-check {
  scroll-margin-top: 11rem;
  border-bottom: 1px solid var(--learn-border);
}

.ls-learn-story-section > h2,
.ls-learn-written-check > h2,
.ls-learn-lesson-complete h2 {
  margin: 0.22rem 0 0.8rem;
  color: #101827;
  font-size: clamp(1.3rem, 2.1vw, 1.65rem);
  line-height: 1.2;
  letter-spacing: 0;
}

.ls-learn-section-number,
.ls-learn-check-label {
  margin: 0;
  color: var(--learn-teal);
  font-size: 0.74rem;
  font-weight: 760;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.ls-learn-story-bridge {
  margin: 0 0 1rem;
  color: #26364c;
  font-size: 1rem;
  font-weight: 680;
  line-height: 1.55;
}

.ls-learn-story-section > p:not(.ls-learn-section-number):not(.ls-learn-story-bridge),
.ls-learn-written-prompt,
.ls-learn-written-scaffold {
  margin: 0.72rem 0 0;
  color: #38465b;
  font-size: 0.94rem;
  line-height: 1.72;
}

.ls-learn-problem-context {
  margin: 1rem 0 1.2rem;
  border: 1px solid #f0d9ae;
  border-radius: 6px;
  padding: 1rem;
  background: #fff9ef;
}

.ls-learn-problem-context p {
  margin: 0;
  color: #4b3c28;
  font-size: 0.94rem;
  line-height: 1.65;
}

.ls-learn-reasoning-check,
.ls-learn-mental-model,
.ls-learn-formal-link,
.ls-learn-gap-connection {
  margin: 1.25rem 0 0;
}

.ls-learn-reasoning-check {
  border: 1px solid #dddaf2;
  border-radius: 8px;
  padding: 1.05rem;
  background: #fbfaff;
}

.ls-learn-check-header {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.ls-learn-check-icon {
  display: grid;
  place-items: center;
  flex: 0 0 2rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: #eeeafd;
  color: #7259b5;
}

.ls-learn-check-icon svg {
  width: 1rem;
}

.ls-learn-check-header h3 {
  margin: 0.25rem 0 0;
  color: #1c2639;
  font-size: 1rem;
  line-height: 1.45;
}

.ls-learn-check-options {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.9rem;
}

.ls-learn-check-option {
  display: grid;
  grid-template-columns: 1.6rem minmax(0, 1fr);
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  min-height: 2.8rem;
  border: 1px solid #d9e1e9;
  border-radius: 6px;
  padding: 0.55rem 0.7rem;
  background: #ffffff;
  color: #28354a;
  font: inherit;
  font-size: 0.86rem;
  line-height: 1.45;
  text-align: left;
  cursor: pointer;
}

.ls-learn-check-option:hover:not(:disabled),
.ls-learn-check-option[aria-pressed="true"] {
  border-color: #4c9f91;
  background: #f0faf8;
}

.ls-learn-check-option[data-result="correct"] {
  border-color: #2b9a66;
  background: #edfaf3;
}

.ls-learn-check-option[data-result="incorrect"] {
  border-color: #cc6868;
  background: #fff2f2;
}

.ls-learn-check-marker {
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border: 1px solid #cfd8e2;
  border-radius: 50%;
  color: #58657a;
  font-size: 0.7rem;
  font-weight: 760;
}

.ls-learn-check-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.9rem;
}

.ls-learn-check-actions p {
  margin: 0;
  color: #667288;
  font-size: 0.76rem;
  line-height: 1.45;
}

.ls-learn-check-feedback,
.ls-learn-written-feedback {
  margin-top: 0.9rem;
  border-left: 3px solid #2b9a66;
  padding: 0.75rem 0.85rem;
  background: #effaf4;
  color: #234334;
}

.ls-learn-check-feedback.needs-work,
.ls-learn-written-feedback.is-developing {
  border-left-color: #c0782a;
  background: #fff7eb;
  color: #4b3824;
}

.ls-learn-check-feedback p,
.ls-learn-written-feedback p {
  margin: 0.35rem 0 0;
  font-size: 0.84rem;
  line-height: 1.55;
}

.ls-learn-correct-response {
  font-weight: 700;
}

.ls-learn-mental-model {
  border: 1px solid #d9e8e5;
  border-radius: 8px;
  padding: 0.95rem;
  background: #f7fcfb;
}

.ls-learn-mental-model figcaption {
  margin-bottom: 0.7rem;
  color: #1b665b;
  font-size: 0.78rem;
  font-weight: 750;
}

.ls-learn-model-row {
  display: flex;
  align-items: stretch;
  gap: 0.45rem;
}

.ls-learn-model-part {
  flex: 1 1 0;
  min-width: 0;
  border: 1px solid #dce8e6;
  border-radius: 6px;
  padding: 0.75rem;
  background: #ffffff;
}

.ls-learn-model-part strong,
.ls-learn-model-part span {
  display: block;
}

.ls-learn-model-part strong {
  color: #174f48;
  font-size: 0.8rem;
}

.ls-learn-model-part span {
  margin-top: 0.28rem;
  color: #526277;
  font-size: 0.75rem;
  line-height: 1.45;
}

.ls-learn-model-arrow {
  align-self: center;
  color: #6d7a8d;
  font-size: 0.8rem;
}

.ls-learn-formal-link {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  border: 1px solid #d8e3eb;
  border-radius: 8px;
  overflow: hidden;
}

.ls-learn-formal-link > div {
  padding: 0.9rem;
}

.ls-learn-formal-link > div + div {
  border-left: 1px solid #d8e3eb;
  background: #f7fafc;
}

.ls-learn-formal-link span {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--learn-teal);
  font-size: 0.7rem;
  font-weight: 760;
  text-transform: uppercase;
}

.ls-learn-formal-link strong,
.ls-learn-formal-link p {
  margin: 0;
  color: #253248;
  font-size: 0.85rem;
  line-height: 1.55;
}

.ls-learn-gap-connection {
  border-left: 3px solid #e39a43;
  padding: 0.65rem 0.8rem;
  background: #fffaf2;
}

.ls-learn-gap-connection strong {
  color: #6f471b;
  font-size: 0.78rem;
}

.ls-learn-gap-connection p {
  margin: 0.3rem 0 0;
  color: #5d4932;
  font-size: 0.82rem;
  line-height: 1.55;
}


.ls-learn-walkthrough-problem,
.ls-learn-written-scaffold {
  border-left: 3px solid var(--learn-teal);
  padding-left: 0.8rem;
  font-weight: 620;
}

.ls-learn-walkthrough-steps {
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: walkthrough;
}

.ls-learn-walkthrough-steps li {
  position: relative;
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: 0.75rem;
  padding-bottom: 1.1rem;
  counter-increment: walkthrough;
}

.ls-learn-walkthrough-steps li::before {
  z-index: 1;
  display: grid;
  place-items: center;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  background: #e7f5f2;
  color: #166d61;
  content: counter(walkthrough);
  font-size: 0.72rem;
  font-weight: 760;
}

.ls-learn-walkthrough-steps li:not(:last-child)::after {
  position: absolute;
  top: 1.65rem;
  bottom: -0.1rem;
  left: 0.88rem;
  width: 1px;
  background: #d8e7e4;
  content: "";
}

.ls-learn-walkthrough-steps h3 {
  margin: 0.12rem 0 0;
  color: #1b273b;
  font-size: 0.92rem;
}

.ls-learn-step-work,
.ls-learn-step-reasoning,
.ls-learn-walkthrough-conclusion {
  margin: 0.38rem 0 0;
  color: #46546a;
  font-size: 0.85rem;
  line-height: 1.6;
}

.ls-learn-step-reasoning {
  color: #286b62;
}

.ls-learn-written-response,
.ls-learn-notes {
  width: 100%;
  resize: vertical;
  border: 1px solid #d6dfe8;
  border-radius: 6px;
  padding: 0.8rem;
  background: #ffffff;
  color: #172237;
  font: inherit;
  font-size: 0.86rem;
  line-height: 1.55;
}

.ls-learn-written-response {
  margin: 1rem 0 0.8rem;
}

.ls-learn-model-answer {
  margin-top: 0.8rem;
  border-top: 1px solid currentColor;
  padding-top: 0.6rem;
}

.ls-learn-model-answer summary {
  font-size: 0.8rem;
  font-weight: 720;
  cursor: pointer;
}

.ls-learn-lesson-complete {
  text-align: center;
}

.ls-learn-lesson-complete > span {
  display: grid;
  place-items: center;
  width: 2.8rem;
  height: 2.8rem;
  margin: 0 auto 0.7rem;
  border-radius: 50%;
  background: #e7f7f4;
  color: var(--learn-teal);
}

.ls-learn-lesson-complete p {
  margin: 0;
  color: var(--learn-muted);
  font-size: 0.86rem;
}

.ls-learn-next-unit {
  min-height: 2.85rem;
  margin-top: 1rem;
  border: 1px solid #111c2f;
  border-radius: 6px;
  padding: 0 1.15rem;
  background: #111c2f;
  color: #ffffff;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 750;
  cursor: pointer;
}

.ls-learn-next-unit:hover {
  background: #1b2a43;
}

.ls-learn-next-unit:focus-visible {
  outline: 3px solid rgba(15, 152, 168, 0.22);
  outline-offset: 3px;
}

.ls-learn-support-rail {
  display: grid;
  gap: 0.75rem;
}

.ls-learn-support-section {
  border: 1px solid var(--learn-border);
  border-radius: 8px;
  padding: 0.9rem;
  background: #ffffff;
}

.ls-learn-tool-link {
  display: grid;
  grid-template-columns: 1.8rem minmax(0, 1fr);
  gap: 0.55rem;
  width: 100%;
  margin-top: 0.55rem;
  border: 1px solid #e0e6ec;
  border-radius: 6px;
  padding: 0.65rem;
  background: #ffffff;
  color: #28354a;
  text-align: left;
  cursor: pointer;
}

.ls-learn-tool-link > span:first-child {
  display: grid;
  place-items: center;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  background: #edf5ff;
  color: #496c9c;
}

.ls-learn-tool-link svg {
  width: 0.95rem;
}

.ls-learn-tool-link strong,
.ls-learn-tool-link small {
  display: block;
}

.ls-learn-tool-link strong {
  font-size: 0.73rem;
}

.ls-learn-tool-link small {
  margin-top: 0.18rem;
  color: #6b7689;
  font-size: 0.65rem;
  line-height: 1.35;
}

.ls-learn-notes {
  min-height: 10rem;
  margin-top: 0.65rem;
}

.ls-learn-notes-status {
  display: block;
  margin-top: 0.4rem;
  color: #6a7689;
  font-size: 0.65rem;
}

.ls-learn-understanding-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.65rem;
  color: #4e5c71;
  font-size: 0.72rem;
}

.ls-learn-status-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
}

.ls-learn-status-dot.is-secure { background: #42b59f; }
.ls-learn-status-dot.is-fragile { background: #e2a143; }
.ls-learn-status-dot.is-work { background: #d76d6d; }

.ls-learn-lesson-loading {
  min-height: 19rem;
}

html.ls-dark-mode .ls-learn-class-shell {
  --learn-border: #2b3a50;
  --learn-muted: #aebbd0;
  --learn-paper: #101a2b;
  color: #eef4fb;
}

html.ls-dark-mode .ls-learn-class-toolbar,
html.ls-dark-mode .ls-learn-class-article,
html.ls-dark-mode .ls-learn-support-section {
  border-color: var(--learn-border);
  background: #101a2b;
  color: #eef4fb;
}

html.ls-dark-mode .ls-learn-class-toolbar {
  background: rgba(15, 25, 42, 0.96);
}

html.ls-dark-mode .ls-learn-class-exit,
html.ls-dark-mode .ls-learn-check-option,
html.ls-dark-mode .ls-learn-model-part,
html.ls-dark-mode .ls-learn-tool-link,
html.ls-dark-mode .ls-learn-written-response,
html.ls-dark-mode .ls-learn-notes {
  border-color: #34445b;
  background: #142137;
  color: #edf3fb;
}

html.ls-dark-mode .ls-learn-class-identity strong,
html.ls-dark-mode .ls-learn-class-progress strong,
html.ls-dark-mode .ls-learn-map-header h2,
html.ls-dark-mode .ls-learn-support-section h2,
html.ls-dark-mode .ls-learn-map-item strong,
html.ls-dark-mode .ls-learn-map-help strong,
html.ls-dark-mode .ls-learn-article-heading h1,
html.ls-dark-mode .ls-learn-story-section > h2,
html.ls-dark-mode .ls-learn-written-check > h2,
html.ls-dark-mode .ls-learn-lesson-complete h2,
html.ls-dark-mode .ls-learn-check-header h3,
html.ls-dark-mode .ls-learn-walkthrough-steps h3 {
  color: #f4f7fb;
}

html.ls-dark-mode .ls-learn-article-heading {
  border-color: var(--learn-border);
  background: #0e1828;
}

html.ls-dark-mode .ls-learn-article-subtitle,
html.ls-dark-mode .ls-learn-thesis,
html.ls-dark-mode .ls-learn-story-section > p:not(.ls-learn-section-number):not(.ls-learn-story-bridge),
html.ls-dark-mode .ls-learn-written-prompt,
html.ls-dark-mode .ls-learn-written-scaffold,
html.ls-dark-mode .ls-learn-step-work,
html.ls-dark-mode .ls-learn-walkthrough-conclusion,
html.ls-dark-mode .ls-learn-understanding-row {
  color: #c4cfdf;
}

html.ls-dark-mode .ls-learn-story-bridge,
html.ls-dark-mode .ls-learn-step-reasoning {
  color: #a7dfd5;
}

html.ls-dark-mode .ls-learn-problem-context {
  border-color: #68502d;
  background: #2a2118;
}

html.ls-dark-mode .ls-learn-problem-context p {
  color: #f2dfbf;
}

html.ls-dark-mode .ls-learn-reasoning-check {
  border-color: #4b436d;
  background: #171a2d;
}

html.ls-dark-mode .ls-learn-check-option:hover:not(:disabled),
html.ls-dark-mode .ls-learn-check-option[aria-pressed="true"] {
  border-color: #54b7a7;
  background: #17332f;
}

html.ls-dark-mode .ls-learn-check-option[data-result="correct"] {
  border-color: #36a86e;
  background: #123925;
}

html.ls-dark-mode .ls-learn-check-option[data-result="incorrect"] {
  border-color: #c85d65;
  background: #3b2026;
}

html.ls-dark-mode .ls-learn-mental-model {
  border-color: #284d49;
  background: #122a2a;
}

html.ls-dark-mode .ls-learn-model-part strong,
html.ls-dark-mode .ls-learn-formal-link strong,
html.ls-dark-mode .ls-learn-formal-link p {
  color: #e8f4f2;
}

html.ls-dark-mode .ls-learn-model-part span {
  color: #b7c8d5;
}

html.ls-dark-mode .ls-learn-formal-link,
html.ls-dark-mode .ls-learn-formal-link > div + div {
  border-color: #34445b;
}

html.ls-dark-mode .ls-learn-formal-link > div + div {
  background: #142137;
}

html.ls-dark-mode .ls-learn-next-unit {
  border-color: #41c8b6;
  background: #2cbfae;
  color: #081b1a;
}

html.ls-dark-mode .ls-learn-next-unit:hover {
  background: #53d2c1;
}

html.ls-dark-mode .ls-learn-gap-connection {
  background: #2b2118;
}

html.ls-dark-mode .ls-learn-gap-connection strong,
html.ls-dark-mode .ls-learn-gap-connection p {
  color: #efd2a5;
}

html.ls-dark-mode .ls-learn-check-feedback,
html.ls-dark-mode .ls-learn-written-feedback {
  background: #123425;
  color: #e7f8ef;
}

html.ls-dark-mode .ls-learn-check-feedback.needs-work,
html.ls-dark-mode .ls-learn-written-feedback.is-developing {
  background: #342717;
  color: #fae5c5;
}

html.ls-dark-mode .ls-learn-map-item:hover,
html.ls-dark-mode .ls-learn-map-item:focus-visible {
  background: #15302d;
}

html.ls-dark-mode .ls-learn-map-number,
html.ls-dark-mode .ls-learn-progress-track {
  border-color: #3a4a61;
  background: #1a2940;
  color: #bdc8d7;
}

@media (max-width: 1180px) {
  .ls-learn-class-grid {
    grid-template-columns: 12rem minmax(0, 1fr);
  }

  .ls-learn-support-rail {
    position: static;
    grid-column: 2;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-height: none;
  }
}

@media (max-width: 820px) {
  .ls-learn-class-toolbar {
    position: static;
    grid-template-columns: auto minmax(0, 1fr);
  }

  .ls-learn-class-progress {
    grid-column: 1 / -1;
    margin-top: 0.55rem;
  }

  .ls-learn-class-grid {
    grid-template-columns: 1fr;
  }

  .ls-learn-lesson-map {
    position: static;
    max-height: none;
    overflow: hidden;
    border: 1px solid var(--learn-border);
    border-radius: 8px;
    padding: 0.75rem;
  }

  .ls-learn-map-list {
    display: flex;
    overflow-x: auto;
    padding-bottom: 0.25rem;
  }

  .ls-learn-map-item {
    flex: 0 0 12rem;
    border: 1px solid transparent;
    border-radius: 6px;
  }

  .ls-learn-map-help {
    display: none;
  }

  .ls-learn-support-rail {
    grid-column: 1;
  }
}

@media (max-width: 640px) {
  .ls-learn-class-identity {
    justify-content: flex-start;
    align-items: flex-start;
    flex-direction: column;
    gap: 0.12rem;
    text-align: left;
  }

  .ls-learn-support-rail {
    grid-template-columns: 1fr;
  }

  .ls-learn-model-row,
  .ls-learn-check-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .ls-learn-model-arrow {
    align-self: center;
    transform: rotate(90deg);
  }

  .ls-learn-formal-link {
    grid-template-columns: 1fr;
  }

  .ls-learn-formal-link > div + div {
    border-top: 1px solid #d8e3eb;
    border-left: 0;
  }

  .ls-learn-check-actions .ls-learn-action {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ls-learn-progress-fill {
    transition: none;
  }
}
