:root {
  --color-red: rgb(255, 0, 0);
  --color-light-red: rgb(255, 112, 136);
  --color-orange: rgb(255, 128, 0);
  --color-orange-yellow: rgb(255, 191, 0);
  --color-yellow: rgb(246, 221, 75);
  --color-green-yellow: rgb(158, 210, 0);
  --color-green: rgb(0, 153, 0);
  --color-blue: rgb(0, 0, 255);
  --color-light-blue: rgb(82, 177, 255);
  --color-light-light-blue: rgb(192, 235, 255);
  --color-purple: rgb(192, 0, 192);
  --color-pink: rgb(255, 0, 192);
  --color-brown: rgb(160, 80, 40);
  --color-gold: rgb(224, 208, 8);
  --color-black: rgb(0, 0, 0);
  --color-gray: rgb(150, 150, 150);

  --ltl-bg: #f6fbff;
  --ltl-surface: #ffffff;
  --ltl-surface-soft: #f2f8ff;
  --ltl-ink: #1c2f42;
  --ltl-muted: #52687d;
  --ltl-border: #c7d8ea;
  --ltl-brand-cyan: #078ec8;
  --ltl-brand-green: #289f4b;
  --ltl-brand-orange: #cc7a00;
  --ltl-brand-violet: #5f5ad3;
  --ltl-shadow: 0 14px 30px rgba(10, 44, 74, 0.11);
  --ltl-radius-xl: 18px;
  --ltl-radius-lg: 13px;
  --ltl-radius-md: 10px;
}

.ltl {
  margin: 1.8rem auto 3rem;
  max-width: 1320px;
  padding: 0 1rem;
  color: var(--ltl-ink);
  font-family: Aptos, "Gill Sans", "Trebuchet MS", sans-serif;
}

.ltl-hero {
  border: 1px solid #b8d3ea;
  border-radius: var(--ltl-radius-xl);
  padding: 1.2rem 1.2rem 1.3rem;
  background:
    radial-gradient(circle at 92% 0%, rgba(95, 90, 211, 0.12) 0, rgba(95, 90, 211, 0) 46%),
    radial-gradient(circle at 0% 120%, rgba(7, 142, 200, 0.17) 0, rgba(7, 142, 200, 0) 44%),
    linear-gradient(140deg, #fbfdff 0%, #f2f9ff 54%, #eef8ff 100%);
  box-shadow: var(--ltl-shadow);
}

.ltl-hero__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 0.9rem;
  align-items: stretch;
}

.ltl-hero__brand {
  display: grid;
  align-content: space-between;
  row-gap: 0.14rem;
}

.ltl-hero__controls {
  display: grid;
  justify-items: end;
  align-content: space-between;
  row-gap: 0.24rem;
}

.ltl-hero__grade-wrap {
  justify-self: end;
  max-width: none;
  display: flex;
  justify-content: flex-end;
  overflow: visible;
}

.ltl-hero__eyebrow {
  margin: 0;
  letter-spacing: 0.02em;
  font-size: 0.78rem;
  color: #406480;
  font-weight: 700;
}

.ltl-select-field--hero {
  justify-self: end;
  justify-items: end;
  text-align: right;
}

.ltl-select-field.ltl-select-field--hero span {
  width: 100%;
  text-align: right;
}

.ltl-select-field.ltl-select-field--hero select {
  min-width: 0;
  width: clamp(10.75rem, 22vw, 13.5rem);
  max-width: 100%;
  text-align: right;
  text-align-last: right;
}

.ltl-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1.04;
  color: var(--ltl-brand-cyan);
}

.ltl-hero__subtitle {
  margin: 0.62rem 0 0;
  font-size: 1.03rem;
  line-height: 1.45;
  max-width: 72ch;
  color: var(--ltl-muted);
}

.ltl-hero__bar {
  margin-top: 0.3rem;
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: nowrap;
}

.ltl-select-field {
  display: inline-grid;
  gap: 0.25rem;
}

.ltl-select-field span {
  font-size: 0.78rem;
  font-weight: 700;
  color: #3f627d;
  letter-spacing: 0.03em;
}

.ltl-select-field select {
  min-width: 240px;
  border: 1px solid #a5c4de;
  border-radius: 9px;
  background: #ffffff;
  color: #23425e;
  font-family: Aptos, "Gill Sans", "Trebuchet MS", sans-serif;
  font-size: 0.97rem;
  font-weight: 700;
  padding: 0.45rem 0.62rem;
}

