/* v120 · Knowledge → experiment → Debug case → interview linkage */

html:not(.react-student-embedded) body[data-active-panel="knowledge-map"] .knowledge-association-journey {
  min-width: 0 !important;
  padding: 18px !important;
  border: 1px solid #dfe5ef !important;
  border-radius: 16px !important;
  background:
    radial-gradient(circle at 0% 0%, rgba(79, 110, 247, 0.07), transparent 25%),
    #ffffff !important;
  box-shadow: 0 12px 32px rgba(25, 38, 70, 0.055) !important;
}

html:not(.react-student-embedded) body[data-active-panel="knowledge-map"] .knowledge-association-journey > header {
  display: flex !important;
  align-items: flex-end !important;
  justify-content: space-between !important;
  gap: 18px !important;
  margin-bottom: 14px !important;
}

html:not(.react-student-embedded) body[data-active-panel="knowledge-map"] .knowledge-association-journey > header > div {
  min-width: 0 !important;
  display: grid !important;
  gap: 3px !important;
}

html:not(.react-student-embedded) body[data-active-panel="knowledge-map"] .knowledge-association-journey > header span {
  color: #4f6ef7 !important;
  font-size: 9px !important;
  line-height: 1.25 !important;
  font-weight: 950 !important;
  letter-spacing: 0.12em !important;
}

html:not(.react-student-embedded) body[data-active-panel="knowledge-map"] .knowledge-association-journey > header strong {
  color: #172033 !important;
  font-size: 18px !important;
  line-height: 1.35 !important;
  font-weight: 950 !important;
}

html:not(.react-student-embedded) body[data-active-panel="knowledge-map"] .knowledge-association-journey > header > em {
  flex: 0 0 auto !important;
  min-height: 28px !important;
  display: inline-flex !important;
  align-items: center !important;
  padding: 0 10px !important;
  border: 1px solid #e0e5f0 !important;
  border-radius: 8px !important;
  background: #f7f9fc !important;
  color: #69768a !important;
  font-size: 10px !important;
  line-height: 1 !important;
  font-style: normal !important;
  font-weight: 800 !important;
  white-space: nowrap !important;
}

html:not(.react-student-embedded) body[data-active-panel="knowledge-map"] .knowledge-association-track {
  min-width: 0 !important;
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 12px !important;
}

html:not(.react-student-embedded) body[data-active-panel="knowledge-map"] .knowledge-association-node {
  --association-accent: #4f6ef7;
  --association-soft: #eef2ff;
  position: relative !important;
  min-width: 0 !important;
  min-height: 154px !important;
  display: grid !important;
  grid-template-columns: 30px minmax(0, 1fr) !important;
  grid-template-rows: auto auto minmax(42px, 1fr) auto !important;
  align-content: start !important;
  column-gap: 9px !important;
  row-gap: 5px !important;
  padding: 14px !important;
  overflow: visible !important;
  border: 1px solid #e1e6ef !important;
  border-radius: 13px !important;
  background: #ffffff !important;
  color: #334155 !important;
  text-align: left !important;
  cursor: pointer !important;
  box-shadow: 0 7px 20px rgba(31, 45, 77, 0.045) !important;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease !important;
}

html:not(.react-student-embedded) body[data-active-panel="knowledge-map"] .knowledge-association-node.experiment {
  --association-accent: #0f9f84;
  --association-soft: #eafaf6;
}

html:not(.react-student-embedded) body[data-active-panel="knowledge-map"] .knowledge-association-node.case {
  --association-accent: #e37b28;
  --association-soft: #fff5e9;
}

html:not(.react-student-embedded) body[data-active-panel="knowledge-map"] .knowledge-association-node.interview {
  --association-accent: #8055df;
  --association-soft: #f5efff;
}

html:not(.react-student-embedded) body[data-active-panel="knowledge-map"] .knowledge-association-node::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 auto 0 0 !important;
  width: 3px !important;
  border-radius: 13px 0 0 13px !important;
  background: var(--association-accent) !important;
  opacity: 0.82 !important;
}

html:not(.react-student-embedded) body[data-active-panel="knowledge-map"] .knowledge-association-node:not(:last-child)::after {
  content: "→" !important;
  position: absolute !important;
  z-index: 3 !important;
  top: 50% !important;
  right: -19px !important;
  width: 25px !important;
  height: 25px !important;
  display: grid !important;
  place-items: center !important;
  transform: translateY(-50%) !important;
  border: 1px solid #e0e5ef !important;
  border-radius: 50% !important;
  background: #ffffff !important;
  color: #8a96a9 !important;
  font-size: 11px !important;
  font-weight: 950 !important;
  box-shadow: 0 4px 10px rgba(39, 51, 80, 0.08) !important;
}

