/* 后台聊天译文独立样式，避免与通用后台视觉规则耦合。 */
.chat-message-translation{
  display:grid;
  gap:5px;
  margin-top:7px;
  padding:8px 11px 9px;
  border:1px solid color-mix(in srgb,var(--admin-primary) 17%,var(--admin-border));
  border-radius:9px;
  background:color-mix(in srgb,var(--admin-primary) 4%,var(--admin-surface));
  color:var(--admin-text);
}
.chat-message-translation-label{
  display:flex;
  align-items:center;
  gap:6px;
  color:var(--admin-muted);
  font-size:10px;
  font-weight:700;
  letter-spacing:.03em;
}
.chat-message-translation-label::before{
  width:5px;
  height:5px;
  border-radius:50%;
  background:var(--admin-primary);
  content:"";
}
.chat-message-translation-text{
  font-size:12px;
  line-height:1.65;
  overflow-wrap:anywhere;
  white-space:pre-wrap;
}
.chat-message-translation.is-pending,
.chat-message-translation.is-failed{
  display:flex;
  align-items:center;
  gap:7px;
  min-height:34px;
  color:var(--admin-muted);
  font-size:11px;
}
.chat-message-translation.is-pending::before{
  width:6px;
  height:6px;
  flex:0 0 auto;
  border-radius:50%;
  background:var(--admin-primary);
  animation:chatTranslationPulse 1s ease-in-out infinite alternate;
  content:"";
}
.chat-message-translation.is-failed{
  border-color:var(--admin-border);
  background:var(--admin-inner);
}
@keyframes chatTranslationPulse{
  from{opacity:.35;transform:scale(.8)}
  to{opacity:1;transform:scale(1.1)}
}
@media (prefers-reduced-motion:reduce){
  .chat-message-translation.is-pending::before{animation:none}
}

.chat-initial-level{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;flex:0 0 46px;min-height:42px;border:1px solid var(--admin-border);border-radius:8px;background:var(--admin-surface);color:var(--admin-primary);line-height:1.3;font-variant-numeric:tabular-nums}
.chat-initial-level small{font-size:10px;color:var(--admin-muted)}
.chat-initial-level b{font-size:13px;font-weight:700}
.chat-reply-level{color:var(--admin-text);border-color:var(--admin-border);background:var(--admin-surface)}