.ltl-profile-note {
  margin: 0;
  color: #3d647f;
  font-size: 0.9rem;
  flex: 1 1 auto;
  min-width: 150px;
}

.ltl-shell {
  margin-top: 1rem;
  display: grid;
  gap: 1rem;
}

.ltl-student-panels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-content: start;
}

.ltl-panel {
  border: 1px solid var(--ltl-border);
  border-radius: var(--ltl-radius-lg);
  background: var(--ltl-surface);
  box-shadow: 0 8px 20px rgba(16, 44, 70, 0.08);
  padding: 0.85rem;
}

.ltl-recent-panel {
  margin-top: 1rem;
}

.ltl-catalog-title {
  margin: 0.72rem 0 0;
  font-size: 0.88rem;
  color: #2f5574;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  text-align: center;
}

.ltl-catalog-title + .ltl-shell {
  margin-top: 0.4rem;
}

.ltl-recent-grid {
  margin-top: 0.65rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.ltl-recent-block h3 {
  margin: 0;
  font-size: 0.88rem;
  color: #2f5574;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ltl-recent-block__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.4rem;
}

.ltl-recent-block__due-label {
  font-size: 0.88rem;
  color: var(--color-red);
  letter-spacing: 0.05em;
  font-weight: 700;
}

.ltl-activity-list {
  margin: 0.46rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.36rem;
}

.ltl-activity-item {
  border: 1px solid #d6e3ee;
  border-radius: 10px;
  background: #fbfdff;
  padding: 0.34rem 0.44rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.35rem;
  align-items: center;
}

.ltl-activity-title {
  margin: 0;
  color: #2c4f69;
  font-size: 0.86rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ltl-activity-slug {
  font-weight: 800;
  color: #355a76;
}

.ltl-activity-meta {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
  min-width: 0;
  max-width: 100%;
}

.ltl-activity-progress {
  font-size: 0.82rem;
  font-weight: 800;
  color: #2f597b;
  min-width: 3ch;
  text-align: right;
}

.ltl-activity-due-date {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--color-red);
  min-width: 3.8rem;
  text-align: right;
}

.ltl-activity-empty {
  border: 1px dashed #c5d7e7;
  border-radius: 9px;
  background: #f8fcff;
  color: #4d697f;
  font-size: 0.86rem;
  padding: 0.46rem 0.52rem;
}

.ltl-panel h2 {
  margin: 0;
  font-size: 1.14rem;
  color: #1a4567;
}

.ltl-panel__hint {
  margin: 0.38rem 0 0;
  font-size: 0.88rem;
  color: var(--ltl-muted);
}

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

.ltl-metric {
  margin: 0;
  border: 1px solid #c6daea;
  border-radius: 10px;
  background: #f8fcff;
  padding: 0.52rem 0.58rem;
}

.ltl-metric__label {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.68rem;
  color: #4f6d84;
  font-weight: 700;
}

.ltl-metric__value {
  margin: 0.22rem 0 0;
  font-size: 1.03rem;
  font-weight: 800;
}

.ltl-badge-list {
  margin-top: 0.62rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.ltl-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  border: 1px solid #d2d7f4;
  background: #f5f6ff;
  color: #3a3da7;
  border-radius: 999px;
  padding: 0.2rem 0.54rem;
  font-size: 0.78rem;
  font-weight: 700;
}

.ltl-secondary-btn,
.ltl-primary-btn {
  border: 1px solid #8cb3d3;
  border-radius: 10px;
  cursor: pointer;
  font-family: Aptos, "Gill Sans", "Trebuchet MS", sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

.ltl-secondary-btn {
  margin-top: 0.65rem;
  padding: 0.45rem 0.62rem;
  background: #f4fbff;
  color: #1d4f72;
}

.ltl-secondary-btn:hover,
.ltl-primary-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 13px rgba(8, 43, 70, 0.13);
}

.ltl-share-status {
  margin: 0.45rem 0 0;
  color: #4e6880;
  font-size: 0.83rem;
  min-height: 1.1em;
}

.ltl-parent-list {
  margin: 0.6rem 0 0;
  padding: 0 0 0 1rem;
  color: #405b72;
  display: grid;
  gap: 0.35rem;
  font-size: 0.91rem;
}

.ltl-parent-table-wrap {
  margin-top: 0.7rem;
  overflow-x: auto;
}

.ltl-parent-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
  font-size: 0.8rem;
}