html:not(.react-student-embedded) body[data-active-panel="knowledge-map"] .knowledge-association-node:hover {
  z-index: 4 !important;
  transform: translateY(-2px) !important;
  border-color: color-mix(in srgb, var(--association-accent) 42%, #ffffff) !important;
  box-shadow: 0 13px 28px rgba(31, 45, 77, 0.1) !important;
}

html:not(.react-student-embedded) body[data-active-panel="knowledge-map"] .knowledge-association-node > i {
  width: 30px !important;
  height: 30px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  grid-row: 1 / span 2 !important;
  border-radius: 9px !important;
  background: var(--association-soft) !important;
  color: var(--association-accent) !important;
  font-size: 10px !important;
  line-height: 1 !important;
  font-style: normal !important;
  font-weight: 950 !important;
}

html:not(.react-student-embedded) body[data-active-panel="knowledge-map"] .knowledge-association-node > span {
  min-width: 0 !important;
  color: var(--association-accent) !important;
  font-size: 10px !important;
  line-height: 1.2 !important;
  font-weight: 950 !important;
}

html:not(.react-student-embedded) body[data-active-panel="knowledge-map"] .knowledge-association-node > strong {
  min-width: 0 !important;
  overflow: hidden !important;
  color: #202b3e !important;
  font-size: 14px !important;
  line-height: 1.35 !important;
  font-weight: 900 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

html:not(.react-student-embedded) body[data-active-panel="knowledge-map"] .knowledge-association-node > p {
  min-width: 0 !important;
  grid-column: 1 / -1 !important;
  margin: 3px 0 0 !important;
  color: #718096 !important;
  font-size: 10px !important;
  line-height: 1.55 !important;
  font-weight: 650 !important;
}

html:not(.react-student-embedded) body[data-active-panel="knowledge-map"] .knowledge-association-node > em {
  min-width: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  grid-column: 1 / -1 !important;
  padding-top: 8px !important;
  border-top: 1px solid #edf0f4 !important;
  color: var(--association-accent) !important;
  font-size: 10px !important;
  line-height: 1 !important;
  font-style: normal !important;
  font-weight: 850 !important;
}

html:not(.react-student-embedded) body[data-active-panel="knowledge-map"] .knowledge-association-node > em b {
  font-size: 12px !important;
}

html:not(.react-student-embedded) body[data-active-panel="knowledge-map"] .learning-knowledge-card > .learning-knowledge-linkage {
  order: 4 !important;
  margin: 3px 0 2px !important;
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  align-items: center !important;
  justify-content: stretch !important;
  gap: 4px !important;
}

html:not(.react-student-embedded) body[data-active-panel="knowledge-map"] .learning-knowledge-card > .learning-knowledge-linkage > span {
  min-width: 0 !important;
  min-height: 22px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  border: 1px solid #e2e7f0 !important;
  border-radius: 6px !important;
  background: #f7f9fc !important;
  color: #718096 !important;
  font-size: 8px !important;
  line-height: 1 !important;
  font-weight: 800 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

html:not(.react-student-embedded) body[data-active-panel="knowledge-map"] .learning-knowledge-card > .learning-knowledge-linkage + div {
  order: 5 !important;
  margin-top: auto !important;
}

html[data-theme="dark"]:not(.react-student-embedded) body[data-active-panel="knowledge-map"] .knowledge-association-journey,
html[data-theme="dark"]:not(.react-student-embedded) body[data-active-panel="knowledge-map"] .knowledge-association-node {
  background: #101b2c !important;
  border-color: #2b3950 !important;
}

html[data-theme="dark"]:not(.react-student-embedded) body[data-active-panel="knowledge-map"] .knowledge-association-journey > header strong,
html[data-theme="dark"]:not(.react-student-embedded) body[data-active-panel="knowledge-map"] .knowledge-association-node > strong {
  color: #edf3ff !important;
}

html[data-theme="dark"]:not(.react-student-embedded) body[data-active-panel="knowledge-map"] .knowledge-association-node > p {
  color: #9eabc0 !important;
}

@media (max-width: 1120px) {
  html:not(.react-student-embedded) body[data-active-panel="knowledge-map"] .knowledge-association-track {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  html:not(.react-student-embedded) body[data-active-panel="knowledge-map"] .knowledge-association-node::after {
    display: none !important;
  }
}

@media (max-width: 700px) {
  html:not(.react-student-embedded) body[data-active-panel="knowledge-map"] .knowledge-association-journey {
    padding: 15px !important;
  }

  html:not(.react-student-embedded) body[data-active-panel="knowledge-map"] .knowledge-association-journey > header {
    align-items: flex-start !important;
    flex-direction: column !important;
  }

  html:not(.react-student-embedded) body[data-active-panel="knowledge-map"] .knowledge-association-track {
    grid-template-columns: 1fr !important;
  }

  html:not(.react-student-embedded) body[data-active-panel="knowledge-map"] .knowledge-association-node {
    min-height: 136px !important;
  }
}
