/* V107 — prevent the retired AI-coach hero from resurfacing and clipping its content. */
html:not(.react-student-embedded) body[data-active-panel="ai-coach"]
  .xiaowen-coach-workbench > .xiaowen-coach-hero,
html:not(.react-student-embedded) body[data-active-panel="ai-coach"]
  .xiaowen-coach-workbench > .xiaowen-coach-grid,
html:not(.react-student-embedded) body[data-active-panel="ai-coach"]
  .xiaowen-coach-workbench > .xiaowen-stage-card,
html:not(.react-student-embedded) body[data-active-panel="ai-coach"]
  .xiaowen-coach-workbench > .xiaowen-boundary-card {
  display: none !important;
}

:is(#hw-v6-home, html):not(.react-student-embedded)
  body[data-active-panel="ai-coach"]
  .shell .main.main > section.panel.active.xiaowen-coach-workbench {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  min-height: 0 !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}

html:not(.react-student-embedded) body[data-active-panel="ai-coach"]
  .xiaowen-coach-workbench > .xiaowen-private-coach {
  display: grid !important;
  height: auto !important;
  min-height: 520px !important;
  max-height: none !important;
  align-items: stretch !important;
  margin-bottom: 0 !important;
}

html:not(.react-student-embedded) body[data-active-panel="ai-coach"]
  .xiaowen-private-coach__identity,
html:not(.react-student-embedded) body[data-active-panel="ai-coach"]
  .xiaowen-private-coach__plan {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
}

@media (max-width: 1100px) {
  html:not(.react-student-embedded) body[data-active-panel="ai-coach"]
    .xiaowen-coach-workbench > .xiaowen-private-coach {
    grid-template-columns: 1fr !important;
    min-height: 0 !important;
    overflow: visible !important;
  }
}

