/* Student lesson to Skill Tree bridge v1. */
.student-kc-tree-panel {
  --student-tree-violet: #6756e8;
  --student-tree-mint: #078b74;
  margin: 0;
  padding: 20px;
  overflow: hidden;
  background:
    radial-gradient(circle at 100% 0, rgba(79, 205, 177, .13), transparent 34%),
    linear-gradient(135deg, rgba(103, 86, 232, .08), rgba(255, 255, 255, .98) 46%);
  border: 1px solid rgba(103, 86, 232, .28);
  box-shadow: 0 14px 34px rgba(35, 45, 82, .08);
}
.student-kc-tree-head {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}
.student-kc-tree-heading-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: var(--student-tree-violet);
  background: #efedff;
  border: 1px solid #dcd7ff;
  border-radius: 14px;
}
.student-kc-tree-heading-icon .profile-ui-icon { width: 25px; height: 25px; }
.student-kc-tree-head .mono { color: var(--student-tree-mint); }
.student-kc-tree-head h3 { margin: 3px 0 4px; color: var(--ink); font-size: 20px; line-height: 1.25; }
.student-kc-tree-head p { margin: 0; max-width: 60ch; color: var(--muted); font-size: 14px; line-height: 1.5; }
.student-kc-map-link {
  display: inline-flex;
  min-height: 44px;
  gap: 8px;
  align-items: center;
  justify-content: center;
  padding-inline: 14px;
  color: #fff;
  background: var(--student-tree-violet);
  border-color: var(--student-tree-violet);
  text-decoration: none;
  white-space: nowrap;
}
.student-kc-map-link:hover { color: #fff; background: #5746d4; border-color: #5746d4; }
.student-kc-map-link .profile-ui-icon,
.student-kc-action .profile-ui-icon { width: 16px; height: 16px; }
.student-kc-tree-progress { display: grid; gap: 8px; margin: 18px 0 14px; }
.student-kc-tree-progress > div { display: flex; align-items: center; justify-content: space-between; color: var(--ink); font-size: 13px; }
.student-kc-tree-progress > div span { color: var(--student-tree-violet); font-weight: 800; }
.student-kc-tree-meter { display: block; height: 8px; overflow: hidden; background: #e7ebf3; border-radius: 999px; }
.student-kc-tree-meter > span { display: block; height: 100%; background: linear-gradient(90deg, var(--student-tree-violet), #20a98e); border-radius: inherit; transition: width 240ms ease-out; }
.student-kc-tree-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.student-kc-tree-card {
  position: relative;
  display: grid;
  grid-template-columns: 32px 50px minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 4px 10px;
  align-items: center;
  min-height: 104px;
  padding: 13px;
  color: var(--ink);
  text-align: left;
  text-decoration: none;
  background: rgba(255, 255, 255, .92);
  border: 1px solid #dce2ed;
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 170ms ease, box-shadow 170ms ease, background 170ms ease;
}
.student-kc-tree-card:hover:not(:disabled) { color: var(--ink); border-color: #a79cf3; box-shadow: 0 9px 22px rgba(58, 47, 139, .11); }
.student-kc-tree-card.current { background: #f5f3ff; border-color: #8b7aec; box-shadow: inset 4px 0 0 var(--student-tree-violet); }
.student-kc-tree-card.complete { background: #effaf7; border-color: #a9ded2; box-shadow: inset 4px 0 0 var(--student-tree-mint); }
.student-kc-tree-card.locked { color: #7d8799; background: #f5f7fa; border-style: dashed; cursor: not-allowed; opacity: .72; }
.student-kc-step {
  display: grid;
  grid-row: 1 / 3;
  width: 30px;
  height: 30px;
  place-items: center;
  color: #fff;
  background: var(--student-tree-violet);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 850;
}
.student-kc-tree-card.complete .student-kc-step { background: var(--student-tree-mint); }
.student-kc-tree-card.locked .student-kc-step { color: #677287; background: #dfe4ec; }
.student-kc-orb {
  display: grid;
  grid-row: 1 / 3;
  width: 48px;
  height: 48px;
  place-items: center;
  color: #5142c6;
  background: #efedff;
  border: 2px solid #cfc9ff;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 850;
}
.student-kc-tree-card.complete .student-kc-orb { color: #087863; background: #dcf5ee; border-color: #9bdacb; }
.student-kc-tree-card.locked .student-kc-orb { color: #7b8597; background: #e9edf3; border-color: #d6dce6; }
.student-kc-copy { min-width: 0; align-self: end; }
.student-kc-copy strong { display: block; overflow: hidden; color: inherit; font-size: 14px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.student-kc-copy small { display: block; margin-top: 2px; overflow: hidden; color: var(--muted); font-size: 11px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.student-kc-action {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  align-self: start;
  color: var(--student-tree-violet);
  font-size: 12px;
  font-weight: 800;
}
.student-kc-tree-card.complete .student-kc-action { color: var(--student-tree-mint); }
.student-kc-tree-card.locked .student-kc-action { color: #7d8799; }
.student-kc-tree-card:focus-visible,
.student-kc-map-link:focus-visible { outline: 3px solid rgba(103, 86, 232, .36); outline-offset: 3px; }
@media (max-width: 820px) {
  .student-kc-tree-head { grid-template-columns: 44px minmax(0, 1fr); }
  .student-kc-tree-heading-icon { width: 44px; height: 44px; }
  .student-kc-map-link { grid-column: 1 / -1; justify-self: stretch; }
  .student-kc-tree-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .student-kc-tree-panel { padding: 16px; }
  .student-kc-tree-head h3 { font-size: 18px; }
  .student-kc-tree-card { grid-template-columns: 30px 44px minmax(0, 1fr); min-height: 98px; padding: 11px; }
  .student-kc-orb { width: 42px; height: 42px; }
  .student-kc-copy strong,
  .student-kc-copy small { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  .student-kc-tree-meter > span,
  .student-kc-tree-card { transition: none !important; }
}