.ltl-parent-table th,
.ltl-parent-table td {
  border: 1px solid #d5e2ef;
  padding: 0.28rem 0.36rem;
  text-align: left;
  color: #37546b;
}

.ltl-parent-table th {
  background: #eef5fb;
  color: #2c4f6a;
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.ltl-status-log-wrap {
  margin-top: 0.6rem;
}

.ltl-status-log-wrap h3 {
  margin: 0;
  font-size: 0.84rem;
  color: #355b77;
}

.ltl-status-log {
  margin: 0.35rem 0 0;
  padding: 0 0 0 1rem;
  color: #4b687f;
  font-size: 0.79rem;
  display: grid;
  gap: 0.2rem;
}

.ltl-status-legend {
  margin-top: 0.65rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.36rem;
}

.ltl-status-chip {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 800;
  font-style: italic;
  letter-spacing: 0.01em;
  border: 0;
  padding: 0;
  background: transparent;
  white-space: nowrap;
}

.ltl-status-chip--none {
  color: #5f7488;
}

.ltl-status-chip--started {
  color: #7a4a00;
}

.ltl-status-chip--developing {
  color: #8f4a00;
}

.ltl-status-chip--proficient {
  color: #1f6e27;
}

.ltl-status-chip--strong {
  color: #0f6978;
}

.ltl-status-chip--exemplary {
  color: #3f3a97;
}

.ltl-status-chip--locked {
  color: #8f4f00;
}

.ltl-grade-tabs {
  margin: 0;
  display: flex;
  flex-wrap: nowrap;
  gap: 0.36rem;
  justify-content: flex-end;
  position: relative;
  z-index: 1;
}

.ltl-grade-tab {
  border: 1px solid #b5cae0;
  border-radius: 999px;
  background: #f8fbff;
  color: #2a5072;
  min-width: 38px;
  padding: 0.29rem 0.52rem;
  font-family: Aptos, "Gill Sans", "Trebuchet MS", sans-serif;
  font-size: 0.8rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex: 0 0 auto;
  cursor: pointer;
  line-height: 1;
}

.ltl-grade-tab[aria-selected="true"] {
  background: linear-gradient(180deg, #1a9ed8 0%, #0d84bd 100%);
  border-color: #0d84bd;
  color: #fff;
}

.ltl-cluster-grid {
  margin-top: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.24rem;
}

.ltl-cluster {
  padding: 0;
}

.ltl-cluster + .ltl-cluster {
  padding-top: 0.16rem;
}

.ltl-cluster__title {
  margin: 0;
  color: var(--color-black);
  font-size: 0.88rem;
  line-height: 1.22;
  font-family: Aptos, "Gill Sans", "Trebuchet MS", sans-serif;
  font-weight: 700;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.22rem 0.56rem;
}

.ltl-cluster__title-text {
  min-width: 0;
}

.ltl-cluster__title-circles {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.2rem;
}

.ltl-exercise-title-circles {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  margin-left: 0.32rem;
  vertical-align: middle;
}

.ltl-exercise-title-glyphs {
  display: inline-flex;
  align-items: center;
  gap: 0.24rem;
  margin-left: 0.28rem;
  vertical-align: middle;
}

.ltl-title-glyph {
  display: block;
  flex: none;
}

.ltl-title-glyph--nexus {
  width: 2.24rem;
  height: 1.3rem;
}

.ltl-title-glyph--connector {
  width: 1.68rem;
  height: 0.78rem;
}

.ltl-title-glyph--mod-arrow {
  width: 1.54rem;
  height: 0.84rem;
}

.ltl-full-clause-circle {
  width: 1.06rem;
  height: 1.06rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  border: 0;
  color: #fff;
  font-family: Aptos, "Segoe UI", sans-serif;
}

.ltl-full-clause-circle--red {
  background: var(--color-red);
}

.ltl-full-clause-circle--orange {
  background: var(--color-orange);
}

.ltl-full-clause-circle--orange-yellow {
  background: var(--color-orange-yellow);
}

.ltl-full-clause-circle--green-yellow {
  background: var(--color-green-yellow);
}

.ltl-full-clause-circle--green {
  background: var(--color-green);
}

.ltl-full-clause-circle--main {
  background: var(--color-blue);
}

.ltl-small-clause-half-circle {
  width: 0.92rem;
  height: 0.5rem;
  border-radius: 0 0 999px 999px;
  display: inline-block;
  border: 1px solid rgba(0, 0, 0, 0.25);
  border-top: 0;
}

.ltl-small-clause-half-circle--red {
  background: var(--color-red);
}

.ltl-small-clause-half-circle--orange {
  background: var(--color-orange);
}

.ltl-small-clause-half-circle--orange-yellow {
  background: var(--color-orange-yellow);
}

.ltl-small-clause-half-circle--green {
  background: var(--color-green);
}

.ltl-small-clause-half-circle--green-yellow {
  background: var(--color-green-yellow);
}

.ltl-inline-label {
  display: inline-flex;
  align-items: center;
  margin: 0 0.16rem;
  vertical-align: middle;
}

.ltl-title-part--base {
  color: var(--color-black);
}

.ltl-title-part--content {
  color: var(--color-red);
}

.ltl-title-part--red {
  color: var(--color-red);
}

.ltl-title-part--action {
  color: var(--color-blue);
}

.ltl-title-part--blue {
  color: var(--color-blue);
}

.ltl-title-part--light-blue {
  color: var(--color-light-blue);
}

.ltl-title-part--light-light-blue {
  color: var(--color-light-light-blue);
}

.ltl-title-part--light-red {
  color: var(--color-light-red);
}

.ltl-title-part--modifier {
  color: var(--color-orange);
}

.ltl-title-part--orange {
  color: var(--color-orange);
}

.ltl-title-part--modifier-orange-yellow {
  color: var(--color-orange-yellow);
}

.ltl-title-part--orange-yellow {
  color: var(--color-orange-yellow);
}

.ltl-title-part--modifier-green-yellow {
  color: var(--color-green-yellow);
}

.ltl-title-part--green-yellow {
  color: var(--color-green-yellow);
}

.ltl-title-part--yellow {
  color: var(--color-yellow);
}

.ltl-title-part--green {
  color: var(--color-green);
}

.ltl-title-part--black {
  color: var(--color-black);
}

.ltl-title-part--underline-red-blue,
.ltl-title-part--underline-orange-blue,
.ltl-title-part--underline-orange-yellow-blue,
.ltl-title-part--underline-green-blue,
.ltl-title-part--underline-green-yellow-blue,
.ltl-title-part--underline-light-blue-blue {
  display: inline-block;
  padding-bottom: 0.05em;
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 0.16em;
}

.ltl-title-part--underline-red-blue {
  background-image: linear-gradient(90deg, var(--color-red), var(--color-blue));
}

.ltl-title-part--underline-orange-blue {
  background-image: linear-gradient(90deg, var(--color-orange), var(--color-blue));
}

.ltl-title-part--underline-orange-yellow-blue {
  background-image: linear-gradient(90deg, var(--color-orange-yellow), var(--color-blue));
}

.ltl-title-part--underline-green-blue {
  background-image: linear-gradient(90deg, var(--color-green), var(--color-blue));
}

.ltl-title-part--underline-green-yellow-blue {
  background-image: linear-gradient(90deg, var(--color-green-yellow), var(--color-blue));
}

.ltl-title-part--underline-light-blue-blue {
  background-image: linear-gradient(90deg, var(--color-light-blue), var(--color-blue));
}

.ltl-exercise-list {
  margin: 0.58rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.ltl-exercise-item {
  border: 1px solid #d3e1ee;
  background: #fff;
  border-radius: 9px;
  padding: 0.42rem 0.5rem;
}

.ltl-exercise-item--locked {
  background: #f7f9fb;
  border-color: #d8e0e8;
}

.ltl-exercise-row {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) minmax(150px, 230px) 30px 30px 22px;
  gap: 0.4rem;
  align-items: center;
}

.ltl-exercise-num {
  font-weight: 800;
  color: #40586f;
}

.ltl-exercise-title {
  margin: 0;
  color: #274760;
  line-height: 1.2;
  font-size: 0.96rem;
}

.ltl-exercise-item--locked .ltl-exercise-title {
  color: #6a7c8d;
}

.ltl-exercise-item--locked .ltl-exercise-title .ltl-title-part--base,
.ltl-exercise-item--locked .ltl-exercise-title .ltl-title-part--black {
  color: #6a7c8d;
}

.ltl-icon-btn {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid #b4cae1;
  background: #f8fcff;
  color: #205072;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.ltl-icon-btn svg {
  width: 15px;
  height: 15px;
}

.ltl-icon-btn:hover {
  border-color: #75a3cb;
}

.ltl-icon-btn--watched {
  border-color: #79c08e;
  background: #e9f8ee;
  color: #1f7d3d;
}

.ltl-icon-btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

.ltl-icon-btn--sm {
  width: 34px;
  min-width: 34px;
  height: 28px;
  border-radius: 8px;
  font-size: 0.76rem;
  font-weight: 700;
}

.ltl-lock-indicator {
  width: 18px;
  height: 18px;
  color: var(--color-gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ltl-lock-indicator svg {
  width: 16px;
  height: 16px;
}

.ltl-lock-indicator--hidden {
  visibility: hidden;
}

.ltl-exercise-row .ltl-status-chip {
  justify-self: end;
  text-align: right;
}

.ltl-empty {
  border: 1px dashed #bcd0e0;
  border-radius: 10px;
  padding: 0.8rem;
  color: #4a647b;
  background: #f7fbff;
  font-size: 0.95rem;
}

.ltl-workspace__subtitle {
  margin: 0.45rem 0 0;
  color: #4a667d;
}

.ltl-workspace__actions {
  margin-top: 0.7rem;
}

.ltl-primary-btn {
  display: inline-block;
  text-decoration: none;
  padding: 0.5rem 0.72rem;
  background: linear-gradient(180deg, #25a651 0%, #1a8d42 100%);
  border-color: #1a8d42;
  color: #fff;
}

.ltl-workspace__status {
  margin-top: 0.9rem;
}

.ltl-workspace__status-label {
  margin: 0;
  font-size: 0.86rem;
  color: #4a6680;
  font-weight: 700;
}

.ltl-workspace__status-buttons {
  margin-top: 0.42rem;
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.ltl-status-btn {
  border: 1px solid #bfd0e0;
  background: #f8fbff;
  color: #33566f;
  border-radius: 999px;
  padding: 0.26rem 0.6rem;
  font-family: Aptos, "Gill Sans", "Trebuchet MS", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.ltl-status-btn[aria-pressed="true"] {
  border-color: #4a9f5f;
  background: #e4f6e8;
  color: #1f6f31;
}

.ltl-workspace__note {
  margin: 0.56rem 0 0;
  color: #45657d;
  font-size: 0.84rem;
  min-height: 1em;
}

.ltl-workspace__sim {
  margin-top: 0.85rem;
  border: 1px solid #d2dfeb;
  border-radius: 10px;
  background: #f8fbff;
  padding: 0.58rem;
}

.ltl-workspace__sim-actions {
  margin-top: 0.42rem;
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.ltl-workspace__sim-actions .ltl-secondary-btn {
  margin-top: 0;
}

.ltl-workspace__sim-assessment {
  margin-top: 0.52rem;
  display: grid;
  grid-template-columns: auto 90px auto;
  gap: 0.35rem;
  align-items: center;
}

.ltl-workspace__sim-assessment label {
  font-size: 0.8rem;
  color: #3f5f76;
  font-weight: 700;
}

.ltl-workspace__sim-assessment input {
  border: 1px solid #aac5dd;
  border-radius: 8px;
  background: #fff;
  color: #24445f;
  padding: 0.34rem 0.45rem;
  font-family: Aptos, "Gill Sans", "Trebuchet MS", sans-serif;
}

.ltl-video-modal {
  width: min(920px, calc(100vw - 1.25rem));
  border: 1px solid #c0d6e9;
  border-radius: 12px;
  padding: 0.6rem;
  box-shadow: 0 16px 44px rgba(4, 22, 39, 0.35);
}

.ltl-video-modal::backdrop {
  background: rgba(8, 25, 43, 0.64);
}

.ltl-video-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.ltl-video-modal__header h2 {
  margin: 0;
  color: #214c6f;
  font-size: 1rem;
}

.ltl-video-modal__body {
  margin-top: 0.52rem;
}

.ltl-video-modal__body iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 9px;
}

.ltl-grade-tab--display {
  cursor: default;
  pointer-events: none;
}

.ltl-exercise-modal__header-right .ltl-grade-tab--display {
  width: 2.05rem;
  min-width: 2.05rem;
  height: 1.82rem;
  padding: 0;
}

.ltl-exercise-modal {
  width: min(1120px, calc(100vw - 2rem));
  height: min(84vh, 700px);
  border: 1px solid #a4c0d8;
  border-radius: 16px;
  padding: 0;
  box-shadow: 0 24px 56px rgba(5, 24, 44, 0.48);
  background: #ffffff;
}

.ltl-exercise-modal::backdrop {
  background: rgba(7, 16, 29, 0.64);
}

.ltl-exercise-modal__frame {
  height: 100%;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 0.3rem;
  padding: 0.9rem 1rem 0.8rem;
  background: #ffffff;
  color: #1f3f5b;
}

.ltl-exercise-modal__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.6rem;
  align-items: start;
}

.ltl-exercise-modal__identifier {
  margin: 0;
  font-size: 0.96rem;
  font-weight: 800;
  line-height: 1.2;
  color: #1f3f5b;
}

.ltl-exercise-modal__header-right {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
  justify-self: end;
}

.ltl-exercise-modal__grade-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #2f5574;
}

.ltl-exercise-modal__instructions {
  margin: 0.22rem 0 0;
  font-size: 0.94rem;
  line-height: 1.35;
  color: var(--color-black);
}

.ltl-exercise-modal__content-word {
  color: var(--color-red);
  font-weight: 800;
}

.ltl-exercise-modal__body {
  position: relative;
  min-height: 0;
  display: block;
  overflow: hidden;
  padding: 0.2rem 0.1rem 0.45rem;
}

.ltl-exercise-modal__question-shell {
  width: min(96%, 980px);
  height: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 0.48rem;
  opacity: 1;
  transition: opacity 260ms ease;
}

.ltl-exercise-modal__question-shell.is-transitioning {
  opacity: 0.06;
}

.ltl-exercise-modal__feedback {
  margin: 0;
  min-height: 1.22rem;
  color: #965700;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
}

.ltl-exercise-modal__feedback.is-empty {
  visibility: hidden;
}

.ltl-exercise-modal__image-toolbar {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 0.34rem;
}

.ltl-exercise-modal__viewport {
  min-height: 0;
  width: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: auto;
  touch-action: none;
  user-select: none;
  cursor: grab;
}

.ltl-exercise-modal__viewport.is-panning {
  cursor: grabbing;
}

.ltl-exercise-modal__stage {
  position: relative;
  width: min(100%, 960px);
  margin: 0 auto;
  transform-origin: top left;
  min-height: 0;
}

.ltl-exercise-modal__stage.is-image-loading {
  background:
    linear-gradient(110deg, rgba(202, 214, 227, 0.35) 10%, rgba(233, 240, 248, 0.82) 24%, rgba(202, 214, 227, 0.35) 38%) #f4f8fb;
  background-size: 220% 100%;
  animation: ltlImageSkeleton 1.15s linear infinite;
  border-radius: 9px;
  min-height: 160px;
}

.ltl-exercise-modal__stage img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
  pointer-events: none;
}

.ltl-exercise-modal__hotspot-layer {
  position: absolute;
  inset: 0;
}

.ltl-exercise-modal__hotspot {
  position: absolute;
  box-sizing: border-box;
  border: 2px solid transparent;
  border-radius: 9px;
  background: rgba(37, 94, 131, 0);
  box-shadow: none;
  cursor: pointer;
  transition: border-color 130ms ease, background-color 130ms ease, box-shadow 130ms ease;
}

.ltl-exercise-modal__hotspot:hover,
.ltl-exercise-modal__hotspot:focus-visible {
  border-color: rgba(19, 135, 196, 0.96);
  background: rgba(65, 173, 241, 0.13);
  box-shadow: 0 0 0 1px rgba(13, 100, 146, 0.26);
  outline: none;
}

.ltl-exercise-modal__hotspot[aria-pressed="true"] {
  border-color: rgba(214, 36, 23, 0.98);
  background: rgba(235, 64, 64, 0.2);
  box-shadow: 0 0 0 1px rgba(151, 19, 19, 0.34);
}

.ltl-exercise-modal__hotspot[disabled] {
  cursor: not-allowed;
  opacity: 0.5;
}

.ltl-exercise-modal__success-overlay {
  position: absolute;
  inset: 0.2rem 0.1rem 0.45rem;
  display: grid;
  place-items: center;
  pointer-events: none;
  font-family: Aptos, "Gill Sans", "Trebuchet MS", sans-serif;
  font-size: clamp(1.05rem, 2.4vw, 2.05rem);
  font-weight: 800;
  color: #0f4b73;
  text-shadow: 0 2px 8px rgba(8, 36, 57, 0.16);
}

.ltl-exercise-modal__success-message {
  padding: 0.62rem 1.05rem;
  border-radius: 12px;
  border: 1px solid rgba(44, 132, 181, 0.55);
  background: linear-gradient(180deg, rgba(245, 253, 255, 0.96) 0%, rgba(215, 240, 255, 0.96) 100%);
  animation: ltlSuccessFade 1470ms ease both;
  font-size: clamp(1.6rem, 3.6vw, 3.25rem);
  line-height: 1.08;
  font-weight: 900;
}

.ltl-exercise-modal__success-message--error {
  color: #c31919;
  border: 1px solid rgba(189, 44, 44, 0.58);
  background: linear-gradient(180deg, rgba(255, 246, 246, 0.96) 0%, rgba(255, 223, 223, 0.96) 100%);
  animation: ltlSuccessFade 1470ms ease both;
}

.ltl-exercise-modal__success-balloon {
  width: 126px;
  height: 154px;
  border-radius: 56% 56% 50% 50%;
  border: 2px solid #2e8fcb;
  background: radial-gradient(circle at 35% 24%, #e1f4ff 0%, #63bff7 52%, #2b94d0 100%);
  color: #ffffff;
  display: grid;
  place-items: center;
  padding: 0.66rem;
  text-align: center;
  font-size: 0.82rem;
  line-height: 1.16;
  animation: ltlBalloonRise 960ms ease both;
  position: relative;
}

.ltl-exercise-modal__success-balloon::after {
  content: "";
  position: absolute;
  bottom: -36px;
  width: 2px;
  height: 36px;
  background: #3f7da5;
}

.ltl-exercise-modal__confetti {
  position: absolute;
  top: -6px;
  width: 8px;
  height: 14px;
  border-radius: 2px;
  opacity: 0;
  animation: ltlConfettiFall 860ms linear forwards;
}

@keyframes ltlSuccessFade {
  0% { opacity: 0; }
  22% { opacity: 1; }
  78% { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes ltlBalloonRise {
  0% { opacity: 0; transform: translateY(80px) scale(0.9); }
  20% { opacity: 1; }
  70% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-130px) scale(1.02); }
}

@keyframes ltlConfettiFall {
  0% { opacity: 0; transform: translateY(0) rotate(0deg); }
  10% { opacity: 1; }
  100% { opacity: 0; transform: translateY(320px) rotate(540deg); }
}

@keyframes ltlDeltaAppear {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes ltlImageSkeleton {
  0% { background-position: 100% 0; }
  100% { background-position: 0 0; }
}

.ltl-exercise-modal__footer {
  display: grid;
  justify-items: center;
  gap: 0.42rem;
}

.ltl-exercise-modal__signal {
  margin: 0;
  min-height: 1.22rem;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.ltl-exercise-modal__lock-note {
  margin: 0;
  color: #8b5a00;
  font-size: 0.82rem;
  font-weight: 700;
}

.ltl-exercise-modal__submit {
  border: 1px solid #0a7cb1;
  border-radius: 12px;
  background: linear-gradient(180deg, #59bff8 0%, #2d9ed6 53%, #1f89c0 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 6px 12px rgba(21, 78, 112, 0.24);
  color: #fff;
  font-family: Aptos, "Gill Sans", "Trebuchet MS", sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  min-width: 180px;
  padding: 0.42rem 0.9rem;
  cursor: pointer;
  margin-bottom: 0.34rem;
}

.ltl-exercise-modal__submit:hover {
  filter: brightness(1.03);
}

.ltl-exercise-modal__submit:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.ltl-exercise-modal__progress-wrap {
  width: min(96%, 940px);
  margin: 0.95rem auto 0;
  display: grid;
  gap: 0.44rem;
}

.ltl-exercise-modal__progress-track {
  position: relative;
  height: 18px;
  border-radius: 999px;
  border: 1px solid #9fabb7;
  background:
    linear-gradient(180deg, #d7dde4 0%, #bec8d2 48%, #aebac7 100%);
  box-shadow: inset 0 2px 3px rgba(255, 255, 255, 0.55), inset 0 -2px 4px rgba(80, 90, 104, 0.24);
  overflow: visible;
}

.ltl-exercise-modal__progress-fill {
  position: absolute;
  inset: 1px auto 1px 1px;
  width: 0%;
  border-radius: 999px;
  background:
    linear-gradient(180deg, #6ec6ff 0%, #349fdf 52%, #1f85c0 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.52), 0 0 0 1px rgba(20, 88, 130, 0.18);
}

.ltl-exercise-modal__progress-bubble {
  position: absolute;
  left: 0%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  background: #ffffff;
  border: 1px solid #89a9c5;
  border-radius: 14px;
  min-width: 42px;
  height: 28px;
  padding: 0 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.86rem;
  font-weight: 800;
  color: #214f72;
  box-shadow: 0 5px 10px rgba(26, 65, 95, 0.18);
}

.ltl-exercise-modal__progress-bubble::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 9px solid #ffffff;
  filter: drop-shadow(0 1px 0 #89a9c5);
}

.ltl-exercise-modal__score-delta {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  text-shadow: 0 1px 4px rgba(8, 36, 57, 0.15);
  animation: ltlDeltaAppear 220ms ease both;
  pointer-events: none;
}

.ltl-exercise-modal__score-delta--left {
  right: calc(100% + 0.55rem);
  color: #c31919;
}

.ltl-exercise-modal__score-delta--right {
  left: calc(100% + 0.55rem);
  color: #118235;
}

.ltl-exercise-modal__streak-note {
  position: absolute;
  left: calc(100% + 2.6rem);
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  color: #118235;
  text-shadow: 0 1px 4px rgba(8, 36, 57, 0.12);
  animation: ltlDeltaAppear 220ms ease both;
  pointer-events: none;
}

.ltl-exercise-modal__progress-status {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 0.45rem 0.75rem;
  font-size: 0.83rem;
  font-weight: 800;
  color: #2a5273;
}

.ltl-exercise-modal__status-current {
  justify-self: start;
}

.ltl-exercise-modal__status-target {
  justify-self: end;
  text-align: right;
}

.ltl-exercise-modal__timer-inline {
  justify-self: center;
  text-align: center;
  font-size: 0.82rem;
  color: #395d79;
  font-weight: 700;
  white-space: nowrap;
}

.ltl-exercise-modal__paused {
  margin-left: 0.35rem;
  color: #8f4f00;
}

@media (max-width: 1150px) {
  .ltl-grade-tabs {
    gap: 0.3rem;
  }

  .ltl-student-panels {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .ltl-recent-grid {
    grid-template-columns: 1fr;
  }

  .ltl-student-panels {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .ltl {
    margin-top: 1rem;
    padding: 0 0.7rem;
  }

  .ltl-hero {
    padding: 0.95rem;
  }

  .ltl-hero__top {
    grid-template-columns: 1fr;
    row-gap: 0.46rem;
  }

  .ltl-hero__controls {
    justify-items: end;
  }

  .ltl-hero__grade-wrap {
    max-width: 100%;
    overflow-x: auto;
  }

  .ltl-select-field.ltl-select-field--hero select {
    width: clamp(9.8rem, 48vw, 13rem);
  }

  .ltl-grade-tabs {
    gap: 0.24rem;
  }

  .ltl-grade-tab {
    min-width: 32px;
    padding: 0.22rem 0.38rem;
    font-size: 0.74rem;
  }

  .ltl-exercise-row {
    grid-template-columns: 24px minmax(0, 1fr) auto auto auto;
    grid-template-areas:
      "num title title title title"
      "status status video do lock";
    align-items: center;
  }

  .ltl-exercise-num {
    grid-area: num;
  }

  .ltl-exercise-title {
    grid-area: title;
  }

  .ltl-status-chip {
    grid-area: status;
    justify-self: end;
    text-align: right;
  }

  .ltl-exercise-modal {
    width: calc(100vw - 1rem);
    height: min(90vh, 760px);
  }

  .ltl-exercise-modal__frame {
    padding: 0.72rem 0.72rem 0.66rem;
  }

  .ltl-exercise-modal__question-shell {
    width: 100%;
  }

  .ltl-exercise-modal__viewport {
    width: 100%;
  }

  .ltl-exercise-modal__progress-status {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .ltl-exercise-modal__status-current,
  .ltl-exercise-modal__status-target {
    justify-self: center;
    text-align: center;
  }

  .ltl-icon-btn[data-ltl-action="video"] {
    grid-area: video;
  }

  .ltl-icon-btn[data-ltl-action="do"] {
    grid-area: do;
  }

  .ltl-lock-indicator {
    grid-area: lock;
  }

  .ltl-workspace__sim-assessment {
    grid-template-columns: 1fr;
  }

  .ltl-activity-item {
    grid-template-columns: 1fr;
    grid-template-areas:
      "title"
      "meta";
    align-items: start;
  }

  .ltl-activity-title {
    grid-area: title;
  }

  .ltl-activity-meta {
    grid-area: meta;
    justify-self: end;
    flex-wrap: wrap;
  }
}
