.layout {
  display: flex;
  height: 100%;
  position: relative;
  z-index: 2;
}

.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.contentArea {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  /* 关掉浏览器自动 scroll anchoring：往上加载历史时由 handleScroll 里的
     anchor 逻辑统一管，避免浏览器默认的 anchor 与我们手动 +diff 叠加，
     导致慢速滚动 / 慢拖滑动条时页面被推到最底部。 */
  overflow-anchor: none;
}

.emptyArea {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.emptyHint {
  color: var(--color-text-disabled);
  font-size: 14px;
  opacity: 0.4;
  user-select: none;
}

.taskList {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 24px 16px;
}

.loadMoreWrap {
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 8px 0;
}

.loadMoreText {
  color: var(--color-text-disabled);
  font-size: 12px;
}

