/* 輸入中（AI 正在回答）：三顆跳動的點＋目前在做什麼（一兩個字的階段）。
   kit_head() 每頁載；放進任何回覆氣泡裡都行，宿主只決定什麼時候出現、階段寫什麼。
   AI 開始寫字後換成文字本體，句尾加 yk-typing-caret 的閃動游標。 */
.yk-typing{display:inline-flex;align-items:center;gap:8px;min-height:22px;white-space:normal}
.yk-typing-dots{display:inline-flex;align-items:center;gap:4px;flex-shrink:0;color:var(--yk-ink-2)}
.yk-typing-dots i{display:block;width:6px;height:6px;border-radius:50%;background:currentColor;opacity:.45}
.yk-typing-label{font-size:13px;line-height:1.4;color:var(--yk-ink-2)}
.yk-typing-caret>:last-child::after,.yk-typing-caret:empty::after{content:"";display:inline-block;width:2px;height:1em;margin-left:2px;vertical-align:-.15em;background:currentColor}
@media(prefers-reduced-motion:no-preference){
  .yk-typing-dots i{animation:yk-typing-hop 1.2s ease-in-out infinite}
  .yk-typing-dots i:nth-child(2){animation-delay:.15s}
  .yk-typing-dots i:nth-child(3){animation-delay:.3s}
  .yk-typing-caret>:last-child::after,.yk-typing-caret:empty::after{animation:yk-typing-blink 1s steps(1) infinite}
}
@keyframes yk-typing-hop{0%,60%,100%{opacity:.45;transform:translateY(0)}30%{opacity:1;transform:translateY(-3px)}}
@keyframes yk-typing-blink{50%{opacity:0}}
