/* ==========================================================================
   Sprout Pet & Assistant Turn Layout
   小芽团子桌面宠物与 AI 回答排版布局
   ========================================================================== */

/* AI 回答整行容器：弹性横向排列，左侧为宠物，右侧为主体内容 */
.assistant-turn {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  flex-shrink: 0;
  word-break: break-word;
}

/* 宠物挂载容器：对齐第一行文本/工作栏的视觉基准 */
.turn-pet {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -1px;
  position: relative;
  user-select: none;
}

/* 宠物 Canvas 自身样式 */
.sprout-pet {
  width: 36px;
  height: 36px;
  display: block;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  border-radius: 50%;
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.sprout-pet:focus {
  outline: none;
}

.sprout-pet:focus-visible {
  outline: 2px solid #9dc577;
  outline-offset: 2px;
}

/* 动态宠物：可交互 */
.sprout-pet.is-active-pet {
  cursor: pointer;
}

.sprout-pet.is-active-pet:hover {
  transform: scale(1.08);
}

.sprout-pet.is-active-pet:active {
  transform: scale(0.94);
}

/* 静态宠物：仅展示，不可交互 */
.sprout-pet.is-static-pet {
  cursor: default;
  opacity: 0.94;
}

/* 回答主体内容容器：向右缩进，容纳工作过程与 Markdown 正文 */
.turn-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.turn-content > .work-group {
  width: 100%;
}

.turn-content > .turn-fold {
  width: 100%;
}

.turn-content > .msg.assistant {
  width: 100%;
}

.turn-content > .pending-indicator {
  margin-top: 6px;
  line-height: 24px;
  align-self: flex-start;
}

@media (max-width: 760px) {
  .assistant-turn {
    gap: 8px;
  }
  .turn-pet,
  .sprout-pet {
    width: 32px;
    height: 32px;
  }
  .turn-content > .pending-indicator {
    margin-top: 4px;
  }
}
