/* v118 · Xiaowen as an active AI Debug engineer */

@media (min-width: 1220px) {
  html:not(.react-student-embedded) body[data-active-panel="debug-lab"] .debug-workflow-layout {
    grid-template-columns: 190px minmax(0, 1fr) 320px !important;
  }

  html:not(.react-student-embedded) body[data-active-panel="debug-lab"] .debug-workflow-aside {
    position: sticky !important;
    top: 72px !important;
    grid-column: auto !important;
    grid-template-columns: 1fr !important;
  }
}

@media (min-width: 1440px) {
  html:not(.react-student-embedded) body[data-active-panel="debug-lab"] .debug-workflow-layout {
    grid-template-columns: 216px minmax(0, 1fr) 340px !important;
  }
}

html:not(.react-student-embedded) body[data-active-panel="debug-lab"] .debug-workflow-mentor-ai {
  gap: 11px !important;
  padding: 14px !important;
  overflow: hidden !important;
  border-color: rgba(124, 58, 237, 0.25) !important;
  background:
    radial-gradient(circle at 100% 0%, rgba(124, 58, 237, 0.12), transparent 34%),
    linear-gradient(150deg, rgba(248, 250, 255, 0.98), var(--debug-surface)) !important;
}

html:not(.react-student-embedded) body[data-active-panel="debug-lab"] .debug-workflow-mentor-ai > header {
  min-width: 0 !important;
  display: grid !important;
  grid-template-columns: 38px minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 9px !important;
  padding-bottom: 10px !important;
  border-bottom: 1px solid rgba(124, 58, 237, 0.13) !important;
}

html:not(.react-student-embedded) body[data-active-panel="debug-lab"] .debug-workflow-mentor-ai > header .debug-mentor-avatar {
  display: block !important;
  width: 38px !important;
  height: 38px !important;
  background:
    url("./assets/xiaowen-avatar.png") center 16% / cover no-repeat,
    #eef2ff !important;
  border: 2px solid rgba(255, 255, 255, 0.92) !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 18px rgba(79, 70, 229, 0.16) !important;
}

html:not(.react-student-embedded) body[data-active-panel="debug-lab"] .debug-workflow-mentor-ai > header > div {
  min-width: 0 !important;
  display: grid !important;
  gap: 3px !important;
}

html:not(.react-student-embedded) body[data-active-panel="debug-lab"] .debug-workflow-mentor-ai > header span {
  color: #7c3aed !important;
  font-size: 10px !important;
  font-weight: 950 !important;
}

html:not(.react-student-embedded) body[data-active-panel="debug-lab"] .debug-workflow-mentor-ai > header strong {
  overflow: hidden !important;
  color: var(--debug-text) !important;
  font-size: 13px !important;
  line-height: 1.35 !important;
  font-weight: 900 !important;
  text-overflow: ellipsis !important;
}

html:not(.react-student-embedded) body[data-active-panel="debug-lab"] .debug-workflow-mentor-ai > header em {
  min-height: 23px !important;
  display: inline-flex !important;
  align-items: center !important;
  padding: 0 7px !important;
  color: #6d4dff !important;
  background: rgba(124, 58, 237, 0.1) !important;
  border-radius: 999px !important;
  font-size: 8px !important;
  font-style: normal !important;
  font-weight: 900 !important;
  white-space: nowrap !important;
}

html:not(.react-student-embedded) body[data-active-panel="debug-lab"] .debug-mentor-confirmed,
html:not(.react-student-embedded) body[data-active-panel="debug-lab"] .debug-mentor-avoid,
html:not(.react-student-embedded) body[data-active-panel="debug-lab"] .debug-mentor-next {
  min-width: 0 !important;
  display: grid !important;
  gap: 7px !important;
  padding: 10px !important;
  border-radius: 12px !important;
}

html:not(.react-student-embedded) body[data-active-panel="debug-lab"] .debug-mentor-confirmed {
  border: 1px solid rgba(16, 185, 129, 0.18) !important;
  background: rgba(236, 253, 245, 0.72) !important;
}

html:not(.react-student-embedded) body[data-active-panel="debug-lab"] .debug-mentor-avoid {
  border: 1px solid rgba(245, 158, 11, 0.2) !important;
  background: rgba(255, 251, 235, 0.88) !important;
}

html:not(.react-student-embedded) body[data-active-panel="debug-lab"] .debug-mentor-next {
  border: 1px solid rgba(59, 130, 246, 0.18) !important;
  background: rgba(239, 246, 255, 0.82) !important;
}

