/* 今日作业嵌入页：无手机外框，宽度 = 父级 iframe = 日报分区内容宽 */

html.home-hw-embed,
html.home-hw-embed body.home-hw-embed-page {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  max-width: none !important;
  min-height: 0 !important;
  height: auto !important;
  background: transparent !important;
  overflow: hidden !important;
  display: block !important;
  justify-content: flex-start !important;
  align-items: stretch !important;
}

html.home-hw-embed body.home-hw-embed-page.home-hub-page,
html.home-hw-embed body.home-hw-embed-page.page-mobile-only {
  max-width: none !important;
  width: 100% !important;
}

html.home-hw-embed #homeStudentFeed.home-hub-modules.care-student-view {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  overflow: visible !important;
}

html.home-hw-embed .module--timeline {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* 日报已有分区标题，嵌入页隐藏首页头 */
html.home-hw-embed .care-student-timeline-head,
html.home-hw-embed .home-hw-dates,
html.home-hw-embed .care-student-timeline-subject-hint {
  display: none !important;
}

html.home-hw-embed .care-student-timeline,
html.home-hw-embed .care-feed-list {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

html.home-hw-embed .home-hw-item {
  display: flex !important;
  gap: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 0 10px !important;
  box-sizing: border-box;
}

html.home-hw-embed .home-hw-item:last-child {
  margin-bottom: 0 !important;
}

html.home-hw-embed .home-hw-swipe {
  flex: 1 1 100% !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
  border-color: rgba(76, 117, 242, 0.08) !important;
  box-shadow: none !important;
}

html.home-hw-embed .home-hw-swipe__track {
  display: flex !important;
  width: calc(100% + var(--home-hw-swipe-actions-w, 144px)) !important;
  box-sizing: border-box;
}

html.home-hw-embed .home-hw-swipe .care-feed-item__panel.home-hw-task {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  width: auto !important;
  max-width: none !important;
  box-sizing: border-box;
}

html.home-hw-embed .home-hw-item:has(.home-hw-task--checked) .home-hw-swipe {
  background: #f8f9fc !important;
  border-color: rgba(47, 52, 58, 0.06) !important;
}

html.home-hw-embed .cp-hw-empty {
  margin: 0 !important;
  padding: 16px 14px !important;
  width: 100% !important;
  box-sizing: border-box;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(76, 117, 242, 0.08);
  box-shadow: none;
}

html.home-hw-embed .toast {
  display: none !important;
}
