.lp-panel,
.lp-dashboard {
  border: 1px solid color-mix(in srgb, currentColor 16%, transparent);
  background: color-mix(in srgb, Canvas 94%, #5ba8b8 6%);
  color: CanvasText;
  border-radius: 8px;
  margin: 1.5rem 0 2rem;
  padding: 1.25rem;
}

.lp-panel h2,
.lp-dashboard h2 {
  font-size: 1.35rem;
  line-height: 1.3;
  margin: 0.2rem 0 0.75rem;
}

.lp-panel h3,
.lp-dashboard h3 {
  font-size: 1rem;
  line-height: 1.35;
  margin: 0 0 0.5rem;
}

.lp-kicker {
  color: #45a7b5;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.lp-step {
  border-top: 1px solid color-mix(in srgb, currentColor 12%, transparent);
  display: grid;
  gap: 0.8rem;
  grid-template-columns: 2rem minmax(0, 1fr);
  padding: 1rem 0;
}

.lp-step-number {
  align-items: center;
  background: #2c8190;
  color: white;
  display: inline-flex;
  font-size: 0.85rem;
  font-weight: 700;
  height: 2rem;
  justify-content: center;
  width: 2rem;
}

.lp-choice-list,
.lp-self-check {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.lp-choice,
.lp-save-explanation,
.lp-self-check button,
.lp-continue {
  background: transparent;
  border: 1px solid color-mix(in srgb, currentColor 28%, transparent);
  border-radius: 5px;
  color: inherit;
  cursor: pointer;
  font: inherit;
  padding: 0.55rem 0.75rem;
  text-decoration: none;
}

.lp-choice:hover,
.lp-save-explanation:hover,
.lp-self-check button:hover,
.lp-continue:hover {
  border-color: #45a7b5;
}

.lp-choice.is-correct,
.lp-self-check button[data-rating="mastered"].is-selected {
  background: color-mix(in srgb, #1d9a68 22%, transparent);
  border-color: #35b77f;
}

.lp-choice.is-wrong,
.lp-self-check button[data-rating="revisit"].is-selected {
  background: color-mix(in srgb, #c65f58 20%, transparent);
  border-color: #d97870;
}

.lp-feedback,
.lp-save-status,
.lp-mastery-summary {
  color: color-mix(in srgb, currentColor 72%, transparent);
  display: inline-block;
  font-size: 0.88rem;
  margin: 0.65rem 0 0;
}

.lp-trace {
  counter-reset: trace;
  display: grid;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.lp-trace li {
  border-left: 3px solid #2c8190;
  padding: 0.4rem 0.7rem;
}

.lp-explain,
.lp-mastery textarea {
  background: color-mix(in srgb, Canvas 94%, transparent);
  border: 1px solid color-mix(in srgb, currentColor 24%, transparent);
  border-radius: 5px;
  color: inherit;
  display: block;
  font: inherit;
  margin: 0.75rem 0;
  min-height: 5rem;
  padding: 0.7rem;
  resize: vertical;
  width: 100%;
}

.lp-mastery-question {
  border-top: 1px solid color-mix(in srgb, currentColor 12%, transparent);
  padding: 1rem 0;
}

.lp-dashboard {
  margin-inline: auto;
  max-width: 78rem;
}

.lp-dashboard-head {
  align-items: end;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.lp-continue {
  background: #2c8190;
  border-color: #2c8190;
  color: white;
  max-width: 26rem;
}

.lp-metrics {
  border-block: 1px solid color-mix(in srgb, currentColor 12%, transparent);
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 1rem 0;
  padding: 1rem 0;
}

.lp-metrics div {
  display: flex;
  flex-direction: column;
}

.lp-metrics strong {
  font-size: 1.6rem;
}

.lp-metrics span,
.lp-phase-grid small,
.lp-dashboard li span {
  color: color-mix(in srgb, currentColor 65%, transparent);
  font-size: 0.82rem;
}

.lp-dashboard-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 2fr) minmax(15rem, 1fr);
}

.lp-phase-grid {
  display: grid;
  gap: 0.35rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.lp-phase-grid a {
  align-items: center;
  color: inherit;
  display: grid;
  gap: 0.4rem;
  grid-template-columns: 1.4rem minmax(0, 1fr) 2.4rem;
  padding: 0.3rem;
  text-decoration: none;
}

.lp-phase-grid progress {
  accent-color: #2c8190;
  width: 100%;
}

.lp-dashboard ul {
  margin: 0;
  padding-left: 1.1rem;
}

.lp-dashboard li {
  margin: 0.35rem 0;
}

@media (max-width: 760px) {
  .lp-dashboard-head {
    align-items: stretch;
    flex-direction: column;
  }

  .lp-dashboard-grid,
  .lp-metrics {
    grid-template-columns: 1fr;
  }

  .lp-phase-grid {
    grid-template-columns: 1fr;
  }

  .lp-choice-list,
  .lp-self-check {
    align-items: stretch;
    flex-direction: column;
  }
}
