

.chat-message {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.chat-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.55rem;
  font-weight: 600;
  font-family: var(--font-brand);
  flex-shrink: 0;
  margin-top: 2px;
}

.chat-avatar-user {
  background: var(--color-surface-dark);
  color: var(--color-text-secondary);
}

.chat-avatar-ai {
  background: transparent;
}

.chat-claude-icon {
  width: 26px;
  height: 26px;
}

.chat-bubble {
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.8rem;
  line-height: 1.5;
}

.chat-bubble-user {
  background: var(--sp-color-chat-bubble-user);
  color: var(--color-text);
  font-weight: 500;
}

.chat-bubble-ai {
  background: var(--sp-color-chat-bubble-ai);
  border: 1px solid var(--sp-color-chat-bubble-ai-border);
  color: var(--color-text-secondary);
}

.chat-skill-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  font-family: var(--font-brand);
  color: hsl(28, 70%, 45%);
  background: hsla(28, 80%, 55%, 0.1);
  padding: 2px 7px;
  border-radius: 5px;
  margin-bottom: 4px;
  letter-spacing: 0.02em;
}

.chat-skill-item {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  color: hsl(28, 60%, 40%);
  padding: 1px 0;
}

@media (min-width: 1200px) {
  .chat-bubble {
    font-size: 0.85rem;
    padding: 10px 14px;
  }

  .chat-avatar {
    width: 30px;
    height: 30px;
  }

  .chat-claude-icon {
    width: 30px;
    height: 30px;
  }
}

@media (max-width: 768px) {
  .chat-bubble {
    font-size: 0.76rem;
    padding: 7px 10px;
  }

  .chat-avatar {
    width: 22px;
    height: 22px;
    font-size: 0.5rem;
  }

  .chat-claude-icon {
    width: 22px;
    height: 22px;
  }
}

@media (max-width: 480px) {
  .chat-bubble {
    font-size: 0.72rem;
    padding: 6px 8px;
  }

  .chat-skill-item {
    font-size: 0.7rem;
  }

  .chat-avatar {
    width: 20px;
    height: 20px;
  }

  .chat-claude-icon {
    width: 20px;
    height: 20px;
  }
}