html:not(.react-student-embedded) body[data-active-panel="debug-lab"] :is(.debug-mentor-confirmed, .debug-mentor-avoid, .debug-mentor-next) > span {
  color: #64748b !important;
  font-size: 9px !important;
  font-weight: 950 !important;
  letter-spacing: 0.04em !important;
}

html:not(.react-student-embedded) body[data-active-panel="debug-lab"] .debug-mentor-confirmed ul,
html:not(.react-student-embedded) body[data-active-panel="debug-lab"] .debug-mentor-next ol {
  display: grid !important;
  gap: 6px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

html:not(.react-student-embedded) body[data-active-panel="debug-lab"] .debug-mentor-confirmed li,
html:not(.react-student-embedded) body[data-active-panel="debug-lab"] .debug-mentor-next li {
  min-width: 0 !important;
  display: grid !important;
  grid-template-columns: 22px minmax(0, 1fr) !important;
  align-items: start !important;
  gap: 7px !important;
}

html:not(.react-student-embedded) body[data-active-panel="debug-lab"] .debug-mentor-confirmed li > i,
html:not(.react-student-embedded) body[data-active-panel="debug-lab"] .debug-mentor-next li > i {
  width: 22px !important;
  height: 22px !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 7px !important;
  font-size: 9px !important;
  font-style: normal !important;
  font-weight: 950 !important;
}

html:not(.react-student-embedded) body[data-active-panel="debug-lab"] .debug-mentor-confirmed li > i {
  color: #ffffff !important;
  background: #10b981 !important;
}

html:not(.react-student-embedded) body[data-active-panel="debug-lab"] .debug-mentor-next li > i {
  color: #ffffff !important;
  background: linear-gradient(135deg, #3b82f6, #7c3aed) !important;
}

html:not(.react-student-embedded) body[data-active-panel="debug-lab"] :is(.debug-mentor-confirmed, .debug-mentor-next) li > div {
  min-width: 0 !important;
  display: grid !important;
  gap: 2px !important;
}

html:not(.react-student-embedded) body[data-active-panel="debug-lab"] :is(.debug-mentor-confirmed, .debug-mentor-next) li strong {
  color: var(--debug-text) !important;
  font-size: 10px !important;
  line-height: 1.4 !important;
  font-weight: 900 !important;
}

html:not(.react-student-embedded) body[data-active-panel="debug-lab"] :is(.debug-mentor-confirmed, .debug-mentor-next) li small {
  overflow: hidden !important;
  color: var(--debug-muted) !important;
  font-size: 9px !important;
  line-height: 1.4 !important;
  font-weight: 650 !important;
  text-overflow: ellipsis !important;
}

html:not(.react-student-embedded) body[data-active-panel="debug-lab"] .debug-mentor-avoid strong {
  color: #92400e !important;
  font-size: 10px !important;
  line-height: 1.55 !important;
  font-weight: 850 !important;
}

html:not(.react-student-embedded) body[data-active-panel="debug-lab"] .debug-mentor-rationale {
  margin: 0 !important;
  padding: 0 2px !important;
  color: var(--debug-muted) !important;
  font-size: 9px !important;
  line-height: 1.55 !important;
}

html:not(.react-student-embedded) body[data-active-panel="debug-lab"] .debug-workflow-mentor-ai > button {
  width: 100% !important;
  min-height: 36px !important;
  height: 36px !important;
  margin-top: 0 !important;
  padding: 0 12px !important;
  border-color: rgba(124, 58, 237, 0.22) !important;
  color: #6d4dff !important;
  background: rgba(255, 255, 255, 0.78) !important;
  font-size: 10px !important;
  font-weight: 900 !important;
}

html[data-theme="dark"]:not(.react-student-embedded) body[data-active-panel="debug-lab"] .debug-workflow-mentor-ai {
  background: linear-gradient(150deg, rgba(76, 29, 149, 0.18), var(--debug-surface)) !important;
}

html[data-theme="dark"]:not(.react-student-embedded) body[data-active-panel="debug-lab"] .debug-mentor-confirmed {
  background: rgba(6, 78, 59, 0.22) !important;
}

html[data-theme="dark"]:not(.react-student-embedded) body[data-active-panel="debug-lab"] .debug-mentor-avoid {
  background: rgba(120, 53, 15, 0.22) !important;
}

html[data-theme="dark"]:not(.react-student-embedded) body[data-active-panel="debug-lab"] .debug-mentor-next {
  background: rgba(30, 64, 175, 0.18) !important;
}
