.continue-card { padding: 1.4rem; margin: 1.4rem 0; }
.path-preview > * { min-width: 0; }
.continue-kicker { font-weight: 800; color: var(--blue); margin: .35rem 0 0; }
.path-progress { height: 10px; background: var(--navy-soft); border-radius: 99px; overflow: hidden; margin: .4rem 0 1rem; }
.path-progress span { display: block; height: 100%; background: var(--green); }
.path-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: .8rem; align-items: start; min-width: 0; }
.path-num { font-weight: 900; font-size: 1.4rem; margin: 0; color: var(--blue); }
.path-count { font-weight: 800; color: var(--muted); }
.path-toggle {
  appearance: none;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: var(--navy-soft);
  color: var(--navy);
  cursor: pointer;
}
.path-toggle span { font-size: 1.4rem; line-height: 1; transition: transform .2s ease; }
.path-course.is-expanded .path-toggle span { transform: rotate(180deg); }
.path-nodes { flex-wrap: nowrap; min-width: 0; }
.path-line { flex: 1 1 22px; min-width: 6px; max-width: 38px; background: var(--navy-soft); opacity: 1; }
.path-line.is-complete { background: var(--green); }
.lesson-dot {
  position: relative;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 3px solid var(--blue);
  background: white;
  color: var(--navy);
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.lesson-dot:hover, .lesson-dot:focus-visible { transform: scale(1.05); }
.lesson-dot--completed { border-color: var(--green); background: var(--green); }
.lesson-dot--completed::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 9px;
  border-right: 2px solid white;
  border-bottom: 2px solid white;
  transform: rotate(45deg);
}
.lesson-dot--current { background: var(--blue); box-shadow: 0 0 0 5px rgb(74 124 247 / .14); }
.lesson-dot--checkpoint { width: 28px; height: 28px; border-color: var(--navy); background: var(--yellow); }
.lesson-dot--locked { border-color: #aeb7c8; background: var(--navy-soft); cursor: not-allowed; }
.lesson-dot__tip {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: calc(100% + 12px);
  width: max-content;
  max-width: min(240px, calc(100vw - 32px));
  padding: .65rem .75rem;
  border-radius: 14px;
  background: var(--navy);
  color: white;
  box-shadow: var(--shadow);
  display: grid;
  gap: .1rem;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, 5px);
  transition: opacity .16s ease, transform .16s ease;
}
.lesson-dot__tip small { color: rgb(255 255 255 / .72); font-weight: 700; }
.lesson-dot:hover .lesson-dot__tip,
.lesson-dot:focus-visible .lesson-dot__tip { opacity: 1; transform: translate(-50%, 0); }
.lesson-dot--first .lesson-dot__tip { left: 0; transform: translate(0, 5px); }
.lesson-dot--first:hover .lesson-dot__tip,
.lesson-dot--first:focus-visible .lesson-dot__tip { transform: translate(0, 0); }
.lesson-dot--last .lesson-dot__tip { left: auto; right: 0; transform: translate(0, 5px); }
.lesson-dot--last:hover .lesson-dot__tip,
.lesson-dot--last:focus-visible .lesson-dot__tip { transform: translate(0, 0); }
.path-unit {
  margin: .85rem 0 .15rem;
  font-weight: 900;
  color: var(--muted);
  font-size: .92rem;
}
.path-unit:first-child { margin-top: 0; }
.lesson-list { display: none; gap: .45rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.path-course.is-expanded .lesson-list { display: grid; }
.lesson-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: .65rem;
  min-height: 48px;
  padding: .55rem .7rem;
  border-radius: 16px;
  color: var(--navy);
  text-decoration: none;
  transition: background-color .18s ease, transform .18s ease;
}
a.lesson-row:hover { background: var(--blue-soft); transform: translateX(2px); }
.lesson-row__mark { width: 28px; text-align: center; color: var(--blue); font-weight: 900; }
.lesson-row--completed .lesson-row__mark { color: #27734c; }
.lesson-row--checkpoint .lesson-row__mark { color: #a87705; }
.lesson-row__title { font-weight: 800; }
.lesson-row__status { color: var(--muted); font-size: .88rem; font-weight: 700; text-align: right; }
.chip-row { display: flex; flex-wrap: wrap; gap: .5rem; margin: .4rem 0 1rem; }
.subhead { font-size: 1.05rem; margin: 1.1rem 0 .4rem; }
.hint-line { font-weight: 700; color: var(--muted); }
.can-now { text-align: left; display: inline-block; font-weight: 700; }
.skill-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.skill-list { display: grid; gap: .8rem; }
.mastery-meter { height: 8px; margin-top: .45rem; border-radius: 99px; background: var(--navy-soft); overflow: hidden; }
.mastery-meter span { display: block; height: 100%; background: var(--blue); }
.mastery-caption { display: flex; gap: .6rem; align-items: center; margin: .45rem 0 0; font-weight: 800; }
.question-reason, .question-body { margin: 0 0 .7rem; color: var(--muted); font-weight: 700; }
.recommend-card { margin: 1.2rem 0; }
.course-mastery { margin: .8rem 0; }
.course-mastery summary { display: flex; justify-content: space-between; gap: 1rem; cursor: pointer; font-weight: 900; }
.course-mastery summary small { color: var(--muted); font-weight: 700; }
.status-needs-practice { color: #8d3b36; background: var(--coral-soft); }
.status-not-started { color: var(--muted); background: var(--navy-soft); }
.auth-card { width: min(440px, 100%); margin: 2.5rem auto; }
.auth-card label { display: grid; gap: .3rem; font-weight: 800; margin-bottom: 1rem; }
.form-error { background: var(--coral-soft); border-radius: 16px; padding: .8rem 1rem; font-weight: 800; }
.form-success { background: var(--green-soft); border-radius: 16px; padding: .8rem 1rem; font-weight: 800; }
.onboard-grid { display: grid; gap: 1rem; margin-top: 1.4rem; }
@media (min-width: 760px) { .onboard-grid { grid-template-columns: repeat(3, 1fr); } }
.hero-preview { position: relative; }
.tree-dots { display: flex; justify-content: center; gap: .4rem; margin-top: 1rem; }
.tree-dots span { width: 14px; height: 14px; border-radius: 50%; }
.tree-dots span:nth-child(1) { background: var(--blue); }
.tree-dots span:nth-child(2) { background: var(--purple); }
.tree-dots span:nth-child(3) { background: var(--green); }
.tree-dots span:nth-child(4) { background: var(--yellow); }
.tree-dots span:nth-child(5) { background: var(--coral); }
.muted { color: var(--muted); font-weight: 700; }
.logout-row { margin-top: 1.2rem; }

@media (max-width: 560px) {
  .path-head { grid-template-columns: auto 1fr auto; }
  .path-count { grid-column: 2; margin: -.45rem 0 0; }
  .path-toggle { grid-column: 3; grid-row: 1 / span 2; }
  .path-nodes { gap: .2rem; }
  .lesson-dot { width: 20px; height: 20px; border-width: 2px; }
  .lesson-dot--checkpoint { width: 25px; height: 25px; }
  .lesson-dot--completed::after { left: 5px; top: 3px; width: 4px; height: 7px; }
  .lesson-dot__tip { display: none; }
  .lesson-row { grid-template-columns: 28px minmax(0, 1fr); }
  .lesson-row__status { grid-column: 2; text-align: left; margin-top: -.45rem; }
}
